e131c537779620878995424a06496c169b870183
[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 @@ -93,6 +93,47 @@ 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_ehci0 = 1,
14 + .num_usbh_ports = 1,
15 +
16 + .has_usbd = 1,
17 + .usbd = {
18 + .use_fullspeed = 0,
19 + .port_no = 0,
20 + },
21 +
22 + .has_enetsw = 1,
23 + .enetsw = {
24 + .used_ports = {
25 + [0] = {
26 + .used = 1,
27 + .phy_id = 1,
28 + .name = "Port 1",
29 + },
30 + [1] = {
31 + .used = 1,
32 + .phy_id = 2,
33 + .name = "Port 2",
34 + },
35 + [2] = {
36 + .used = 1,
37 + .phy_id = 3,
38 + .name = "Port 3",
39 + },
40 + [3] = {
41 + .used = 1,
42 + .phy_id = 4,
43 + .name = "Port 4",
44 + },
45 + },
46 + },
47 +};
48 #endif /* CONFIG_BCM63XX_CPU_6318 */
49
50 /*
51 @@ -1477,6 +1518,7 @@ static const struct board_info __initcon
52 #endif /* CONFIG_BCM63XX_CPU_3368 */
53 #ifdef CONFIG_BCM63XX_CPU_6318
54 &board_96318ref,
55 + &board_96318ref_p300,
56 #endif /* CONFIG_BCM63XX_CPU_6318 */
57 #ifdef CONFIG_BCM63XX_CPU_6328
58 &board_96328avng,
59 @@ -1554,6 +1596,7 @@ static struct of_device_id const bcm963x
60 #endif
61 #ifdef CONFIG_BCM63XX_CPU_6318
62 { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
63 + { .compatible = "brcm,bcm96318ref-p300", .data = &board_96318ref_p300, },
64 #endif
65 #ifdef CONFIG_BCM63XX_CPU_6328
66 { .compatible = "adb,a4001n1", .data = &board_A4001N1, },