ramips: rt3833: fix build breakage
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 501-board-NB4.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -434,6 +434,60 @@ static struct board_info __initdata boar
4  
5         .has_ohci0                      = 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_enet0                      = 1,
13 +       .has_enet1                      = 1,
14 +       .has_pci                        = 1,
15 +
16 +       .enet0 = {
17 +               .has_phy                = 1,
18 +               .use_internal_phy       = 1,
19 +       },
20 +
21 +       .enet1 = {
22 +               .has_phy                = 1,
23 +               .phy_id                 = 0,
24 +               .force_speed_100        = 1,
25 +               .force_duplex_full      = 1,
26 +       },
27 +
28 +
29 +       .has_ohci0 = 1,
30 +       .has_pccard = 1,
31 +       .has_ehci0 = 1,
32 +       .num_usbh_ports                 = 2,
33 +};
34 +
35 +static struct board_info __initdata board_nb4_fxc_r1 = {
36 +       .name                           = "NB4-FXC-r1",
37 +       .expected_cpu_id                = 0x6358,
38 +
39 +       .has_enet0                      = 1,
40 +       .has_enet1                      = 1,
41 +       .has_pci                        = 1,
42 +
43 +       .enet0 = {
44 +               .has_phy                = 1,
45 +               .use_internal_phy       = 1,
46 +       },
47 +
48 +       .enet1 = {
49 +               .has_phy                = 1,
50 +               .phy_id                 = 0,
51 +               .force_speed_100        = 1,
52 +               .force_duplex_full      = 1,
53 +       },
54 +
55 +
56 +       .has_ohci0 = 1,
57 +       .has_pccard = 1,
58 +       .has_ehci0 = 1,
59 +       .num_usbh_ports                 = 2,
60 +};
61  #endif /* CONFIG_BCM63XX_CPU_6358 */
62  
63  /*
64 @@ -470,6 +524,8 @@ static const struct board_info __initcon
65         &board_96358vw2,
66         &board_AGPFS0,
67         &board_DWVS0,
68 +       &board_nb4_ser_r0,
69 +       &board_nb4_fxc_r1,
70  #endif
71  };
72  
73 @@ -511,6 +567,8 @@ static struct of_device_id const bcm963x
74         { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
75         { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
76         { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
77 +       { .compatible = "sfr,nb4-ser-r0", .data = &board_nb4_ser_r0, },
78 +       { .compatible = "sfr,nb4-fxc-r1", .data = &board_nb4_fxc_r1, },
79  #endif
80  #ifdef CONFIG_BCM63XX_CPU_6368
81  #endif