summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorAdrian Hunter2011-10-03 14:33:34 +0200
committerChris Ball2011-10-26 22:32:20 +0200
commit66fd8ad5100b5003046aa744a4f12fa31bb831f9 (patch)
treec71aa6ff8b5c4c2919b93630a2315017f4610986 /drivers/mmc/host/sdhci.h
parentmmc: core: move ->request() call from atomic context (diff)
downloadkernel-qcow2-linux-66fd8ad5100b5003046aa744a4f12fa31bb831f9.tar.gz
kernel-qcow2-linux-66fd8ad5100b5003046aa744a4f12fa31bb831f9.tar.xz
kernel-qcow2-linux-66fd8ad5100b5003046aa744a4f12fa31bb831f9.zip
mmc: sdhci-pci: add runtime pm support
Ths patch allows runtime PM for sdhci-pci, runtime suspending after inactivity of 50ms and ensuring runtime resume before SDHC registers are accessed. During runtime suspend, interrupts are masked. The host controller state is restored at runtime resume. For Medfield, the host controller's card detect mechanism is supplanted by an always-on GPIO which provides for card detect wake-up. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 7bd919c33cc2..0a5b65460d8a 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -379,4 +379,9 @@ extern int sdhci_resume_host(struct sdhci_host *host);
extern void sdhci_enable_irq_wakeups(struct sdhci_host *host);
#endif
+#ifdef CONFIG_PM_RUNTIME
+extern int sdhci_runtime_suspend_host(struct sdhci_host *host);
+extern int sdhci_runtime_resume_host(struct sdhci_host *host);
+#endif
+
#endif /* __SDHCI_HW_H */