diff options
author | Haijun Zhang <Haijun.Zhang@freescale.com> | 2013-08-26 05:19:24 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-08-26 19:32:43 +0400 |
commit | 490104ac597b8b4c858a6a6889a60d8897181baf (patch) | |
tree | 3501c303fffc791e998089f49214cb5208085b5c /drivers/mmc/host/sdhci-of-esdhc.c | |
parent | c0b887b66c95fe5abaac071b8332b8c21113d84b (diff) | |
download | linux-490104ac597b8b4c858a6a6889a60d8897181baf.tar.xz |
mmc: esdhc: add support to get voltage from device-tree
Add suppport to get voltage from device-tree node for esdhc host,
if voltage-ranges was specified in device-tree node we can get
ocr_mask instead of read from host capacity register. If not voltages
still can be get from host capacity register.
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 'drivers/mmc/host/sdhci-of-esdhc.c')
-rw-r--r-- | drivers/mmc/host/sdhci-of-esdhc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 15039e2d1c12..e328252ebf2a 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -316,6 +316,7 @@ static int sdhci_esdhc_probe(struct platform_device *pdev) /* call to generic mmc_of_parse to support additional capabilities */ mmc_of_parse(host->mmc); + mmc_of_parse_voltage(np, &host->ocr_mask); ret = sdhci_add_host(host); if (ret) |