bcm63xx: add kernel 5.10 support
[openwrt/staging/mkresin.git] / target / linux / bcm63xx / patches-5.10 / 513-board-bcm6338.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1021,6 +1021,32 @@ static struct board_info __initdata boar
4 .force_duplex_full = 1,
5 },
6 };
7 +
8 +static struct board_info __initdata board_96338w2_e7t = {
9 + .name = "96338W2_E7T",
10 + .expected_cpu_id = 0x6338,
11 +
12 + .has_enet0 = 1,
13 + .enet0 = {
14 + .has_phy = 1,
15 + .phy_id = 0,
16 + .force_speed_100 = 1,
17 + .force_duplex_full = 1,
18 + },
19 +};
20 +
21 +static struct board_info __initdata board_rta1320_16m = {
22 + .name = "RTA1320_16M",
23 + .expected_cpu_id = 0x6338,
24 +
25 + .has_enet0 = 1,
26 + .enet0 = {
27 + .has_phy = 1,
28 + .phy_id = 0,
29 + .force_speed_100 = 1,
30 + .force_duplex_full = 1,
31 + },
32 +};
33 #endif /* CONFIG_BCM63XX_CPU_6338 */
34
35 /*
36 @@ -1352,6 +1378,8 @@ static const struct board_info __initcon
37 #ifdef CONFIG_BCM63XX_CPU_6338
38 &board_96338gw,
39 &board_96338w,
40 + &board_96338w2_e7t,
41 + &board_rta1320_16m,
42 #endif /* CONFIG_BCM63XX_CPU_6338 */
43 #ifdef CONFIG_BCM63XX_CPU_6345
44 &board_96345gw2,
45 @@ -1408,6 +1436,8 @@ static struct of_device_id const bcm963x
46 #ifdef CONFIG_BCM63XX_CPU_6338
47 { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
48 { .compatible = "brcm,bcm96338w", .data = &board_96338w, },
49 + { .compatible = "d-link,dsl-2640u", .data = &board_96338w2_e7t, },
50 + { .compatible = "dynalink,rta1320", .data = &board_rta1320_16m, },
51 #endif /* CONFIG_BCM63XX_CPU_6338 */
52 #ifdef CONFIG_BCM63XX_CPU_6345
53 { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },