From fe2476fc2dd2a601085e27adb09c0f6ee1edde52 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Wed, 22 Feb 2012 16:08:24 +0800 Subject: [PATCH] ENGR00174914 MX6x HDMI implement HDMI driver suspend/resume function Added FB suspend/resume event process in HDMI driver. Signed-off-by: Sandor Yu --- drivers/video/mxc_hdmi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; } -- 2.39.2