i'm using icnova module with at91sam9g45.
I'm using linux kernel 2.6.33.2.
I'm facing an issue of backlight/LCD turning off after 10 mins if no applications are runnning. I added a debug statement in
atmel_pwm_bl_set_intensity() function of
atmel-pwm-bl.c file in
linux-2.6.33.2/drivers/video/backlight/ . This function is getting called when backlight/lcd is turning after 10 mins but the intensity value is 340, so the problem is not that the backlight intensity is set to 0.
But after booting the board if I run any application continuosly then it is not turning off. So, is there any power management in kernel which is turning off the backlight/LCD after 10 mins ?? How can I change this power management settings ??
These are the setting for backlight which I have configured in
at91sam9g45_devices.c file :
Code:
struct atmel_pwm_bl_platform_data atmel_pwm_bl_pdata = {
.pwm_channel = AT91_PWM2,
.pwm_frequency = 10000,
.pwm_compare_max = 345,
.pwm_duty_max = 345,
.pwm_duty_min = 5,
.pwm_active_low = 0,
.gpio_on = -1,
.on_active_low = 0,
};
static struct platform_device atmel_pwm_bl_dev = {
.name = "atmel-pwm-bl",
.id = 4,
.dev = {
.platform_data = &atmel_pwm_bl_pdata,
},
};
void __init setup_atmel_pwm_bl(void)
{
platform_device_register(&atmel_pwm_bl_dev);
at91_set_gpio_output(atmel_pwm_bl_pdata.gpio_on, 1);
printk("PWM: Setup Atmel\n");
}