summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.h
diff options
context:
space:
mode:
authorPrayas Mohanty <pmohanty@nvidia.com>2011-02-11 00:05:42 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:51:36 -0700
commit1e7aa676fbf6cb16cf15a888ff9d799666c1daa3 (patch)
treea981b340784ccc56b35200d4b3c8307e962599cf /arch/arm/mach-tegra/board-cardhu.h
parent663558b89dc7ea4a5a5565c28ebfdaab1504afbe (diff)
arm: tegra: cardhu: bringup of OV5650 on T30
Code changes in the kernel for bringup of camera on T30 on verbier and cardhu. bug 787230 Original-Change-Id: I6100cdddc14468c17ee44c6f83cb49192e578df1 Reviewed-on: http://git-master/r/18075 Tested-by: Prayas Mohanty <pmohanty@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Change-Id: If995c6b796c161ffc4b4e232cc9d3cfd23c63995
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.h')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h
index 822f3ba7f55e..5b4529f0b867 100644
--- a/arch/arm/mach-tegra/board-cardhu.h
+++ b/arch/arm/mach-tegra/board-cardhu.h
@@ -62,6 +62,34 @@
#define PMU_TCA6416_GPIO_PORT17 (PMU_TCA6416_GPIO_BASE + 15)
#define PMU_TCA6416_GPIO_END (PMU_TCA6416_GPIO_BASE + 16)
+/* CAM_TCA6416 GPIOs */
+#define CAM_TCA6416_GPIO_BASE PMU_TCA6416_GPIO_END
+#define CAM1_PWR_DN_GPIO CAM_TCA6416_GPIO_BASE + 0
+#define CAM1_RST_L_GPIO CAM_TCA6416_GPIO_BASE + 1
+#define CAM1_AF_PWR_DN_L_GPIO CAM_TCA6416_GPIO_BASE + 2
+#define CAM1_LDO_SHUTDN_L_GPIO CAM_TCA6416_GPIO_BASE + 3
+#define CAM2_PWR_DN_GPIO CAM_TCA6416_GPIO_BASE + 4
+#define CAM2_RST_L_GPIO CAM_TCA6416_GPIO_BASE + 5
+#define CAM2_AF_PWR_DN_L_GPIO CAM_TCA6416_GPIO_BASE + 6
+#define CAM2_LDO_SHUTDN_L_GPIO CAM_TCA6416_GPIO_BASE + 7
+#define CAM_FRONT_PWR_DN_GPIO CAM_TCA6416_GPIO_BASE + 8
+#define CAM_FRONT_RST_L_GPIO CAM_TCA6416_GPIO_BASE + 9
+#define CAM_FRONT_AF_PWR_DN_L_GPIO CAM_TCA6416_GPIO_BASE + 10
+#define CAM_FRONT_LDO_SHUTDN_L_GPIO CAM_TCA6416_GPIO_BASE + 11
+#define CAM_FRONT_LED_EXP CAM_TCA6416_GPIO_BASE + 12
+#define CAM_SNN_LED_REAR_EXP CAM_TCA6416_GPIO_BASE + 13
+/* PIN 19 NOT USED and is reserved */
+#define CAM_NOT_USED CAM_TCA6416_GPIO_BASE + 14
+#define CAM_I2C_MUX_RST_EXP CAM_TCA6416_GPIO_BASE + 15
+#define CAM_TCA6416_GPIO_END CAM_TCA6416_GPIO_BASE + 16
+
+/* CAMERA RELATED GPIOs */
+#define OV5650_RESETN_GPIO TEGRA_GPIO_PBB0
+#define CAM1_POWER_DWN_GPIO TEGRA_GPIO_PBB5
+#define CAMERA_CSI_CAM_SEL_GPIO TEGRA_GPIO_PBB4
+#define CAMERA_CSI_MUX_SEL_GPIO TEGRA_GPIO_PCC1
+#define CAM1_LDO_EN_GPIO TEGRA_GPIO_PR6
+
/* PCA954x I2C bus expander bus addresses */
#define PCA954x_I2C_BUS_BASE 6
#define PCA954x_I2C_BUS0 (PCA954x_I2C_BUS_BASE + 0)