提交 e03dc19b 编写于 作者: J Jason Jin 提交者: Tomi Valkeinen

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: NJason Jin <Jason.Jin@freescale.com>
Signed-off-by: NWang Dongsheng <dongsheng.wang@freescale.com>
Acked-by: NTimur Tabi <timur@tabi.org>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 1f93e4a9
...@@ -1628,9 +1628,16 @@ static int fsl_diu_suspend(struct platform_device *ofdev, pm_message_t state) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册