diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-11-29 13:27:47 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2019-12-17 14:23:50 +0800 |
commit | ce551f9a691c12b164dc4ca87a64f26e4ce7a62b (patch) | |
tree | 2fe7e84aa8bc8f30b5d897126fe9af1f76dfa18e /drivers | |
parent | 5afab4f273aac8952de0e0d1df401972b187dcb1 (diff) |
MLK-23116-4 gpu: imx: dpu-blit: Control DPRC gasket shadow enable with dedicated helpers
Call helpers dprc_gasket_shadow_enable/disable() to control
DPRC's gasket(PRG) SHADOW_EN bit so that we may remove
those lines in dprc/prg_configure() which also control the bit.
This patch should be code-change-only, no functional impact.
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 7666e8d37a2c069f4482d87e827f3cd76feb50a5)
(cherry picked from commit eeec735e4571c5b3e84fb2e5e8745e2a8be6e663)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/imx/dpu-blit/dpu-blit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/imx/dpu-blit/dpu-blit.c b/drivers/gpu/imx/dpu-blit/dpu-blit.c index cb20183225a0..8f075945a11e 100644 --- a/drivers/gpu/imx/dpu-blit/dpu-blit.c +++ b/drivers/gpu/imx/dpu-blit/dpu-blit.c @@ -148,6 +148,11 @@ void dpu_be_configure_prefetch(struct dpu_bliteng *dpu_be, dpu_be->start, false); + if (dpu_be->start) + dprc_gasket_shadow_disable(dprc); + else + dprc_gasket_shadow_enable(dprc); + if (dpu_be->start || dprc_en) { dprc_enable(dprc); } |