bcm63xx: reorganize board patches
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 683-board_bcm63268-brcm-bcm963268bu-p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2546,6 +2546,65 @@ static struct board_info __initdata boar
4 * known 63268/63269 boards
5 */
6 #ifdef CONFIG_BCM63XX_CPU_63268
7 +static struct board_info __initdata board_963268bu_p300 = {
8 + .name = "963268BU_P300",
9 + .expected_cpu_id = 0x63268,
10 +
11 + .has_ohci0 = 1,
12 + .has_ehci0 = 1,
13 + .num_usbh_ports = 1,
14 +
15 + .has_usbd = 1,
16 + .usbd = {
17 + .use_fullspeed = 0,
18 + .port_no = 0,
19 + },
20 +
21 + .has_enetsw = 1,
22 + .enetsw = {
23 + .used_ports = {
24 + [0] = {
25 + .used = 1,
26 + .phy_id = 17,
27 + .name = "FE1",
28 + },
29 + [3] = {
30 + .used = 1,
31 + .phy_id = 4,
32 + .name = "GbE2",
33 + },
34 + [4] = {
35 + .used = 1,
36 + .phy_id = 0,
37 + .name = "GbE3",
38 + .mii_override = 1,
39 + .timing_sel = 1,
40 + },
41 + [5] = {
42 + .used = 1,
43 + .phy_id = 1,
44 + .name = "GbE1",
45 + .mii_override = 1,
46 + .timing_sel = 1,
47 + },
48 + [6] = {
49 + .used = 1,
50 + .phy_id = 24,
51 + .name = "GbE4",
52 + .mii_override = 1,
53 + .timing_sel = 1,
54 + },
55 + [7] = {
56 + .used = 1,
57 + .phy_id = 25,
58 + .name = "GbE5",
59 + .mii_override = 1,
60 + .timing_sel = 1,
61 + },
62 + },
63 + },
64 +};
65 +
66 static struct board_info __initdata board_963269bhr = {
67 .name = "963269BHR",
68 .expected_cpu_id = 0x63268,
69 @@ -2726,6 +2785,7 @@ static const struct board_info __initcon
70 &board_WAP5813n,
71 #endif /* CONFIG_BCM63XX_CPU_6368 */
72 #ifdef CONFIG_BCM63XX_CPU_63268
73 + &board_963268bu_p300,
74 &board_963269bhr,
75 &board_vw6339gu,
76 #endif /* CONFIG_BCM63XX_CPU_63268 */
77 @@ -2841,6 +2901,7 @@ static struct of_device_id const bcm963x
78 { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
79 #endif /* CONFIG_BCM63XX_CPU_6368 */
80 #ifdef CONFIG_BCM63XX_CPU_63268
81 + { .compatible = "brcm,bcm963268bu-p300", .data = &board_963268bu_p300, },
82 { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
83 { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
84 #endif /* CONFIG_BCM63XX_CPU_63268 */