bcm63xx: add 3.9 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.9 / 527-board_dva-g3810bn-tl-1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2561,6 +2561,73 @@ static struct board_info __initdata boar
4 },
5 }
6 };
7 +
8 +/* D-Link DVA-G3810BN/TL */
9 +static struct board_info __initdata board_DVAG3810BN = {
10 + .name = "DVAG3810BN",
11 + .expected_cpu_id = 0x6358,
12 +
13 + .has_uart0 = 1,
14 + .has_enet0 = 1,
15 + .has_enet1 = 1,
16 + .has_pci = 1,
17 +
18 + .enet0 = {
19 + .has_phy = 0,
20 + .use_internal_phy = 1,
21 + .force_speed_100 = 1,
22 + .force_duplex_full = 1,
23 + },
24 +
25 + .enet1 = {
26 + .has_phy = 1,
27 + .phy_id = 0,
28 + .force_speed_100 = 1,
29 + .force_duplex_full = 1,
30 + },
31 +
32 +
33 + .has_ohci0 = 1,
34 + .has_pccard = 1,
35 + .has_ehci0 = 1,
36 +
37 + .leds = {
38 + {
39 + .name = "DVAG3810BN::voip",
40 + .gpio = 1,
41 + },
42 + {
43 + .name = "DVAG3810BN::dsl",
44 + .gpio = 22,
45 + .active_low = 1,
46 + },
47 + {
48 + .name = "DVAG3810BN::internet",
49 + .gpio = 23,
50 + .active_low = 1,
51 + },
52 + {
53 + .name = "DVAG3810BN::power",
54 + .gpio = 4,
55 + .default_trigger = "default-on",
56 + },
57 + {
58 + .name = "DVAG3810BN::stop",
59 + .gpio = 5,
60 + },
61 + },
62 +
63 + .buttons = {
64 + {
65 + .desc = "reset",
66 + .gpio = 34,
67 + .active_low = 1,
68 + .type = EV_KEY,
69 + .code = KEY_RESTART,
70 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
71 + },
72 + },
73 +};
74 #endif
75
76 /*
77 @@ -2756,6 +2823,7 @@ static const struct board_info __initcon
78 &board_ct6373_1,
79 &board_HW553,
80 &board_spw303v,
81 + &board_DVAG3810BN,
82 #endif
83
84 #ifdef CONFIG_BCM63XX_CPU_6368