diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-01-04 02:59:10 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-01-04 02:59:10 +0000 |
commit | b5ccc2e5051668adc43ccbab969ed46b8a7ed7ad (patch) | |
tree | 999635fa0578e643aa3c941c0b3418453a6c865d /target/linux/ar7/files | |
parent | 4dc872d27d5a6fbc41c3124891876fdb6bfc31a0 (diff) | |
download | mtk-20170518-b5ccc2e5051668adc43ccbab969ed46b8a7ed7ad.zip mtk-20170518-b5ccc2e5051668adc43ccbab969ed46b8a7ed7ad.tar.gz mtk-20170518-b5ccc2e5051668adc43ccbab969ed46b8a7ed7ad.tar.bz2 |
Add dg834 leds support from #2817
SVN-Revision: 10105
Diffstat (limited to 'target/linux/ar7/files')
-rw-r--r-- | target/linux/ar7/files/arch/mips/ar7/platform.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c index 9be9f09..0668bc2 100644 --- a/target/linux/ar7/files/arch/mips/ar7/platform.c +++ b/target/linux/ar7/files/arch/mips/ar7/platform.c @@ -329,6 +329,14 @@ static struct gpio_led dsl502t_leds[] = { { .name = "usb", .gpio = 12, .active_low = 1, }, }; +static struct gpio_led dg834g_leds[] = { + { .name = "ppp", .gpio = 6, .active_low = 1, }, + { .name = "status", .gpio = 7, .active_low = 1, }, + { .name = "adsl", .gpio = 8, .active_low = 1, }, + { .name = "wifi", .gpio = 12, .active_low = 1, }, + { .name = "power", .gpio = 14, .active_low = 1, }, +}; + static struct gpio_led fb_sl_leds[] = { { .name = "1", .gpio = 7, }, { .name = "2", .gpio = 13, .active_low = 1, }, @@ -421,6 +429,9 @@ static void __init detect_leds(void) } else if (!strcmp(prId, "AR7RD") && usb_prod != NULL && strstr(usb_prod, "DSL-502T")) { ar7_led_data.num_leds = ARRAY_SIZE(dsl502t_leds); ar7_led_data.leds = dsl502t_leds; + } else if (strstr(prId, "DG834")) { + ar7_led_data.num_leds = ARRAY_SIZE(dg834g_leds); + ar7_led_data.leds = dg834g_leds; } } |