#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
*/
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),
struct mach_data *mach;
int i, ret;
- if (mips_machgroup != MACH_GROUP_ADM5120) {
- ret = -EINVAL;
- goto err;
- }
-
mach = adm5120_leds_findmach(mips_machtype);
if (mach == NULL) {
printk(KERN_ERR "leds-adm5120: unsupported board\n");