1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -44,6 +44,263 @@ static struct board_info __initdata boar
4 #endif /* CONFIG_BCM63XX_CPU_3368 */
9 +#ifdef CONFIG_BCM63XX_CPU_6318
10 +static struct board_info __initdata board_96318ref = {
12 + .expected_cpu_id = 0x6318,
17 + .num_usbh_ports = 1,
52 +static struct board_info __initdata board_96318ref_p300 = {
53 + .name = "96318REF_P300",
54 + .expected_cpu_id = 0x6318,
59 + .num_usbh_ports = 1,
94 +static struct sprom_fixup __initdata ar5315u_fixups[] = {
95 + { .offset = 6, .value = 0x1c00 },
96 + { .offset = 65, .value = 0x1255 },
97 + { .offset = 97, .value = 0xfe55 },
98 + { .offset = 98, .value = 0x171d },
99 + { .offset = 99, .value = 0xfa42 },
100 + { .offset = 113, .value = 0xfeb7 },
101 + { .offset = 114, .value = 0x18cd },
102 + { .offset = 115, .value = 0xfa4f },
103 + { .offset = 162, .value = 0x6444 },
104 + { .offset = 170, .value = 0x6444 },
105 + { .offset = 172, .value = 0x6444 },
108 +static struct board_info __initdata board_AR5315u = {
109 + .name = "96318A-1441N1",
110 + .expected_cpu_id = 0x6318,
115 + .num_usbh_ports = 1,
143 + .use_fallback_sprom = 1,
144 + .fallback_sprom = {
145 + .type = SPROM_BCM43217,
148 + .board_fixups = ar5315u_fixups,
149 + .num_board_fixups = ARRAY_SIZE(ar5315u_fixups),
153 +static struct sprom_fixup __initdata dsl2751b_e1_fixups[] = {
154 + { .offset = 96, .value = 0x2046 },
155 + { .offset = 97, .value = 0xfe9d },
156 + { .offset = 98, .value = 0x1854 },
157 + { .offset = 99, .value = 0xfa59 },
158 + { .offset = 112, .value = 0x2046 },
159 + { .offset = 113, .value = 0xfe79 },
160 + { .offset = 114, .value = 0x17f5 },
161 + { .offset = 115, .value = 0xfa47 },
162 + { .offset = 161, .value = 0x2222 },
163 + { .offset = 162, .value = 0x2222 },
164 + { .offset = 169, .value = 0x2222 },
165 + { .offset = 170, .value = 0x2222 },
166 + { .offset = 171, .value = 0x5555 },
167 + { .offset = 172, .value = 0x5555 },
168 + { .offset = 173, .value = 0x4444 },
169 + { .offset = 174, .value = 0x4444 },
170 + { .offset = 175, .value = 0x5555 },
171 + { .offset = 176, .value = 0x5555 },
174 +static struct board_info __initdata board_dsl_2751b_d1 = {
176 + .expected_cpu_id = 0x6318,
181 + .num_usbh_ports = 1,
209 + .use_fallback_sprom = 1,
210 + .fallback_sprom = {
211 + .type = SPROM_BCM43217,
214 + .board_fixups = dsl2751b_e1_fixups,
215 + .num_board_fixups = ARRAY_SIZE(dsl2751b_e1_fixups),
219 +static struct board_info __initdata board_FAST2704N = {
220 + .name = "F@ST2704N",
221 + .expected_cpu_id = 0x6318,
226 + .num_usbh_ports = 1,
254 + .use_fallback_sprom = 1,
255 + .fallback_sprom = {
256 + .type = SPROM_BCM43217,
261 +#endif /* CONFIG_BCM63XX_CPU_6318 */
266 #ifdef CONFIG_BCM63XX_CPU_6328
267 @@ -423,6 +680,13 @@ static const struct board_info __initcon
268 #ifdef CONFIG_BCM63XX_CPU_3368
270 #endif /* CONFIG_BCM63XX_CPU_3368 */
271 +#ifdef CONFIG_BCM63XX_CPU_6318
273 + &board_96318ref_p300,
275 + &board_dsl_2751b_d1,
277 +#endif /* CONFIG_BCM63XX_CPU_6318 */
278 #ifdef CONFIG_BCM63XX_CPU_6328
280 #endif /* CONFIG_BCM63XX_CPU_6328 */
281 @@ -457,6 +721,11 @@ static struct of_device_id const bcm963x
282 { .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
283 #endif /* CONFIG_BCM63XX_CPU_3368 */
284 #ifdef CONFIG_BCM63XX_CPU_6318
285 + { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
286 + { .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
287 + { .compatible = "comtrend,ar-5315u", .data = &board_AR5315u, },
288 + { .compatible = "d-link,dsl-275xb-d1", .data = &board_dsl_2751b_d1, },
289 + { .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
290 #endif /* CONFIG_BCM63XX_CPU_6318 */
291 #ifdef CONFIG_BCM63XX_CPU_6328
292 { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },