diff options
author | Greg Meiste <w30289@motorola.com> | 2011-06-09 15:41:53 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2011-06-09 15:47:02 -0700 |
commit | 4e23026659afa907f00e24c6061ca2bd052d772d (patch) | |
tree | ba809c17fbd9781be4879a1f533ad4158033016e /drivers | |
parent | e02917f693cfc8cd043541fbc1a0fef55854c508 (diff) |
mmc: host: sdhci: tegra: Support runtime enable/disable of clock
Currently the SD card clock is running any time the AP is not in
LP0. This patch allows the clock to only be enabled when the card
is being accessed.
Based on an nVidia patch:
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=commit;h=8c0f23b7e65ebdb6d1c160517e9ba509b16ec83f
Change-Id: I1b611622ef0545a3309214e94bbc76481aa3a721
Signed-off-by: Greg Meiste <w30289@motorola.com>
Conflicts:
drivers/mmc/host/sdhci-tegra.c
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 361c8e780683..1c34873b1e0b 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -116,6 +116,9 @@ static int __devinit tegra_sdhci_probe(struct platform_device *pdev) if (plat->force_hs != 0) sdhci->quirks |= SDHCI_QUIRK_FORCE_HIGH_SPEED_MODE; + if (plat->rt_disable != 0) + sdhci->quirks |= SDHCI_QUIRK_RUNTIME_DISABLE; + rc = sdhci_add_host(sdhci); if (rc) goto err_clk_disable; |