diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-01-23 03:32:17 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 10:00:32 -0500 |
commit | 1b41bdf68a72c1fd506ee3dbfbf954fd2eaef75c (patch) | |
tree | 163781e6480984fe948a5e22e826f684e0d4ab7d /arch/arm/mach-at91/board-sam9263ek.c | |
parent | 2743f0c1dcca54d6c80b0de1273b3f4e90051a85 (diff) |
[ARM] 4761/1: [AT91] Board-support for NEW_LEDs
Add NEW_LEDs support for the following boards:
- Cogent CSB337
- Atmel AT91RM9200-DK
- Atmel AT91RM9200-EK
- Atmel AT91SAM9263-EK
Mostly based on patch from David Brownell.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9263ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9263ek.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index a9dd59543ec7..2df0ff25d147 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -272,6 +272,30 @@ static struct atmel_ac97_data ek_ac97_data = { | |||
272 | }; | 272 | }; |
273 | 273 | ||
274 | 274 | ||
275 | /* | ||
276 | * LEDs ... these could all be PWM-driven, for variable brightness | ||
277 | */ | ||
278 | static struct gpio_led ek_leds[] = { | ||
279 | { /* "left" led, green, userled1, pwm1 */ | ||
280 | .name = "ds1", | ||
281 | .gpio = AT91_PIN_PB8, | ||
282 | .active_low = 1, | ||
283 | .default_trigger = "mmc0", | ||
284 | }, | ||
285 | { /* "right" led, green, userled2, pwm2 */ | ||
286 | .name = "ds2", | ||
287 | .gpio = AT91_PIN_PC29, | ||
288 | .active_low = 1, | ||
289 | .default_trigger = "nand-disk", | ||
290 | }, | ||
291 | { /* "power" led, yellow, pwm0 */ | ||
292 | .name = "ds3", | ||
293 | .gpio = AT91_PIN_PB7, | ||
294 | .default_trigger = "heartbeat", | ||
295 | }, | ||
296 | }; | ||
297 | |||
298 | |||
275 | static void __init ek_board_init(void) | 299 | static void __init ek_board_init(void) |
276 | { | 300 | { |
277 | /* Serial */ | 301 | /* Serial */ |
@@ -297,6 +321,8 @@ static void __init ek_board_init(void) | |||
297 | at91_add_device_lcdc(&ek_lcdc_data); | 321 | at91_add_device_lcdc(&ek_lcdc_data); |
298 | /* AC97 */ | 322 | /* AC97 */ |
299 | at91_add_device_ac97(&ek_ac97_data); | 323 | at91_add_device_ac97(&ek_ac97_data); |
324 | /* LEDs */ | ||
325 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | ||
300 | } | 326 | } |
301 | 327 | ||
302 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") | 328 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") |