windcharger: enable red led on bootup
b/22377069
Change-Id: I56995b168fb0443009d23fc6b1fb8e1a40d8719c
diff --git a/board/atheros/board953x/board953x.c b/board/atheros/board953x/board953x.c
index 1eee259..d6bb382 100755
--- a/board/atheros/board953x/board953x.c
+++ b/board/atheros/board953x/board953x.c
@@ -93,14 +93,19 @@
udelay(10);
}
+#define GFMN_GPIO_RESET (1 << 13)
+#define GFMN_GPIO_LEDB (1 << 11)
+#define GFMN_GPIO_LEDR (1 << 16)
+
void ath_gpio_config(void)
{
/* GPIO4 configured in cpu/mips/start.S */
- /* Set GPIO 13 as input for LED functionality to be OFF during bootup */
- ath_reg_rmw_set(GPIO_OE_ADDRESS, (1 << 13));
- /* Turn off JUMPST_LED and 5Gz LED during bootup */
- ath_reg_rmw_set(GPIO_OE_ADDRESS, (1 << 15));
- ath_reg_rmw_set(GPIO_OE_ADDRESS, (1 << 12));
+
+ ath_reg_rmw_set(GPIO_OE_ADDRESS, GFMN_GPIO_RESET);
+
+ ath_reg_rmw_set(GPIO_OE_ADDRESS, GFMN_GPIO_LEDB | GFMN_GPIO_LEDR);
+ ath_reg_rmw_clear(GPIO_OE_ADDRESS, GFMN_GPIO_LEDB);
+ ath_reg_rmw_set(GPIO_OUT_ADDRESS, GFMN_GPIO_LEDR);
}
int