summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-harmony.h
diff options
context:
space:
mode:
authorPreetham Chandru <pchandru@nvidia.com>2011-11-29 17:53:13 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 16:54:46 +0530
commitb9acd4bb941790c9e654e031d9818b35e74b0256 (patch)
tree3f120570abcb5d73edfca274934892eb4067b715 /arch/arm/mach-tegra/board-harmony.h
parentd6f914ce0a6043b8fcbe642b826eeea3a4d3d4cf (diff)
tegra: harmony: wifi: add board support for WiFi
The SDIO WiFi module requires power from external PMU and 1.2V regulator. The module gets powered on if - (1) all power sources are enabled, and (2) power (down) and reset (down) pins are enabled as per spec. To enable mmc/SDIO driver to detect the WiFi hardware, the WiFi chip has to be powered-up before mmc driver does probing. So, steps should be as following: (1) required regulators are on, (2) power/reset of WiFi are enabled, (3) mmc does probing. Later time, when WiFi driver module is loaded and registers with SDIO, the SDIO driver knows which H/W the driver has to be associated with. Bug: 908534 Change-Id: I6510bced5fa9b8b3314c00180f2694903b23145c Reviewed-on: http://git-master/r/#change,47808,patchset=2 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-on: http://git-master/r/67121 Reviewed-by: Mursalin Akon <makon@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony.h')
-rw-r--r--arch/arm/mach-tegra/board-harmony.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.h b/arch/arm/mach-tegra/board-harmony.h
index 618c336257be..c7a081dfe3b9 100644
--- a/arch/arm/mach-tegra/board-harmony.h
+++ b/arch/arm/mach-tegra/board-harmony.h
@@ -31,6 +31,15 @@
#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2
#define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PX0
#define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PX1
+/* fixed voltage regulator enable/mode gpios */
+#define TPS_GPIO_EN_1V5 (HARMONY_GPIO_TPS6586X(0))
+#define TPS_GPIO_EN_1V2 (HARMONY_GPIO_TPS6586X(1))
+#define TPS_GPIO_EN_1V05 (HARMONY_GPIO_TPS6586X(2))
+#define TPS_GPIO_MODE_1V05 (HARMONY_GPIO_TPS6586X(3))
+
+/* WLAN pwr and reset gpio */
+#define TEGRA_GPIO_WLAN_PWR_LOW TEGRA_GPIO_PK5
+#define TEGRA_GPIO_WLAN_RST_LOW TEGRA_GPIO_PK6
void harmony_pinmux_init(void);
int harmony_regulator_init(void);