diff options
author | Robby Cai <r63905@freescale.com> | 2015-08-27 20:34:32 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:24:23 -0500 |
commit | 0462eb2cb8b64508260d9c6daa9f163d68ea6be0 (patch) | |
tree | 3478fcfdd803f88ea2c9cf6d88c2012ff749605b /drivers/video | |
parent | 5e8702bb2d8f3afa8d7d93ea0222c7b42ba38dce (diff) |
MLK-11438-4 lcdif: enable lpsr mode
restore the pinmux when resume from LPSR mode in suspend.
Signed-off-by: Robby Cai <r63905@freescale.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mxsfb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index bbe2b27269ca..c7db8d86ec5a 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -1574,6 +1574,9 @@ static int mxsfb_suspend(struct device *pdev) mxsfb_blank(FB_BLANK_POWERDOWN, fb_info); host->restore_blank = saved_blank; console_unlock(); + + pinctrl_pm_select_sleep_state(pdev); + return 0; } @@ -1582,6 +1585,8 @@ static int mxsfb_resume(struct device *pdev) struct fb_info *fb_info = dev_get_drvdata(pdev); struct mxsfb_info *host = to_imxfb_host(fb_info); + pinctrl_pm_select_default_state(pdev); + console_lock(); mxsfb_blank(host->restore_blank, fb_info); fb_set_suspend(fb_info, 0); |