cddd459140
Add patches for linux-5.4. The patches are from NXP LSDK-20.04 release which was tagged LSDK-20.04-V5.4. https://source.codeaurora.org/external/qoriq/qoriq-components/linux/ For boards LS1021A-IOT, and Traverse-LS1043 which are not involved in LSDK, port the dts patches from 4.14. The patches are sorted into the following categories: 301-arch-xxxx 302-dts-xxxx 303-core-xxxx 701-net-xxxx 801-audio-xxxx 802-can-xxxx 803-clock-xxxx 804-crypto-xxxx 805-display-xxxx 806-dma-xxxx 807-gpio-xxxx 808-i2c-xxxx 809-jailhouse-xxxx 810-keys-xxxx 811-kvm-xxxx 812-pcie-xxxx 813-pm-xxxx 814-qe-xxxx 815-sata-xxxx 816-sdhc-xxxx 817-spi-xxxx 818-thermal-xxxx 819-uart-xxxx 820-usb-xxxx 821-vfio-xxxx Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 813cf104c571bf54e155d6be247c32a8f6aa3e2e Mon Sep 17 00:00:00 2001
|
|
From: Fancy Fang <chen.fang@nxp.com>
|
|
Date: Wed, 6 Jun 2018 23:20:43 +0800
|
|
Subject: [PATCH] MLK-18535-6 drm/imx: core: add LCDIF support
|
|
|
|
Allows the LCDIF to be one of the supported client
|
|
components. And set the 'legacyfb_depth' of LCDIF
|
|
to be 32.
|
|
|
|
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
|
|
---
|
|
drivers/gpu/drm/imx/imx-drm-core.c | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/imx/imx-drm-core.c
|
|
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
|
|
@@ -12,6 +12,7 @@
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <video/imx-ipu-v3.h>
|
|
+#include <video/imx-lcdif.h>
|
|
|
|
#include <drm/drm_atomic.h>
|
|
#include <drm/drm_atomic_helper.h>
|
|
@@ -110,6 +111,18 @@ static int compare_of(struct device *dev
|
|
struct dpu_client_platformdata *pdata = dev->platform_data;
|
|
|
|
return pdata->of_node == np;
|
|
+ } else if (strcmp(dev->driver->name, "imx-lcdif-crtc") == 0) {
|
|
+ struct lcdif_client_platformdata *pdata = dev->platform_data;
|
|
+#if IS_ENABLED(CONFIG_DRM_FBDEV_EMULATION)
|
|
+ /* set legacyfb_depth to be 32 for lcdif, since
|
|
+ * default format of the connectors attached to
|
|
+ * lcdif is usually RGB888
|
|
+ */
|
|
+ if (pdata->of_node == np)
|
|
+ legacyfb_depth = 32;
|
|
+#endif
|
|
+
|
|
+ return pdata->of_node == np;
|
|
}
|
|
|
|
/* Special case for LDB, one device for two channels */
|