bcm63xx: WIP: add Huawei HG253s v2 support
[openwrt/staging/luka.git] / target / linux / bcm63xx / patches-5.4 / 566-board-HG253s-v2.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1879,6 +1879,37 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_hg253s_v2 = {
9 + .name = "hg253s",
10 + .expected_cpu_id = 0x6362,
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 + [4] = {
20 + .used = 1,
21 + .phy_id = 0xff,
22 + .bypass_link = 1,
23 + .force_speed = 1000,
24 + .force_duplex_full = 1,
25 + .timing_sel = 1,
26 + .name = "RGMII",
27 + },
28 +
29 + [5] = {
30 + .used = 1,
31 + .phy_id = 24,
32 + .timing_sel = 1,
33 + .name = "WAN",
34 + },
35 + },
36 + },
37 +};
38 #endif /* CONFIG_BCM63XX_CPU_6362 */
39
40 /*
41 @@ -2882,6 +2913,7 @@ static const struct board_info __initcon
42 &board_nb6,
43 &board_dgnd3700v2,
44 &board_fast2504n,
45 + &board_hg253s_v2,
46 #endif
47
48 #ifdef CONFIG_BCM63XX_CPU_6368
49 @@ -2997,6 +3029,7 @@ static struct of_device_id const bcm963x
50 { .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
51 #endif
52 #ifdef CONFIG_BCM63XX_CPU_6362
53 + { .compatible = "huawei,hg253s-v2", .data = &board_hg253s_v2, },
54 { .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
55 { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
56 { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },