summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2010-08-03 11:37:55 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-09 04:43:03 +0200
commitd86097e19cef2f13a29fc37db0dad17b99b6d5f8 (patch)
treec297017ada31f861c452f7dd1b0a2abf50540741 /drivers/media
parentV4L/DVB: mx2_camera: fix for list bufnum in frame_done_emma (diff)
downloadlinux-d86097e19cef2f13a29fc37db0dad17b99b6d5f8.tar.xz
linux-d86097e19cef2f13a29fc37db0dad17b99b6d5f8.zip
V4L/DVB: mx2_camera: add rising edge for pixclock
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/mx2_camera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c
index 8441ecac6b18..66ff174151b5 100644
--- a/drivers/media/video/mx2_camera.c
+++ b/drivers/media/video/mx2_camera.c
@@ -785,6 +785,8 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd,
if (ret < 0)
return ret;
+ if (common_flags & SOCAM_PCLK_SAMPLE_RISING)
+ csicr1 |= CSICR1_REDGE;
if (common_flags & SOCAM_PCLK_SAMPLE_FALLING)
csicr1 |= CSICR1_INV_PCLK;
if (common_flags & SOCAM_VSYNC_ACTIVE_HIGH)