bcm63xx: refactor board patches
[openwrt/staging/chunkeey.git] / target / linux / bcm63xx / patches-5.4 / 533-board_rta770w.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -420,6 +420,24 @@ 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 + .enet0 = {
19 + .has_phy = 1,
20 + .phy_id = 0,
21 + .force_speed_100 = 1,
22 + .force_duplex_full = 1,
23 + },
24 +};
25 #endif /* CONFIG_BCM63XX_CPU_6345 */
26
27 /*
28 @@ -1361,6 +1379,7 @@ static const struct board_info __initcon
29 #ifdef CONFIG_BCM63XX_CPU_6345
30 &board_96345gw2,
31 &board_rta770bw,
32 + &board_rta770w,
33 #endif /* CONFIG_BCM63XX_CPU_6345 */
34 #ifdef CONFIG_BCM63XX_CPU_6348
35 &board_96348r,
36 @@ -1432,6 +1451,7 @@ static struct of_device_id const bcm963x
37 #ifdef CONFIG_BCM63XX_CPU_6345
38 { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },
39 { .compatible = "dynalink,rta770bw", .data = &board_rta770bw, },
40 + { .compatible = "dynalink,rta770w", .data = &board_rta770w, },
41 #endif
42 #ifdef CONFIG_BCM63XX_CPU_6348
43 { .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },