Add ovcamchip driver
PATCH 1/1 Add ovcamchip driver
This patch adds a new driver for the OmniVision OV6xx0 and OV7xx0 series of CMOS image sensors. It is currently used by the w9968cf USB webcam driver, which is already in mainline 2.6. Up until now it had to be compiled outside the kernel tree, which is clearly suboptimal.
It is also used by version 2 of the ov511 USB webcam driver, which will be merged in the near future. That will reduce some code duplication, since the existing ov511 has much of this code built-in.
This was previously submitted to Linux-USB-Devel, and I have fixed the concerns that came up at that time.
The patch is tested on 2.6.7 but compiles cleanly on 2.6.6-rc3-mm2.
Affected files:
drivers/media/video/Kconfig | 11
drivers/media/video/Makefile | 1
drivers/media/video/ovcamchip/Makefile | 4
drivers/media/video/ovcamchip/ov6x20.c | 415 ++++++++++++++++++++++
drivers/media/video/ovcamchip/ov6x30.c | 374 ++++++++++++++++++++
drivers/media/video/ovcamchip/ov76be.c | 303 ++++++++++++++++
drivers/media/video/ovcamchip/ov7x10.c | 335 ++++++++++++++++++
drivers/media/video/ovcamchip/ov7x20.c | 455 +++++++++++++++++++++++++
drivers/media/video/ovcamchip/ovcamchip_core.c | 446 ++++++++++++++++++++++++
drivers/media/video/ovcamchip/ovcamchip_priv.h | 87 ++++
include/media/ovcamchip.h | 104 +++++
11 files changed, 2535 insertions(+)Developer's Certificate of Origin 1.0
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
Signature · 2 lines
Mark McClelland [email protected]
drivers/media/video/Kconfig +11 -0
@@ -295,5 +295,16 @@ To compile this driver as a module, choose M here: the module will be called cx8800 +config VIDEO_OVCAMCHIP + tristate "OmniVision Camera Chip support" + depends on VIDEO_DEV && I2C + ---help--- + Support for the OmniVision OV6xxx and OV7xxx series of camera chips. + This driver is intended to be used with the ov511 and w9968cf USB + camera drivers. + + To compile this driver as a module, choose M here: the + module will be called ovcamchip + endmenu
drivers/media/video/Makefile +1 -0
@@ -37,6 +37,7 @@ obj-$(CONFIG_VIDEO_MEYE) += meye.o obj-$(CONFIG_VIDEO_SAA7134) += saa7134/ obj-$(CONFIG_VIDEO_CX88) += cx88/ +obj-$(CONFIG_VIDEO_OVCAMCHIP) += ovcamchip/ obj-$(CONFIG_VIDEO_MXB) += saa7111.o tuner.o tda9840.o tea6415c.o tea6420.o mxb.o obj-$(CONFIG_VIDEO_HEXIUM_ORION) += hexium_orion.o obj-$(CONFIG_VIDEO_HEXIUM_GEMINI) += hexium_gemini.o
drivers/media/video/ovcamchip/Makefile +4 -0
@@ -0,0 +1,4 @@ +ovcamchip-objs := ovcamchip_core.o ov6x20.o ov6x30.o ov7x10.o ov7x20.o \ + ov76be.o + +obj-$(CONFIG_VIDEO_OVCAMCHIP) += ovcamchip.o
drivers/media/video/ovcamchip/ov6x20.c +415 -0
415 lines not on this page · raw message
drivers/media/video/ovcamchip/ov6x30.c +374 -0
374 lines not on this page · raw message
drivers/media/video/ovcamchip/ov76be.c +303 -0
303 lines not on this page · raw message
drivers/media/video/ovcamchip/ov7x10.c +335 -0
335 lines not on this page · raw message
drivers/media/video/ovcamchip/ov7x20.c +455 -0
455 lines not on this page · raw message
drivers/media/video/ovcamchip/ovcamchip_core.c +446 -0
446 lines not on this page · raw message
drivers/media/video/ovcamchip/ovcamchip_priv.h +87 -0
87 lines not on this page · raw message
include/media/ovcamchip.h +104 -0
104 lines not on this page · raw message