diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2010-12-24 18:29:01 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-24 06:05:25 -0800 |
commit | a3306d8b871c89475e6887806941a5b87990ca6c (patch) | |
tree | e8ec48f4ead1173e65a07785fc016fa8c7a9d129 /arch | |
parent | 121cf887ab7930d57ac4e41c72dead9464140e20 (diff) |
[ARM] tegra: ventana: push external gpios to board-ventana.h
the gpios external to the chip are getting used in different
files and are not located in a cental location. there is a chance
people would step onto each other's gpios.
Change-Id: I1ddf5b880c34105e4e11604c186be41e3cd9e5bc
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/14218
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.h b/arch/arm/mach-tegra/board-ventana.h index 7762b641bff4..de26323b6cf5 100644 --- a/arch/arm/mach-tegra/board-ventana.h +++ b/arch/arm/mach-tegra/board-ventana.h @@ -25,4 +25,18 @@ int ventana_panel_init(void); int ventana_sensors_init(void); int ventana_kbc_init(void); +/* external gpios */ + +/* TPS6586X gpios */ +#define TPS6586X_GPIO_BASE TEGRA_NR_GPIOS +#define AVDD_DSI_CSI_ENB_GPIO TPS6586X_GPIO_BASE + 1 /* gpio2 */ + +/* TCA6416 gpios */ +#define TCA6416_GPIO_BASE TEGRA_NR_GPIOS + 4 +#define CAM2_PWR_DN_GPIO TCA6416_GPIO_BASE + 4 /* gpio4 */ +#define CAM2_RST_L_GPIO TCA6416_GPIO_BASE + 5 /* gpio5 */ +#define CAM2_AF_PWR_DN_L_GPIO TCA6416_GPIO_BASE + 6 /* gpio6 */ +#define CAM2_LDO_SHUTDN_L_GPIO TCA6416_GPIO_BASE + 7 /* gpio7 */ +#define CAM2_I2C_MUX_RST_GPIO TCA6416_GPIO_BASE + 15 /* gpio15 */ + #endif |