]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00219178 [MX6]Need to avoid using GPIO_1 on latest B4 sabresd board
authorAnson Huang <b20788@freescale.com>
Thu, 2 Aug 2012 15:17:43 +0000 (23:17 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:09 +0000 (08:35 +0200)
For the latest B4 sabresd board, GPIO_1 is connected to PRO_B, we
use this pin as battery charge_done led control, need to avoid using
this pin as GPIO for B4 board, or system will reboot when this pin's
level is changed.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabresd.c

index ae8a6137273be548ad31991962ee050bced9e468..6116d5bc340212990e5bc590b489bddc4694e213 100644 (file)
@@ -1499,8 +1499,14 @@ static void gps_power_on(bool on)
 static struct gpio_led imx6q_gpio_leds[] = {
        GPIO_LED(SABRESD_CHARGE_NOW, "chg_now_led", 0, 1,
                "charger-charging"),
+/* For the latest B4 board, this GPIO_1 is connected to POR_B,
+which will reset the whole board if this pin's level is changed,
+so, for the latest board, we have to avoid using this pin as
+GPIO. */
+#if 0
        GPIO_LED(SABRESD_CHARGE_DONE, "chg_done_led", 0, 1,
                        "charger-full"),
+#endif
 };
 
 static struct gpio_led_platform_data imx6q_gpio_leds_data = {