[backfire] backport r28376
[openwrt-10.03/.git] / target / linux / brcm63xx / patches-2.6.32 / 150-alice_gate2_leds.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -589,6 +589,63 @@ static struct board_info __initdata boar
4  
5         .has_ohci0 = 1,
6         .has_ehci0 = 1,
7 +
8 +       .leds = {
9 +               /*Each led on alice gate is bi-color */
10 +               {
11 +                       .name           = "power:red",
12 +                       .gpio           = 5,
13 +                       .active_low     = 1,
14 +               },
15 +               {
16 +                       .name           = "power:green",
17 +                       .gpio           = 4,
18 +                       .active_low     = 1,
19 +                       .default_trigger = "default-on",
20 +               },
21 +               {
22 +                       .name           = "wifi:red",
23 +                       .gpio           = 23,
24 +                       .active_low     = 1,
25 +               },
26 +               {
27 +                       .name           = "wifi:green",
28 +                       .gpio           = 22,
29 +                       .active_low     = 1,
30 +               },
31 +               {
32 +                       .name           = "usr1:red",
33 +                       .gpio           = 27,
34 +                       .active_low     = 1,
35 +               },
36 +               {
37 +                       .name           = "usr1:green",
38 +                       .gpio           = 26,
39 +                       .active_low     = 1,
40 +               },
41 +               {
42 +                       .name           = "usr2:red",
43 +                       .gpio           = 30,
44 +                       .active_low     = 1,
45 +               },
46 +               {
47 +                       .name           = "usr2:green",
48 +                       .gpio           = 29,
49 +                       .active_low     = 1,
50 +               },
51 +       },
52 +
53 +       .reset_buttons = {
54 +               {
55 +                       .desc           = "sw2",
56 +                       .gpio           = 37,
57 +                       .active_low     = 1,
58 +                       .type           = EV_KEY,
59 +                       .code           = BTN_0,
60 +                       .threshold      = 3,
61 +               },
62 +       },
63 +       /* sw1 is connected to gpio34*/
64  };
65  
66  static struct board_info __initdata board_DWVS0 = {