ipq806x: refresh patches
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 528-board_nb6.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1322,6 +1322,34 @@ 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_uart0                      = 1,
13 +
14 +       .has_ohci0                      = 1,
15 +       .has_ehci0                      = 1,
16 +       .num_usbh_ports                 = 2,
17 +
18 +       .has_enetsw                     = 1,
19 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [4] = {
23 +                               .used   = 1,
24 +                               .phy_id = 0xff,
25 +                               .bypass_link = 1,
26 +                               .force_speed = 1000,
27 +                               .force_duplex_full = 1,
28 +                               .name   = "RGMII",
29 +                       },
30 +               },
31 +       },
32 +};
33 +#endif /* CONFIG_BCM63XX_CPU_6362 */
34 +
35  /*
36   * known 6368 boards
37   */
38 @@ -1473,6 +1501,10 @@ static const struct board_info __initcon
39         &board_DVAG3810BN,
40  #endif
41  
42 +#ifdef CONFIG_BCM63XX_CPU_6362
43 +       &board_nb6,
44 +#endif
45 +
46  #ifdef CONFIG_BCM63XX_CPU_6368
47         &board_96368mvwg,
48         &board_96368mvngr,
49 @@ -1541,6 +1573,9 @@ static struct of_device_id const bcm963x
50         { .compatible = "t-com,spw303v", .data = &board_spw303v, },
51         { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
52  #endif
53 +#ifdef CONFIG_BCM63XX_CPU_6362
54 +       { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
55 +#endif
56  #ifdef CONFIG_BCM63XX_CPU_6368
57         { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
58         { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },