Web lists-archives.org

Re: OmniVision OV9655 camera chip via soc-camera interface




On Mon, 14 Apr 2008, Stefan Herbrechtsmeier wrote:

> I'm writing a driver for the OmniVision OV9655 camera chip connected to a
> PXA270 processor. I based my work on the soc_camera interface, but I need some
> additional gpios for reset and power_enable. What is the best way to pass this
> information to the driver?

Look in pxa_camera.c, e.g., in pxa_camera_activate. There are function calls like

pxa_camera_activate(struct pxa_camera_dev *pcdev)
{
	struct pxacamera_platform_data *pdata = pcdev->pdata;

...

	pdata->power(pcdev->dev, 1);

...

	pdata->reset(pcdev->dev, 1);

in it, which should do exactly what you need. And they are supposed to be 
implemented in the platform, so, you have all the required GPIO 
information you need there. That is exactly the reason they are defined 
that way - because they were thought to be platform-dependent. Let me know 
if there's still anything missing. It is still a work in progress, so, we 
are flexible and can add any (reasonable) APIs we find useful.

Thanks
Guennadi
---
Guennadi Liakhovetski

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list