Skip to content

Commit

Permalink
video: fbdev: fsl: Fix the sleep function for FSL DIU module
Browse files Browse the repository at this point in the history
For deep sleep, the diu module will power off, when wake up
from the deep sleep, the registers need to be reinitialized.

Signed-off-by: Jason Jin <Jason.Jin@freescale.com>
Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Jason Jin authored and Tomi Valkeinen committed Sep 24, 2015
1 parent 1f93e4a commit e03dc19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/video/fbdev/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,9 +1628,16 @@ static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state)
static int fsl_diu_resume(struct platform_device *ofdev)
{
struct fsl_diu_data *data;
unsigned int i;

data = dev_get_drvdata(&ofdev->dev);
enable_lcdc(data->fsl_diu_info);

fsl_diu_enable_interrupts(data);
update_lcdc(data->fsl_diu_info);
for (i = 0; i < NUM_AOIS; i++) {
if (data->mfb[i].count)
fsl_diu_enable_panel(&data->fsl_diu_info[i]);
}

return 0;
}
Expand Down

0 comments on commit e03dc19

Please sign in to comment.