aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-07-12 08:34:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-07-12 08:34:21 +0000
commitc75c895d247926b70a9e9ff97ec8294bfe195c86 (patch)
tree21f908462a01433da2eb0465f5da245b84bd21ae
parent466f010303b5c47436ec62b9fd067ce89152e5e5 (diff)
downloadupstream-c75c895d247926b70a9e9ff97ec8294bfe195c86.tar.gz
upstream-c75c895d247926b70a9e9ff97ec8294bfe195c86.tar.bz2
upstream-c75c895d247926b70a9e9ff97ec8294bfe195c86.zip
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> SVN-Revision: 32678
-rw-r--r--target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch b/target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch
index ec5595f7dd..8759147580 100644
--- a/target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch
+++ b/target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch
@@ -57,7 +57,7 @@
ath79_register_leds_gpio(-1, ARRAY_SIZE(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);
ap91_pci_init(eeprom, NULL);
@@ -99,6 +99,11 @@
+ .name = "ubnt:green:globe",
+ .gpio = 0,
+ .active_low = 1,
++ }, {
++ .name = "ubnt:green:power",
++ .gpio = 11,
++ .active_low = 1,
++ .default_state = LEDS_GPIO_DEFSTATE_ON,
+ }
+};
+