diff options
author | Haijun Zhang <Haijun.Zhang@freescale.com> | 2013-08-26 09:19:22 +0800 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-08-26 11:31:40 -0400 |
commit | 6e9e318b304fd7373a0754805a76a02ddbc69a41 (patch) | |
tree | 43c05fa267bf780264a154e7145fe29aa0ad6c77 /include/linux/mmc | |
parent | bcf24e1daa94f4c52ef7a3f657e43cc6bc50d46b (diff) | |
download | blackbird-obmc-linux-6e9e318b304fd7373a0754805a76a02ddbc69a41.tar.gz blackbird-obmc-linux-6e9e318b304fd7373a0754805a76a02ddbc69a41.zip |
mmc: core: parse voltage from device-tree
Add function to support getting voltage from device-tree.
If voltage-range is specified in device-tree node, this function
will parse it and return the available voltage mask.
Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com>
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 443243b241d5..da51bec578c3 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -208,6 +208,8 @@ static inline void mmc_claim_host(struct mmc_host *host) __mmc_claim_host(host, NULL); } +struct device_node; extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max); +extern int mmc_of_parse_voltage(struct device_node *np, u32 *mask); #endif /* LINUX_MMC_CORE_H */ |