2 * linux/arch/arm/mach-omap1/leds-innovator.c
4 #include <linux/init.h>
6 #include <mach/hardware.h>
12 #define LED_STATE_ENABLED 1
13 #define LED_STATE_CLAIMED 2
15 static unsigned int led_state
;
16 static unsigned int hw_led_state
;
18 void innovator_leds_event(led_event_t evt
)
22 local_irq_save(flags
);
27 led_state
= LED_STATE_ENABLED
;
31 led_state
&= ~LED_STATE_ENABLED
;
36 led_state
|= LED_STATE_CLAIMED
;
41 led_state
&= ~LED_STATE_CLAIMED
;
45 #ifdef CONFIG_LEDS_TIMER
47 if (!(led_state
& LED_STATE_CLAIMED
))
52 #ifdef CONFIG_LEDS_CPU
54 if (!(led_state
& LED_STATE_CLAIMED
))
59 if (!(led_state
& LED_STATE_CLAIMED
))
68 if (led_state
& LED_STATE_CLAIMED
)
73 if (led_state
& LED_STATE_CLAIMED
)
84 if (led_state
& LED_STATE_CLAIMED
)
89 if (led_state
& LED_STATE_CLAIMED
)
97 local_irq_restore(flags
);