brcm63xx: Add fallback sprom for P870HW-51a
[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 @@ -4570,6 +4570,96 @@ static struct sprom_fixup __initdata vr3
4 { .offset = 115, .value = 0xfad9 },
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 + .use_fallback_sprom = 1,
14 + .has_ohci0 = 1,
15 + .has_ehci0 = 1,
16 +
17 + .has_enetsw = 1,
18 + .enetsw = {
19 + .used_ports = {
20 + [0] = {
21 + .used = 1,
22 + .phy_id = 1,
23 + .name = "port1",
24 + },
25 + [1] = {
26 + .used = 1,
27 + .phy_id = 2,
28 + .name = "port2",
29 + },
30 + [2] = {
31 + .used = 1,
32 + .phy_id = 3,
33 + .name = "port3",
34 + },
35 + [3] = {
36 + .used = 1,
37 + .phy_id = 4,
38 + .name = "port4",
39 + },
40 + },
41 + },
42 +
43 + .leds = {
44 + {
45 + .name = "P870HW-51a:green:power",
46 + .gpio = 0,
47 + .default_trigger = "default-on",
48 + },
49 + {
50 + .name = "P870HW-51a:green:dsl",
51 + .gpio = 2,
52 + .active_low = 1,
53 + },
54 + {
55 + .name = "P870HW-51a:green:inet",
56 + .gpio = 22,
57 + .active_low = 1,
58 + },
59 + {
60 + .name = "P870HW-51a:orange:wps",
61 + .gpio = 24,
62 + .active_low = 1,
63 + },
64 + {
65 + .name = "P870HW-51a:red:inet",
66 + .gpio = 33,
67 + .active_low = 1,
68 + },
69 + },
70 +
71 + .buttons = {
72 + {
73 + .desc = "reset",
74 + .gpio = 34,
75 + .type = EV_KEY,
76 + .code = KEY_RESTART,
77 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
78 + .active_low = 1,
79 + },
80 + {
81 + .desc = "wps",
82 + .gpio = 35,
83 + .type = EV_KEY,
84 + .code = KEY_WPS_BUTTON,
85 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
86 + .active_low = 1,
87 + },
88 + },
89 +
90 + .fallback_sprom = {
91 + .type = SPROM_BCM4318,
92 + .pci_bus = 0,
93 + .pci_dev = 1,
94 + },
95 +};
96 +
97 static struct board_info __initdata board_VR3025u = {
98 .name = "96368M-1541N",
99 .expected_cpu_id = 0x6368,
100 @@ -5274,6 +5364,7 @@ static const struct board_info __initcon
101 #ifdef CONFIG_BCM63XX_CPU_6368
102 &board_96368mvwg,
103 &board_96368mvngr,
104 + &board_P870HW51A_V2,
105 &board_VR3025u,
106 &board_VR3025un,
107 &board_WAP5813n,