summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-21 14:56:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-21 14:56:24 +0000
commit10ed605a89cc0e26b23ee6a15c170a2135336b22 (patch)
treeb2aa757071cef4925bcaf23c622fc25f097f5895 /target/linux/ar71xx/files/arch/mips
parent20c8252a8fb551fe40b312c51a48b0daa1f96064 (diff)
downloadmtk-20170518-10ed605a89cc0e26b23ee6a15c170a2135336b22.zip
mtk-20170518-10ed605a89cc0e26b23ee6a15c170a2135336b22.tar.gz
mtk-20170518-10ed605a89cc0e26b23ee6a15c170a2135336b22.tar.bz2
ar71xx: let HW switch control WAN LED on dir-825-c1
Enable GPIO 20. This hands off control of the blue planet led to the integrated switch. Consequently, remove the led configuration for the blue planet led. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Patchwork: http://patchwork.openwrt.org/patch/4080/ [juhosg: whitespace fixup] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38096
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
index 21d4271..980c6db 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
@@ -36,6 +36,8 @@
#define DIR825C1_GPIO_LED_BLUE_PLANET 18
#define DIR825C1_GPIO_LED_WIFI_BGN 13
+#define DIR825C1_GPIO_WAN_LED_ENABLE 20
+
#define DIR825C1_GPIO_BTN_RESET 17
#define DIR825C1_GPIO_BTN_WPS 16
@@ -74,10 +76,6 @@ static struct gpio_led dir825c1_leds_gpio[] __initdata = {
.active_low = 1,
},
{
- .name = "d-link:blue:planet",
- .gpio = DIR825C1_GPIO_LED_BLUE_PLANET,
- .active_low = 1,
- }, {
.name = "d-link:blue:wifi_bgn",
.gpio = DIR825C1_GPIO_LED_WIFI_BGN,
.active_low = 1,
@@ -213,6 +211,9 @@ static void __init dir825c1_setup(void)
ath79_gpio_output_select(DIR825C1_GPIO_LED_BLUE_USB,
AR934X_GPIO_OUT_GPIO);
+ gpio_request_one(DIR825C1_GPIO_WAN_LED_ENABLE,
+ GPIOF_OUT_INIT_LOW, "WAN LED enable");
+
ath79_register_leds_gpio(-1, ARRAY_SIZE(dir825c1_leds_gpio),
dir825c1_leds_gpio);