a064234114c674b79d7974238bd0116f88adbe83
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 681-board_bcm63269-brcm-bcm963269bhr.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2543,6 +2543,46 @@ static struct board_info __initdata boar
4 #endif /* CONFIG_BCM63XX_CPU_6368 */
5
6 /*
7 + * known 63268/63269 boards
8 + */
9 +#ifdef CONFIG_BCM63XX_CPU_63268
10 +static struct board_info __initdata board_963269bhr = {
11 + .name = "963269BHR",
12 + .expected_cpu_id = 0x63268,
13 +
14 + .has_pci = 1,
15 + .has_ohci0 = 1,
16 + .has_ehci0 = 1,
17 +
18 + .has_enetsw = 1,
19 + .enetsw = {
20 + .used_ports = {
21 + [0] = {
22 + .used = 1,
23 + .phy_id = 1,
24 + .name = "port1",
25 + },
26 + [1] = {
27 + .used = 1,
28 + .phy_id = 2,
29 + .name = "port2",
30 + },
31 + [2] = {
32 + .used = 1,
33 + .phy_id = 3,
34 + .name = "port3",
35 + },
36 + [3] = {
37 + .used = 1,
38 + .phy_id = 4,
39 + .name = "port4",
40 + },
41 + },
42 + },
43 +};
44 +#endif /* CONFIG_BCM63XX_CPU_63268 */
45 +
46 +/*
47 * all boards
48 */
49 static const struct board_info __initconst *bcm963xx_boards[] = {
50 @@ -2643,6 +2683,9 @@ static const struct board_info __initcon
51 &board_VR3026e,
52 &board_WAP5813n,
53 #endif /* CONFIG_BCM63XX_CPU_6368 */
54 +#ifdef CONFIG_BCM63XX_CPU_63268
55 + &board_963269bhr,
56 +#endif /* CONFIG_BCM63XX_CPU_63268 */
57 };
58
59 static struct of_device_id const bcm963xx_boards_dt[] = {
60 @@ -2755,6 +2798,7 @@ static struct of_device_id const bcm963x
61 { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
62 #endif /* CONFIG_BCM63XX_CPU_6368 */
63 #ifdef CONFIG_BCM63XX_CPU_63268
64 + { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
65 #endif /* CONFIG_BCM63XX_CPU_63268 */
66 #endif /* CONFIG_OF */
67 { },