[OpenWrt-Devel] [PATCH 1/3] ar71xx: add WLAN LED for WNR2200

Dirk Neukirchen dirkneukirchen at web.de
Mon Mar 7 16:12:10 EST 2016


this trivial change seems to be useful for 16M international version

Untested, used
- input from IRC chat (partitions),
- ticket #14356,
- GPL tarball (partitions)

Signed-off-by: Dirk Neukirchen <dirkneukirchen at web.de>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
index 5d23f21..1cbbd0e 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
@@ -38,6 +38,7 @@
 #define WNR2200_GPIO_LED_PWR_GREEN	22
 #define WNR2200_GPIO_USB_5V		4
 #define WNR2200_GPIO_USB_POWER		24
+#define WNR2200_GPIO_LED_WLAN		0
 
 #define WNR2200_KEYS_POLL_INTERVAL	20 /* msecs */
 #define WNR2200_KEYS_DEBOUNCE_INTERVAL	(3 * WNR2200_KEYS_POLL_INTERVAL)
@@ -124,6 +125,8 @@ static void __init wnr2200_setup(void)
 	ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
 		      art + WNR2200_MAC1_OFFSET);
 
+	ap9x_pci_setup_wmac_led_pin(0, WNR2200_GPIO_LED_WLAN);
+
 	ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
 					wnr2200_leds_gpio);
 
-- 
2.7.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list