]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00211844 MX6x HDMI display can't show video to after suspend/resume
authorSandor Yu <R01008@freescale.com>
Fri, 1 Jun 2012 10:14:12 +0000 (18:14 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:46 +0000 (08:34 +0200)
Added hdmi clock gating/ungating when devide suspend/resume

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

index 5ef2c9f2e923f2f5cb40c8c164e07fd424096447..e778b4e91f4833e46093280253ce326832ac5372 100644 (file)
@@ -2087,13 +2087,23 @@ static int mxc_hdmi_fb_event(struct notifier_block *nb,
        case FB_EVENT_SUSPEND:
                dev_dbg(&hdmi->pdev->dev,
                        "event=FB_EVENT_SUSPEND\n");
-               mxc_hdmi_phy_disable(hdmi);
+
+               if (hdmi->blank == FB_BLANK_UNBLANK) {
+                       mxc_hdmi_phy_disable(hdmi);
+                       clk_disable(hdmi->hdmi_iahb_clk);
+                       clk_disable(hdmi->hdmi_isfr_clk);
+               }
                break;
 
        case FB_EVENT_RESUME:
                dev_dbg(&hdmi->pdev->dev,
                        "event=FB_EVENT_RESUME\n");
-               mxc_hdmi_phy_init(hdmi);
+
+               if (hdmi->blank == FB_BLANK_UNBLANK) {
+                       clk_enable(hdmi->hdmi_iahb_clk);
+                       clk_enable(hdmi->hdmi_isfr_clk);
+                       mxc_hdmi_phy_init(hdmi);
+               }
                break;
 
        }