From 5a0227ea12d228510110e55c3c1247f56dbf065a Mon Sep 17 00:00:00 2001 From: Fancy Fang Date: Fri, 4 Mar 2016 17:36:13 +0800 Subject: [PATCH] MLK-12509-3 video: mipi_dsi_samsung: add build support for TFT3P5079E panel. The 'otm8018b' is the Source Driver IC which is used by 'TFT3P5079E' panel. This patch is adding the build support for the 'otm8018b' kernel driver. Signed-off-by: Fancy Fang --- arch/arm/configs/imx_v7_defconfig | 1 + drivers/video/fbdev/mxc/Kconfig | 5 +++++ drivers/video/fbdev/mxc/Makefile | 1 + drivers/video/fbdev/mxc/mipi_dsi.h | 5 +++++ drivers/video/fbdev/mxc/mipi_dsi_samsung.c | 6 ++++++ 5 files changed, 18 insertions(+) diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig index 8eb3c388f9fd..e59a9ef9b03a 100644 --- a/arch/arm/configs/imx_v7_defconfig +++ b/arch/arm/configs/imx_v7_defconfig @@ -255,6 +255,7 @@ CONFIG_FB_MXC_SYNC_PANEL=y CONFIG_FB_MXC_MIPI_DSI=y CONFIG_FB_MXC_MIPI_DSI_SAMSUNG=y CONFIG_FB_MXC_TRULY_WVGA_SYNC_PANEL=y +CONFIG_FB_MXC_TRULY_PANEL_TFT3P5079E=y CONFIG_FB_MXC_LDB=y CONFIG_FB_MXC_HDMI=y CONFIG_FB_MXS_SII902X=y diff --git a/drivers/video/fbdev/mxc/Kconfig b/drivers/video/fbdev/mxc/Kconfig index 801da762ff34..daa68121b6fe 100644 --- a/drivers/video/fbdev/mxc/Kconfig +++ b/drivers/video/fbdev/mxc/Kconfig @@ -33,6 +33,11 @@ config FB_MXC_TRULY_WVGA_SYNC_PANEL depends on FB_MXC_SYNC_PANEL depends on FB_MXC_MIPI_DSI || FB_MXC_MIPI_DSI_SAMSUNG +config FB_MXC_TRULY_PANEL_TFT3P5079E + tristate "TRULY Panel TFT3P5079E" + depends on FB_MXC_SYNC_PANEL + depends on FB_MXC_MIPI_DSI_SAMSUNG + config FB_MXC_LDB tristate "MXC LDB" depends on FB_MXC_SYNC_PANEL diff --git a/drivers/video/fbdev/mxc/Makefile b/drivers/video/fbdev/mxc/Makefile index c91711c29142..0ea91ac92673 100644 --- a/drivers/video/fbdev/mxc/Makefile +++ b/drivers/video/fbdev/mxc/Makefile @@ -1,6 +1,7 @@ obj-$(CONFIG_FB_MXC_MIPI_DSI) += mipi_dsi.o obj-$(CONFIG_FB_MXC_MIPI_DSI_SAMSUNG) += mipi_dsi_samsung.o obj-$(CONFIG_FB_MXC_TRULY_WVGA_SYNC_PANEL) += mxcfb_hx8369_wvga.o +obj-$(CONFIG_FB_MXC_TRULY_PANEL_TFT3P5079E) += mxcfb_otm8018b_wvga.o obj-$(CONFIG_FB_MXC_LDB) += ldb.o obj-$(CONFIG_FB_MXC_HDMI) += mxc_hdmi.o obj-$(CONFIG_FB_MXC_EDID) += mxc_edid.o diff --git a/drivers/video/fbdev/mxc/mipi_dsi.h b/drivers/video/fbdev/mxc/mipi_dsi.h index 722ac6c2066b..22e471cf69c4 100644 --- a/drivers/video/fbdev/mxc/mipi_dsi.h +++ b/drivers/video/fbdev/mxc/mipi_dsi.h @@ -99,6 +99,11 @@ void mipid_hx8369_get_lcd_videomode(struct fb_videomode **mode, int *size, struct mipi_lcd_config **data); int mipid_hx8369_lcd_setup(struct mipi_dsi_info *); #endif +#ifdef CONFIG_FB_MXC_TRULY_PANEL_TFT3P5079E +void mipid_otm8018b_get_lcd_videomode(struct fb_videomode **mode, int *size, + struct mipi_lcd_config **data); +int mipid_otm8018b_lcd_setup(struct mipi_dsi_info *); +#endif #ifndef CONFIG_FB_MXC_TRULY_WVGA_SYNC_PANEL #error "Please configure MIPI LCD panel, we cannot find one!" diff --git a/drivers/video/fbdev/mxc/mipi_dsi_samsung.c b/drivers/video/fbdev/mxc/mipi_dsi_samsung.c index 553c0e83a7ea..2d52f8410ace 100644 --- a/drivers/video/fbdev/mxc/mipi_dsi_samsung.c +++ b/drivers/video/fbdev/mxc/mipi_dsi_samsung.c @@ -55,6 +55,12 @@ static struct mipi_dsi_match_lcd mipi_dsi_lcd_db[] = { "TRULY-WVGA", {mipid_hx8369_get_lcd_videomode, mipid_hx8369_lcd_setup} }, +#endif +#ifdef CONFIG_FB_MXC_TRULY_PANEL_TFT3P5079E + { + "TRULY-WVGA-TFT3P5079E", + {mipid_otm8018b_get_lcd_videomode, mipid_otm8018b_lcd_setup} + }, #endif { "", {NULL, NULL} -- 2.17.1