From ce69b9fef55debd1050b6d706347e8384876cc27 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Wed, 18 Sep 2019 10:55:05 +0800 Subject: [PATCH] fbdev: dcic: Enable imx6 dcic driver This patch forwards imx6 dcic driver from imx_4.19.y kernel. Signed-off-by: Sandor Yu --- drivers/video/fbdev/mxc/Kconfig | 6 + drivers/video/fbdev/mxc/Makefile | 1 + drivers/video/fbdev/mxc/mxc_dcic.c | 593 ++++++++++++++++++++ include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | 14 +- include/linux/mxc_dcic.h | 126 +++++ 5 files changed, 733 insertions(+), 7 deletions(-) create mode 100644 drivers/video/fbdev/mxc/mxc_dcic.c create mode 100644 include/linux/mxc_dcic.h diff --git a/drivers/video/fbdev/mxc/Kconfig b/drivers/video/fbdev/mxc/Kconfig index 84b3ed753858..191a58122a19 100644 --- a/drivers/video/fbdev/mxc/Kconfig +++ b/drivers/video/fbdev/mxc/Kconfig @@ -115,3 +115,9 @@ config FB_MXC_HDMI config FB_MXS_SII902X tristate "Si Image SII9022 DVI/HDMI Interface Chip" depends on FB_MXS && I2C + +config FB_MXC_DCIC + tristate "MXC DCIC" + depends on FB_MXC_SYNC_PANEL + depends on MXC_IPU_V3 || FB_MXS + select VIDEOMODE_HELPERS diff --git a/drivers/video/fbdev/mxc/Makefile b/drivers/video/fbdev/mxc/Makefile index fbebe52c96f8..fb9e3e07764a 100644 --- a/drivers/video/fbdev/mxc/Makefile +++ b/drivers/video/fbdev/mxc/Makefile @@ -11,6 +11,7 @@ obj-$(CONFIG_FB_MXC_MIPI_DSI) += mipi_dsi.o obj-$(CONFIG_FB_MXC_LDB) += ldb.o obj-$(CONFIG_FB_MXS_SII902X) += mxsfb_sii902x.o mxsfb_sii902x_audio.o obj-$(CONFIG_FB_MXC_HDMI) += mxc_hdmi.o +obj-$(CONFIG_FB_MXC_DCIC) += mxc_dcic.o obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxc_ipuv3_fb.o obj-$(CONFIG_FB_MXC_EINK_PANEL) += mxc_epdc_fb.o obj-$(CONFIG_FB_MXC_EINK_V2_PANEL) += mxc_epdc_v2_fb.o diff --git a/drivers/video/fbdev/mxc/mxc_dcic.c b/drivers/video/fbdev/mxc/mxc_dcic.c new file mode 100644 index 000000000000..cab75e276896 --- /dev/null +++ b/drivers/video/fbdev/mxc/mxc_dcic.c @@ -0,0 +1,593 @@ +/* + * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. All Rights Reserved. + */ + +/* + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include