mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Acked-by: Anton Vorontsov <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
c0b887b66c
commit
490104ac59
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue