diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch new file mode 100644 index 00000000..c9dda1a9 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0028-omap3beagle-camera-Set-padconf-settings-in-cam-init.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From 9d152df885cb6f6874259d93df558e649f62774f Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergio Aguirre <saaguirre@ti.com> | ||
3 | Date: Fri, 25 Jun 2010 16:01:00 -0500 | ||
4 | Subject: [PATCH 28/75] omap3beagle: camera: Set padconf settings in cam init | ||
5 | |||
6 | Signed-off-by: Sergio Aguirre <saaguirre@ti.com> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-omap3beagle-camera.c | 35 ++++++++++++++++++++++++ | ||
9 | 1 files changed, 35 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 b0148d6..75471f2 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 | @@ -285,6 +286,40 @@ static int beagle_cam_remove(struct platform_device *pdev) | ||
24 | |||
25 | gpio_free(LEOPARD_RESET_GPIO); | ||
26 | |||
27 | + /* MUX init */ | ||
28 | + omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0, | ||
29 | + 0x10C); /* CAM_HS */ | ||
30 | + omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0, | ||
31 | + 0x10E); /* CAM_VS */ | ||
32 | + omap_ctrl_writew(OMAP_PIN_OUTPUT | OMAP_MUX_MODE0, | ||
33 | + 0x110); /* CAM_XCLKA */ | ||
34 | + omap_ctrl_writew(OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0, | ||
35 | + 0x112); /* CAM_PCLK */ | ||
36 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
37 | + 0x116); /* CAM_D0 */ | ||
38 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
39 | + 0x118); /* CAM_D1 */ | ||
40 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
41 | + 0x11A); /* CAM_D2 */ | ||
42 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
43 | + 0x11C); /* CAM_D3 */ | ||
44 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
45 | + 0x11E); /* CAM_D4 */ | ||
46 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
47 | + 0x120); /* CAM_D5 */ | ||
48 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
49 | + 0x122); /* CAM_D6 */ | ||
50 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
51 | + 0x124); /* CAM_D7 */ | ||
52 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
53 | + 0x126); /* CAM_D8 */ | ||
54 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
55 | + 0x128); /* CAM_D9 */ | ||
56 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
57 | + 0x12A); /* CAM_D10 */ | ||
58 | + omap_ctrl_writew(OMAP_PIN_INPUT | OMAP_MUX_MODE0, | ||
59 | + 0x12C); /* CAM_D11 */ | ||
60 | + | ||
61 | return 0; | ||
62 | } | ||
63 | |||
64 | -- | ||
65 | 1.6.6.1 | ||
66 | |||