mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-05 19:10:15 +02:00
Add leds support for the CAS-771/771w
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10739 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2a7a2f1f45
commit
f759bc5410
@ -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_STD(g, n, t) LED_DATA((n), (t), (g), 0)
|
||||||
#define LED_INV(g, n, t) LED_DATA((n), (t), (g), 1)
|
#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
|
* Compex boards
|
||||||
*/
|
*/
|
||||||
@ -253,6 +265,8 @@ LED_ARRAY(generic) {
|
|||||||
|
|
||||||
static struct mach_data machines[] __initdata = {
|
static struct mach_data machines[] __initdata = {
|
||||||
MACH_DATA(MACH_ADM5120_GENERIC, generic),
|
MACH_DATA(MACH_ADM5120_GENERIC, generic),
|
||||||
|
/* Cellvision */
|
||||||
|
MACH_DATA(MACH_ADM5120_CAS771, cas771),
|
||||||
/* Compex */
|
/* Compex */
|
||||||
MACH_DATA(MACH_ADM5120_NP28G, np28g),
|
MACH_DATA(MACH_ADM5120_NP28G, np28g),
|
||||||
MACH_DATA(MACH_ADM5120_NP28GHS, np28g),
|
MACH_DATA(MACH_ADM5120_NP28GHS, np28g),
|
||||||
|
Loading…
Reference in New Issue
Block a user