[media] V4L: Initial submit of OV9740 driver

This soc_camera driver is for Omnivision's OV9740 sensor.  This initial
submission provides support for YUV422 output at 1280x720 (720p), which is
the sensor's native resolution.  640x480 (VGA) is also supported, with
cropping and scaling performed by the sensor's ISP.

This driver is heavily based off of the existing OV9640 driver.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Andrew Chew 2011-02-17 19:14:33 -03:00 committed by Mauro Carvalho Chehab
parent 787d0f9d5c
commit 9bd060e492
4 changed files with 1017 additions and 0 deletions

View File

@ -838,6 +838,12 @@ config SOC_CAMERA_OV9640
help help
This is a ov9640 camera driver This is a ov9640 camera driver
config SOC_CAMERA_OV9740
tristate "ov9740 camera support"
depends on SOC_CAMERA && I2C
help
This is a ov9740 camera driver
config MX1_VIDEO config MX1_VIDEO
bool bool

View File

@ -79,6 +79,7 @@ obj-$(CONFIG_SOC_CAMERA_OV2640) += ov2640.o
obj-$(CONFIG_SOC_CAMERA_OV6650) += ov6650.o obj-$(CONFIG_SOC_CAMERA_OV6650) += ov6650.o
obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o
obj-$(CONFIG_SOC_CAMERA_OV9640) += ov9640.o obj-$(CONFIG_SOC_CAMERA_OV9640) += ov9640.o
obj-$(CONFIG_SOC_CAMERA_OV9740) += ov9740.o
obj-$(CONFIG_SOC_CAMERA_RJ54N1) += rj54n1cb0c.o obj-$(CONFIG_SOC_CAMERA_RJ54N1) += rj54n1cb0c.o
obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o

1009
drivers/media/video/ov9740.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -75,6 +75,7 @@ enum {
V4L2_IDENT_OV9640 = 257, V4L2_IDENT_OV9640 = 257,
V4L2_IDENT_OV6650 = 258, V4L2_IDENT_OV6650 = 258,
V4L2_IDENT_OV2640 = 259, V4L2_IDENT_OV2640 = 259,
V4L2_IDENT_OV9740 = 260,
/* module saa7146: reserved range 300-309 */ /* module saa7146: reserved range 300-309 */
V4L2_IDENT_SAA7146 = 300, V4L2_IDENT_SAA7146 = 300,