X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/ef10c590d94cd701131fbd53a41b5c8ae3a82df5..d79f615a7b5e4bba20d7bb244559fec79211d0b7:/target/linux/adm5120/files/drivers/leds/leds-adm5120.c diff --git a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c index 9bd3af6e8..823254c5e 100644 --- a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c +++ b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c @@ -6,20 +6,9 @@ * Copyright (C) 2007,2008 OpenWrt.org * Copyright (C) 2007,2008 Gabor Juhos * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. * */ @@ -70,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 */ @@ -264,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), @@ -338,11 +341,6 @@ adm5120_leds_init(void) 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"); @@ -394,5 +392,5 @@ module_exit(adm5120_leds_exit); MODULE_AUTHOR("Gabor Juhos "); MODULE_DESCRIPTION(DRV_DESC); -MODULE_LICENSE("GPL"); +MODULE_LICENSE("GPL v2");