aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-3.9/925-actiontec_leds.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-05-20 12:42:36 +0000
committerJonas Gorski <jogo@openwrt.org>2013-05-20 12:42:36 +0000
commiteb8ef4e423c48a1303f7f6b0516f1902831071a4 (patch)
treedb94818920bc432d86d6d03f01154bd3c8f3d830 /target/linux/ar7/patches-3.9/925-actiontec_leds.patch
parent0b56c9b520ae0f4a41e17c50ecf59eab8e04c9dc (diff)
downloadupstream-eb8ef4e423c48a1303f7f6b0516f1902831071a4.tar.gz
upstream-eb8ef4e423c48a1303f7f6b0516f1902831071a4.tar.bz2
upstream-eb8ef4e423c48a1303f7f6b0516f1902831071a4.zip
ar7: add support for 3.9
Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36671 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/patches-3.9/925-actiontec_leds.patch')
-rw-r--r--target/linux/ar7/patches-3.9/925-actiontec_leds.patch95
1 files changed, 95 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-3.9/925-actiontec_leds.patch b/target/linux/ar7/patches-3.9/925-actiontec_leds.patch
new file mode 100644
index 0000000000..41af2cb54f
--- /dev/null
+++ b/target/linux/ar7/patches-3.9/925-actiontec_leds.patch
@@ -0,0 +1,95 @@
+--- a/arch/mips/ar7/platform.c
++++ b/arch/mips/ar7/platform.c
+@@ -465,31 +465,22 @@ static struct gpio_led fb_fon_leds[] = {
+ },
+ };
+
+-static struct gpio_led gt701_leds[] = {
++static struct gpio_led actiontec_leds[] = {
+ {
+ .name = "inet:green",
+ .gpio = 13,
+- .active_low = 1,
+- },
+- {
+- .name = "usb",
+- .gpio = 12,
+- .active_low = 1,
+ },
+ {
+ .name = "inet:red",
+ .gpio = 9,
+- .active_low = 1,
+ },
+ {
+- .name = "power:red",
++ .name = "power:green",
+ .gpio = 7,
+- .active_low = 1,
+ },
+ {
+- .name = "power:green",
++ .name = "power:red",
+ .gpio = 8,
+- .active_low = 1,
+ .default_trigger = "default-on",
+ },
+ {
+@@ -497,6 +488,44 @@ static struct gpio_led gt701_leds[] = {
+ .gpio = 10,
+ .active_low = 1,
+ },
++ {
++ .name = "wifi",
++ .gpio = 6,
++ .active_low = 1,
++ },
++ {
++ .name = "wifi:red",
++ .gpio = 3,
++ },
++ {
++ .name = "standby",
++ .gpio = 4,
++ },
++ {
++ .name = "wps",
++ .gpio = 16,
++ .active_low = 1,
++ },
++ {
++ .name = "usb",
++ .gpio = 12,
++ .active_low = 1,
++ },
++ {
++ .name = "voip",
++ .gpio = 15,
++ .active_low = 1,
++ },
++ {
++ .name = "line1",
++ .gpio = 23,
++ .active_low = 1,
++ },
++ {
++ .name = "line2",
++ .gpio = 25,
++ .active_low = 1,
++ },
+ };
+
+ static struct gpio_led_platform_data ar7_led_data;
+@@ -540,9 +569,9 @@ static void __init detect_leds(void)
+ } else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) {
+ ar7_led_data.num_leds = ARRAY_SIZE(titan_leds);
+ ar7_led_data.leds = titan_leds;
+- } else if (strstr(prid, "GT701")) {
+- ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds);
+- ar7_led_data.leds = gt701_leds;
++ } else if (strstr(prid, "GT7") || strstr(prid, "PK5000")) {
++ ar7_led_data.num_leds = ARRAY_SIZE(actiontec_leds);
++ ar7_led_data.leds = actiontec_leds;
+ }
+ }
+