From b9acd4bb941790c9e654e031d9818b35e74b0256 Mon Sep 17 00:00:00 2001 From: Preetham Chandru Date: Tue, 29 Nov 2011 17:53:13 +0530 Subject: 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 Reviewed-on: http://git-master/r/67121 Reviewed-by: Mursalin Akon Reviewed-by: Allen Martin --- arch/arm/mach-tegra/board-harmony.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/arm/mach-tegra/board-harmony.h') 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); -- cgit v1.2.3