From 2fe3e016d033e9b6549d47f7768ad9a01379e71c Mon Sep 17 00:00:00 2001 From: "Vittorio G (VittGam)" Date: Sat, 20 Aug 2016 23:56:25 +0200 Subject: [PATCH] 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 --- u-boot/include/configs/ap121.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.25.1