mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
video: fbdev: fsl: Fix the sleep function for FSL DIU module
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>
This commit is contained in:
parent
1f93e4a96c
commit
e03dc19ba9
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
static int fsl_diu_resume(struct platform_device *ofdev)
|
||||||
{
|
{
|
||||||
struct fsl_diu_data *data;
|
struct fsl_diu_data *data;
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
data = dev_get_drvdata(&ofdev->dev);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue