From: Florian Fainelli Date: Sun, 6 Apr 2008 10:29:44 +0000 (+0000) Subject: Add leds support for the CAS-771/771w X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6ca0ebe57c5711e3ee7cffff8fa0b9ff97b0b315;p=openwrt%2Fstaging%2Fstintel.git Add leds support for the CAS-771/771w SVN-Revision: 10739 --- diff --git a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c index 54783abfaa..823254c5ec 100644 --- a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c +++ b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c @@ -59,6 +59,18 @@ static struct gpio_led n ## _leds [] __initdata = #define LED_STD(g, n, t) LED_DATA((n), (t), (g), 0) #define LED_INV(g, n, t) LED_DATA((n), (t), (g), 1) +/* + * Cellvision boards + */ + +LED_ARRAY(cas771) { + LED_STD(ADM5120_GPIO_PIN0, "cam_flash", NULL), + /* GPIO PIN3 is the reset */ + LED_STD(ADM5120_GPIO_PIN6, "access", NULL), + LED_STD(ADM5120_GPIO_P0L1, "status", NULL), + LED_STD(ADM5120_GPIO_P0L2, "diag", NULL), +}; + /* * Compex boards */ @@ -253,6 +265,8 @@ LED_ARRAY(generic) { static struct mach_data machines[] __initdata = { MACH_DATA(MACH_ADM5120_GENERIC, generic), + /* Cellvision */ + MACH_DATA(MACH_ADM5120_CAS771, cas771), /* Compex */ MACH_DATA(MACH_ADM5120_NP28G, np28g), MACH_DATA(MACH_ADM5120_NP28GHS, np28g),