]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174914 MX6x HDMI implement HDMI driver suspend/resume function
authorSandor Yu <R01008@freescale.com>
Wed, 22 Feb 2012 08:08:24 +0000 (16:08 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:07 +0000 (08:34 +0200)
Added FB suspend/resume event process in HDMI driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/video/mxc_hdmi.c

index c13bc7086b84193b4c44ccad0a5b698e62ac0a88..ef3ebd333e0f89df36f0c881681db3735da2d15f 100644 (file)
@@ -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;
 }