2a7bc901d4e4c38a87eac0c69d5c6d1e5d4da086
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.18 / 558-board_AR1004G.patch
1 From: "mexit@o2.pl" <mexit@o2.pl>
2 Date: Sun, 24 Nov 2013 21:33:38 +0000
3 Subject: [PATCH 4/5] brcm63xx: add support for Asmax AR 1004g router
4
5 Support for Asmax AR 1004g router
6
7 Signed-off-by: Adrian Feliks <mexit@o2.pl>
8 ---
9 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
10 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 @@ -687,6 +687,22 @@ static struct board_info __initdata boar
12 .has_ehci0 = 1,
13 };
14
15 +static struct board_info __initdata board_96348gw_10_AR1004G = {
16 + .name = "AR1004G",
17 + .expected_cpu_id = 0x6348,
18 +
19 + .has_uart0 = 1,
20 + .has_enet1 = 1,
21 + .has_pci = 1,
22 +
23 + .enet1 = {
24 + .has_phy = 1,
25 + .phy_id = 0,
26 + .force_speed_100 = 1,
27 + .force_duplex_full = 1,
28 + },
29 +};
30 +
31
32 /* BT Voyager 2110 */
33 static struct board_info __initdata board_V2110 = {
34 @@ -1822,6 +1838,7 @@ static const struct board_info __initcon
35 &board_96348A_122,
36 &board_CPVA502plus,
37 &board_96348W3,
38 + &board_96348gw_10_AR1004G,
39 #endif
40
41 #ifdef CONFIG_BCM63XX_CPU_6358
42 @@ -1886,6 +1903,7 @@ static struct of_device_id const bcm963x
43 { .compatible = "dynalink,rta770w", .data = &board_rta770w, },
44 #endif
45 #ifdef CONFIG_BCM63XX_CPU_6348
46 + { .compatible = "asmax,ar1004g", .data = &board_96348gw_10_AR1004G, },
47 { .compatible = "belkin,f5d7633", .data = &board_96348gw_10, },
48 { .compatible = "brcm,bcm96348r", .data = &board_96348r, },
49 { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },