Fix LED polarity for the TP-LINK TL-MR13U. 118/head
authorVittorio G (VittGam) <github@vittgam.net>
Sat, 20 Aug 2016 21:56:25 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Aug 2016 21:56:25 +0000 (23:56 +0200)
See https://dev.openwrt.org/changeset/44647 for the related OpenWrt change.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
u-boot/include/configs/ap121.h

index f0d3eb307017907e0731fb3e14872d91f9c256bc..2d36efc2dd433b0f498c658b5dcfe0a933ec61ee 100644 (file)
 
 #elif defined(CONFIG_FOR_TPLINK_MR13U_V1)
        /* LEDs */
-       #define CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO             GPIO27
+       #define CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_HI             GPIO27
 
        /* Outputs, inputs */
-       #define CONFIG_QCA_GPIO_MASK_OUTPUTS                    (CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO | GPIO18)
+       #define CONFIG_QCA_GPIO_MASK_OUTPUTS                    (CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_HI | GPIO18)
        #define CONFIG_QCA_GPIO_MASK_INPUTS                             (GPIO6 | GPIO7 | GPIO11)
 
        /* Initial states */
-       #define CONFIG_QCA_GPIO_MASK_OUTPUTS_INIT_HI    (CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO | GPIO18)
+       #define CONFIG_QCA_GPIO_MASK_OUTPUTS_INIT_HI    GPIO18
+       #define CONFIG_QCA_GPIO_MASK_OUTPUTS_INIT_LO    CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_HI
 
 #elif defined(CONFIG_FOR_DLINK_DIR505_A1)
        /* LEDs */