diff options
author | Haijun Zhang <Haijun.Zhang@freescale.com> | 2013-08-25 21:19:22 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-08-26 11:31:40 -0400 |
commit | 6e9e318b304fd7373a0754805a76a02ddbc69a41 (patch) | |
tree | 43c05fa267bf780264a154e7145fe29aa0ad6c77 /include | |
parent | bcf24e1daa94f4c52ef7a3f657e43cc6bc50d46b (diff) |
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')
-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) | |||
208 | __mmc_claim_host(host, NULL); | 208 | __mmc_claim_host(host, NULL); |
209 | } | 209 | } |
210 | 210 | ||
211 | struct device_node; | ||
211 | extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max); | 212 | extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max); |
213 | extern int mmc_of_parse_voltage(struct device_node *np, u32 *mask); | ||
212 | 214 | ||
213 | #endif /* LINUX_MMC_CORE_H */ | 215 | #endif /* LINUX_MMC_CORE_H */ |