bcm63xx: add missing OHCI nodes
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 537-board_96318ref_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -94,6 +94,48 @@ 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 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 + .num_usbh_ports = 1,
16 +
17 + .has_usbd = 1,
18 + .usbd = {
19 + .use_fullspeed = 0,
20 + .port_no = 0,
21 + },
22 +
23 + .has_enetsw = 1,
24 + .enetsw = {
25 + .used_ports = {
26 + [0] = {
27 + .used = 1,
28 + .phy_id = 1,
29 + .name = "Port 1",
30 + },
31 + [1] = {
32 + .used = 1,
33 + .phy_id = 2,
34 + .name = "Port 2",
35 + },
36 + [2] = {
37 + .used = 1,
38 + .phy_id = 3,
39 + .name = "Port 3",
40 + },
41 + [3] = {
42 + .used = 1,
43 + .phy_id = 4,
44 + .name = "Port 4",
45 + },
46 + },
47 + },
48 +};
49 #endif /* CONFIG_BCM63XX_CPU_6318 */
50
51 /*
52 @@ -1476,6 +1518,7 @@ static const struct board_info __initcon
53 #endif /* CONFIG_BCM63XX_CPU_3368 */
54 #ifdef CONFIG_BCM63XX_CPU_6318
55 &board_96318ref,
56 + &board_96318ref_p300,
57 #endif /* CONFIG_BCM63XX_CPU_6318 */
58 #ifdef CONFIG_BCM63XX_CPU_6328
59 &board_96328avng,
60 @@ -1553,6 +1596,7 @@ static struct of_device_id const bcm963x
61 #endif
62 #ifdef CONFIG_BCM63XX_CPU_6318
63 { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
64 + { .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
65 #endif
66 #ifdef CONFIG_BCM63XX_CPU_6328
67 { .compatible = "adb,a4001n1", .data = &board_A4001N1, },