tools: edimax_fw_header: fix suspicious memset usage
[openwrt/staging/chunkeey.git] / target / linux / adm5120 / files / arch / mips / adm5120 / cellvision / cas-771.c
1 /*
2 * Cellvision/SparkLAN CAS-771/771W support
3 *
4 * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
9 *
10 */
11
12 #include "cellvision.h"
13
14 static struct adm5120_pci_irq cas771_pci_irqs[] __initdata = {
15 PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0),
16 PCIIRQ(3, 0, 1, ADM5120_IRQ_PCI1),
17 PCIIRQ(3, 2, 3, ADM5120_IRQ_PCI2)
18 };
19
20 static struct gpio_led cas771_gpio_leds[] __initdata = {
21 GPIO_LED_STD(ADM5120_GPIO_PIN0, "cam_flash", NULL),
22 /* GPIO PIN3 is the reset */
23 GPIO_LED_STD(ADM5120_GPIO_PIN6, "access", NULL),
24 GPIO_LED_STD(ADM5120_GPIO_P0L1, "status", NULL),
25 GPIO_LED_STD(ADM5120_GPIO_P0L2, "diag", NULL),
26 };
27
28 static void __init cas771_setup(void)
29 {
30 cas7xx_setup();
31 adm5120_add_device_gpio_leds(ARRAY_SIZE(cas771_gpio_leds),
32 cas771_gpio_leds);
33 adm5120_pci_set_irq_map(ARRAY_SIZE(cas771_pci_irqs), cas771_pci_irqs);
34 }
35
36 MIPS_MACHINE(MACH_ADM5120_CAS771, "CAS-771", "Cellvision CAS-771/771W",
37 cas771_setup);