]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: Add active plane reconfiguration support
authorLiu Ying <gnuiyl@gmail.com>
Mon, 15 Aug 2016 08:41:13 +0000 (16:41 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 29 Aug 2016 14:21:18 +0000 (16:21 +0200)
commit22844275f95d9bd57da3ec01591942b6da4b6379
tree409ef8d235893563e0e16ec50e5370855a853630
parent5aae0ef8ecd1e0f786f43df45a48d7babf83a452
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