aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91rm9200/devices.c
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2006-04-02 12:15:48 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-04-02 12:15:48 -0400
commitcc2832a1313340ff1de55f15fac5b7fe48fa2a72 (patch)
tree30adc6cf8f13031bc00f4619767f9642b3837317 /arch/arm/mach-at91rm9200/devices.c
parentb2e6f75597af8fc765707111d3a71077167bdeb1 (diff)
[ARM] 3393/2: AT91RM9200 LED support
Patch from Andrew Victor This patch adds support for the LED(s) on the AT91RM9200-based boards. (This version of the patch can be applied before Patch 3392/1) Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91rm9200/devices.c')
-rw-r--r--arch/arm/mach-at91rm9200/devices.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-at91rm9200/devices.c b/arch/arm/mach-at91rm9200/devices.c
index 57eedd5beaf6..aa36760efbc3 100644
--- a/arch/arm/mach-at91rm9200/devices.c
+++ b/arch/arm/mach-at91rm9200/devices.c
@@ -290,4 +290,23 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data)
290void __init at91_add_device_mmc(struct at91_mmc_data *data) {} 290void __init at91_add_device_mmc(struct at91_mmc_data *data) {}
291#endif 291#endif
292 292
293/* --------------------------------------------------------------------
294 * LEDs
295 * -------------------------------------------------------------------- */
296
297#if defined(CONFIG_LEDS)
298u8 at91_leds_cpu;
299u8 at91_leds_timer;
300
301void __init at91_init_leds(u8 cpu_led, u8 timer_led)
302{
303 at91_leds_cpu = cpu_led;
304 at91_leds_timer = timer_led;
305}
306
307#else
308void __init at91_init_leds(u8 cpu_led, u8 timer_led) {}
309#endif
310
311
293/* -------------------------------------------------------------------- */ 312/* -------------------------------------------------------------------- */