1 From 2e4fbc789ef2743a6e425b9ca8bf40e40e236d22 Mon Sep 17 00:00:00 2001
2 From: Dong Aisheng <aisheng.dong@nxp.com>
3 Date: Mon, 5 Aug 2019 19:08:35 +0800
4 Subject: [PATCH] drm/imx: Add DPU KMS support (part 2)
6 This patch adds i.MX DPU KMS support.
8 Signed-off-by: Liu Ying <victor.liu@nxp.com>
9 Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
11 drivers/gpu/drm/imx/imx-drm-core.c | 5 +++++
12 1 file changed, 5 insertions(+)
14 --- a/drivers/gpu/drm/imx/imx-drm-core.c
15 +++ b/drivers/gpu/drm/imx/imx-drm-core.c
17 #include <drm/drm_plane_helper.h>
18 #include <drm/drm_probe_helper.h>
19 #include <drm/drm_vblank.h>
20 +#include <video/dpu.h>
23 #include "ipuv3-plane.h"
24 @@ -183,6 +184,10 @@ static int compare_of(struct device *dev
25 struct ipu_client_platformdata *pdata = dev->platform_data;
27 return pdata->of_node == np;
28 + } else if (strcmp(dev->driver->name, "imx-dpu-crtc") == 0) {
29 + struct dpu_client_platformdata *pdata = dev->platform_data;
31 + return pdata->of_node == np;
34 /* Special case for LDB, one device for two channels */