bcm63xx: add missing OHCI nodes
[openwrt/staging/stintel.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 @@ -1562,6 +1562,48 @@ 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_ohci0 = 1,
13 + .has_ehci0 = 1,
14 + .num_usbh_ports = 1,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [0] = {
20 + .used = 1,
21 + .phy_id = 1,
22 + .name = "LAN2",
23 + },
24 + [1] = {
25 + .used = 1,
26 + .phy_id = 2,
27 + .name = "LAN3",
28 + },
29 + [2] = {
30 + .used = 1,
31 + .phy_id = 3,
32 + .name = "LAN4",
33 + },
34 + [3] = {
35 + .used = 1,
36 + .phy_id = 4,
37 + .name = "LAN1",
38 + },
39 + [4] = {
40 + .used = 1,
41 + .phy_id = 7,
42 + .name = "WAN",
43 + .mii_override = 1,
44 + .timing_sel = 1,
45 + },
46 + },
47 + },
48 +};
49 #endif /* CONFIG_BCM63XX_CPU_63268 */
50
51 /*
52 @@ -1645,6 +1687,7 @@ static const struct board_info __initcon
53 #endif /* CONFIG_BCM63XX_CPU_6368 */
54 #ifdef CONFIG_BCM63XX_CPU_63268
55 &board_963269bhr,
56 + &board_vw6339gu,
57 #endif /* CONFIG_BCM63XX_CPU_63268 */
58 };
59
60 @@ -1735,6 +1778,7 @@ static struct of_device_id const bcm963x
61 #endif
62 #ifdef CONFIG_BCM63XX_CPU_63268
63 { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
64 + { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
65 #endif
66 #endif /* CONFIG_OF */
67 { },