Commit c7f409e3 authored by Venkat Rao's avatar Venkat Rao Committed by Chris Ball

mmc: tegra: add pm_flags

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: default avatarVenkat Rao <vrao@broadcom.com>
Tested-by: default avatarGrant Grundler <grundler@chromium.org>
Reviewed-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 0b38c4eb
...@@ -24,6 +24,7 @@ struct tegra_sdhci_platform_data { ...@@ -24,6 +24,7 @@ struct tegra_sdhci_platform_data {
int wp_gpio; int wp_gpio;
int power_gpio; int power_gpio;
int is_8bit; int is_8bit;
int pm_flags;
}; };
#endif #endif
...@@ -184,6 +184,8 @@ static int tegra_sdhci_pltfm_init(struct sdhci_host *host, ...@@ -184,6 +184,8 @@ static int tegra_sdhci_pltfm_init(struct sdhci_host *host,
clk_enable(clk); clk_enable(clk);
pltfm_host->clk = clk; pltfm_host->clk = clk;
host->mmc->pm_caps = plat->pm_flags;
if (plat->is_8bit) if (plat->is_8bit)
host->mmc->caps |= MMC_CAP_8_BIT_DATA; host->mmc->caps |= MMC_CAP_8_BIT_DATA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment