X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fadm5120%2Ffiles-3.14%2Farch%2Fmips%2Fadm5120%2Fcellvision%2Fcas-771.c;fp=target%2Flinux%2Fadm5120%2Ffiles-3.14%2Farch%2Fmips%2Fadm5120%2Fcellvision%2Fcas-771.c;h=5033e02469e95bc3a680727dcd1db2fef4c8ceca;hb=a9ace87dc73bf4a868b9530d7b7dbef7f9a34d8f;hp=0000000000000000000000000000000000000000;hpb=b44dd7a0361eb8295166161788f0d824a265e955;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/target/linux/adm5120/files-3.14/arch/mips/adm5120/cellvision/cas-771.c b/target/linux/adm5120/files-3.14/arch/mips/adm5120/cellvision/cas-771.c new file mode 100644 index 0000000000..5033e02469 --- /dev/null +++ b/target/linux/adm5120/files-3.14/arch/mips/adm5120/cellvision/cas-771.c @@ -0,0 +1,37 @@ +/* + * Cellvision/SparkLAN CAS-771/771W support + * + * 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 version 2 as published + * by the Free Software Foundation. + * + */ + +#include "cellvision.h" + +static struct adm5120_pci_irq cas771_pci_irqs[] __initdata = { + PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0), + PCIIRQ(3, 0, 1, ADM5120_IRQ_PCI1), + PCIIRQ(3, 2, 3, ADM5120_IRQ_PCI2) +}; + +static struct gpio_led cas771_gpio_leds[] __initdata = { + GPIO_LED_STD(ADM5120_GPIO_PIN0, "cam_flash", NULL), + /* GPIO PIN3 is the reset */ + GPIO_LED_STD(ADM5120_GPIO_PIN6, "access", NULL), + GPIO_LED_STD(ADM5120_GPIO_P0L1, "status", NULL), + GPIO_LED_STD(ADM5120_GPIO_P0L2, "diag", NULL), +}; + +static void __init cas771_setup(void) +{ + cas7xx_setup(); + adm5120_add_device_gpio_leds(ARRAY_SIZE(cas771_gpio_leds), + cas771_gpio_leds); + adm5120_pci_set_irq_map(ARRAY_SIZE(cas771_pci_irqs), cas771_pci_irqs); +} + +MIPS_MACHINE(MACH_ADM5120_CAS771, "CAS-771", "Cellvision CAS-771/771W", + cas771_setup);