diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-04-06 10:29:44 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-04-06 10:29:44 +0000 |
commit | 395b0b61364b3095212129bebe7ae3916f472142 (patch) | |
tree | f859bc1dea53c1894c4a9fd1d0ffd20fd0e09427 /target/linux/adm5120/files/drivers/leds/leds-adm5120.c | |
parent | f9a1f1fc441188e1cc166d795bd1a10fe6d70d0a (diff) | |
download | master-187ad058-395b0b61364b3095212129bebe7ae3916f472142.tar.gz master-187ad058-395b0b61364b3095212129bebe7ae3916f472142.tar.bz2 master-187ad058-395b0b61364b3095212129bebe7ae3916f472142.zip |
Add leds support for the CAS-771/771w
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10739 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers/leds/leds-adm5120.c')
-rw-r--r-- | target/linux/adm5120/files/drivers/leds/leds-adm5120.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -60,6 +60,18 @@ static struct gpio_led n ## _leds [] __initdata = #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 */ #if defined(CONFIG_LEDS_ADM5120_EXPERIMENTAL) @@ -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), |