mmc: core: parse voltage from device-tree
authorHaijun Zhang <Haijun.Zhang@freescale.com>
Mon, 26 Aug 2013 01:19:22 +0000 (09:19 +0800)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 07:43:40 +0000 (15:43 +0800)
commit1c9aaaee2c1a3395cff05f600e7668b6d0335308
tree32c680e3066f5d47d413f81e100b2e9d9f568ea3
parenta0f135e61bca4d54079f657da45d2f0d1e67a8a3
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>
Conflicts:
drivers/mmc/core/core.c
Documentation/devicetree/bindings/mmc/fsl-esdhc.txt
drivers/mmc/core/core.c
include/linux/mmc/core.h