bcm63xx: add support for the Sercomm H500-s
[openwrt/staging/dedeckeh.git] / target / linux / bcm63xx / patches-5.4 / 568-board-H500s.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2869,6 +2869,37 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_H500s = {
9 + .name = "BXK00C-1.6",
10 + .expected_cpu_id = 0x63268,
11 +
12 + .has_ehci0 = 1,
13 + .has_ohci0 = 1,
14 + .num_usbh_ports = 1,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [3] = {
20 + .used = 1,
21 + .phy_id = 12,
22 + .name = "WAN",
23 + },
24 +
25 + [4] = {
26 + .used = 1,
27 + .phy_id = 0,
28 + .bypass_link = 1,
29 + .force_speed = 1000,
30 + .force_duplex_full = 1,
31 + .mii_override = 1,
32 + .timing_sel = 1,
33 + .name = "RGMII",
34 + },
35 + },
36 + },
37 +};
38 #endif /* CONFIG_BCM63XX_CPU_63268 */
39
40 /*
41 @@ -2983,6 +3014,7 @@ static const struct board_info __initcon
42 &board_VR3032u,
43 &board_vw6339gu,
44 &board_BSKYB_63168,
45 + &board_H500s,
46 #endif
47 };
48
49 @@ -3101,6 +3133,8 @@ static struct of_device_id const bcm963x
50 { .compatible = "comtrend,vg-8050", .data = &board_VG8050, },
51 { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
52 { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
53 + { .compatible = "sercomm,h500-s-lowi", .data = &board_H500s, },
54 + { .compatible = "sercomm,h500-s-vfes", .data = &board_H500s, },
55 { .compatible = "sky,sr102", .data = &board_BSKYB_63168, },
56 #endif
57 #endif /* CONFIG_OF */