From 8ece4d6cbc52b7a41d1feb411d62c84cebc1e9fe Mon Sep 17 00:00:00 2001 From: Sergio Aguirre Date: Fri, 25 Jun 2010 16:01:00 -0500 Subject: [PATCH 28/71] omap3beagle: camera: Set padconf settings in cam init Signed-off-by: Sergio Aguirre --- 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 #include +#include #include #include @@ -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