mmc: core: Add DT bindings for eMMC high-speed DDR 1.8/1.2V
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 14 Feb 2014 12:27:08 +0000 (13:27 +0100)
committerChris Ball <chris@printf.net>
Sat, 22 Feb 2014 18:51:10 +0000 (13:51 -0500)
Provide the option to configure these speed modes per host, for those
host driver's that can't distinguish this in runtime.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
Documentation/devicetree/bindings/mmc/mmc.txt
drivers/mmc/core/host.c

index bd2ce67dbb9e7cf0672ba4d72d2254c016a5441a..519d9523a41310c21c9abf7e3509ee3a1c3d8c0a 100644 (file)
@@ -34,6 +34,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-highspeed-ddr-1_8v: eMMC high-speed DDR mode(1.8V I/O) is supported
+- mmc-highspeed-ddr-1_2v: eMMC high-speed DDR mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
index 2644d91fd3364cd744b83f8e3d1e3edd21d3a827..d014127f10437fc3e3bdec14f4bb627aea6881a7 100644 (file)
@@ -439,6 +439,10 @@ int mmc_of_parse(struct mmc_host *host)
                host->pm_caps |= MMC_PM_KEEP_POWER;
        if (of_find_property(np, "enable-sdio-wakeup", &len))
                host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+       if (of_find_property(np, "mmc-ddr-1_8v", &len))
+               host->caps |= MMC_CAP_1_8V_DDR;
+       if (of_find_property(np, "mmc-ddr-1_2v", &len))
+               host->caps |= MMC_CAP_1_2V_DDR;
 
        return 0;