blob: ae32cf596f46c9424334716f6cf543b4bd68d280 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 2e4fbc789ef2743a6e425b9ca8bf40e40e236d22 Mon Sep 17 00:00:00 2001
2From: Dong Aisheng <aisheng.dong@nxp.com>
3Date: Mon, 5 Aug 2019 19:08:35 +0800
4Subject: [PATCH] drm/imx: Add DPU KMS support (part 2)
5
6This patch adds i.MX DPU KMS support.
7
8Signed-off-by: Liu Ying <victor.liu@nxp.com>
9Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
10---
11 drivers/gpu/drm/imx/imx-drm-core.c | 5 +++++
12 1 file changed, 5 insertions(+)
13
14--- a/drivers/gpu/drm/imx/imx-drm-core.c
15+++ b/drivers/gpu/drm/imx/imx-drm-core.c
16@@ -24,6 +24,7 @@
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>
21
22 #include "imx-drm.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;
26
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;
30+
31+ return pdata->of_node == np;
32 }
33
34 /* Special case for LDB, one device for two channels */