bcm63xx: add support for linux 3.8
[openwrt.git] / target / linux / brcm63xx / patches-3.8 / 529-board_fast2604.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1031,6 +1031,57 @@ static struct board_info __initdata boar
4         .has_ehci0                      = 1,
5  };
6  
7 +static struct board_info __initdata board_FAST2604 = {
8 +       .name                                           = "F@ST2604",
9 +       .expected_cpu_id                        = 0x6348,
10 +
11 +       .has_uart0                                      = 1,
12 +       .has_pci                                        = 1,
13 +       .has_ohci0                                      = 1,
14 +
15 +       .has_enet1                                      = 1,
16 +       .enet1 = {
17 +               .has_phy                        = 1,
18 +               .phy_id                         = 0,
19 +               .force_speed_100                = 1,
20 +               .force_duplex_full              = 1,
21 +       },
22 +
23 +       .leds = {
24 +               {
25 +                       .name                           = "F@ST2604:green:power",
26 +                       .gpio                           = 0,
27 +                       .active_low                     = 1,
28 +                       .default_trigger        = "default-on",
29 +               },
30 +               {
31 +                       .name                           = "F@ST2604:red:power",
32 +                       .gpio                           = 1,
33 +                       .active_low                     = 1,
34 +               },
35 +               {
36 +                       .name                           = "F@ST2604:red:inet",
37 +                       .gpio                           = 4,
38 +                       .active_low                     = 1,
39 +               },
40 +               {
41 +                       .name                           = "F@ST2604:green:wps",
42 +                       .gpio                           = 5,
43 +                       .active_low                     = 1,
44 +               },
45 +       },
46 +       .buttons = {
47 +               {
48 +                       .desc                           = "reset",
49 +                       .gpio                           = 33,
50 +                       .active_low                     = 1,
51 +                       .type                           = EV_KEY,
52 +                       .code                           = KEY_RESTART,
53 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
54 +               },
55 +       },
56 +};
57 +
58  static struct board_info __initdata board_rta1025w_16 = {
59         .name                           = "RTA1025W_16",
60         .expected_cpu_id                = 0x6348,
61 @@ -2894,6 +2945,7 @@ static const struct board_info __initcon
62         &board_96348gw_10,
63         &board_96348gw_11,
64         &board_FAST2404,
65 +       &board_FAST2604,
66         &board_DV201AMR,
67         &board_96348gw_a,
68         &board_rta1025w_16,