diff options
author | Andrew Victor <andrew@sanpeople.com> | 2007-02-08 05:18:14 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-08 09:55:30 -0500 |
commit | da11d02c1da201840b94147d3366a32b41b151e1 (patch) | |
tree | 8f97ee2fb3328b82c4fe0ac9d4f29f523e1b554a /arch/arm/mach-at91 | |
parent | 3392b309dbd1f1f37454c412c2045448300cf374 (diff) |
[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')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9261_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/leds.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index 077c81f9bc56..2624a4f22d61 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c | |||
@@ -594,6 +594,10 @@ u8 at91_leds_timer; | |||
594 | 594 | ||
595 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | 595 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) |
596 | { | 596 | { |
597 | /* Enable GPIO to access the LEDs */ | ||
598 | at91_set_gpio_output(cpu_led, 1); | ||
599 | at91_set_gpio_output(timer_led, 1); | ||
600 | |||
597 | at91_leds_cpu = cpu_led; | 601 | at91_leds_cpu = cpu_led; |
598 | at91_leds_timer = timer_led; | 602 | at91_leds_timer = timer_led; |
599 | } | 603 | } |
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index b5d8968e29a7..f7d342ccbebf 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -515,6 +515,10 @@ u8 at91_leds_timer; | |||
515 | 515 | ||
516 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | 516 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) |
517 | { | 517 | { |
518 | /* Enable GPIO to access the LEDs */ | ||
519 | at91_set_gpio_output(cpu_led, 1); | ||
520 | at91_set_gpio_output(timer_led, 1); | ||
521 | |||
518 | at91_leds_cpu = cpu_led; | 522 | at91_leds_cpu = cpu_led; |
519 | at91_leds_timer = timer_led; | 523 | at91_leds_timer = timer_led; |
520 | } | 524 | } |
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; | |||
513 | 513 | ||
514 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | 514 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) |
515 | { | 515 | { |
516 | /* Enable GPIO to access the LEDs */ | ||
517 | at91_set_gpio_output(cpu_led, 1); | ||
518 | at91_set_gpio_output(timer_led, 1); | ||
519 | |||
516 | at91_leds_cpu = cpu_led; | 520 | at91_leds_cpu = cpu_led; |
517 | at91_leds_timer = timer_led; | 521 | at91_leds_timer = timer_led; |
518 | } | 522 | } |
diff --git a/arch/arm/mach-at91/leds.c b/arch/arm/mach-at91/leds.c index 1a333730466e..0d5144973988 100644 --- a/arch/arm/mach-at91/leds.c +++ b/arch/arm/mach-at91/leds.c | |||
@@ -86,10 +86,6 @@ static int __init leds_init(void) | |||
86 | if (!at91_leds_timer || !at91_leds_cpu) | 86 | if (!at91_leds_timer || !at91_leds_cpu) |
87 | return -ENODEV; | 87 | return -ENODEV; |
88 | 88 | ||
89 | /* Enable PIO to access the LEDs */ | ||
90 | at91_set_gpio_output(at91_leds_timer, 1); | ||
91 | at91_set_gpio_output(at91_leds_cpu, 1); | ||
92 | |||
93 | leds_event = at91_leds_event; | 89 | leds_event = at91_leds_event; |
94 | 90 | ||
95 | leds_event(led_start); | 91 | leds_event(led_start); |