2014-03-31 03:07:13 +08:00
|
|
|
--- a/arch/mips/bcm47xx/leds.c
|
|
|
|
+++ b/arch/mips/bcm47xx/leds.c
|
2014-07-04 05:41:33 +08:00
|
|
|
@@ -35,6 +35,15 @@ bcm47xx_leds_asus_rtn12[] __initconst =
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct gpio_led
|
|
|
|
+bcm47xx_leds_asus_rtn15u[] __initconst = {
|
|
|
|
+ /* TODO: Add "wlan" LED */
|
|
|
|
+ BCM47XX_GPIO_LED(3, "blue", "wan", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(4, "blue", "lan", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(6, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
+ BCM47XX_GPIO_LED(9, "blue", "usb", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static const struct gpio_led
|
|
|
|
bcm47xx_leds_asus_rtn16[] __initconst = {
|
|
|
|
BCM47XX_GPIO_LED(1, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
BCM47XX_GPIO_LED(7, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
@@ -42,8 +51,8 @@ bcm47xx_leds_asus_rtn16[] __initconst =
|
|
|
|
|
|
|
|
static const struct gpio_led
|
|
|
|
bcm47xx_leds_asus_rtn66u[] __initconst = {
|
|
|
|
- BCM47XX_GPIO_LED(12, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
- BCM47XX_GPIO_LED(15, "unk", "usb", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(12, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
+ BCM47XX_GPIO_LED(15, "blue", "usb", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct gpio_led
|
|
|
|
@@ -216,8 +225,8 @@ bcm47xx_leds_linksys_e1000v1[] __initcon
|
2014-03-31 03:07:13 +08:00
|
|
|
|
|
|
|
static const struct gpio_led
|
|
|
|
bcm47xx_leds_linksys_e1000v21[] __initconst = {
|
|
|
|
- BCM47XX_GPIO_LED(5, "unk", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
- BCM47XX_GPIO_LED(6, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
+ BCM47XX_GPIO_LED(5, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(6, "blue", "power", 1, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
BCM47XX_GPIO_LED(7, "amber", "wps", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
BCM47XX_GPIO_LED(8, "blue", "wps", 0, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
};
|
2014-07-06 03:40:15 +08:00
|
|
|
@@ -333,11 +342,10 @@ bcm47xx_leds_linksys_wrt610nv2[] __initc
|
|
|
|
|
|
|
|
static const struct gpio_led
|
|
|
|
bcm47xx_leds_linksys_wrtsl54gs[] __initconst = {
|
|
|
|
- BCM47XX_GPIO_LED(0, "unk", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
- BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
- BCM47XX_GPIO_LED(2, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
- BCM47XX_GPIO_LED(3, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
- BCM47XX_GPIO_LED(7, "unk", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(0, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
|
|
|
|
+ BCM47XX_GPIO_LED(5, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
+ BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF),
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Motorola */
|
|
|
|
@@ -425,6 +433,9 @@ void __init bcm47xx_leds_register(void)
|
2014-07-04 05:41:33 +08:00
|
|
|
case BCM47XX_BOARD_ASUS_RTN12:
|
|
|
|
bcm47xx_set_pdata(bcm47xx_leds_asus_rtn12);
|
|
|
|
break;
|
|
|
|
+ case BCM47XX_BOARD_ASUS_RTN15U:
|
|
|
|
+ bcm47xx_set_pdata(bcm47xx_leds_asus_rtn15u);
|
|
|
|
+ break;
|
|
|
|
case BCM47XX_BOARD_ASUS_RTN16:
|
|
|
|
bcm47xx_set_pdata(bcm47xx_leds_asus_rtn16);
|
|
|
|
break;
|