diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-03-08 12:13:20 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-03-16 10:14:50 +0100 |
commit | e0fb7dd2f00440b5449f625dee7b442219d8a56e (patch) | |
tree | da6e769e7654b6a5a577e89d633cc883c2f66077 /drivers/gpu/drm/imx/ipuv3-crtc.c | |
parent | 320a89ad7bdaf90700fcdc3cb8a811b9b7a1a919 (diff) | |
download | talos-op-linux-e0fb7dd2f00440b5449f625dee7b442219d8a56e.tar.gz talos-op-linux-e0fb7dd2f00440b5449f625dee7b442219d8a56e.zip |
drm/imx: enable/disable PRG on CRTC enable/disable
On i.MX6 QuadPlus the PRG needs to be clocked in order to pass
through the data access requests from the IDMAC. This call is a
no-op for other all other SoCs.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-crtc.c')
-rw-r--r-- | drivers/gpu/drm/imx/ipuv3-crtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index 82772b8d6321..dab9d50ffd8c 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -55,6 +55,7 @@ static void ipu_crtc_enable(struct drm_crtc *crtc) struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc); struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent); + ipu_prg_enable(ipu); ipu_dc_enable(ipu); ipu_dc_enable_channel(ipu_crtc->dc); ipu_di_enable(ipu_crtc->di); @@ -95,6 +96,7 @@ static void ipu_crtc_atomic_disable(struct drm_crtc *crtc, */ ipu_crtc_disable_planes(ipu_crtc, old_crtc_state); ipu_dc_disable(ipu); + ipu_prg_disable(ipu); spin_lock_irq(&crtc->dev->event_lock); if (crtc->state->event) { |