summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu-sensors.c
diff options
context:
space:
mode:
authorAnton Kondratenko <akondratenko@nvidia.com>2011-12-12 19:06:17 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-15 12:11:47 +0530
commite3794ce5d5d055f9e7939874297e0fe12e41e619 (patch)
tree47a1929d9489909618cd5d28d41d5f32355a8c0a /arch/arm/mach-tegra/board-cardhu-sensors.c
parenta1da5c8e3428f4cda1d545c093e08d65fea20f9a (diff)
ARM: tegra: cardhu: fix 5650 power on sequence
Since front and back right camera are multiplexed, back right camera needs to be selected on power on. Bug 890780 Change-Id: I6c9ecb95c42b3faedfede98b7e7de7e778d720b6 Signed-off-by: Anton Kondratenko <akondratenko@nvidia.com> Reviewed-on: http://git-master/r/69662 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-sensors.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-sensors.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-sensors.c b/arch/arm/mach-tegra/board-cardhu-sensors.c
index 8dbdb42ba2e4..e8c3b3326942 100644
--- a/arch/arm/mach-tegra/board-cardhu-sensors.c
+++ b/arch/arm/mach-tegra/board-cardhu-sensors.c
@@ -277,6 +277,9 @@ static struct i2c_board_info cardhu_i2c_board_info_e1214[] = {
static int cardhu_right_ov5650_power_on(void)
{
+ /* CSI-B and front sensor are muxed on cardhu */
+ gpio_direction_output(CAMERA_CSI_MUX_SEL_GPIO, 0);
+
/* Boards E1198 and E1291 are of Cardhu personality
* and donot have TCA6416 exp for camera */
if ((board_info.board_id == BOARD_E1198) ||
@@ -335,6 +338,9 @@ reg_alloc_fail:
static int cardhu_right_ov5650_power_off(void)
{
+ /* CSI-B and front sensor are muxed on cardhu */
+ gpio_direction_output(CAMERA_CSI_MUX_SEL_GPIO, 0);
+
/* Boards E1198 and E1291 are of Cardhu personality
* and donot have TCA6416 exp for camera */
if ((board_info.board_id == BOARD_E1198) ||
@@ -380,7 +386,7 @@ struct ov5650_platform_data cardhu_right_ov5650_data = {
static int cardhu_ov2710_power_on(void)
{
- /* CSI-B and front sensor are muxed on verbier */
+ /* CSI-B and front sensor are muxed on cardhu */
gpio_direction_output(CAMERA_CSI_MUX_SEL_GPIO, 1);
/* Boards E1198 and E1291 are of Cardhu personality
@@ -433,6 +439,7 @@ reg_alloc_fail:
static int cardhu_ov2710_power_off(void)
{
+ /* CSI-B and front sensor are muxed on cardhu */
gpio_direction_output(CAMERA_CSI_MUX_SEL_GPIO, 1);
/* Boards E1198 and E1291 are of Cardhu personality