summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
new file mode 100644
index 00000000..24fb458a
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0074-Move-sensor-rest-to-after-applying-power.patch
@@ -0,0 +1,65 @@
1From f68eb83d33624b83b4ddd77daf3966de686ffaf0 Mon Sep 17 00:00:00 2001
2From: Steve Kipisz <s-kipisz2@ti.com>
3Date: Thu, 5 Aug 2010 10:51:11 -0500
4Subject: [PATCH 74/75] Move sensor rest to after applying power.
5
6---
7 arch/arm/mach-omap2/board-omap3beagle-camera.c | 12 ++++++++----
8 1 files changed, 8 insertions(+), 4 deletions(-)
9
10diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
11index c0218e3..110c2c9 100644
12--- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
13+++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
14@@ -160,8 +160,6 @@ static int mt9v113_power_set(struct v4l2_int_device *s, enum v4l2_power power)
15 case V4L2_POWER_ON:
16
17 isp_configure_interface(vdev->cam->isp, &mt9v113_if_config);
18- /* Set RESET_BAR to 0 */
19- gpio_set_value(LEOPARD_RESET_GPIO, 0);
20
21 /* turn on VDD */
22 regulator_enable(cam_1v8_reg);
23@@ -170,6 +168,9 @@ static int mt9v113_power_set(struct v4l2_int_device *s, enum v4l2_power power)
24 regulator_enable(cam_2v8_reg);
25 mdelay(50);
26
27+ /* Set RESET_BAR to 0 */
28+ gpio_set_value(LEOPARD_RESET_GPIO, 0);
29+
30 /* Enable EXTCLK */
31 isp_set_xclk(vdev->cam->isp, MT9V113_CLK_MIN*2, CAM_USE_XCLKA);
32 /*
33@@ -177,8 +178,10 @@ static int mt9v113_power_set(struct v4l2_int_device *s, enum v4l2_power power)
34 * ((1000000 * 70) / 6000000) = aprox 12 us.
35 */
36 udelay(12);
37+
38 /* Set RESET_BAR to 1 */
39 gpio_set_value(LEOPARD_RESET_GPIO, 1);
40+
41 /*
42 * Wait at least 100 CLK cycles (w/EXTCLK = 6MHz, or CLK_MIN):
43 * ((1000000 * 100) / 6000000) = aprox 17 us.
44@@ -317,8 +320,6 @@ static int mt9t112_power_set(struct v4l2_int_device *s, enum v4l2_power power)
45 isp_configure_interface(vdev->cam->isp, &mt9t112_if_config);
46 #endif
47
48- /* Set RESET_BAR to 0 */
49- gpio_set_value(LEOPARD_RESET_GPIO, 0);
50
51 /* turn on VDD */
52 regulator_enable(cam_1v8_reg);
53@@ -330,6 +331,9 @@ static int mt9t112_power_set(struct v4l2_int_device *s, enum v4l2_power power)
54
55 mdelay(50);
56
57+ /* Set RESET_BAR to 0 */
58+ gpio_set_value(LEOPARD_RESET_GPIO, 0);
59+
60 /* Enable EXTCLK */
61 isp_set_xclk(vdev->cam->isp, 24000000, CAM_USE_XCLKA);
62
63--
641.6.6.1
65