mmc: host: sdhci: tegra: Support runtime enable/disable of clock
authorGreg Meiste <w30289@motorola.com>
Thu, 9 Jun 2011 22:41:53 +0000 (15:41 -0700)
committerTodd Poynor <toddpoynor@google.com>
Thu, 9 Jun 2011 22:47:02 +0000 (15:47 -0700)
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>
drivers/mmc/host/sdhci-tegra.c

index 361c8e7806837771c09bbe8434358192601ca2c0..1c34873b1e0b8745fed4460c7af2113a6a086023 100644 (file)
@@ -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;