v4l: add adv7183 decoder driver
PATCH v3 1/3 v4l: add adv7183 decoder driver
This driver is a v4l2 subdevice driver to support Analog Devices ADV7183 SDTV video decoder.
Signed-off-by Scott Jiang <[email protected]>
--- drivers/media/video/Kconfig | 10 + drivers/media/video/Makefile | 1 + drivers/media/video/adv7183.c | 699 ++++++++++++++++++++++++++++++++++++ drivers/media/video/adv7183_regs.h | 107 ++++++ include/media/adv7183.h | 47 +++ include/media/v4l2-chip-ident.h | 3 + 6 files changed, 867 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/adv7183.c create mode 100644 drivers/media/video/adv7183_regs.h create mode 100644 include/media/adv7183.h
drivers/media/video/Kconfig +10 -0
@@ -273,6 +273,16 @@ config VIDEO_ADV7180 To compile this driver as a module, choose M here: the module will be called adv7180. +config VIDEO_ADV7183 + tristate "Analog Devices ADV7183 decoder" + depends on VIDEO_V4L2 && I2C + ---help--- + V4l2 subdevice driver for the Analog Devices + ADV7183 video decoder. + + To compile this driver as a module, choose M here: the + module will be called adv7183. + config VIDEO_BT819 tristate "BT819A VideoStream decoder" depends on VIDEO_V4L2 && I2C
drivers/media/video/Makefile +1 -0
@@ -40,6 +40,7 @@ obj-$(CONFIG_VIDEO_SAA7191) += saa7191.o obj-$(CONFIG_VIDEO_ADV7170) += adv7170.o obj-$(CONFIG_VIDEO_ADV7175) += adv7175.o obj-$(CONFIG_VIDEO_ADV7180) += adv7180.o +obj-$(CONFIG_VIDEO_ADV7183) += adv7183.o obj-$(CONFIG_VIDEO_ADV7343) += adv7343.o obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o obj-$(CONFIG_VIDEO_BT819) += bt819.o
drivers/media/video/adv7183.c new file +699 -0
699 lines not on this page · raw message
drivers/media/video/adv7183_regs.h new file +107 -0
107 lines not on this page · raw message
include/media/adv7183.h new file +47 -0
47 lines not on this page · raw message
include/media/v4l2-chip-ident.h +3 -0
@@ -162,6 +162,9 @@ enum {/* module adv7180: just ident 7180 */ V4L2_IDENT_ADV7180 =7180 , +/* module adv7183: just ident 7183 */ +V4L2_IDENT_ADV7183 =7183 , +/* module saa7185: just ident 7185 */ V4L2_IDENT_SAA7185 = 7185,
Signature · 1 line
1.7.0.4
PATCH v3 3/3 v4l2: add blackfin capture bridge driver
This is a v4l2 bridge driver for Blackfin video capture device, support ppi and eppi interface.
Signed-off-by Scott Jiang <[email protected]>
--- drivers/media/video/Kconfig | 2 + drivers/media/video/Makefile | 2 + drivers/media/video/blackfin/Kconfig | 10 + drivers/media/video/blackfin/Makefile | 2 + drivers/media/video/blackfin/bfin_capture.c | 1059 +++++++++++++++++++++++++++ drivers/media/video/blackfin/ppi.c | 271 +++++++ include/media/blackfin/bfin_capture.h | 37 + include/media/blackfin/ppi.h | 74 ++ 8 files changed, 1457 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/blackfin/Kconfig create mode 100644 drivers/media/video/blackfin/Makefile create mode 100644 drivers/media/video/blackfin/bfin_capture.c create mode 100644 drivers/media/video/blackfin/ppi.c create mode 100644 include/media/blackfin/bfin_capture.h create mode 100644 include/media/blackfin/ppi.h
drivers/media/video/Kconfig +2 -0
@@ -871,6 +871,8 @@ source "drivers/media/video/davinci/Kconfig" source "drivers/media/video/omap/Kconfig" +source "drivers/media/video/blackfin/Kconfig" + config VIDEO_SH_VOU tristate "SuperH VOU video output driver" depends on VIDEO_DEV && ARCH_SHMOBILE
drivers/media/video/Makefile +2 -0
@@ -186,6 +186,8 @@ obj-$(CONFIG_VIDEO_SAMSUNG_S5P_TV) += s5p-tv/ obj-$(CONFIG_VIDEO_SAMSUNG_S5P_G2D) += s5p-g2d/ +obj-$(CONFIG_BLACKFIN) += blackfin/ + obj-$(CONFIG_ARCH_DAVINCI) += davinci/ obj-$(CONFIG_VIDEO_SH_VOU) += sh_vou.o
drivers/media/video/blackfin/Kconfig new file +10 -0
@@ -0,0 +1,10 @@ +config VIDEO_BLACKFIN_CAPTURE + tristate "Blackfin Video Capture Driver" + depends on VIDEO_V4L2 && BLACKFIN && I2C + select VIDEOBUF2_DMA_CONTIG + help + V4L2 bridge driver for Blackfin video capture device. + Choose PPI or EPPI as its interface. + + To compile this driver as a module, choose M here: the + module will be called bfin_video_capture.
drivers/media/video/blackfin/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +bfin_video_capture-objs := bfin_capture.o ppi.o +obj-$(CONFIG_VIDEO_BLACKFIN_CAPTURE) += bfin_video_capture.o
drivers/media/video/blackfin/bfin_capture.c new file +1059 -0
1,059 lines not on this page · raw message
drivers/media/video/blackfin/ppi.c new file +271 -0
271 lines not on this page · raw message
include/media/blackfin/bfin_capture.h new file +37 -0
@@ -0,0 +1,37 @@ +#ifndef _BFIN_CAPTURE_H_ +#define _BFIN_CAPTURE_H_ + +#include <linux/i2c.h> + +struct v4l2_input ; +struct ppi_info ; + +struct bcap_route { +u32 input; +u32 output; +}; + +struct bfin_capture_config { +/* card name */ +char *card_name; +/* inputs available at the sub device */ +struct v4l2_input *inputs; +/* number of inputs supported */ +int num_inputs; +/* routing information for each input */ +struct bcap_route *routes; +/* i2c bus adapter no */ +int i2c_adapter_id; +/* i2c subdevice board info */ +struct i2c_board_info board_info; +/* ppi board info */ +const struct ppi_info *ppi_info; +/* ppi control */ +unsigned long ppi_control; +/* ppi interrupt mask */ +u32 int_mask; +/* horizontal blanking clocks */ +int blank_clocks; +}; + +#endif
include/media/blackfin/ppi.h new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v3 2/3 v4l2: add vs6624 sensor driver
In reply to Scott JiangThis is a v4l2 sensor-level driver for the ST VS6624 camera.
Signed-off-by Scott Jiang <[email protected]>
--- drivers/media/video/Kconfig | 10 + drivers/media/video/Makefile | 1 + drivers/media/video/vs6624.c | 928 +++++++++++++++++++++++++++++++++++++ drivers/media/video/vs6624_regs.h | 337 ++++++++++++++ include/media/v4l2-chip-ident.h | 3 + 5 files changed, 1279 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/vs6624.c create mode 100644 drivers/media/video/vs6624_regs.h
drivers/media/video/Kconfig +10 -0
@@ -477,6 +477,16 @@ config VIDEO_OV7670 OV7670 VGA camera. It currently only works with the M88ALP01 controller. +config VIDEO_VS6624 + tristate "ST VS6624 sensor support" + depends on VIDEO_V4L2 && I2C + ---help--- + This is a Video4Linux2 sensor-level driver for the ST VS6624 + camera. + + To compile this driver as a module, choose M here: the + module will be called vs6624. + config VIDEO_MT9P031 tristate "Aptina MT9P031 support" depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
drivers/media/video/Makefile +1 -0
@@ -43,6 +43,7 @@ obj-$(CONFIG_VIDEO_ADV7180) += adv7180.o obj-$(CONFIG_VIDEO_ADV7183) += adv7183.o obj-$(CONFIG_VIDEO_ADV7343) += adv7343.o obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o +obj-$(CONFIG_VIDEO_VS6624) += vs6624.o obj-$(CONFIG_VIDEO_BT819) += bt819.o obj-$(CONFIG_VIDEO_BT856) += bt856.o obj-$(CONFIG_VIDEO_BT866) += bt866.o
drivers/media/video/vs6624.c new file +928 -0
928 lines not on this page · raw message
drivers/media/video/vs6624_regs.h new file +337 -0
337 lines not on this page · raw message
include/media/v4l2-chip-ident.h +3 -0
@@ -143,6 +143,9 @@ enum {/* module saa6588: just ident 6588 */ V4L2_IDENT_SAA6588 =6588 , +/* module vs6624: just ident 6624 */ +V4L2_IDENT_VS6624 =6624 , +/* module saa6752hs: reserved range 6750-6759 */ V4L2_IDENT_SAA6752HS =6752 , V4L2_IDENT_SAA6752HS_AC3 = 6753,
Signature · 1 line
1.7.0.4