drm/imx: Add active plane reconfiguration support
commitc6c1f9bc798bee7cfc2e172cd2c9b48187d801a7
authorLiu Ying <gnuiyl@gmail.com>
Mon, 15 Aug 2016 08:41:13 +0000 (15 16:41 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 29 Aug 2016 14:21:18 +0000 (29 16:21 +0200)
tree409ef8d235893563e0e16ec50e5370855a853630
parentfa8410b355251fd30341662a40ac6b22d3e38468
drm/imx: Add active plane reconfiguration support

We don't support configuring active plane on-the-fly for imx-drm.
The relevant CRTC should be disabled before the plane configuration.
Of course, the plane itself should be disabled as well.
This patch adds active plane reconfiguration support by forcing CRTC
mode change and disabling-enabling plane in plane's ->atomic_update
callback.

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Tested-by: Peter Senna Tschudin <peter.senna@gmail.com>
Tested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/ipuv3-plane.c