Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 490104ac authored by Haijun Zhang's avatar Haijun Zhang Committed by Chris Ball
Browse files

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: default avatarHaijun Zhang <haijun.zhang@freescale.com>
Acked-by: default avatarAnton Vorontsov <anton@enomsg.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent c0b887b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)