mx2_camera: Fix regression caused by clock conversion
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 30 Oct 2012 12:03:26 +0000 (10:03 -0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 16 Nov 2012 15:21:49 +0000 (16:21 +0100)
commit376aaac1837af8ed6c1014958396322c44306cbf
tree7fc0ac19856b0d0750462277f141a685c5730924
parent6efc782362b4e869bfd71d801020c8641abdbd1f
mx2_camera: Fix regression caused by clock conversion

Since mx27 transitioned to the commmon clock framework in 3.5, the correct way
to acquire the csi clock is to get csi_ahb and csi_per clocks separately.

By not doing so the camera sensor does not probe correctly:

soc-camera-pdrv soc-camera-pdrv.0: Probing soc-camera-pdrv.0
mx2-camera mx2-camera.0: Camera driver attached to camera 0
ov2640 0-0030: Product ID error fb:fb
mx2-camera mx2-camera.0: Camera driver detached from camera 0
mx2-camera mx2-camera.0: MX2 Camera (CSI) driver probed, clock frequency: 66500000

Adapt the mx2_camera driver to the new clock framework and make it functional
again.

Tested-by: Gaƫtan Carlier <gcembed@gmail.com>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/mx2_camera.c
This page took 0.032148 seconds and 5 git commands to generate.