diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-01-23 03:27:06 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 10:00:32 -0500 |
commit | a04ff1af9723607f5901b79c559357e37cee6823 (patch) | |
tree | d0937006f8f80916f3a78236523953222a9a312e /arch/arm/mach-at91/at91rm9200_devices.c | |
parent | c8f385a631ef1f49d67a3798ca40dec36ccdf07d (diff) |
[ARM] 4758/1: [AT91] LEDs
Move the LED initialization code out of the various *_devices.c files,
and into leds.c.
Also add support for NEW_LEDs.
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/at91rm9200_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_devices.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index 23966229ea9a..ea9a952fb877 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c | |||
@@ -614,28 +614,6 @@ static void __init at91_add_device_watchdog(void) {} | |||
614 | 614 | ||
615 | 615 | ||
616 | /* -------------------------------------------------------------------- | 616 | /* -------------------------------------------------------------------- |
617 | * LEDs | ||
618 | * -------------------------------------------------------------------- */ | ||
619 | |||
620 | #if defined(CONFIG_LEDS) | ||
621 | u8 at91_leds_cpu; | ||
622 | u8 at91_leds_timer; | ||
623 | |||
624 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | ||
625 | { | ||
626 | /* Enable GPIO to access the LEDs */ | ||
627 | at91_set_gpio_output(cpu_led, 1); | ||
628 | at91_set_gpio_output(timer_led, 1); | ||
629 | |||
630 | at91_leds_cpu = cpu_led; | ||
631 | at91_leds_timer = timer_led; | ||
632 | } | ||
633 | #else | ||
634 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} | ||
635 | #endif | ||
636 | |||
637 | |||
638 | /* -------------------------------------------------------------------- | ||
639 | * SSC -- Synchronous Serial Controller | 617 | * SSC -- Synchronous Serial Controller |
640 | * -------------------------------------------------------------------- */ | 618 | * -------------------------------------------------------------------- */ |
641 | 619 | ||