e7c31874e66170f4bdb280c3a60297ad850093b6
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 557-board_bcm963269bhr.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1700,6 +1700,52 @@ 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_uart0 = 1,
15 +
16 + .has_pci = 1,
17 +
18 + .has_ehci0 = 1,
19 +
20 + .has_enetsw = 1,
21 +
22 + .enetsw = {
23 + .used_ports = {
24 + [0] = {
25 + .used = 1,
26 + .phy_id = 1,
27 + .name = "port1",
28 + },
29 +
30 + [1] = {
31 + .used = 1,
32 + .phy_id = 2,
33 + .name = "port2",
34 + },
35 +
36 + [2] = {
37 + .used = 1,
38 + .phy_id = 3,
39 + .name = "port3",
40 + },
41 +
42 + [3] = {
43 + .used = 1,
44 + .phy_id = 4,
45 + .name = "port4",
46 + },
47 + },
48 + },
49 +};
50 +#endif /* CONFIG_BCM63XX_CPU_63268 */
51 +
52 +/*
53 * all boards
54 */
55 static const struct board_info __initconst *bcm963xx_boards[] = {
56 @@ -1780,6 +1826,9 @@ static const struct board_info __initcon
57 &board_96368mvwg,
58 &board_96368mvngr,
59 #endif
60 +#ifdef CONFIG_BCM63XX_CPU_63268
61 + &board_963269bhr,
62 +#endif
63 };
64
65 static struct of_device_id const bcm963xx_boards_dt[] = {
66 @@ -1867,6 +1916,7 @@ static struct of_device_id const bcm963x
67 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
68 #endif
69 #ifdef CONFIG_BCM63XX_CPU_63268
70 + { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
71 #endif
72 #endif /* CONFIG_OF */
73 { },