f9ce5bed5651c7215bff896666e4fc6affe76903
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 535-board_rta770w.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -541,6 +541,27 @@ 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_uart0 = 1,
18 +
19 + .has_enet0 = 1,
20 +
21 + .enet0 = {
22 + .has_phy = 1,
23 + .phy_id = 0,
24 + .force_speed_100 = 1,
25 + .force_duplex_full = 1,
26 + },
27 +};
28 #endif /* CONFIG_BCM63XX_CPU_6345 */
29
30 /*
31 @@ -1770,6 +1791,7 @@ static const struct board_info __initcon
32 #ifdef CONFIG_BCM63XX_CPU_6345
33 &board_96345gw2,
34 &board_rta770bw,
35 + &board_rta770w,
36 #endif
37 #ifdef CONFIG_BCM63XX_CPU_6348
38 &board_96348r,
39 @@ -1844,6 +1866,7 @@ static struct of_device_id const bcm963x
40 #ifdef CONFIG_BCM63XX_CPU_6345
41 { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },
42 { .compatible = "dynalink,rta770bw", .data = &board_rta770bw, },
43 + { .compatible = "dynalink,rta770w", .data = &board_rta770w, },
44 #endif
45 #ifdef CONFIG_BCM63XX_CPU_6348
46 { .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },