The source of driver is here:
http://pastebin.com/LKfNBdMe
I use such driver initialization on board file
static struct omap_pwm_led_platform_data acclaim4430_disp_backlight_data = {
.name = "lcd-backlight",
.intensity_timer = 11,
.def_on = 0,
.def_brightness = DEFAULT_BACKLIGHT_BRIGHTNESS,
.set_power = acclaim4430_disp_backlight_setpower,
};
static struct platform_device sdp4430_disp_led = {
.name = "omap_pwm_led",
.id = -1,
.dev = {
.platform_data = &acclaim4430_disp_backlight_data,
},
};
static struct platform_device *sdp4430_devices[] __initdata = {
&sdp4430_disp_led,
};
On p-android-omap-3.0 branch produce warning
<4>WARNING: at arch/arm/plat-omap/dmtimer.c:917 omap_dm_timer_read_counter
+0x150/0x1b0()
As I understand LED PWM driver doesn't correct handle timer enable/disable.
Any idea?