brcm63xx: add kernel 4.9 support
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.9 / 577-board_VH4032N.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2266,6 +2266,44 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_VH4032N = {
8 +       .name                           = "VH4032N",
9 +       .expected_cpu_id                = 0x6368,
10 +
11 +       .has_pci                        = 1,
12 +       .has_ohci0                      = 1,
13 +       .has_ehci0                      = 1,
14 +       .num_usbh_ports                 = 2,
15 +
16 +       .has_enetsw                     = 1,
17 +       .enetsw = {
18 +               .used_ports = {
19 +                       [0] = {
20 +                               .used   = 1,
21 +                               .phy_id = 1,
22 +                               .name   = "LAN4",
23 +                       },
24 +                       [1] = {
25 +                               .used   = 1,
26 +                               .phy_id = 2,
27 +                               .name   = "LAN3",
28 +                       },
29 +                       [2] = {
30 +                               .used   = 1,
31 +                               .phy_id = 3,
32 +                               .name   = "LAN2",
33 +                       },
34 +                       [3] = {
35 +                               .used   = 1,
36 +                               .phy_id = 4,
37 +                               .name   = "LAN1",
38 +                       },
39 +               },
40 +       },
41 +
42 +       .use_fallback_sprom             = 1,
43 +};
44 +
45  static struct sprom_fixup __initdata wap5813n_fixups[] = {
46         { .offset = 97, .value = 0xfeed },
47         { .offset = 98, .value = 0x15d1 },
48 @@ -2548,6 +2586,7 @@ static const struct board_info __initcon
49         &board_HG622,
50         &board_HG655b,
51         &board_P870HW51A_V2,
52 +       &board_VH4032N,
53         &board_VR3025u,
54         &board_VR3025un,
55         &board_VR3026e,
56 @@ -2659,6 +2698,7 @@ static struct of_device_id const bcm963x
57         { .compatible = "huawei,hg655b", .data = &board_HG655b, },
58         { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
59         { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
60 +       { .compatible = "observa,vh4032n", .data = &board_VH4032N, },
61         { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
62  #endif
63  #ifdef CONFIG_BCM63XX_CPU_63268