Skip to contentSkip to conversation

video: support MIPI-DSI controller driver

PATCH Superseded Donghwa Lee 1 participant 1 message Dec 20, 2011

Subsystems (2)

v4 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 video: support MIPI-DSI controller driver

Samsung S5PC210 and EXYNOS SoC platform has MIPI-DSI controller and MIPI-DSI based LCD Panel could be used with it. This patch supports MIPI-DSI driver based Samsung SoC chip.

LCD panel driver based MIPI-DSI should be registered to MIPI-DSI driver at machine code and LCD panel driver specific function registered to mipi_dsim_ddi structure at lcd panel init function called system init.
In the MIPI-DSI driver, find lcd panel driver by using registered lcd panel name, and then initialize lcd panel driver.

Changes since v3:
- remove useless code

---
 drivers/video/Kconfig                 |    6 +
 drivers/video/Makefile                |    2 +
 drivers/video/s5p_mipi_dsi.c          |  620 ++++++++++++++++++++++
 drivers/video/s5p_mipi_dsi_common.c   |  902 +++++++++++++++++++++++++++++++++
 drivers/video/s5p_mipi_dsi_common.h   |   46 ++
 drivers/video/s5p_mipi_dsi_lowlevel.c |  627 +++++++++++++++++++++++
 drivers/video/s5p_mipi_dsi_lowlevel.h |  112 ++++
 drivers/video/s5p_mipi_dsi_regs.h     |  156 ++++++
 include/linux/mipi_dsim.h             |  361 +++++++++++++
 9 files changed, 2832 insertions(+), 0 deletions(-)
 create mode 100644 drivers/video/s5p_mipi_dsi.c
 create mode 100644 drivers/video/s5p_mipi_dsi_common.c
 create mode 100644 drivers/video/s5p_mipi_dsi_common.h
 create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.c
 create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.h
 create mode 100644 drivers/video/s5p_mipi_dsi_regs.h
 create mode 100644 include/linux/mipi_dsim.h
drivers/video/Kconfig +6 -0
index d83e967..bdc382e 100644
@@ -2082,6 +2082,12 @@ config FB_S3C2410_DEBUG
 	  Turn on debugging messages. Note that you can set/unset at run time
 	  through sysfs
 
+config S5P_MIPI_DSI
+	tristate "Samsung SoC MIPI-DSI support."
+	depends on FB_S3C && (ARCH_S5PV210 || ARCH_EXYNOS)
+	help
+	  This enables support for MIPI-DSI device.
+
 config FB_NUC900
         bool "NUC900 LCD framebuffer support"
         depends on FB && ARCH_W90X900
drivers/video/Makefile +2 -0
index 9b9d8ff..29eb7c9 100644
@@ -120,6 +120,8 @@ obj-$(CONFIG_FB_SH7760)		  += sh7760fb.o
 obj-$(CONFIG_FB_IMX)              += imxfb.o
 obj-$(CONFIG_FB_S3C)		  += s3c-fb.o
 obj-$(CONFIG_FB_S3C2410)	  += s3c2410fb.o
+obj-$(CONFIG_S5P_MIPI_DSI)	  += s5p_mipi_dsi.o s5p_mipi_dsi_common.o \
+				     s5p_mipi_dsi_lowlevel.o
 obj-$(CONFIG_FB_FSL_DIU)	  += fsl-diu-fb.o
 obj-$(CONFIG_FB_COBALT)           += cobalt_lcdfb.o
 obj-$(CONFIG_FB_PNX4008_DUM)	  += pnx4008/
drivers/video/s5p_mipi_dsi.c new file +620 -0

620 lines not on this page · raw message

drivers/video/s5p_mipi_dsi_common.c new file +902 -0

902 lines not on this page · raw message

drivers/video/s5p_mipi_dsi_common.h new file +46 -0

46 lines not on this page · raw message

drivers/video/s5p_mipi_dsi_lowlevel.c new file +627 -0

627 lines not on this page · raw message

drivers/video/s5p_mipi_dsi_lowlevel.h new file +112 -0

112 lines not on this page · raw message

drivers/video/s5p_mipi_dsi_regs.h new file +156 -0

156 lines not on this page · raw message

include/linux/mipi_dsim.h new file +361 -0

361 lines not on this page · raw message

Signature · 1 line
1.7.4.1