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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user