summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9261_devices.c
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2007-02-08 11:18:14 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-08 15:55:30 +0100
commitda11d02c1da201840b94147d3366a32b41b151e1 (patch)
tree8f97ee2fb3328b82c4fe0ac9d4f29f523e1b554a /arch/arm/mach-at91/at91sam9261_devices.c
parent[ARM] 4149/1: AT91: Overrun in SAM9 gettimeoffset(). (diff)
downloadlinux-da11d02c1da201840b94147d3366a32b41b151e1.tar.xz
linux-da11d02c1da201840b94147d3366a32b41b151e1.zip
[ARM] 4150/1: AT91: LED update
The GPIO pin setup should be handed by the platform-setup code, and not directly by the driver. Original patch from David Brownell. 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-at91/at91sam9261_devices.c')
-rw-r--r--arch/arm/mach-at91/at91sam9261_devices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c
index b2f6d33d0f8c..e1504766fd64 100644
--- a/arch/arm/mach-at91/at91sam9261_devices.c
+++ b/arch/arm/mach-at91/at91sam9261_devices.c
@@ -513,6 +513,10 @@ u8 at91_leds_timer;
void __init at91_init_leds(u8 cpu_led, u8 timer_led)
{
+ /* Enable GPIO to access the LEDs */
+ at91_set_gpio_output(cpu_led, 1);
+ at91_set_gpio_output(timer_led, 1);
+
at91_leds_cpu = cpu_led;
at91_leds_timer = timer_led;
}