From: Vittorio G (VittGam) Date: Sat, 20 Aug 2016 21:56:25 +0000 (+0200) Subject: Fix LED polarity for the TP-LINK TL-MR13U. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F118%2Fhead;p=oweals%2Fu-boot_mod.git Fix LED polarity for the TP-LINK TL-MR13U. See https://dev.openwrt.org/changeset/44647 for the related OpenWrt change. Signed-off-by: Vittorio Gambaletta --- diff --git a/u-boot/include/configs/ap121.h b/u-boot/include/configs/ap121.h index f0d3eb3..2d36efc 100644 --- a/u-boot/include/configs/ap121.h +++ b/u-boot/include/configs/ap121.h @@ -48,14 +48,15 @@ #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 */