WindCharger: Fix ath_gpio_drive_low/high command - active low
Change-Id: I26a19e103f214bf37d258b82f2ef32ea41d0a95e
diff --git a/arch/mips/atheros/misc.c b/arch/mips/atheros/misc.c
index 0f883a6..38ba491 100755
--- a/arch/mips/atheros/misc.c
+++ b/arch/mips/atheros/misc.c
@@ -308,14 +308,14 @@
void ath_gpio_drive_low(unsigned int mask)
{
ath_reg_wr_nf(ATH_GPIO_CLEAR, mask);
- ath_reg_rmw_set(ATH_GPIO_OE, mask);
+ ath_reg_rmw_clear(ATH_GPIO_OE, mask);
}
/* drive bits in mask high */
void ath_gpio_drive_high(unsigned int mask)
{
ath_reg_wr_nf(ATH_GPIO_SET, mask);
- ath_reg_rmw_set(ATH_GPIO_OE, mask);
+ ath_reg_rmw_clear(ATH_GPIO_OE, mask);
}
/* Allow bits in mask to float to their quiescent state and test results */