mmc: tegra: add pm_flags
authorVenkat Rao <vrao@broadcom.com>
Sat, 26 Mar 2011 00:37:47 +0000 (20:37 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 00:59:30 +0000 (20:59 -0400)
Enable fast bcm4329 WIFI suspend/resume on Tegra2 board.

This patch allows the mach-tegra support to tell the tegra MMC host
controller to NOT turn off power for the MMC controller the WIFI part
lives behind.  Thus bcm4329 firmware doesn't need to be reloaded.

Signed-off-by: Venkat Rao <vrao@broadcom.com>
Tested-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: Olof Johansson <olof@lixom.net>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
arch/arm/mach-tegra/include/mach/sdhci.h
drivers/mmc/host/sdhci-tegra.c

index 3ad086e859c38f91696e832e4a51358afb40bcd2..4231bc7b865206a7fa4f21a8ae02b227374a7ec9 100644 (file)
@@ -24,6 +24,7 @@ struct tegra_sdhci_platform_data {
        int wp_gpio;
        int power_gpio;
        int is_8bit;
+       int pm_flags;
 };
 
 #endif
index f7e1f964395fd5bb46264e98c0e474046204293b..343c97edba32bfc780295784cc25869699b734d5 100644 (file)
@@ -184,6 +184,8 @@ static int tegra_sdhci_pltfm_init(struct sdhci_host *host,
        clk_enable(clk);
        pltfm_host->clk = clk;
 
+       host->mmc->pm_caps = plat->pm_flags;
+
        if (plat->is_8bit)
                host->mmc->caps |= MMC_CAP_8_BIT_DATA;