From ec154ab96d0f032b4226fb93d609ecc711a61191 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Sat, 10 Oct 2015 15:45:29 +0800 Subject: [PATCH] MLK-11606-01: dcic: Porting dcic driver from 3.14.y Initial the mxc dcic driver. Baseline copied from imx_3.14.y branch. Signed-off-by: Sandor Yu --- drivers/video/fbdev/mxc/Kconfig | 6 + drivers/video/fbdev/mxc/Makefile | 1 + drivers/video/fbdev/mxc/mxc_dcic.c | 592 ++++++++++++++++++++ include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | 14 +- include/linux/mxc_dcic.h | 126 +++++ 5 files changed, 732 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 be4c2c1336a4..fe0aa89a9c76 100644 --- a/drivers/video/fbdev/mxc/Kconfig +++ b/drivers/video/fbdev/mxc/Kconfig @@ -53,6 +53,12 @@ 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 + config HANNSTAR_CABC tristate "Hannstar CABC function" help diff --git a/drivers/video/fbdev/mxc/Makefile b/drivers/video/fbdev/mxc/Makefile index f63dc58a47f2..8b2e4361db9b 100644 --- a/drivers/video/fbdev/mxc/Makefile +++ b/drivers/video/fbdev/mxc/Makefile @@ -7,4 +7,5 @@ obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxc_dispdrv.o mxc_lcdif.o 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 obj-$(CONFIG_FB_MXS_SII902X) += mxsfb_sii902x.o +obj-$(CONFIG_FB_MXC_DCIC) += mxc_dcic.o obj-$(CONFIG_HANNSTAR_CABC) += hannstar_cabc.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..cae872a05f7f --- /dev/null +++ b/drivers/video/fbdev/mxc/mxc_dcic.c @@ -0,0 +1,592 @@ +/* + * 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