brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 568-board_DGND3700v1_3800B.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1710,6 +1710,30 @@ static struct board_info __initdata boar
4         .has_ehci0 = 1,
5  };
6  
7 +static struct board_info __initdata board_DGND3700v1_3800B = {
8 +       .name                           = "DGND3700v1_3800B",
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 +                       [5] = {
20 +                               .used  = 1,
21 +                               .phy_id  = 0xff,
22 +                               .bypass_link = 1,
23 +                               .force_speed = 1000,
24 +                               .force_duplex_full = 1,
25 +                               .name  = "RGMII",
26 +                       },
27 +               },
28 +       },
29 +};
30 +
31  static struct sprom_fixup __initdata vr3025u_fixups[] = {
32         { .offset = 97, .value = 0xfeb3 },
33         { .offset = 98, .value = 0x1618 },
34 @@ -2131,6 +2155,7 @@ static const struct board_info __initcon
35  #ifdef CONFIG_BCM63XX_CPU_6368
36         &board_96368mvwg,
37         &board_96368mvngr,
38 +       &board_DGND3700v1_3800B,
39         &board_P870HW51A_V2,
40         &board_VR3025u,
41         &board_VR3025un,
42 @@ -2233,6 +2258,7 @@ static struct of_device_id const bcm963x
43         { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
44         { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
45         { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
46 +       { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
47         { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
48  #endif
49  #ifdef CONFIG_BCM63XX_CPU_63268