bcm63xx: reorganize board patches
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 602-board-bcm6358-sfr-neufbox-4.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1470,6 +1470,56 @@ static struct board_info __initdata boar
4 .has_ohci0 = 1,
5 .has_ehci0 = 1,
6 };
7 +
8 +static struct board_info __initdata board_nb4_ser_r0 = {
9 + .name = "NB4-SER-r0",
10 + .expected_cpu_id = 0x6358,
11 +
12 + .has_pccard = 1,
13 + .has_pci = 1,
14 + .has_ohci0 = 1,
15 + .has_ehci0 = 1,
16 + .num_usbh_ports = 2,
17 +
18 + .has_enet0 = 1,
19 + .enet0 = {
20 + .has_phy = 1,
21 + .use_internal_phy = 1,
22 + },
23 +
24 + .has_enet1 = 1,
25 + .enet1 = {
26 + .has_phy = 1,
27 + .phy_id = 0,
28 + .force_speed_100 = 1,
29 + .force_duplex_full = 1,
30 + },
31 +};
32 +
33 +static struct board_info __initdata board_nb4_fxc_r1 = {
34 + .name = "NB4-FXC-r1",
35 + .expected_cpu_id = 0x6358,
36 +
37 + .has_pccard = 1,
38 + .has_pci = 1,
39 + .has_ohci0 = 1,
40 + .has_ehci0 = 1,
41 + .num_usbh_ports = 2,
42 +
43 + .has_enet0 = 1,
44 + .enet0 = {
45 + .has_phy = 1,
46 + .use_internal_phy = 1,
47 + },
48 +
49 + .has_enet1 = 1,
50 + .enet1 = {
51 + .has_phy = 1,
52 + .phy_id = 0,
53 + .force_speed_100 = 1,
54 + .force_duplex_full = 1,
55 + },
56 +};
57 #endif /* CONFIG_BCM63XX_CPU_6358 */
58
59 /*
60 @@ -1537,6 +1587,8 @@ static const struct board_info __initcon
61 &board_96358vw2,
62 &board_AGPFS0,
63 &board_DWVS0,
64 + &board_nb4_ser_r0,
65 + &board_nb4_fxc_r1,
66 #endif /* CONFIG_BCM63XX_CPU_6358 */
67 };
68
69 @@ -1613,6 +1665,8 @@ static struct of_device_id const bcm963x
70 { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
71 { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
72 { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
73 + { .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
74 + { .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
75 #endif /* CONFIG_BCM63XX_CPU_6358 */
76 #ifdef CONFIG_BCM63XX_CPU_6362
77 #endif /* CONFIG_BCM63XX_CPU_6362 */