8 #include <linux/kernel.h>
11 #include <linux/slab.h>
15 #include <mach/hardware.h>
16 #include <mach/platform.h>
18 #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS)
20 #define ALPHA_REG __io_address(INTEGRATOR_DBG_BASE)
21 #define LEDREG (__io_address(INTEGRATOR_DBG_BASE) + INTEGRATOR_DBG_LEDS_OFFSET)
23 struct integrator_led {
35 } integrator_leds[] = {
36 {
"integrator:green0",
"heartbeat", },
37 {
"integrator:yellow", },
38 {
"integrator:red", },
39 {
"integrator:green1", },
40 {
"integrator:core_module",
"cpu0", },
47 struct integrator_led, cdev);
64 struct integrator_led, cdev);
86 static int __init integrator_leds_init(
void)
90 for (i = 0; i <
ARRAY_SIZE(integrator_leds); i++) {
91 struct integrator_led *
led;
98 led->cdev.name = integrator_leds[
i].name;
101 led->cdev.brightness_set = cm_led_set;
102 led->cdev.brightness_get = cm_led_get;
104 led->cdev.brightness_set = integrator_led_set;
105 led->cdev.brightness_get = integrator_led_get;
108 led->cdev.default_trigger = integrator_leds[
i].trigger;