Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jason Jin and committed by
Tomi Valkeinen
e03dc19b 1f93e4a9

+8 -1
+8 -1
drivers/video/fbdev/fsl-diu-fb.c
··· 1628 1628 static int fsl_diu_resume(struct platform_device *ofdev) 1629 1629 { 1630 1630 struct fsl_diu_data *data; 1631 + unsigned int i; 1631 1632 1632 1633 data = dev_get_drvdata(&ofdev->dev); 1633 - enable_lcdc(data->fsl_diu_info); 1634 + 1635 + fsl_diu_enable_interrupts(data); 1636 + update_lcdc(data->fsl_diu_info); 1637 + for (i = 0; i < NUM_AOIS; i++) { 1638 + if (data->mfb[i].count) 1639 + fsl_diu_enable_panel(&data->fsl_diu_info[i]); 1640 + } 1634 1641 1635 1642 return 0; 1636 1643 }