]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: esdhc: add support to get voltage from device-tree
authorHaijun Zhang <Haijun.Zhang@freescale.com>
Mon, 26 Aug 2013 01:19:24 +0000 (09:19 +0800)
committerChris Ball <cjb@laptop.org>
Mon, 26 Aug 2013 15:32:43 +0000 (11:32 -0400)
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>
drivers/mmc/host/sdhci-of-esdhc.c

index 15039e2d1c122e30a48cb62a8e00a2a5d99d2916..e328252ebf2a7f684d0756dbfe1c1b20935d05ab 100644 (file)
@@ -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)