diff options
author | Sandor Yu <R01008@freescale.com> | 2012-02-22 16:08:24 +0800 |
---|---|---|
committer | Sandor Yu <R01008@freescale.com> | 2012-02-22 16:13:24 +0800 |
commit | ee2a43bb456ed1d6e30e1172b9ae6df87fea7451 (patch) | |
tree | 48e46b282b5111f02e5016249e1d2d6a0237f992 /drivers/video | |
parent | dd0865478bf5163cc3dc3485666916afc6233c4c (diff) |
ENGR00174914 MX6x HDMI implement HDMI driver suspend/resume function
Added FB suspend/resume event process in HDMI driver.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mxc_hdmi.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index c13bc7086b84..ef3ebd333e0f 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -2090,6 +2090,20 @@ static int mxc_hdmi_fb_event(struct notifier_block *nb, mxc_hdmi_phy_disable(hdmi); } break; + + case FB_EVENT_SUSPEND: + dev_dbg(&hdmi->pdev->dev, + "event=FB_EVENT_SUSPEND\n"); + mxc_hdmi_phy_disable(hdmi); + break; + + case FB_EVENT_RESUME: + dev_dbg(&hdmi->pdev->dev, + "event=FB_EVENT_RESUME\n"); + if (hdmi->fb_reg && hdmi->cable_plugin) + mxc_hdmi_phy_init(hdmi); + break; + } return 0; } |