drm/exynos/decon5433: reset decon on start
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 23 Mar 2016 13:15:17 +0000 (14:15 +0100)
committerInki Dae <daeinki@gmail.com>
Fri, 29 Apr 2016 16:04:17 +0000 (01:04 +0900)
Resetting IP at starting ensures that DECON will be in known state
regardless of changes by bootloader.

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

index b289b217b5039f117331987ec063f82e3df29990..bfb258135c74b0a5c54c04e2d7441f2a2840821d 100644 (file)
@@ -396,6 +396,8 @@ static void decon_enable(struct exynos_drm_crtc *crtc)
 
        set_bit(BIT_CLKS_ENABLED, &ctx->flags);
 
+       decon_swreset(ctx);
+
        /* if vblank was enabled status, enable it again. */
        if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags))
                decon_enable_vblank(ctx->crtc);