diff options
author | Liu Ying <gnuiyl@gmail.com> | 2016-07-08 17:40:56 +0800 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-12 18:23:51 +0200 |
commit | 255c35f8fe6a9c345320e512c681c03678f3e0b4 (patch) | |
tree | c5062294416afa3e89f06163fc5fe4decdd8e064 /drivers/gpu/drm/imx/ipuv3-crtc.c | |
parent | 33f14235302f561b1db713c1bd8111a512bf2568 (diff) | |
download | linux-stable-255c35f8fe6a9c345320e512c681c03678f3e0b4.tar.gz linux-stable-255c35f8fe6a9c345320e512c681c03678f3e0b4.tar.bz2 linux-stable-255c35f8fe6a9c345320e512c681c03678f3e0b4.zip |
drm/imx: atomic phase 2 step 1: Wire up state ->reset, ->duplicate and ->destroy
Wire up CRTCs', planes' and connectors' ->reset, ->duplicate and ->destroy state
hooks to use the default implementations from the atomic helper library.
The helpers track each DRM object state.
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index ba880fabea4c..8a0ef13c0906 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -18,6 +18,7 @@ #include <linux/device.h> #include <linux/platform_device.h> #include <drm/drmP.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc_helper.h> #include <linux/fb.h> #include <linux/clk.h> @@ -232,6 +233,9 @@ static const struct drm_crtc_funcs ipu_crtc_funcs = { .set_config = drm_crtc_helper_set_config, .destroy = drm_crtc_cleanup, .page_flip = ipu_page_flip, + .reset = drm_atomic_helper_crtc_reset, + .atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state, + .atomic_destroy_state = drm_atomic_helper_crtc_destroy_state, }; static void ipu_crtc_handle_pageflip(struct ipu_crtc *ipu_crtc) |