drm/exynos/hdmi: add core reset code
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 23 Mar 2016 13:15:14 +0000 (14:15 +0100)
committerInki Dae <daeinki@gmail.com>
Fri, 29 Apr 2016 16:03:55 +0000 (01:03 +0900)
To ensure HDMI-PHY reprogramming will not affect
HDMI the latter should be reset.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 3f1eb07e365ca5323189d337719c3ba46fb39a12..f3a4ae504bdc237e5bad50e3ba618a032a03e87d 100644 (file)
@@ -1659,6 +1659,10 @@ static void hdmi_mode_apply(struct hdmi_context *hdata)
 
 static void hdmiphy_conf_reset(struct hdmi_context *hdata)
 {
+       hdmi_reg_writemask(hdata, HDMI_CORE_RSTOUT, 0, 1);
+       usleep_range(10000, 12000);
+       hdmi_reg_writemask(hdata, HDMI_CORE_RSTOUT, ~0, 1);
+       usleep_range(10000, 12000);
        hdmi_reg_writemask(hdata, HDMI_PHY_RSTOUT, ~0, HDMI_PHY_SW_RSTOUT);
        usleep_range(10000, 12000);
        hdmi_reg_writemask(hdata, HDMI_PHY_RSTOUT, 0, HDMI_PHY_SW_RSTOUT);