ar71xx: wndr4300: add LED for 2.4Ghz wifi interface

Based on the the WNDR3700v4 support patch from Ralph Perlich:
  http://patchwork.openwrt.org/patch/4763/

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40475
This commit is contained in:
Gabor Juhos 2014-04-12 17:42:35 +00:00
parent db123a8a21
commit 4fe71cedfe

View file

@ -36,6 +36,7 @@
#define WNDR4300_GPIO_LED_USB 13 #define WNDR4300_GPIO_LED_USB 13
#define WNDR4300_GPIO_LED_WAN_GREEN 1 #define WNDR4300_GPIO_LED_WAN_GREEN 1
#define WNDR4300_GPIO_LED_WAN_AMBER 3 #define WNDR4300_GPIO_LED_WAN_AMBER 3
#define WNDR4300_GPIO_LED_WLAN2G 11
#define WNDR4300_GPIO_LED_WLAN5G 14 #define WNDR4300_GPIO_LED_WLAN5G 14
#define WNDR4300_GPIO_LED_WPS_GREEN 16 #define WNDR4300_GPIO_LED_WPS_GREEN 16
#define WNDR4300_GPIO_LED_WPS_AMBER 17 #define WNDR4300_GPIO_LED_WPS_AMBER 17
@ -83,6 +84,11 @@ static struct gpio_led wndr4300_leds_gpio[] __initdata = {
.gpio = WNDR4300_GPIO_LED_WPS_AMBER, .gpio = WNDR4300_GPIO_LED_WPS_AMBER,
.active_low = 1, .active_low = 1,
}, },
{
.name = "netgear:green:wlan2g",
.gpio = WNDR4300_GPIO_LED_WLAN2G,
.active_low = 1,
},
{ {
.name = "netgear:blue:wlan5g", .name = "netgear:blue:wlan5g",
.gpio = WNDR4300_GPIO_LED_WLAN5G, .gpio = WNDR4300_GPIO_LED_WLAN5G,