From b11c479baad886ba2ee355c5228c918d6d2c640b Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Mon, 24 Jan 2011 17:29:38 +0530 Subject: [arm] tegra: cardhu: Adding gpio power rails and supplies. Adding gpio controlled power rails and their consumers. Also adding the details of gpio to control the rails through gpios. Original-Change-Id: I6f203978fc0c4c2a761132bc0074513cc2a34000 Reviewed-on: http://git-master/r/16728 Reviewed-by: Laxman Dewangan Tested-by: Laxman Dewangan Reviewed-by: Scott Williams Original-Change-Id: Ifcbcd03fb4994e9b30a60cb272564bc3bb81b159 Rebase-Id: R1333066d9238b898335d3c625f7164af57837e73 --- arch/arm/mach-tegra/board-cardhu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/arm/mach-tegra/board-cardhu.h') diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h index 84107514dfc4..d1c752d7a1db 100644 --- a/arch/arm/mach-tegra/board-cardhu.h +++ b/arch/arm/mach-tegra/board-cardhu.h @@ -24,6 +24,15 @@ #include #define TPS6591X_GPIO_BASE TEGRA_NR_GPIOS +#define TPS6591X_GPIO_GP0 (TPS6591X_GPIO_BASE + 0) +#define TPS6591X_GPIO_GP1 (TPS6591X_GPIO_BASE + 1) +#define TPS6591X_GPIO_GP2 (TPS6591X_GPIO_BASE + 2) +#define TPS6591X_GPIO_GP3 (TPS6591X_GPIO_BASE + 3) +#define TPS6591X_GPIO_GP4 (TPS6591X_GPIO_BASE + 4) +#define TPS6591X_GPIO_GP5 (TPS6591X_GPIO_BASE + 5) +#define TPS6591X_GPIO_GP6 (TPS6591X_GPIO_BASE + 6) +#define TPS6591X_GPIO_GP7 (TPS6591X_GPIO_BASE + 7) +#define TPS6591X_GPIO_GP8 (TPS6591X_GPIO_BASE + 8) /* PCA954x I2C bus expander bus addresses */ #define PCA954x_I2C_BUS_BASE 6 @@ -42,5 +51,6 @@ int cardhu_sensors_init(void); int cardhu_kbc_init(void); int cardhu_scroll_init(void); int cardhu_keys_init(void); +int cardhu_gpio_switch_regulator_init(void); #endif -- cgit v1.2.3