summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-sdhci.c
diff options
context:
space:
mode:
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");