f2d6a256ece81870be762748ea87c17f1168f3c1
[openembedded.git] /
1 From 1326478d7bdb80f9d7d791e54eeead48ece93bff Mon Sep 17 00:00:00 2001
2 From: Sergio Aguirre <saaguirre@ti.com>
3 Date: Wed, 23 Jun 2010 15:03:24 -0500
4 Subject: [PATCH 13/75] DEBUG: omap3beagle: camera: Force mode0 in cam_xclka
5
6 Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 ---
8  arch/arm/mach-omap2/board-omap3beagle-camera.c |    3 +++
9  1 files changed, 3 insertions(+), 0 deletions(-)
10
11 diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
12 index 1652f15..77f9469 100644
13 --- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
14 +++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
15 @@ -34,6 +34,7 @@
16  
17  #include <plat/mux.h>
18  #include <plat/board.h>
19 +#include <plat/control.h>
20  
21  #include <media/v4l2-int-device.h>
22  #include <media/mt9t111.h>
23 @@ -160,6 +161,7 @@ static int mt9t111_power_set(struct v4l2_int_device *s, enum v4l2_power power)
24         switch (power) {
25         case V4L2_POWER_OFF:
26         case V4L2_POWER_STANDBY:
27 +               omap_ctrl_writew(0x0, 0x110); /* Control XCLKA output mux */
28                 isp_set_xclk(vdev->cam->isp, 0, CAM_USE_XCLKA);
29  
30                 if (regulator_is_enabled(beagle_mt9t111_reg1))
31 @@ -169,6 +171,7 @@ static int mt9t111_power_set(struct v4l2_int_device *s, enum v4l2_power power)
32                 break;
33  
34         case V4L2_POWER_ON:
35 +               omap_ctrl_writew(0x0, 0x110); /* Control XCLKA output mux */
36                 isp_set_xclk(vdev->cam->isp, MT9T111_CLK_MIN, CAM_USE_XCLKA);
37  
38  #if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
39 -- 
40 1.6.6.1
41