brcm63xx: add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 535-board_rta770w.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -426,6 +426,25 @@ static struct board_info __initdata boar
4 .force_duplex_full = 1,
5 },
6 };
7 +
8 +// Actually this board is the very same as the rta770bw,
9 +// where the additional 'b' within the name just
10 +// just indicates 'Annex B'. The ADSL Modem itself is able
11 +// to handle both Annex A as well as Annex B -
12 +// the loaded firmware makes the only difference
13 +static struct board_info __initdata board_rta770w = {
14 + .name = "RTA770W",
15 + .expected_cpu_id = 0x6345,
16 +
17 + .has_enet0 = 1,
18 +
19 + .enet0 = {
20 + .has_phy = 1,
21 + .phy_id = 0,
22 + .force_speed_100 = 1,
23 + .force_duplex_full = 1,
24 + },
25 +};
26 #endif /* CONFIG_BCM63XX_CPU_6345 */
27
28 /*
29 @@ -1443,6 +1462,7 @@ static const struct board_info __initcon
30 #ifdef CONFIG_BCM63XX_CPU_6345
31 &board_96345gw2,
32 &board_rta770bw,
33 + &board_rta770w,
34 #endif
35 #ifdef CONFIG_BCM63XX_CPU_6348
36 &board_96348r,
37 @@ -1517,6 +1537,7 @@ static struct of_device_id const bcm963x
38 #ifdef CONFIG_BCM63XX_CPU_6345
39 { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },
40 { .compatible = "dynalink,rta770bw", .data = &board_rta770bw, },
41 + { .compatible = "dynalink,rta770w", .data = &board_rta770w, },
42 #endif
43 #ifdef CONFIG_BCM63XX_CPU_6348
44 { .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },