685bd16ed8d605c6256508f973ea39ba6fed71d7
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 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 @@ -2319,6 +2319,74 @@ 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 + .of_board_id = "d-link,dva-g3810bn/tl",
12 + .expected_cpu_id = 0x6358,
13 +
14 + .has_uart0 = 1,
15 + .has_enet0 = 1,
16 + .has_enet1 = 1,
17 + .has_pci = 1,
18 +
19 + .enet0 = {
20 + .has_phy = 0,
21 + .use_internal_phy = 1,
22 + .force_speed_100 = 1,
23 + .force_duplex_full = 1,
24 + },
25 +
26 + .enet1 = {
27 + .has_phy = 1,
28 + .phy_id = 0,
29 + .force_speed_100 = 1,
30 + .force_duplex_full = 1,
31 + },
32 +
33 +
34 + .has_ohci0 = 1,
35 + .has_pccard = 1,
36 + .has_ehci0 = 1,
37 +
38 + .leds = {
39 + {
40 + .name = "DVAG3810BN::voip",
41 + .gpio = 1,
42 + },
43 + {
44 + .name = "DVAG3810BN::dsl",
45 + .gpio = 22,
46 + .active_low = 1,
47 + },
48 + {
49 + .name = "DVAG3810BN::internet",
50 + .gpio = 23,
51 + .active_low = 1,
52 + },
53 + {
54 + .name = "DVAG3810BN::power",
55 + .gpio = 4,
56 + .default_trigger = "default-on",
57 + },
58 + {
59 + .name = "DVAG3810BN::stop",
60 + .gpio = 5,
61 + },
62 + },
63 +
64 + .buttons = {
65 + {
66 + .desc = "reset",
67 + .gpio = 34,
68 + .active_low = 1,
69 + .type = EV_KEY,
70 + .code = KEY_RESTART,
71 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
72 + },
73 + },
74 +};
75 #endif /* CONFIG_BCM63XX_CPU_6358 */
76
77 /*
78 @@ -2523,6 +2591,7 @@ static const struct board_info __initcon
79 &board_ct6373_1,
80 &board_HW553,
81 &board_spw303v,
82 + &board_DVAG3810BN,
83 #endif
84
85 #ifdef CONFIG_BCM63XX_CPU_6368