OSDN Git Service

drm/exynos/decon5433: enable HDMI-PHY before configuring DECON
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 23 Mar 2016 13:26:00 +0000 (14:26 +0100)
committerInki Dae <daeinki@gmail.com>
Fri, 29 Apr 2016 16:04:26 +0000 (01:04 +0900)
According to documentation and tests HDMI-PHY must be on prior
to MIXER configuration.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index a1452be..84f8ed6 100644 (file)
@@ -389,6 +389,8 @@ static void decon_enable(struct exynos_drm_crtc *crtc)
 
        pm_runtime_get_sync(ctx->dev);
 
+       exynos_drm_pipe_clk_enable(crtc, true);
+
        set_bit(BIT_CLKS_ENABLED, &ctx->flags);
 
        decon_swreset(ctx);
@@ -420,6 +422,8 @@ static void decon_disable(struct exynos_drm_crtc *crtc)
 
        clear_bit(BIT_CLKS_ENABLED, &ctx->flags);
 
+       exynos_drm_pipe_clk_enable(crtc, false);
+
        pm_runtime_put_sync(ctx->dev);
 
        set_bit(BIT_SUSPENDED, &ctx->flags);