ar7: drop 3.14 support
[oweals/openwrt.git] / target / linux / adm5120 / files-3.8 / arch / mips / adm5120 / edimax / br-61x4wg.c
1 /*
2  *  Edimax BR-6104Wg/6114WG board 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 "br-61xx.h"
13
14 static struct adm5120_pci_irq br61x4wg_pci_irqs[] __initdata = {
15         PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0),
16 };
17
18 static struct gpio_led br61x4wg_gpio_leds[] __initdata = {
19         GPIO_LED_STD(ADM5120_GPIO_PIN0, "power",        NULL),
20         GPIO_LED_STD(ADM5120_GPIO_PIN5, "wlan",         NULL),
21         GPIO_LED_INV(ADM5120_GPIO_P0L1, "wan_speed",    NULL),
22         GPIO_LED_INV(ADM5120_GPIO_P0L0, "wan_lnkact",   NULL),
23         GPIO_LED_INV(ADM5120_GPIO_P1L1, "lan1_speed",   NULL),
24         GPIO_LED_INV(ADM5120_GPIO_P1L0, "lan1_lnkact",  NULL),
25         GPIO_LED_INV(ADM5120_GPIO_P2L1, "lan2_speed",   NULL),
26         GPIO_LED_INV(ADM5120_GPIO_P2L0, "lan2_lnkact",  NULL),
27         GPIO_LED_INV(ADM5120_GPIO_P3L1, "lan3_speed",   NULL),
28         GPIO_LED_INV(ADM5120_GPIO_P3L0, "lan3_lnkact",  NULL),
29         GPIO_LED_INV(ADM5120_GPIO_P4L1, "lan4_speed",   NULL),
30         GPIO_LED_INV(ADM5120_GPIO_P4L0, "lan4_lnkact",  NULL),
31 };
32
33 static void __init br61x4wg_setup(void)
34 {
35         br61xx_generic_setup();
36         adm5120_add_device_gpio_leds(ARRAY_SIZE(br61x4wg_gpio_leds),
37                                         br61x4wg_gpio_leds);
38         adm5120_pci_set_irq_map(ARRAY_SIZE(br61x4wg_pci_irqs),
39                                         br61x4wg_pci_irqs);
40 }
41
42 MIPS_MACHINE(MACH_ADM5120_BR61X4WG, "BR-6104WG", "Edimax BR-6104WG/6114WG",
43              br61x4wg_setup);