brcm63xx: 3.10: backport multi-board support
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 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 @@ -2193,6 +2193,51 @@ static struct board_info __initdata boar
12         },
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 +       .leds = {
31 +               {
32 +                       .name           = "AR1004G:green:inet",
33 +                       .gpio           = 3,
34 +                       .active_low     = 1,
35 +               },
36 +               {
37 +                       .name           = "AR1004G:green:power",
38 +                       .gpio           = 0,
39 +                       .active_low     = 1,
40 +               },
41 +               {
42 +                       .name           = "AR1004G:red:power",
43 +                       .gpio           = 6,
44 +                       .active_low     = 1,
45 +               },
46 +       },
47 +
48 +       .buttons = {
49 +               {
50 +                       .desc           = "reset",
51 +                       .gpio           = 33,
52 +                       .active_low     = 1,
53 +                       .type           = EV_KEY,
54 +                       .code           = KEY_RESTART,
55 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
56 +               },
57 +       },
58 +};
59 +
60  #endif
61  
62  /*
63 @@ -4544,6 +4589,7 @@ static const struct board_info __initcon
64         &board_96348A_122,
65         &board_CPVA502plus,
66         &board_96348W3,
67 +       &board_96348gw_10_AR1004G,
68  #endif
69  
70  #ifdef CONFIG_BCM63XX_CPU_6358