brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 569-board_homehub2a.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1375,6 +1375,31 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_homehub2a = {
8 +       .name                           = "HOMEHUB2A",
9 +       .expected_cpu_id                = 0x6358,
10 +
11 +       .has_pci                        = 1,
12 +       .use_fallback_sprom             = 1,
13 +       .has_ohci0                      = 1,
14 +       .has_ehci0                      = 1,
15 +       .num_usbh_ports                 = 2,
16 +
17 +       .has_enet1                      = 1,
18 +       .enet1 = {
19 +               .has_phy                = 1,
20 +               .phy_id                 = 0,
21 +               .force_speed_100        = 1,
22 +               .force_duplex_full      = 1,
23 +       },
24 +
25 +       .fallback_sprom = {
26 +               .type                   = SPROM_BCM4322,
27 +               .pci_bus                = 0,
28 +               .pci_dev                = 1,
29 +       },
30 +};
31 +
32  static struct board_info __initdata board_HW520 = {
33         .name                           = "HW6358GW_B",
34         .expected_cpu_id                = 0x6358,
35 @@ -2138,6 +2163,7 @@ static const struct board_info __initcon
36         &board_nb4_ser_r0,
37         &board_nb4_fxc_r1,
38         &board_ct6373_1,
39 +       &board_homehub2a,
40         &board_HW520,
41         &board_HW553,
42         &board_HW556_A,
43 @@ -2247,6 +2273,7 @@ static struct of_device_id const bcm963x
44         { .compatible = "sfr,nb4-fxc-r1", .data = &board_nb4_fxc_r1, },
45         { .compatible = "t-com,spw303v", .data = &board_spw303v, },
46         { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
47 +       { .compatible = "thomson,homehub2a", .data = &board_homehub2a, },
48  #endif
49  #ifdef CONFIG_BCM63XX_CPU_6362
50         { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },