From: Sandor Yu Date: Wed, 22 Feb 2012 08:08:24 +0000 (+0800) Subject: ENGR00174914 MX6x HDMI implement HDMI driver suspend/resume function X-Git-Tag: v3.0.35-fsl~1424 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe2476fc2dd2a601085e27adb09c0f6ee1edde52;p=karo-tx-linux.git ENGR00174914 MX6x HDMI implement HDMI driver suspend/resume function Added FB suspend/resume event process in HDMI driver. Signed-off-by: Sandor Yu --- 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; }