brcm63xx: Fixed 96348GW (Tecom Gx00) LED definitions to match reality (vs reference...
[openwrt.git] / target / linux / brcm63xx / patches-2.6.32 / 150-alice_gate2_leds.patch
1 Index: linux-2.6.32.13/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 ===================================================================
3 --- linux-2.6.32.13.orig/arch/mips/bcm63xx/boards/board_bcm963xx.c      2010-05-27 21:40:56.000000000 -0400
4 +++ linux-2.6.32.13/arch/mips/bcm63xx/boards/board_bcm963xx.c   2010-05-27 21:43:41.000000000 -0400
5 @@ -573,6 +573,63 @@
6  
7         .has_ohci0 = 1,
8         .has_ehci0 = 1,
9 +
10 +       .leds = {
11 +               /*Each led on alice gate is bi-color */
12 +               {
13 +                       .name           = "power:red",
14 +                       .gpio           = 5,
15 +                       .active_low     = 1,
16 +               },
17 +               {
18 +                       .name           = "power:green",
19 +                       .gpio           = 4,
20 +                       .active_low     = 1,
21 +                       .default_trigger = "default-on",
22 +               },
23 +               {
24 +                       .name           = "wifi:red",
25 +                       .gpio           = 23,
26 +                       .active_low     = 1,
27 +               },
28 +               {
29 +                       .name           = "wifi:green",
30 +                       .gpio           = 22,
31 +                       .active_low     = 1,
32 +               },
33 +               {
34 +                       .name           = "usr1:red",
35 +                       .gpio           = 27,
36 +                       .active_low     = 1,
37 +               },
38 +               {
39 +                       .name           = "usr1:green",
40 +                       .gpio           = 26,
41 +                       .active_low     = 1,
42 +               },
43 +               {
44 +                       .name           = "usr2:red",
45 +                       .gpio           = 30,
46 +                       .active_low     = 1,
47 +               },
48 +               {
49 +                       .name           = "usr2:green",
50 +                       .gpio           = 29,
51 +                       .active_low     = 1,
52 +               },
53 +       },
54 +
55 +       .buttons = {
56 +               {
57 +                       .desc           = "sw2",
58 +                       .gpio           = 37,
59 +                       .active_low     = 1,
60 +                       .type           = EV_KEY,
61 +                       .code           = KEY_RESTART,
62 +                       .threshold      = 3,
63 +               },
64 +       },
65 +       /* sw1 is connected to gpio34*/
66  };
67  
68  static struct board_info __initdata board_DWVS0 = {