brcm63xx: Add support for ZyXEL P870HW-51a v2
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 564-board_P870HW-51a_v2.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -4460,6 +4460,89 @@ static struct board_info __initdata boar
4 .has_ehci0 = 1,
5 };
6
7 +static struct board_info __initdata board_P870HW51A_V2 = {
8 + .name = "P870HW-51a_v2",
9 + .expected_cpu_id = 0x6368,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [0] = {
20 + .used = 1,
21 + .phy_id = 1,
22 + .name = "port1",
23 + },
24 + [1] = {
25 + .used = 1,
26 + .phy_id = 2,
27 + .name = "port2",
28 + },
29 + [2] = {
30 + .used = 1,
31 + .phy_id = 3,
32 + .name = "port3",
33 + },
34 + [3] = {
35 + .used = 1,
36 + .phy_id = 4,
37 + .name = "port4",
38 + },
39 + },
40 + },
41 +
42 + .leds = {
43 + {
44 + .name = "P870HW-51a:green:power",
45 + .gpio = 0,
46 + .default_trigger = "default-on",
47 + },
48 + {
49 + .name = "P870HW-51a:green:dsl",
50 + .gpio = 2,
51 + .active_low = 1,
52 + },
53 + {
54 + .name = "P870HW-51a:green:inet",
55 + .gpio = 22,
56 + .active_low = 1,
57 + },
58 + {
59 + .name = "P870HW-51a:orange:wps",
60 + .gpio = 24,
61 + .active_low = 1,
62 + },
63 + {
64 + .name = "P870HW-51a:red:inet",
65 + .gpio = 33,
66 + .active_low = 1,
67 + },
68 + },
69 +
70 + .buttons = {
71 + {
72 + .desc = "reset",
73 + .gpio = 34,
74 + .type = EV_KEY,
75 + .code = KEY_RESTART,
76 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
77 + .active_low = 1,
78 + },
79 + {
80 + .desc = "wps",
81 + .gpio = 35,
82 + .type = EV_KEY,
83 + .code = KEY_WPS_BUTTON,
84 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
85 + .active_low = 1,
86 + },
87 + },
88 +};
89 +
90 static struct board_info __initdata board_VR3025u = {
91 .name = "96368M-1541N",
92 .expected_cpu_id = 0x6368,
93 @@ -5119,6 +5202,7 @@ static const struct board_info __initcon
94 #ifdef CONFIG_BCM63XX_CPU_6368
95 &board_96368mvwg,
96 &board_96368mvngr,
97 + &board_P870HW51A_V2,
98 &board_VR3025u,
99 &board_VR3025un,
100 &board_WAP5813n,