brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 575-board_EVG2000.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1842,6 +1842,42 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct sprom_fixup __initdata EVG2000_fixups[] = {
8 +  { .offset = 219, .value = 0xec08 },
9 +};
10 +
11 +static struct board_info __initdata board_EVG2000 = {
12 +       .name                           = "96369PVG",
13 +       .expected_cpu_id                = 0x6368,
14 +
15 +       .has_pci                        = 1,
16 +       .has_ohci0                      = 1,
17 +       .has_ehci0                      = 1,
18 +       .num_usbh_ports                 = 2,
19 +
20 +       .has_enetsw                     = 1,
21 +       .enetsw = {
22 +               .used_ports = {
23 +                       [5] = {
24 +                               .used = 1,
25 +                               .phy_id = 0xff,
26 +                               .bypass_link = 1,
27 +                               .force_speed = 1000,
28 +                               .force_duplex_full = 1,
29 +                               .name = "RGMII",
30 +                       },
31 +               },
32 +       },
33 +       .use_fallback_sprom     = 1,
34 +       .fallback_sprom = {
35 +               .type                   = SPROM_BCM4322,
36 +               .pci_bus                = 0,
37 +               .pci_dev                = 1,
38 +               .board_fixups           = EVG2000_fixups,
39 +               .num_board_fixups       = ARRAY_SIZE(EVG2000_fixups),
40 +       },
41 +};
42 +
43  static struct board_info __initdata board_HG655b = {
44         .name                           = "HW65x",
45         .expected_cpu_id                = 0x6368,
46 @@ -2412,6 +2448,7 @@ static const struct board_info __initcon
47         &board_96368mvwg,
48         &board_96368mvngr,
49         &board_DGND3700v1_3800B,
50 +       &board_EVG2000,
51         &board_HG622,
52         &board_HG655b,
53         &board_P870HW51A_V2,
54 @@ -2524,6 +2561,7 @@ static struct of_device_id const bcm963x
55         { .compatible = "huawei,hg622", .data = &board_HG622, },
56         { .compatible = "huawei,hg655b", .data = &board_HG655b, },
57         { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
58 +       { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
59         { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
60  #endif
61  #ifdef CONFIG_BCM63XX_CPU_63268