diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-11-29 13:18:33 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2019-12-17 14:23:48 +0800 |
commit | 5afab4f273aac8952de0e0d1df401972b187dcb1 (patch) | |
tree | db4fe758390094247cde6409f12a215ee36500a6 /drivers | |
parent | 38c125803923db9a314f56dc70b584b53273a3ef (diff) |
MLK-23116-3 drm/imx: dpu: plane: Control DPRC gasket shadow enable according to need_modeset
The SoC designer suggests us to clear DPRC's gasket(PRG) SHADOW_EN bit
only when modeset is needed for the relevant CRTC. So, this patch calls
helpers dprc_gasket_shadow_enable/disable() to do that.
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit b3d82acbe6184ccc0ca59fbdc0ba5798d9cd47cb)
(cherry picked from commit b002ede643dbaf8076742b5d38777e6b5c34fbad)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/imx/dpu/dpu-plane.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/dpu/dpu-plane.c b/drivers/gpu/drm/imx/dpu/dpu-plane.c index e7b955078d1b..b72ae614cb13 100644 --- a/drivers/gpu/drm/imx/dpu/dpu-plane.c +++ b/drivers/gpu/drm/imx/dpu/dpu-plane.c @@ -784,6 +784,12 @@ again: prefetch_start, uv_prefetch_start, fb_is_interlaced); + if (need_modeset) + /* no shadow with modeset */ + dprc_gasket_shadow_disable(dprc); + else + dprc_gasket_shadow_enable(dprc); + dprc_enable(dprc); dprc_reg_update(dprc); |