1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
From 7417633c6dbf657cf3778800d59e94a9b7bf6942 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Fri, 25 Jun 2010 16:01:00 -0500
Subject: [PATCH 28/75] omap3beagle: camera: Set padconf settings in cam init
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
arch/arm/mach-omap2/board-omap3beagle-camera.c | 35 ++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
index b0148d6..75471f2 100644
--- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
+++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
@@ -34,6 +34,7 @@
#include <plat/mux.h>
#include <plat/board.h>
+#include <plat/control.h>
#include <media/v4l2-int-device.h>
#include <media/mt9t111.h>
@@ -285,6 +286,40 @@ static int beagle_cam_remove(struct platform_device *pdev)
gpio_free(LEOPARD_RESET_GPIO);
+ /* MUX init */
+ omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0,
+ 0x10C); /* CAM_HS */
+ omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0,
+ 0x10E); /* CAM_VS */
+ omap_ctrl_writew(OMAP_PIN_OUTPUT | OMAP_MUX_MODE0,
+ 0x110); /* CAM_XCLKA */
+ omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0,
+ 0x112); /* CAM_PCLK */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x116); /* CAM_D0 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x118); /* CAM_D1 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x11A); /* CAM_D2 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x11C); /* CAM_D3 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x11E); /* CAM_D4 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x120); /* CAM_D5 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x122); /* CAM_D6 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x124); /* CAM_D7 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x126); /* CAM_D8 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x128); /* CAM_D9 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x12A); /* CAM_D10 */
+ omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0,
+ 0x12C); /* CAM_D11 */
+
return 0;
}
--
1.6.6.1
|