brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 530-board_A4001N1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -127,6 +127,49 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_A4001N1 = {
8 +       .name                                   = "963281T_TEF",
9 +       .expected_cpu_id                        = 0x6328,
10 +
11 +       .has_pci                                = 1,
12 +       .use_fallback_sprom             = 1,
13 +       .has_ohci0                              = 1,
14 +       .has_ehci0                              = 1,
15 +       .num_usbh_ports                         = 1,
16 +       .has_enetsw                             = 1,
17 +
18 +       .enetsw = {
19 +               .used_ports = {
20 +                       [0] = {
21 +                               .used           = 1,
22 +                               .phy_id         = 1,
23 +                               .name           = "Port 1",
24 +                       },
25 +                       [1] = {
26 +                               .used           = 1,
27 +                               .phy_id         = 2,
28 +                               .name           = "Port 2",
29 +                       },
30 +                       [2] = {
31 +                               .used           = 1,
32 +                               .phy_id         = 3,
33 +                               .name           = "Port 3",
34 +                       },
35 +                       [3] = {
36 +                               .used           = 1,
37 +                               .phy_id         = 4,
38 +                               .name           = "Port 4",
39 +                       },
40 +               },
41 +       },
42 +
43 +       .fallback_sprom = {
44 +               .type                           = SPROM_BCM43225,
45 +               .pci_bus                        = 1,
46 +               .pci_dev                        = 0,
47 +       },
48 +};
49 +
50  static struct board_info __initdata board_dsl_274xb_f1 = {
51         .name                           = "AW4339U",
52         .expected_cpu_id                = 0x6328,
53 @@ -1109,6 +1152,7 @@ static const struct board_info __initcon
54  #ifdef CONFIG_BCM63XX_CPU_6328
55         &board_96328avng,
56         &board_963281TAN,
57 +       &board_A4001N1,
58         &board_dsl_274xb_f1,
59  #endif
60  #ifdef CONFIG_BCM63XX_CPU_6338
61 @@ -1174,6 +1218,7 @@ static struct of_device_id const bcm963x
62         { .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
63  #endif
64  #ifdef CONFIG_BCM63XX_CPU_6328
65 +       { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
66         { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
67         { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
68         { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },