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 @@ +From 9d152df885cb6f6874259d93df558e649f62774f 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 + |