12 #include <linux/kernel.h>
18 #include <linux/slab.h>
20 #include <mach/hardware.h>
32 static u16 fpga_led_state;
43 {
"dbg:d4",
"heartbeat", },
44 {
"dbg:d5",
"cpu0", },
45 {
"dbg:d6",
"default-on", },
107 led->
cdev.name = dbg_leds[
i].name;
108 led->
cdev.brightness_set = dbg_led_set;
109 led->
cdev.brightness_get = dbg_led_get;
110 led->
cdev.default_trigger = dbg_leds[
i].trigger;
122 static int fpga_suspend_noirq(
struct device *
dev)
130 static int fpga_resume_noirq(
struct device *
dev)
136 static const struct dev_pm_ops fpga_dev_pm_ops = {
137 .suspend_noirq = fpga_suspend_noirq,
138 .resume_noirq = fpga_resume_noirq,
142 .driver.name =
"omap_dbg_led",
143 .driver.pm = &fpga_dev_pm_ops,
147 static int __init fpga_init(
void)
149 if (machine_is_omap_h4()
150 || machine_is_omap_h3()
151 || machine_is_omap_h2()
152 || machine_is_omap_perseus2()