bcm63xx: refactor board patches
[openwrt/staging/wigyori.git] / target / linux / bcm63xx / patches-5.4 / 563-board-VR-3032u.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2553,6 +2553,41 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_VR3032u = {
8 + .name = "963168M-1841N1",
9 + .expected_cpu_id = 0x63268,
10 +
11 + .has_ohci0 = 1,
12 + .has_ehci0 = 1,
13 + .num_usbh_ports = 1,
14 +
15 + .has_enetsw = 1,
16 + .enetsw = {
17 + .used_ports = {
18 + [0] = {
19 + .used = 1,
20 + .phy_id = 1,
21 + .name = "LAN2",
22 + },
23 + [1] = {
24 + .used = 1,
25 + .phy_id = 2,
26 + .name = "LAN3",
27 + },
28 + [2] = {
29 + .used = 1,
30 + .phy_id = 3,
31 + .name = "LAN4",
32 + },
33 + [3] = {
34 + .used = 1,
35 + .phy_id = 4,
36 + .name = "LAN1",
37 + },
38 + },
39 + },
40 +};
41 +
42 static struct board_info __initdata board_vw6339gu = {
43 .name = "VW6339GU",
44 .expected_cpu_id = 0x63268,
45 @@ -2734,6 +2769,7 @@ static const struct board_info __initcon
46 #ifdef CONFIG_BCM63XX_CPU_63268
47 &board_963268bu_p300,
48 &board_963269bhr,
49 + &board_VR3032u,
50 &board_vw6339gu,
51 &board_BSKYB_63168,
52 #endif /* CONFIG_BCM63XX_CPU_63268 */
53 @@ -2848,6 +2884,7 @@ static struct of_device_id const bcm963x
54 #ifdef CONFIG_BCM63XX_CPU_63268
55 { .compatible = "brcm,bcm963268bu-p300", .data = &board_963268bu_p300, },
56 { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
57 + { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
58 { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
59 { .compatible = "sky,sr102", .data = &board_BSKYB_63168, },
60 #endif