Another OV7670 Soc-camera driver
RFC 1/1 Another OV7670 Soc-camera driver
Hi All,
seems everybody has their own OV7670 driver... I have one written from scratch too.
It is written using Omnivision user manual, application note, and register reference settings. Omnivision provides settings arrays for every resolution (VGA, QVGA, QQVGA, CIF, QCIF).
This driver has lot of harcoded magic numbers. Of course OV7670 has lot of undocumented mystery and strange bugs. Maybe my work could be useful merging all available OV7670 drivers into single one.
This driver is tested with MXLADS v2.0 board.
So there it is:
---
From: Darius Augulis <[email protected]>
Soc camera driver for OV7670 sensor from OMNIVISION.
drivers/media/video/Kconfig +7 -0
@@ -779,6 +779,13 @@ config SOC_CAMERA_OV772X help This is a ov772x camera driver +config SOC_CAMERA_OV7670 + tristate "ov7670 support" + depends on SOC_CAMERA && I2C + help + This is a driver for OmniVision OV7670 VGA camera. + It currently only works with SoC Camera interface. + config VIDEO_PXA27x tristate "PXA27x Quick Capture Interface driver" depends on VIDEO_DEV && PXA27x && SOC_CAMERA
drivers/media/video/Makefile +2 -1
@@ -104,7 +104,7 @@ obj-$(CONFIG_VIDEO_UPD64083) += upd64083 obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o obj-$(CONFIG_VIDEO_CAFE_CCIC) += cafe_ccic.o -obj-$(CONFIG_VIDEO_OV7670) += ov7670.o +obj-$(CONFIG_VIDEO_OV7670) += ov7670.o obj-$(CONFIG_VIDEO_TCM825X) += tcm825x.o
@@ -144,6 +144,7 @@ obj-$(CONFIG_SOC_CAMERA_MT9M111) += mt9m obj-$(CONFIG_SOC_CAMERA_MT9T031) += mt9t031.o obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o +obj-$(CONFIG_SOC_CAMERA_OV7670) += ov7670_soc.o obj-$(CONFIG_SOC_CAMERA_PLATFORM) += soc_camera_platform.o obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o
drivers/media/video/ov7670_soc.c new file +1411 -0
1,411 lines not on this page · raw message
Quoted 10 lines · On Tue, 24 Mar 2009 09:36:35 +0200 Darius <[email protected]> wrote:
Hi All,
seems everybody has their own OV7670 driver... I have one written from scratch too.
It is written using Omnivision user manual, application note, and register reference settings. Omnivision provides settings arrays for every resolution (VGA, QVGA, QQVGA, CIF, QCIF).
This driver has lot of harcoded magic numbers. Of course OV7670 has lot of undocumented mystery and strange bugs. Maybe my work could be useful merging all available OV7670 drivers into single one.
This driver is tested with MXLADS v2.0 board.So there it is:
Well, now, we have 3 drivers for the same device...
We should really try to merge those three into one. AFAIK, Jonathan driver were also written using the Omnivision docs.
Cheers,
Mauro
OV7670 Soc-camera driver (anyone else want to merge versions?)
Hi All,
The email is mainly in the interests of avoiding wasting time.
I'm currently updating the driver I posted alongside Guennadi's soc-camera changes with the intention to also merge features from the 3 drivers that are out there.
Unsurprisingly they all have different feature sets at the moment and ideally we want to support everything the individual drivers do.
Is anyone else doing or aiming to do the same?
Thanks,
---
Jonathan Cameron