MLK-23576 gpu/imx: lcdifv3: add system sleep PM ops
To support system suspend and resume, the system sleep
PM ops of suspend and resume are required to be added
for LCDIFv3 display.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit 40a94ac801
)
This commit is contained in:
parent
4f93c50ff3
commit
daf11c7201
|
@ -743,7 +743,20 @@ static int imx_lcdifv3_runtime_resume(struct device *dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int imx_lcdifv3_suspend(struct device *dev)
|
||||
{
|
||||
return imx_lcdifv3_runtime_suspend(dev);
|
||||
}
|
||||
|
||||
static int imx_lcdifv3_resume(struct device *dev)
|
||||
{
|
||||
return imx_lcdifv3_runtime_resume(dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops imx_lcdifv3_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(imx_lcdifv3_suspend, imx_lcdifv3_resume)
|
||||
SET_RUNTIME_PM_OPS(imx_lcdifv3_runtime_suspend,
|
||||
imx_lcdifv3_runtime_resume, NULL)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue