]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (10075): pxa-camera: setup the FIFO inactivity time-out register
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Dec 2008 14:38:03 +0000 (11:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:19 +0000 (09:40 -0200)
commitcf34cba78d0e0a7244bd7f11addb4d971293fb30
treec7478141810e57e31c47503fbc9c02683f71869f
parenta9bef518cd78d569a3ff0b1ac2afa5e2d8b3573a
V4L/DVB (10075): pxa-camera: setup the FIFO inactivity time-out register

Using PXA270's FIFO inactivity time-out register (CITOR) reduces FIFO overruns.
The time-out is calculated in CICLK / LCDCLK ticks and has to be longer than
one pixel time. For this we have to know the pixel clock frequency, which
usually is provided by the camera. We use the struct soc_camera_sense to
request PCLK frequency from the camera driver upon each data format change.

Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pxa_camera.c