summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2016-03-04 17:36:13 +0800
committerFrank Li <Frank.Li@nxp.com>2016-05-23 14:59:01 -0500
commita49b61130e467cc3980bd5d6db404610976eebc7 (patch)
treede0bdcfcb8af49d615eaa780d3ed1a1c84b9ce08
parent00382217e80e04e0d234257f4d860c6a5124a94e (diff)
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 <chen.fang@nxp.com>
-rw-r--r--arch/arm/configs/imx_v7_defconfig1
-rw-r--r--drivers/video/fbdev/mxc/Kconfig5
-rw-r--r--drivers/video/fbdev/mxc/Makefile1
-rw-r--r--drivers/video/fbdev/mxc/mipi_dsi.h5
-rw-r--r--drivers/video/fbdev/mxc/mipi_dsi_samsung.c6
5 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig
index 14931e9cd31c..aaed5b2539b7 100644
--- a/arch/arm/configs/imx_v7_defconfig
+++ b/arch/arm/configs/imx_v7_defconfig
@@ -254,6 +254,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
@@ -56,6 +56,12 @@ static struct mipi_dsi_match_lcd mipi_dsi_lcd_db[] = {
{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}
}