ipq807x: Fixed the aquantia gpio
Change-Id: I160632ee56fd874b97a9eba8a6af9945d591e79d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
diff --git a/board/qca/arm/ipq807x/ipq807x.c b/board/qca/arm/ipq807x/ipq807x.c
index 8b9bb6a..eb04852 100644
--- a/board/qca/arm/ipq807x/ipq807x.c
+++ b/board/qca/arm/ipq807x/ipq807x.c
@@ -323,9 +323,10 @@
if (aquantia_gpio >=0) {
aquantia_gpio_base = (unsigned int *)GPIO_CONFIG_ADDR(aquantia_gpio);
- writel(0x2C3, aquantia_gpio_base);
- writel(0, aquantia_gpio_base);
- writel(0x3, aquantia_gpio_base);
+ writel(0x203, aquantia_gpio_base);
+ gpio_set_value(aquantia_gpio, 0x0);
+ mdelay(500);
+ gpio_set_value(aquantia_gpio, 0x1);
mdelay(500);
}
}