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