diff options
author | Gary King <gking@nvidia.com> | 2010-06-18 11:47:42 -0700 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-06-18 16:05:21 -0700 |
commit | 756acb9a542dd8b89ebbb0bd3a02577204f30360 (patch) | |
tree | a59e51c0ad304c1a5c49fcf7f058491e151d29d0 /arch | |
parent | 98e7f2cfa2fa0a62bf09e04a90719f04a8472588 (diff) |
tegra-sdhci: disable polling for hosts with non-removable cards
hosts with non-removable cards should not need to specify
MMC_CAP_POLLING; this causes additional exits from the CPU idle
loop.
add a field to the platform data to specify that the host is
removable, and initialize card_present to true if the host
is not removable
Change-Id: I55d9c8295435deb522977b3e7380abc0f8f05721
Reviewed-on: http://git-master/r/2888
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/sdhci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/sdhci.h b/arch/arm/mach-tegra/include/mach/sdhci.h index b6c724f63ffa..d282f0c34a51 100644 --- a/arch/arm/mach-tegra/include/mach/sdhci.h +++ b/arch/arm/mach-tegra/include/mach/sdhci.h @@ -35,6 +35,7 @@ struct tegra_sdhci_platform_data { int gpio_nr_wp; /* write protect gpio, -1 if unused */ int gpio_polarity_wp; /* active high write protect */ int bus_width; /* bus width in bits */ + int is_removable; /* card can be removed */ unsigned int debounce; /* debounce time in milliseconds */ unsigned long max_clk; /* maximum card clock */ #ifdef CONFIG_EMBEDDED_MMC_START_OFFSET |