bcm63xx: reorganize board patches into fewer files
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 517-board_bcm6362.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1786,6 +1786,117 @@ static struct board_info __initdata boar
4 };
5 #endif /* CONFIG_BCM63XX_CPU_6358 */
6
7 +#ifdef CONFIG_BCM63XX_CPU_6362
8 +static struct board_info __initdata board_dgnd3700v2 = {
9 + .name = "96362ADVN2xh",
10 + .expected_cpu_id = 0x6362,
11 +
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 + .num_usbh_ports = 2,
16 +
17 + .has_enetsw = 1,
18 + .enetsw = {
19 + .used_ports = {
20 + [4] = {
21 + .used = 1,
22 + .phy_id = 0xff,
23 + .bypass_link = 1,
24 + .force_speed = 1000,
25 + .force_duplex_full = 1,
26 + .name = "RGMII",
27 + },
28 + },
29 + },
30 +};
31 +
32 +static struct board_info __initdata board_fast2504n = {
33 + .name = "F@ST2504n",
34 + .expected_cpu_id = 0x6362,
35 +
36 + .has_enetsw = 1,
37 + .enetsw = {
38 + .used_ports = {
39 + [0] = {
40 + .used = 1,
41 + .phy_id = 1,
42 + .name = "Port 1",
43 + },
44 + [1] = {
45 + .used = 1,
46 + .phy_id = 2,
47 + .name = "Port 2",
48 + },
49 + [2] = {
50 + .used = 1,
51 + .phy_id = 3,
52 + .name = "Port 3",
53 + },
54 + [3] = {
55 + .used = 1,
56 + .phy_id = 4,
57 + .name = "Port 4",
58 + },
59 + },
60 + },
61 +};
62 +
63 +static struct board_info __initdata board_hg253s_v2 = {
64 + .name = "hg253s",
65 + .expected_cpu_id = 0x6362,
66 +
67 + .has_ohci0 = 1,
68 + .has_ehci0 = 1,
69 + .num_usbh_ports = 1,
70 +
71 + .has_enetsw = 1,
72 + .enetsw = {
73 + .used_ports = {
74 + [4] = {
75 + .used = 1,
76 + .phy_id = 0xff,
77 + .bypass_link = 1,
78 + .force_speed = 1000,
79 + .force_duplex_full = 1,
80 + .timing_sel = 1,
81 + .name = "RGMII",
82 + },
83 +
84 + [5] = {
85 + .used = 1,
86 + .phy_id = 24,
87 + .timing_sel = 1,
88 + .name = "WAN",
89 + },
90 + },
91 + },
92 +};
93 +
94 +static struct board_info __initdata board_nb6 = {
95 + .name = "NB6",
96 + .expected_cpu_id = 0x6362,
97 +
98 + .has_ohci0 = 1,
99 + .has_ehci0 = 1,
100 + .num_usbh_ports = 2,
101 +
102 + .has_enetsw = 1,
103 + .enetsw = {
104 + .used_ports = {
105 + [4] = {
106 + .used = 1,
107 + .phy_id = 0xff,
108 + .bypass_link = 1,
109 + .force_speed = 1000,
110 + .force_duplex_full = 1,
111 + .name = "RGMII",
112 + },
113 + },
114 + },
115 +};
116 +#endif /* CONFIG_BCM63XX_CPU_6362 */
117 +
118 /*
119 * all boards
120 */
121 @@ -1865,6 +1976,12 @@ static const struct board_info __initcon
122 &board_nb4_fxc_r1,
123 &board_spw303v,
124 #endif /* CONFIG_BCM63XX_CPU_6358 */
125 +#ifdef CONFIG_BCM63XX_CPU_6362
126 + &board_dgnd3700v2,
127 + &board_fast2504n,
128 + &board_hg253s_v2,
129 + &board_nb6,
130 +#endif /* CONFIG_BCM63XX_CPU_6362 */
131 };
132
133 static struct of_device_id const bcm963xx_boards_dt[] = {
134 @@ -1955,6 +2072,10 @@ static struct of_device_id const bcm963x
135 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
136 #endif /* CONFIG_BCM63XX_CPU_6358 */
137 #ifdef CONFIG_BCM63XX_CPU_6362
138 + { .compatible = "huawei,hg253s-v2", .data = &board_hg253s_v2, },
139 + { .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
140 + { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
141 + { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
142 #endif /* CONFIG_BCM63XX_CPU_6362 */
143 #ifdef CONFIG_BCM63XX_CPU_6368
144 #endif /* CONFIG_BCM63XX_CPU_6368 */