v4l: Add MPC5121e VIU video capture driver
PATCH 1/1 v4l: Add MPC5121e VIU video capture driver
From: Hongjun Chen <[email protected]>
Adds support for Video-In (VIU) unit of MPC5121e. The driver supports RGB888/RGB565 formats, capture and overlay on MPC5121e DIU frame buffer.
---
Please consider this driver for inclusion in 2.6.36. Thanks!
drivers/media/video/Kconfig | 12 + drivers/media/video/Makefile | 1 + drivers/media/video/fsl-viu.c | 1620 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1633 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/fsl-viu.c
drivers/media/video/Kconfig +12 -0
@@ -557,6 +557,18 @@ config VIDEO_DAVINCI_VPIF To compile this driver as a module, choose M here: the module will be called vpif. +config VIDEO_VIU + tristate "Freescale VIU Video Driver" + depends on VIDEO_V4L2 && PPC_MPC512x + select VIDEOBUF_DMA_CONTIG + default y + ---help--- + Support for Freescale VIU video driver. This device captures + video data, or overlays video on DIU frame buffer. + + Say Y here if you want to enable VIU device on MPC5121e Rev2+. + In doubt, say N. + config VIDEO_VIVI tristate "Virtual Video Driver" depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64 && FONTS
drivers/media/video/Makefile +1 -0
@@ -151,6 +151,7 @@ obj-$(CONFIG_USB_S2255) += s2255drv.o obj-$(CONFIG_VIDEO_IVTV) += ivtv/ obj-$(CONFIG_VIDEO_CX18) += cx18/ +obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o obj-$(CONFIG_VIDEO_VIVI) += vivi.o obj-$(CONFIG_VIDEO_MEM2MEM_TESTDEV) += mem2mem_testdev.o obj-$(CONFIG_VIDEO_CX23885) += cx23885/
drivers/media/video/fsl-viu.c new file +1620 -0
1,620 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v2 1/1 v4l: Add MPC5121e VIU video capture driver
Adds support for Video-In (VIU) unit of Freescale MPC5121e. The driver supports RGB888/RGB565 formats, capture and overlay on MPC5121e DIU frame buffer.
---
Please review and consider for inclusion in 2.6.36. Thanks!
Changes since first patch version:
- fixed problems with DMA auto-deinterlace while capturing
- reworked and simplified interrupt handler
- moved a number of global variables into driver's private structure
- reworked and simplified overlay enable code
- reworked viu_dma_stop() to ensure the DMA transfer really stops after calling
drivers/media/video/Kconfig | 12 + drivers/media/video/Makefile | 1 + drivers/media/video/fsl-viu.c | 1632 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1645 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/fsl-viu.c
drivers/media/video/Kconfig +12 -0
@@ -557,6 +557,18 @@ config VIDEO_DAVINCI_VPIF To compile this driver as a module, choose M here: the module will be called vpif. +config VIDEO_VIU + tristate "Freescale VIU Video Driver" + depends on VIDEO_V4L2 && PPC_MPC512x + select VIDEOBUF_DMA_CONTIG + default y + ---help--- + Support for Freescale VIU video driver. This device captures + video data, or overlays video on DIU frame buffer. + + Say Y here if you want to enable VIU device on MPC5121e Rev2+. + In doubt, say N. + config VIDEO_VIVI tristate "Virtual Video Driver" depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64 && FONTS
drivers/media/video/Makefile +1 -0
@@ -151,6 +151,7 @@ obj-$(CONFIG_USB_S2255) += s2255drv.o obj-$(CONFIG_VIDEO_IVTV) += ivtv/ obj-$(CONFIG_VIDEO_CX18) += cx18/ +obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o obj-$(CONFIG_VIDEO_VIVI) += vivi.o obj-$(CONFIG_VIDEO_MEM2MEM_TESTDEV) += mem2mem_testdev.o obj-$(CONFIG_VIDEO_CX23885) += cx23885/
drivers/media/video/fsl-viu.c new file +1632 -0
1,632 lines not on this page · raw message
Signature · 1 line
1.7.0.4