brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 556-board_96318ref_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -96,6 +96,50 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_96318ref_p300 = {
9 +       .name                           = "96318REF_P300",
10 +       .expected_cpu_id                = 0x6318,
11 +
12 +       .has_pci                        = 1,
13 +
14 +       .has_usbd                       = 1,
15 +
16 +       .usbd = {
17 +               .use_fullspeed          = 0,
18 +               .port_no                = 0,
19 +       },
20 +
21 +       .has_enetsw                     = 1,
22 +
23 +       .has_ehci0                      = 1,
24 +       .num_usbh_ports                 = 1,
25 +
26 +       .enetsw = {
27 +               .used_ports = {
28 +                       [0] = {
29 +                               .used   = 1,
30 +                               .phy_id = 1,
31 +                               .name   = "Port 1",
32 +                       },
33 +                       [1] = {
34 +                               .used   = 1,
35 +                               .phy_id = 2,
36 +                               .name   = "Port 2",
37 +                       },
38 +                       [2] = {
39 +                               .used   = 1,
40 +                               .phy_id = 3,
41 +                               .name   = "Port 3",
42 +                       },
43 +                       [3] = {
44 +                               .used   = 1,
45 +                               .phy_id = 4,
46 +                               .name   = "Port 4",
47 +                       },
48 +               },
49 +       },
50 +};
51  #endif /* CONFIG_BCM63XX_CPU_6318 */
52  
53  /*
54 @@ -1518,6 +1562,7 @@ static const struct board_info __initcon
55  #endif
56  #ifdef CONFIG_BCM63XX_CPU_6318
57         &board_96318ref,
58 +       &board_96318ref_p300,
59  #endif
60  #ifdef CONFIG_BCM63XX_CPU_6328
61         &board_96328avng,
62 @@ -1598,6 +1643,7 @@ static struct of_device_id const bcm963x
63  #endif
64  #ifdef CONFIG_BCM63XX_CPU_6318
65         { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
66 +       { .compatible = "brcm,bcm96318ref_p300", .data = &board_96318ref_p300, },
67  #endif
68  #ifdef CONFIG_BCM63XX_CPU_6328
69         { .compatible = "adb,a4001n1", .data = &board_A4001N1, },