diff options
author | Andrzej Hajda | 2016-03-23 14:15:14 +0100 |
---|---|---|
committer | Inki Dae | 2016-04-29 18:03:55 +0200 |
commit | 69f88877c3817b712f0d63721a4c1fa9d5678388 (patch) | |
tree | f885840a17b53c929b26c17f2cb232998ffe63d9 /drivers/gpu/drm/exynos/exynos_hdmi.c | |
parent | drm/exynos/hdmi: add PHY power off signal handling (diff) | |
download | kernel-qcow2-linux-69f88877c3817b712f0d63721a4c1fa9d5678388.tar.gz kernel-qcow2-linux-69f88877c3817b712f0d63721a4c1fa9d5678388.tar.xz kernel-qcow2-linux-69f88877c3817b712f0d63721a4c1fa9d5678388.zip |
drm/exynos/hdmi: add core reset code
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>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 3f1eb07e365c..f3a4ae504bdc 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -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); |