bcm63xx: refactor board patches
[openwrt/staging/wigyori.git] / target / linux / bcm63xx / patches-5.4 / 526-board_nb6.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -944,6 +944,31 @@ 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_nb6 = {
9 + .name = "NB6",
10 + .expected_cpu_id = 0x6362,
11 +
12 + .has_ohci0 = 1,
13 + .has_ehci0 = 1,
14 + .num_usbh_ports = 2,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [4] = {
20 + .used = 1,
21 + .phy_id = 0xff,
22 + .bypass_link = 1,
23 + .force_speed = 1000,
24 + .force_duplex_full = 1,
25 + .name = "RGMII",
26 + },
27 + },
28 + },
29 +};
30 +#endif /* CONFIG_BCM63XX_CPU_6362 */
31 +
32 /*
33 * known 6368 boards
34 */
35 @@ -1081,6 +1106,9 @@ static const struct board_info __initcon
36 &board_spw303v,
37 &board_DVAG3810BN,
38 #endif /* CONFIG_BCM63XX_CPU_6358 */
39 +#ifdef CONFIG_BCM63XX_CPU_6362
40 + &board_nb6,
41 +#endif /* CONFIG_BCM63XX_CPU_6362 */
42 #ifdef CONFIG_BCM63XX_CPU_6368
43 &board_96368mvwg,
44 &board_96368mvngr,
45 @@ -1149,6 +1177,9 @@ static struct of_device_id const bcm963x
46 { .compatible = "t-com,speedport-w-303v", .data = &board_spw303v, },
47 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
48 #endif
49 +#ifdef CONFIG_BCM63XX_CPU_6362
50 + { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
51 +#endif
52 #ifdef CONFIG_BCM63XX_CPU_6368
53 { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
54 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },