summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2011-04-29 14:33:57 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-05-02 18:04:31 -0700
commitc53b7eb26bee96fd7927e94848055af94baa831b (patch)
tree3660ac32ebcbd6d246f57fe915b2bcb9a6eeac1c
parente6354059de6a1231bf340753657bbb4ef16c17a0 (diff)
arm: tegra: ventana: deselect pca9546 i2c mux channel on exit
On ventana, pca9546 is used as a mux for 0v2710/ov5650 camera sensors. With UJA0H14 version of ov5650 sensor, it is observed that pca9546 driver incorrectly caches last channel when VDDIO_CAM is toggled while enabling/disabling tegra camera. Deselect i2c mux channel on exit so that i2c mux is correctly configured with new mux channel. BUG 812134 (cherry picked from commit 2d62e589c0bd933db846d4b8f9fe4f2116bef8ad) Change-Id: Id249bbeb33c370b8fc5360af33bdefecfd62a48a Reviewed-on: http://git-master/r/29811 Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-ventana-sensors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sensors.c b/arch/arm/mach-tegra/board-ventana-sensors.c
index 03c2a038b990..6bc3d7d38bcd 100644
--- a/arch/arm/mach-tegra/board-ventana-sensors.c
+++ b/arch/arm/mach-tegra/board-ventana-sensors.c
@@ -264,9 +264,9 @@ static struct pca953x_platform_data ventana_tca6416_data = {
};
static struct pca954x_platform_mode ventana_pca9546_modes[] = {
- { .adap_id = 6, }, /* REAR CAM1 */
- { .adap_id = 7, }, /* REAR CAM2 */
- { .adap_id = 8, }, /* FRONT CAM3 */
+ { .adap_id = 6, .deselect_on_exit = 1 }, /* REAR CAM1 */
+ { .adap_id = 7, .deselect_on_exit = 1 }, /* REAR CAM2 */
+ { .adap_id = 8, .deselect_on_exit = 1 }, /* FRONT CAM3 */
};
static struct pca954x_platform_data ventana_pca9546_data = {