brcm63xx: add linux 4.4 support
[openwrt.git] / target / linux / brcm63xx / patches-4.4 / 555-board_96318ref.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -58,6 +58,56 @@ static struct board_info __initdata boar
4  #endif /* CONFIG_BCM63XX_CPU_3368 */
5  
6  /*
7 + * known 6318 boards
8 + */
9 +#ifdef CONFIG_BCM63XX_CPU_6318
10 +static struct board_info __initdata board_96318ref = {
11 +       .name                           = "96318REF",
12 +       .expected_cpu_id                = 0x6318,
13 +
14 +       .has_uart0                      = 1,
15 +       .has_pci                        = 1,
16 +
17 +       .has_usbd                       = 1,
18 +
19 +       .usbd = {
20 +               .use_fullspeed          = 0,
21 +               .port_no                = 0,
22 +       },
23 +
24 +       .has_enetsw                     = 1,
25 +
26 +       .has_ehci0                      = 1,
27 +       .num_usbh_ports                 = 1,
28 +
29 +       .enetsw = {
30 +               .used_ports = {
31 +                       [0] = {
32 +                               .used   = 1,
33 +                               .phy_id = 1,
34 +                               .name   = "Port 1",
35 +                       },
36 +                       [1] = {
37 +                               .used   = 1,
38 +                               .phy_id = 2,
39 +                               .name   = "Port 2",
40 +                       },
41 +                       [2] = {
42 +                               .used   = 1,
43 +                               .phy_id = 3,
44 +                               .name   = "Port 3",
45 +                       },
46 +                       [3] = {
47 +                               .used   = 1,
48 +                               .phy_id = 4,
49 +                               .name   = "Port 4",
50 +                       },
51 +               },
52 +       },
53 +};
54 +#endif /* CONFIG_BCM63XX_CPU_6318 */
55 +
56 +/*
57   * known 6328 boards
58   */
59  #ifdef CONFIG_BCM63XX_CPU_6328
60 @@ -1609,6 +1659,9 @@ static const struct board_info __initcon
61  #ifdef CONFIG_BCM63XX_CPU_3368
62         &board_cvg834g,
63  #endif
64 +#ifdef CONFIG_BCM63XX_CPU_6318
65 +       &board_96318ref,
66 +#endif
67  #ifdef CONFIG_BCM63XX_CPU_6328
68         &board_96328avng,
69         &board_AR5381u,
70 @@ -1686,6 +1739,9 @@ static struct of_device_id const bcm963x
71  #ifdef CONFIG_BCM63XX_CPU_3368
72         { .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
73  #endif
74 +#ifdef CONFIG_BCM63XX_CPU_6318
75 +       { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
76 +#endif
77  #ifdef CONFIG_BCM63XX_CPU_6328
78         { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
79         { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },