ar71xx: airrouter power led support
This patch adds support for power led to Unifi Airrouter AP. [juhosg:fold the patch into 608-MIPS-ath79-ubnt-xm-add-more-boards.patch] Signed-off-by: Rocco Folino <lordzen@autistici.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32678 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
acef82907f
commit
690472051f
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_xm_leds_gpio),
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_xm_leds_gpio),
|
||||||
ubnt_xm_leds_gpio);
|
ubnt_xm_leds_gpio);
|
||||||
@@ -79,9 +85,107 @@ static void __init ubnt_xm_init(void)
|
@@ -79,9 +85,112 @@ static void __init ubnt_xm_init(void)
|
||||||
|
|
||||||
ath79_register_m25p80(NULL);
|
ath79_register_m25p80(NULL);
|
||||||
ap91_pci_init(eeprom, NULL);
|
ap91_pci_init(eeprom, NULL);
|
||||||
|
@ -99,6 +99,11 @@
|
||||||
+ .name = "ubnt:green:globe",
|
+ .name = "ubnt:green:globe",
|
||||||
+ .gpio = 0,
|
+ .gpio = 0,
|
||||||
+ .active_low = 1,
|
+ .active_low = 1,
|
||||||
|
+ }, {
|
||||||
|
+ .name = "ubnt:green:power",
|
||||||
|
+ .gpio = 11,
|
||||||
|
+ .active_low = 1,
|
||||||
|
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
|
||||||
+ }
|
+ }
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in New Issue