d3e1ec6de41c4ef1cf66d4263631d069fda9d57c
[openwrt/staging/rmilecki.git] / target / linux / bcm63xx / patches-5.4 / 540-board_vw6339gu.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1608,6 +1608,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_ehci0 = 1,
13 + .has_ohci0 = 1,
14 + .num_usbh_ports = 1,
15 +
16 + .has_enetsw = 1,
17 +
18 + .enetsw = {
19 + .used_ports = {
20 + [0] = {
21 + .used = 1,
22 + .phy_id = 1,
23 + .name = "LAN2",
24 + },
25 +
26 + [1] = {
27 + .used = 1,
28 + .phy_id = 2,
29 + .name = "LAN3",
30 + },
31 +
32 + [2] = {
33 + .used = 1,
34 + .phy_id = 3,
35 + .name = "LAN4",
36 + },
37 +
38 + [3] = {
39 + .used = 1,
40 + .phy_id = 4,
41 + .name = "LAN1",
42 + },
43 +
44 + [4] = {
45 + .used = 1,
46 + .phy_id = 7,
47 + .name = "WAN",
48 + .mii_override = 1,
49 + .timing_sel = 1,
50 + },
51 + },
52 + },
53 +};
54 #endif /* CONFIG_BCM63XX_CPU_63268 */
55
56 /*
57 @@ -1691,6 +1738,7 @@ static const struct board_info __initcon
58 #endif /* CONFIG_BCM63XX_CPU_6368 */
59 #ifdef CONFIG_BCM63XX_CPU_63268
60 &board_963269bhr,
61 + &board_vw6339gu,
62 #endif /* CONFIG_BCM63XX_CPU_63268 */
63 };
64
65 @@ -1781,6 +1829,7 @@ static struct of_device_id const bcm963x
66 #endif
67 #ifdef CONFIG_BCM63XX_CPU_63268
68 { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
69 + { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
70 #endif
71 #endif /* CONFIG_OF */
72 { },