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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37963 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Gabor Juhos 2013-09-13 15:01:40 +00:00
parent 546a43923a
commit 02240292d3
1 changed files with 5 additions and 0 deletions

View File

@ -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,
},
};