base-files: sysupgrade: fix streaming backup archives to stdout
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / patches-5.15 / 515-board-bcm6348.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1252,6 +1252,275 @@ static struct board_info __initdata boar
4 .force_duplex_full = 1,
5 },
6 };
7 +
8 +static struct board_info __initdata board_96348A_122 = {
9 + .name = "96348A-122",
10 + .expected_cpu_id = 0x6348,
11 +
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 +
15 + .has_enet1 = 1,
16 + .enet1 = {
17 + .has_phy = 1,
18 + .phy_id = 0,
19 + .force_speed_100 = 1,
20 + .force_duplex_full = 1,
21 + },
22 +
23 + .use_fallback_sprom = 1,
24 + .fallback_sprom = {
25 + .type = SPROM_BCM4318,
26 + .pci_bus = 0,
27 + .pci_dev = 1,
28 + },
29 +};
30 +
31 +static struct board_info __initdata board_96348_D4PW = {
32 + .name = "D-4P-W",
33 + .expected_cpu_id = 0x6348,
34 +
35 + .has_pci = 1,
36 +
37 + .has_enet1 = 1,
38 + .enet1 = {
39 + .has_phy = 1,
40 + .phy_id = 0,
41 + .force_speed_100 = 1,
42 + .force_duplex_full = 1,
43 + },
44 +};
45 +
46 +static struct board_info __initdata board_96348gw_10_AR1004G = {
47 + .name = "AR1004G",
48 + .expected_cpu_id = 0x6348,
49 +
50 + .has_pci = 1,
51 +
52 + .has_enet1 = 1,
53 + .enet1 = {
54 + .has_phy = 1,
55 + .phy_id = 0,
56 + .force_speed_100 = 1,
57 + .force_duplex_full = 1,
58 + },
59 +};
60 +
61 +static struct board_info __initdata board_96348sv = {
62 + .name = "MAGIC",
63 + .expected_cpu_id = 0x6348,
64 +
65 + .has_pccard = 1,
66 + .has_pci = 1,
67 + .has_ohci0 = 1,
68 +
69 + .has_enet0 = 1,
70 + .enet0 = {
71 + .has_phy = 1,
72 + .use_internal_phy = 1,
73 + },
74 +
75 + .has_enet1 = 1,
76 + .enet1 = {
77 + /* it has BP_ENET_EXTERNAL_PHY */
78 + .has_phy = 1,
79 + .phy_id = 0,
80 + .force_speed_100 = 1,
81 + .force_duplex_full = 1,
82 + },
83 +};
84 +
85 +/* NetGear DG834G v4 */
86 +static struct board_info __initdata board_96348W3 = {
87 + .name = "96348W3",
88 + .expected_cpu_id = 0x6348,
89 +
90 + .has_pci = 1,
91 + .has_ohci0 = 1,
92 +
93 + .has_enet1 = 1,
94 + .enet1 = {
95 + .has_phy = 1,
96 + .phy_id = 0,
97 + .force_speed_100 = 1,
98 + .force_duplex_full = 1,
99 + },
100 +};
101 +
102 +static struct board_info __initdata board_CPVA502plus = {
103 + .name = "CPVA502+",
104 + .expected_cpu_id = 0x6348,
105 +
106 + .has_pci = 1,
107 + .ephy_reset_gpio = 4,
108 + .ephy_reset_gpio_flags = GPIO_ACTIVE_LOW,
109 +
110 + .has_enet0 = 1,
111 + .enet0 = {
112 + .has_phy = 1,
113 + .use_internal_phy = 1,
114 + },
115 +
116 + .has_enet1 = 1,
117 + .enet1 = {
118 + .has_phy = 1,
119 + .phy_id = 0,
120 + },
121 +
122 + .use_fallback_sprom = 1,
123 + .fallback_sprom = {
124 + .type = SPROM_BCM4318,
125 + .pci_bus = 0,
126 + .pci_dev = 1,
127 + },
128 +};
129 +
130 +static struct board_info __initdata board_ct536_ct5621 = {
131 + .name = "CT536_CT5621",
132 + .expected_cpu_id = 0x6348,
133 +
134 + .has_pccard = 1,
135 + .has_pci = 1,
136 + .has_ohci0 = 1,
137 +
138 + .has_enet1 = 1,
139 + .enet1 = {
140 + .has_phy = 1,
141 + .phy_id = 0,
142 + .force_speed_100 = 1,
143 + .force_duplex_full = 1,
144 + },
145 +
146 + .use_fallback_sprom = 1,
147 + .fallback_sprom = {
148 + .type = SPROM_BCM4318,
149 + .pci_bus = 0,
150 + .pci_dev = 1,
151 + },
152 +};
153 +
154 +static struct board_info __initdata board_FAST2604 = {
155 + .name = "F@ST2604",
156 + .expected_cpu_id = 0x6348,
157 +
158 + .has_pci = 1,
159 + .has_ohci0 = 1,
160 +
161 + .has_enet1 = 1,
162 + .enet1 = {
163 + .has_phy = 1,
164 + .phy_id = 0,
165 + .force_speed_100 = 1,
166 + .force_duplex_full = 1,
167 + },
168 +};
169 +
170 +static struct board_info __initdata board_gw6000 = {
171 + .name = "GW6000",
172 + .expected_cpu_id = 0x6348,
173 +
174 + .has_pci = 1,
175 + .has_ohci0 = 1,
176 +
177 + .has_enet0 = 1,
178 + .enet0 = {
179 + .has_phy = 1,
180 + .use_internal_phy = 1,
181 + },
182 +
183 + .has_enet1 = 1,
184 + .enet1 = {
185 + .force_speed_100 = 1,
186 + .force_duplex_full = 1,
187 + },
188 +};
189 +
190 +static struct board_info __initdata board_gw6200 = {
191 + .name = "GW6200",
192 + .expected_cpu_id = 0x6348,
193 +
194 + .has_pci = 1,
195 + .has_ohci0 = 1,
196 +
197 + .has_enet0 = 1,
198 + .enet0 = {
199 + .has_phy = 1,
200 + .use_internal_phy = 1,
201 + },
202 +
203 + .has_enet1 = 1,
204 + .enet1 = {
205 + .force_speed_100 = 1,
206 + .force_duplex_full = 1,
207 + },
208 +};
209 +
210 +static struct sprom_fixup __initdata spw500v_fixups[] = {
211 + { .offset = 46, .value = 0x3046 },
212 + { .offset = 47, .value = 0x15a7 },
213 + { .offset = 48, .value = 0xfa89 },
214 + { .offset = 49, .value = 0xfe79 },
215 + { .offset = 57, .value = 0x6a49 },
216 +};
217 +
218 +static struct board_info __initdata board_spw500v = {
219 + .name = "SPW500V",
220 + .expected_cpu_id = 0x6348,
221 +
222 + .has_pci = 1,
223 +
224 + .has_enet0 = 1,
225 + .enet0 = {
226 + .has_phy = 1,
227 + .use_internal_phy = 1,
228 + },
229 +
230 + .use_fallback_sprom = 1,
231 + .fallback_sprom = {
232 + .type = SPROM_BCM4318,
233 + .pci_bus = 0,
234 + .pci_dev = 1,
235 + .board_fixups = spw500v_fixups,
236 + .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
237 + },
238 +};
239 +
240 +/* BT Voyager 2110 */
241 +static struct board_info __initdata board_V2110 = {
242 + .name = "V2110",
243 + .expected_cpu_id = 0x6348,
244 +
245 + .has_pci = 1,
246 +
247 + .has_enet1 = 1,
248 + .enet1 = {
249 + .has_phy = 1,
250 + .phy_id = 0,
251 + .force_speed_100 = 1,
252 + .force_duplex_full = 1,
253 + },
254 +};
255 +
256 +static struct board_info __initdata board_V2500V_BB = {
257 + .name = "V2500V_BB",
258 + .expected_cpu_id = 0x6348,
259 +
260 + .has_pci = 1,
261 +
262 + .has_enet0 = 1,
263 + .enet0 = {
264 + .has_phy = 1,
265 + .use_internal_phy = 1,
266 + },
267 +
268 + .has_enet1 = 1,
269 + .enet1 = {
270 + .has_phy = 1,
271 + .phy_id = 0,
272 + .force_speed_100 = 1,
273 + .force_duplex_full = 1,
274 + },
275 +};
276 #endif /* CONFIG_BCM63XX_CPU_6348 */
277
278 /*
279 @@ -1407,6 +1676,19 @@ static const struct board_info __initcon
280 &board_DV201AMR,
281 &board_96348gw_a,
282 &board_rta1025w_16,
283 + &board_96348A_122,
284 + &board_96348_D4PW,
285 + &board_96348gw_10_AR1004G,
286 + &board_96348sv,
287 + &board_96348W3,
288 + &board_CPVA502plus,
289 + &board_ct536_ct5621,
290 + &board_FAST2604,
291 + &board_gw6000,
292 + &board_gw6200,
293 + &board_spw500v,
294 + &board_V2110,
295 + &board_V2500V_BB,
296 #endif /* CONFIG_BCM63XX_CPU_6348 */
297 #ifdef CONFIG_BCM63XX_CPU_6358
298 &board_96358vw,
299 @@ -1459,15 +1741,29 @@ static struct of_device_id const bcm963x
300 { .compatible = "dynalink,rta770w", .data = &board_rta770w, },
301 #endif /* CONFIG_BCM63XX_CPU_6345 */
302 #ifdef CONFIG_BCM63XX_CPU_6348
303 + { .compatible = "asmax,ar-1004g", .data = &board_96348gw_10_AR1004G, },
304 { .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },
305 { .compatible = "brcm,bcm96348r", .data = &board_96348r, },
306 { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
307 { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
308 { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
309 + { .compatible = "bt,voyager-2110", .data = &board_V2110, },
310 + { .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
311 + { .compatible = "comtrend,ct-5365", .data = &board_96348A_122, },
312 + { .compatible = "comtrend,ct-536plus", .data = &board_ct536_ct5621, },
313 + { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
314 + { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
315 { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
316 { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
317 { .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
318 + { .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
319 { .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
320 + { .compatible = "sagem,fast-2604", .data = &board_FAST2604, },
321 + { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
322 + { .compatible = "tecom,gw6000", .data = &board_gw6000, },
323 + { .compatible = "tecom,gw6200", .data = &board_gw6200, },
324 + { .compatible = "telsey,cpva502plus", .data = &board_CPVA502plus, },
325 + { .compatible = "telsey,magic", .data = &board_96348sv, },
326 { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
327 { .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
328 #endif /* CONFIG_BCM63XX_CPU_6348 */