e00e80564d7a88792db19d1be897d3ae0735ea5c
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 805-display-0045-drm-imx-Add-DPU-KMS-support-part-2.patch
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)
5
6 This patch adds i.MX DPU KMS support.
7
8 Signed-off-by: Liu Ying <victor.liu@nxp.com>
9 Signed-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
24 @@ -105,6 +106,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 */