brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 557-board_bcm963269bhr.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1554,6 +1554,50 @@ static struct board_info __initdata boar
4  #endif /* CONFIG_BCM63XX_CPU_6368 */
5  
6  /*
7 + * known 63268/63269 boards
8 + */
9 +#ifdef CONFIG_BCM63XX_CPU_63268
10 +static struct board_info __initdata board_963269bhr = {
11 +       .name                           = "963269BHR",
12 +       .expected_cpu_id                = 0x63268,
13 +
14 +       .has_pci                        = 1,
15 +
16 +       .has_ehci0                      = 1,
17 +
18 +       .has_enetsw                     = 1,
19 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [0] = {
23 +                               .used   = 1,
24 +                               .phy_id = 1,
25 +                               .name   = "port1",
26 +                       },
27 +
28 +                       [1] = {
29 +                               .used   = 1,
30 +                               .phy_id = 2,
31 +                               .name   = "port2",
32 +                       },
33 +
34 +                       [2] = {
35 +                               .used   = 1,
36 +                               .phy_id = 3,
37 +                               .name   = "port3",
38 +                       },
39 +
40 +                       [3] = {
41 +                               .used   = 1,
42 +                               .phy_id = 4,
43 +                               .name   = "port4",
44 +                       },
45 +               },
46 +       },
47 +};
48 +#endif /* CONFIG_BCM63XX_CPU_63268 */
49 +
50 +/*
51   * all boards
52   */
53  static const struct board_info __initconst *bcm963xx_boards[] = {
54 @@ -1634,6 +1678,9 @@ static const struct board_info __initcon
55         &board_96368mvwg,
56         &board_96368mvngr,
57  #endif
58 +#ifdef CONFIG_BCM63XX_CPU_63268
59 +       &board_963269bhr,
60 +#endif
61  };
62  
63  static struct of_device_id const bcm963xx_boards_dt[] = {
64 @@ -1721,6 +1768,7 @@ static struct of_device_id const bcm963x
65         { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
66  #endif
67  #ifdef CONFIG_BCM63XX_CPU_63268
68 +       { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
69  #endif
70  #endif /* CONFIG_OF */
71         { },