fcde5ac98695de05f6e5ba49193d371322612812
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 529-board_fast2604.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1103,6 +1103,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 @@ -2645,6 +2696,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,
69 @@ -2715,6 +2767,7 @@ static struct of_device_id const bcm963x
70         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
71         { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },
72         { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
73 +       { .compatible = "sagem,f@st2604", .data = &board_FAST2604, },
74         { .compatible = "t-com,spw500v", .data = &board_spw500v, },
75         { .compatible = "tecom,gw6000", .data = &board_gw6000, },
76         { .compatible = "tecom,gw6200", .data = &board_gw6200, },