diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-11-15 14:23:44 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:02:34 -0500 |
commit | f77138e8d53a7a4a539f8d931107991d91727afd (patch) | |
tree | 010af1c68a8211527ca0dc84ddbf77ccda5aff9f /arch/mips | |
parent | edc9ded191f7075f2d9e7aa3c9e84c48bc4338b2 (diff) |
MIPS: AR7: add LEDs layout for the Actiontec GT701 router
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2981/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/ar7/platform.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index 33ffecf6a6d6..e5f6fca690e1 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c | |||
@@ -462,6 +462,40 @@ static struct gpio_led fb_fon_leds[] = { | |||
462 | }, | 462 | }, |
463 | }; | 463 | }; |
464 | 464 | ||
465 | static struct gpio_led gt701_leds[] = { | ||
466 | { | ||
467 | .name = "inet:green", | ||
468 | .gpio = 13, | ||
469 | .active_low = 1, | ||
470 | }, | ||
471 | { | ||
472 | .name = "usb", | ||
473 | .gpio = 12, | ||
474 | .active_low = 1, | ||
475 | }, | ||
476 | { | ||
477 | .name = "inet:red", | ||
478 | .gpio = 9, | ||
479 | .active_low = 1, | ||
480 | }, | ||
481 | { | ||
482 | .name = "power:red", | ||
483 | .gpio = 7, | ||
484 | .active_low = 1, | ||
485 | }, | ||
486 | { | ||
487 | .name = "power:green", | ||
488 | .gpio = 8, | ||
489 | .active_low = 1, | ||
490 | .default_trigger = "default-on", | ||
491 | }, | ||
492 | { | ||
493 | .name = "ethernet", | ||
494 | .gpio = 10, | ||
495 | .active_low = 1, | ||
496 | }, | ||
497 | }; | ||
498 | |||
465 | static struct gpio_led_platform_data ar7_led_data; | 499 | static struct gpio_led_platform_data ar7_led_data; |
466 | 500 | ||
467 | static struct platform_device ar7_gpio_leds = { | 501 | static struct platform_device ar7_gpio_leds = { |
@@ -503,6 +537,9 @@ static void __init detect_leds(void) | |||
503 | } else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) { | 537 | } else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) { |
504 | ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); | 538 | ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); |
505 | ar7_led_data.leds = titan_leds; | 539 | ar7_led_data.leds = titan_leds; |
540 | } else if (strstr(prid, "GT701")) { | ||
541 | ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); | ||
542 | ar7_led_data.leds = gt701_leds; | ||
506 | } | 543 | } |
507 | } | 544 | } |
508 | 545 | ||