bcm63xx: refactor board patches
[openwrt/staging/wigyori.git] / target / linux / bcm63xx / patches-5.4 / 538-board_bcm963269bhr.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1510,6 +1510,45 @@ 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_ehci0 = 1,
16 +
17 + .has_enetsw = 1,
18 + .enetsw = {
19 + .used_ports = {
20 + [0] = {
21 + .used = 1,
22 + .phy_id = 1,
23 + .name = "port1",
24 + },
25 + [1] = {
26 + .used = 1,
27 + .phy_id = 2,
28 + .name = "port2",
29 + },
30 + [2] = {
31 + .used = 1,
32 + .phy_id = 3,
33 + .name = "port3",
34 + },
35 + [3] = {
36 + .used = 1,
37 + .phy_id = 4,
38 + .name = "port4",
39 + },
40 + },
41 + },
42 +};
43 +#endif /* CONFIG_BCM63XX_CPU_63268 */
44 +
45 +/*
46 * all boards
47 */
48 static const struct board_info __initconst *bcm963xx_boards[] = {
49 @@ -1587,6 +1626,9 @@ static const struct board_info __initcon
50 &board_96368mvwg,
51 &board_96368mvngr,
52 #endif /* CONFIG_BCM63XX_CPU_6368 */
53 +#ifdef CONFIG_BCM63XX_CPU_63268
54 + &board_963269bhr,
55 +#endif /* CONFIG_BCM63XX_CPU_63268 */
56 };
57
58 static struct of_device_id const bcm963xx_boards_dt[] = {
59 @@ -1674,6 +1716,7 @@ static struct of_device_id const bcm963x
60 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
61 #endif
62 #ifdef CONFIG_BCM63XX_CPU_63268
63 + { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
64 #endif
65 #endif /* CONFIG_OF */
66 { },