diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-04-15 16:13:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-17 10:58:25 -0400 |
commit | fdb72fd84c26438a7dd754a1cc74890aca7f1b77 (patch) | |
tree | d3cfa375d72baf7fb4491eadb364428e8dfb56ab /arch/arm/mach-ks8695/devices.c | |
parent | 05dda977f2574c3341abef9b74c27d2b362e1e3a (diff) |
[ARM] 4981/1: [KS8695] Simple LED driver
Simple gpio-connected LED driver for KS8695 platforms.
(Based on old AT91 LED driver)
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-ks8695/devices.c')
-rw-r--r-- | arch/arm/mach-ks8695/devices.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-ks8695/devices.c b/arch/arm/mach-ks8695/devices.c index 386593f8ac65..3db2ec61d06f 100644 --- a/arch/arm/mach-ks8695/devices.c +++ b/arch/arm/mach-ks8695/devices.c | |||
@@ -176,6 +176,27 @@ static void __init ks8695_add_device_watchdog(void) {} | |||
176 | #endif | 176 | #endif |
177 | 177 | ||
178 | 178 | ||
179 | /* -------------------------------------------------------------------- | ||
180 | * LEDs | ||
181 | * -------------------------------------------------------------------- */ | ||
182 | |||
183 | #if defined(CONFIG_LEDS) | ||
184 | short ks8695_leds_cpu = -1; | ||
185 | short ks8695_leds_timer = -1; | ||
186 | |||
187 | void __init ks8695_init_leds(u8 cpu_led, u8 timer_led) | ||
188 | { | ||
189 | /* Enable GPIO to access the LEDs */ | ||
190 | gpio_direction_output(cpu_led, 1); | ||
191 | gpio_direction_output(timer_led, 1); | ||
192 | |||
193 | ks8695_leds_cpu = cpu_led; | ||
194 | ks8695_leds_timer = timer_led; | ||
195 | } | ||
196 | #else | ||
197 | void __init ks8695_init_leds(u8 cpu_led, u8 timer_led) {} | ||
198 | #endif | ||
199 | |||
179 | /* -------------------------------------------------------------------- */ | 200 | /* -------------------------------------------------------------------- */ |
180 | 201 | ||
181 | /* | 202 | /* |