ath79: enable upgrade from ar71xx for Qxwlan devices
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 609-board_bcm6358-huawei-echolife-hg556.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -12,6 +12,7 @@
4 #include <linux/init.h>
5 #include <linux/kernel.h>
6 #include <linux/string.h>
7 +#include <linux/pci_ids.h>
8 #include <asm/addrspace.h>
9 #include <bcm63xx_board.h>
10 #include <bcm63xx_cpu.h>
11 @@ -1603,6 +1604,94 @@ static struct board_info __initdata boar
12 },
13 };
14
15 +static struct board_info __initdata board_HW556_A = {
16 + .name = "HW556_A",
17 + .expected_cpu_id = 0x6358,
18 +
19 + .has_pci = 1,
20 + .has_ohci0 = 1,
21 + .has_ehci0 = 1,
22 + .num_usbh_ports = 2,
23 +
24 + .has_caldata = 1,
25 + .caldata = {
26 + {
27 + .vendor = PCI_VENDOR_ID_ATHEROS,
28 + .caldata_offset = 0xf7e000,
29 + .slot = 1,
30 + .endian_check = 1,
31 + .led_pin = 2,
32 + .led_active_high = 1,
33 + },
34 + },
35 +
36 + .has_enet1 = 1,
37 + .enet1 = {
38 + .has_phy = 1,
39 + .phy_id = 0,
40 + .force_speed_100 = 1,
41 + .force_duplex_full = 1,
42 + },
43 +};
44 +
45 +static struct board_info __initdata board_HW556_B = {
46 + .name = "HW556_B",
47 + .expected_cpu_id = 0x6358,
48 +
49 + .has_pci = 1,
50 + .has_ohci0 = 1,
51 + .has_ehci0 = 1,
52 + .num_usbh_ports = 2,
53 +
54 + .has_caldata = 1,
55 + .caldata = {
56 + {
57 + .vendor = PCI_VENDOR_ID_ATHEROS,
58 + .caldata_offset = 0xefe000,
59 + .slot = 1,
60 + .endian_check = 1,
61 + .led_pin = 2,
62 + .led_active_high = 1,
63 + },
64 + },
65 +
66 + .has_enet1 = 1,
67 + .enet1 = {
68 + .has_phy = 1,
69 + .phy_id = 0,
70 + .force_speed_100 = 1,
71 + .force_duplex_full = 1,
72 + },
73 +};
74 +
75 +static struct board_info __initdata board_HW556_C = {
76 + .name = "HW556_C",
77 + .expected_cpu_id = 0x6358,
78 +
79 + .has_pci = 1,
80 + .has_ohci0 = 1,
81 + .has_ehci0 = 1,
82 + .num_usbh_ports = 2,
83 +
84 + .has_caldata = 1,
85 + .caldata = {
86 + {
87 + .vendor = PCI_VENDOR_ID_RALINK,
88 + .caldata_offset = 0xeffe00,
89 + .slot = 1,
90 + .eeprom = "rt2x00.eeprom",
91 + },
92 + },
93 +
94 + .has_enet1 = 1,
95 + .enet1 = {
96 + .has_phy = 1,
97 + .phy_id = 0,
98 + .force_speed_100 = 1,
99 + .force_duplex_full = 1,
100 + },
101 +};
102 +
103 /* T-Home Speedport W 303V Typ B */
104 static struct board_info __initdata board_spw303v = {
105 .name = "96358-502V",
106 @@ -1714,6 +1803,9 @@ static const struct board_info __initcon
107 &board_nb4_fxc_r1,
108 &board_ct6373_1,
109 &board_HW553,
110 + &board_HW556_A,
111 + &board_HW556_B,
112 + &board_HW556_C,
113 &board_spw303v,
114 &board_DVAG3810BN,
115 #endif /* CONFIG_BCM63XX_CPU_6358 */
116 @@ -1792,6 +1884,9 @@ static struct of_device_id const bcm963x
117 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
118 { .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
119 { .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
120 + { .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
121 + { .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },
122 + { .compatible = "huawei,echolife-hg556a-c", .data = &board_HW556_C, },
123 { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
124 { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
125 { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },