Skip to content

Commit

Permalink
mmc: esdhc: add support to get voltage from device-tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haijun Zhang authored and Chris Ball committed Aug 26, 2013
1 parent c0b887b commit 490104a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/sdhci-of-esdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 490104a

Please sign in to comment.