summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-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-whistler-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-whistler-sdhci.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler-sdhci.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-sdhci.c b/arch/arm/mach-tegra/board-whistler-sdhci.c
index ebd292a6d168..e3e2fc2000f8 100644
--- a/arch/arm/mach-tegra/board-whistler-sdhci.c
+++ b/arch/arm/mach-tegra/board-whistler-sdhci.c
@@ -223,6 +223,20 @@ static struct platform_device tegra_sdhci_device3 = {
},
};
+#ifdef TEGRA_PREPOWER_WIFI
+static int __init whistler_wifi_prepower(void)
+{
+ if (!machine_is_whistler())
+ return 0;
+
+ whistler_wifi_power(1);
+
+ return 0;
+}
+
+subsys_initcall_sync(whistler_wifi_prepower);
+#endif
+
static int __init whistler_wifi_init(void)
{
gpio_request(WHISTLER_WLAN_PWR, "wlan_power");