brcm63xx: add support for linux 3.3
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 300-alice_gate2_leds.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -604,6 +604,99 @@ 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 = "service:red",
23 + .gpio = 7,
24 + .active_low = 1,
25 + },
26 + {
27 + .name = "service:green",
28 + .gpio = 6,
29 + .active_low = 1,
30 + },
31 + {
32 + .name = "adsl:red",
33 + .gpio = 9,
34 + .active_low = 1,
35 + },
36 + {
37 + .name = "adsl:green",
38 + .gpio = 10,
39 + .active_low = 1,
40 + },
41 + {
42 + .name = "wifi:red",
43 + .gpio = 23,
44 + .active_low = 1,
45 + },
46 + {
47 + .name = "wifi:green",
48 + .gpio = 22,
49 + .active_low = 1,
50 + },
51 + {
52 + .name = "internet:red",
53 + .gpio = 25,
54 + .active_low = 1,
55 + },
56 + {
57 + .name = "internet:green",
58 + .gpio = 24,
59 + .active_low = 1,
60 + },
61 + {
62 + .name = "usr1:red",
63 + .gpio = 27,
64 + .active_low = 1,
65 + },
66 + {
67 + .name = "usr1:green",
68 + .gpio = 26,
69 + .active_low = 1,
70 + },
71 + {
72 + .name = "usr2:red",
73 + .gpio = 30,
74 + .active_low = 1,
75 + },
76 + {
77 + .name = "usr2:green",
78 + .gpio = 29,
79 + .active_low = 1,
80 + },
81 + },
82 +
83 + .buttons = {
84 + {
85 + .desc = "reset",
86 + .gpio = 37,
87 + .active_low = 1,
88 + .type = EV_KEY,
89 + .code = KEY_RESTART,
90 + .threshold = 3,
91 + },
92 + {
93 + .desc = "wps",
94 + .gpio = 34,
95 + .type = EV_KEY,
96 + .code = KEY_WPS_BUTTON,
97 + .threshold = 3,
98 + },
99 + },
100 };
101
102 static struct board_info __initdata board_DWVS0 = {
103 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
104 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
105 @@ -58,7 +58,7 @@ struct board_info {
106 struct bcm63xx_dsp_platform_data dsp;
107
108 /* GPIO LEDs */
109 - struct gpio_led leds[5];
110 + struct gpio_led leds[14];
111
112 /* Buttons */
113 struct gpio_button buttons[2];