MLK-24190: drm: imx: dw_hdmi: Add resume function
HDMI modules will be reset when device enter suspend, and registers status will lost. Add resume function to recovery HDMI INT/I2C/HPD registers status. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> Tested-by: Shengjiu Wang <shengjiu.wang@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
f91e00912e
commit
6a7dda286d
|
@ -475,11 +475,25 @@ static int dw_hdmi_imx_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused dw_hdmi_imx_resume(struct device *dev)
|
||||
{
|
||||
struct imx_hdmi *hdmi = dev_get_drvdata(dev);
|
||||
|
||||
dw_hdmi_resume(hdmi->hdmi);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops dw_hdmi_imx_pm = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(NULL, dw_hdmi_imx_resume)
|
||||
};
|
||||
|
||||
static struct platform_driver dw_hdmi_imx_platform_driver = {
|
||||
.probe = dw_hdmi_imx_probe,
|
||||
.remove = dw_hdmi_imx_remove,
|
||||
.driver = {
|
||||
.name = "dwhdmi-imx",
|
||||
.pm = &dw_hdmi_imx_pm,
|
||||
.of_match_table = dw_hdmi_imx_dt_ids,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue