71bc7e26f2c1c0c14423feae79d1a0bbc00df1fd
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 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 @@ -1436,6 +1436,52 @@ static struct board_info __initdata boar
12 },
13 };
14
15 +static struct board_info __initdata board_96348gw_10_AR1004G = {
16 + .name = "AR1004G",
17 + .of_board_id = "asmax,ar1004g",
18 + .expected_cpu_id = 0x6348,
19 +
20 + .has_uart0 = 1,
21 + .has_enet1 = 1,
22 + .has_pci = 1,
23 +
24 + .enet1 = {
25 + .has_phy = 1,
26 + .phy_id = 0,
27 + .force_speed_100 = 1,
28 + .force_duplex_full = 1,
29 + },
30 +
31 + .leds = {
32 + {
33 + .name = "AR1004G:green:inet",
34 + .gpio = 3,
35 + .active_low = 1,
36 + },
37 + {
38 + .name = "AR1004G:green:power",
39 + .gpio = 0,
40 + .active_low = 1,
41 + },
42 + {
43 + .name = "AR1004G:red:power",
44 + .gpio = 6,
45 + .active_low = 1,
46 + },
47 + },
48 +
49 + .buttons = {
50 + {
51 + .desc = "reset",
52 + .gpio = 33,
53 + .active_low = 1,
54 + .type = EV_KEY,
55 + .code = KEY_RESTART,
56 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
57 + },
58 + },
59 +};
60 +
61
62 /* BT Voyager 2110 */
63 static struct board_info __initdata board_V2110 = {
64 @@ -4247,6 +4293,7 @@ static const struct board_info __initcon
65 &board_96348A_122,
66 &board_CPVA502plus,
67 &board_96348W3,
68 + &board_96348gw_10_AR1004G,
69 #endif
70
71 #ifdef CONFIG_BCM63XX_CPU_6358