1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 01:11:52 +02:00

Add dg834 leds support from #2817

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10105 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2008-01-04 02:59:10 +00:00
parent 379d926d21
commit 963a5b3820

View File

@ -329,6 +329,14 @@ static struct gpio_led dsl502t_leds[] = {
{ .name = "usb", .gpio = 12, .active_low = 1, }, { .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[] = { static struct gpio_led fb_sl_leds[] = {
{ .name = "1", .gpio = 7, }, { .name = "1", .gpio = 7, },
{ .name = "2", .gpio = 13, .active_low = 1, }, { .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")) { } 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.num_leds = ARRAY_SIZE(dsl502t_leds);
ar7_led_data.leds = 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;
} }
} }