summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRahul Sharma <rahul.sharma@samsung.com>2014-06-23 11:02:24 +0530
committerInki Dae <daeinki@gmail.com>2014-06-24 23:44:49 +0900
commitd74ed93784ca3af005b0f5f1c44d972175bba4ad (patch)
tree5a778d1563362a3917219eb4f8f23ab80877757b /drivers/gpu
parent5c0f4829e187f4d43f5ea5cd72cec343ddcdf594 (diff)
downloadop-kernel-dev-d74ed93784ca3af005b0f5f1c44d972175bba4ad.zip
op-kernel-dev-d74ed93784ca3af005b0f5f1c44d972175bba4ad.tar.gz
drm/exynos: soft reset mixer before reconfigure after power-on
Mixer soft reset is a recommended step before reconfiguring the mixer after power on. Mixer looses the previous state of DMAs if soft reset. This is the recommendation from the hardware team. Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_mixer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 6773b03..6f18581 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -1085,6 +1085,8 @@ static void mixer_poweron(struct exynos_drm_manager *mgr)
ctx->powered = true;
mutex_unlock(&ctx->mixer_mutex);
+ mixer_reg_writemask(res, MXR_STATUS, ~0, MXR_STATUS_SOFT_RESET);
+
mixer_reg_write(res, MXR_INT_EN, ctx->int_en);
mixer_win_reset(ctx);
OpenPOWER on IntegriCloud