aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-13 15:01:40 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-13 15:01:40 +0000
commit897c00c1457880823dda8d08db4b75fa6733127e (patch)
treea17df800d86990a6c97bdb348212ca78bd223857 /target/linux/ar71xx/files
parentc3cc912ed9d7822bbb87c459edb7224567d4fe1e (diff)
downloadupstream-897c00c1457880823dda8d08db4b75fa6733127e.tar.gz
upstream-897c00c1457880823dda8d08db4b75fa6733127e.tar.bz2
upstream-897c00c1457880823dda8d08db4b75fa6733127e.zip
ar71xx: add wireless bgn led support for dir-825-c1
I checked the GPL code drop from D-Link and tried to get the wireless and LAN switch LEDs to light up. I found some references in AthSDK/www/DIR-825_C1/bsp.h as well as AthSDK/www/DIR-825_C1/rootfs/etc/sysconfig/S2gpio.sh, but in the end I only got the led for 2.4GHz to work. Anyway, here's the patch. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37963
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c5
1 files changed, 5 insertions, 0 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 423b918551..c1bd8d6878 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
@@ -34,6 +34,7 @@
#define DIR825C1_GPIO_LED_BLUE_WPS 15
#define DIR825C1_GPIO_LED_ORANGE_PLANET 19
#define DIR825C1_GPIO_LED_BLUE_PLANET 18
+#define DIR825C1_GPIO_LED_WIFI_BGN 13
#define DIR825C1_GPIO_BTN_RESET 17
#define DIR825C1_GPIO_BTN_WPS 16
@@ -76,6 +77,10 @@ static struct gpio_led dir825c1_leds_gpio[] __initdata = {
.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,
},
};