brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 527-board_dva-g3810bn-tl-1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -937,6 +937,33 @@ static struct board_info __initdata boar
4                 .use_internal_phy       = 1,
5         },
6  };
7 +
8 +/* D-Link DVA-G3810BN/TL */
9 +static struct board_info __initdata board_DVAG3810BN = {
10 +       .name                   = "DVAG3810BN",
11 +       .expected_cpu_id        = 0x6358,
12 +
13 +       .has_enet0              = 1,
14 +       .has_enet1              = 1,
15 +       .has_pci                = 1,
16 +
17 +       .enet0 = {
18 +               .has_phy                = 1,
19 +               .use_internal_phy       = 1,
20 +       },
21 +
22 +       .enet1 = {
23 +               .has_phy                = 1,
24 +               .phy_id                 = 0,
25 +               .force_speed_100        = 1,
26 +               .force_duplex_full      = 1,
27 +       },
28 +
29 +
30 +       .has_ohci0              = 1,
31 +       .has_pccard             = 1,
32 +       .has_ehci0              = 1,
33 +};
34  #endif /* CONFIG_BCM63XX_CPU_6358 */
35  
36  /*
37 @@ -1085,6 +1112,7 @@ static const struct board_info __initcon
38         &board_ct6373_1,
39         &board_HW553,
40         &board_spw303v,
41 +       &board_DVAG3810BN,
42  #endif
43  
44  #ifdef CONFIG_BCM63XX_CPU_6368
45 @@ -1144,6 +1172,7 @@ static struct of_device_id const bcm963x
46         { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
47         { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
48         { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
49 +       { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
50         { .compatible = "huawei,hg553", .data = &board_HW553, },
51         { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
52         { .compatible = "pirelli,a226m", .data = &board_DWVS0, },