summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-sdhci.c
diff options
context:
space:
mode:
authorMursalin Akon <makon@nvidia.com>2012-03-16 11:38:20 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-04-16 03:19:52 -0700
commite4b1676171cd3d6e14b55f2404c794b55975a327 (patch)
treebe1bbdeb863815a2d9e597bae800d312bd8f774d /arch/arm/mach-tegra/board-ventana-sdhci.c
parent7d23fc1970979f5f51baef3fc890e0618ad45e8f (diff)
arm:tegra[3]: power up wifi chip at boot
power up WiFi chip, if Kconfig option TEGRA_PREPOWER_WIFI is turned on. Bug 956238 Change-Id: I26ef92fee30f8d18a47c3968b9b01b97e52a9382 Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/90671 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-sdhci.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana-sdhci.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sdhci.c b/arch/arm/mach-tegra/board-ventana-sdhci.c
index 81bbdc6bbdc0..1e3374ec7c34 100644
--- a/arch/arm/mach-tegra/board-ventana-sdhci.c
+++ b/arch/arm/mach-tegra/board-ventana-sdhci.c
@@ -231,6 +231,20 @@ static int ventana_wifi_reset(int on)
return 0;
}
+#ifdef TEGRA_PREPOWER_WIFI
+static int __init ventana_wifi_prepower(void)
+{
+ if (!machine_is_ventana())
+ return 0;
+
+ ventana_wifi_power(1);
+
+ return 0;
+}
+
+subsys_initcall_sync(ventana_wifi_prepower);
+#endif
+
static int __init ventana_wifi_init(void)
{
wifi_32k_clk = clk_get_sys(NULL, "blink");