projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f93e4a
)
video: fbdev: fsl: Fix the sleep function for FSL DIU module
author
Jason Jin
<
[email protected]
>
Fri, 14 Aug 2015 05:54:09 +0000
(13:54 +0800)
committer
Tomi Valkeinen
<
[email protected]
>
Thu, 24 Sep 2015 10:05:57 +0000
(13:05 +0300)
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 <
[email protected]
>
Signed-off-by: Wang Dongsheng <
[email protected]
>
Acked-by: Timur Tabi <
[email protected]
>
Signed-off-by: Tomi Valkeinen <
[email protected]
>
drivers/video/fbdev/fsl-diu-fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/fsl-diu-fb.c
b/drivers/video/fbdev/fsl-diu-fb.c
index 7fa2e6f9e322d1e2223116474800b515684abfc2..b335c1ae8625106efff818d696ebad532ade7f17 100644
(file)
--- a/
drivers/video/fbdev/fsl-diu-fb.c
+++ b/
drivers/video/fbdev/fsl-diu-fb.c
@@
-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;
}