summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-03-11 03:30:43 -0800
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-03-31 09:56:26 +0100
commit5c13941acc513669c7d07b28789c3f9ba66ddddf (patch)
tree0f8170e9af5e3ee25e06c20520d3b2cd85733070 /include
parent66b659e685bca1f2f6d6102bac74cafbc7eef5c2 (diff)
downloadlinux-3.10-5c13941acc513669c7d07b28789c3f9ba66ddddf.tar.gz
linux-3.10-5c13941acc513669c7d07b28789c3f9ba66ddddf.tar.bz2
linux-3.10-5c13941acc513669c7d07b28789c3f9ba66ddddf.zip
MMC: regulator utilities
Glue between MMC and regulator stacks ... verified with some OMAP3 boards using adjustable and configured-as-fixed regulators on several MMC controllers. These calls are intended to be used by MMC host adapters using at least one regulator per host. Examples include slots with regulators supporting multiple voltages and ones using multiple voltage rails (e.g. DAT4..DAT7 using a separate supply, or a split rail chip like certain SDIO WLAN or eMMC solutions). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmc/host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 4e457256bd3..3e7615e9087 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -192,5 +192,10 @@ static inline void mmc_signal_sdio_irq(struct mmc_host *host)
wake_up_process(host->sdio_irq_thread);
}
+struct regulator;
+
+int mmc_regulator_get_ocrmask(struct regulator *supply);
+int mmc_regulator_set_ocr(struct regulator *supply, unsigned short vdd_bit);
+
#endif