Hello list,

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 <[email protected]>

diff -Nur 
openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c 
openwrt.new/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c    
2013-09-12 23:56:18.864876903 +0200
+++ openwrt.new/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c     
2013-09-13 10:37:40.226421755 +0200
@@ -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 @@
                .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,
        },
 };
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to