ath79: enable upgrade from ar71xx for Qxwlan devices
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 656-board_bcm6368-zyxel-p870hw-51a-v2.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1989,6 +1989,48 @@ 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_pci = 1,
12 + .has_ohci0 = 1,
13 + .has_ehci0 = 1,
14 +
15 + .has_enetsw = 1,
16 + .enetsw = {
17 + .used_ports = {
18 + [0] = {
19 + .used = 1,
20 + .phy_id = 1,
21 + .name = "port1",
22 + },
23 + [1] = {
24 + .used = 1,
25 + .phy_id = 2,
26 + .name = "port2",
27 + },
28 + [2] = {
29 + .used = 1,
30 + .phy_id = 3,
31 + .name = "port3",
32 + },
33 + [3] = {
34 + .used = 1,
35 + .phy_id = 4,
36 + .name = "port4",
37 + },
38 + },
39 + },
40 +
41 + .use_fallback_sprom = 1,
42 + .fallback_sprom = {
43 + .type = SPROM_BCM4318,
44 + .pci_bus = 0,
45 + .pci_dev = 1,
46 + },
47 +};
48 +
49 static struct board_info __initdata board_VR3025u = {
50 .name = "96368M-1541N",
51 .expected_cpu_id = 0x6368,
52 @@ -2216,6 +2258,7 @@ static const struct board_info __initcon
53 #ifdef CONFIG_BCM63XX_CPU_6368
54 &board_96368mvwg,
55 &board_96368mvngr,
56 + &board_P870HW51A_V2,
57 &board_VR3025u,
58 &board_VR3025un,
59 &board_WAP5813n,
60 @@ -2321,6 +2364,7 @@ static struct of_device_id const bcm963x
61 { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
62 { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
63 { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
64 + { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
65 #endif /* CONFIG_BCM63XX_CPU_6368 */
66 #ifdef CONFIG_BCM63XX_CPU_63268
67 #endif /* CONFIG_BCM63XX_CPU_63268 */