be0e0178806068aa7571ff3b588a59dc6c107374
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 559-board_vw6339gu.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1784,6 +1784,53 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_vw6339gu = {
9 +       .name                           = "VW6339GU",
10 +       .expected_cpu_id                = 0x63268,
11 +
12 +       .has_uart0                      = 1,
13 +
14 +       .has_ehci0                      = 1,
15 +       .has_ohci0                      = 1,
16 +       .num_usbh_ports                 = 1,
17 +
18 +       .has_enetsw                     = 1,
19 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [0] = {
23 +                               .used   = 1,
24 +                               .phy_id = 1,
25 +                               .name   = "LAN2",
26 +                       },
27 +
28 +                       [1] = {
29 +                               .used   = 1,
30 +                               .phy_id = 2,
31 +                               .name   = "LAN3",
32 +                       },
33 +
34 +                       [2] = {
35 +                               .used   = 1,
36 +                               .phy_id = 3,
37 +                               .name   = "LAN4",
38 +                       },
39 +
40 +                       [3] = {
41 +                               .used   = 1,
42 +                               .phy_id = 4,
43 +                               .name   = "LAN1",
44 +                       },
45 +
46 +                       [4] = {
47 +                               .used   = 1,
48 +                               .phy_id = 7,
49 +                               .name   = "WAN",
50 +                       },
51 +               },
52 +       },
53 +};
54  #endif /* CONFIG_BCM63XX_CPU_63268 */
55  
56  /*
57 @@ -1870,6 +1917,7 @@ static const struct board_info __initcon
58  #endif
59  #ifdef CONFIG_BCM63XX_CPU_63268
60         &board_963269bhr,
61 +       &board_vw6339gu,
62  #endif
63  };
64  
65 @@ -1959,6 +2007,7 @@ static struct of_device_id const bcm963x
66         { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
67  #endif
68  #ifdef CONFIG_BCM63XX_CPU_63268
69 +       { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
70  #endif
71  #endif /* CONFIG_OF */
72         { },