mmc: Parse HS400 Enhanced strobe DT properties
authorPeng Fan <peng.fan@nxp.com>
Wed, 10 Jul 2019 09:35:18 +0000 (09:35 +0000)
committerPeng Fan <peng.fan@nxp.com>
Mon, 15 Jul 2019 02:30:08 +0000 (10:30 +0800)
Add HS400 Enhanced strobe properties parsing support to mmc_of_parse().

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/mmc/mmc-uclass.c

index 8bf63bbd9caba6d09e93e13cba01027f3dc0994a..d4db4c85791df8cd7f99af84a2c8a82976d795d0 100644 (file)
@@ -172,6 +172,8 @@ int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
                cfg->host_caps |= MMC_CAP(MMC_HS_400);
        if (dev_read_bool(dev, "mmc-hs400-1_2v"))
                cfg->host_caps |= MMC_CAP(MMC_HS_400);
+       if (dev_read_bool(dev, "mmc-hs400-enhanced-strobe"))
+               cfg->host_caps |= MMC_CAP(MMC_HS_400_ES);
 
        if (dev_read_bool(dev, "non-removable")) {
                cfg->host_caps |= MMC_CAP_NONREMOVABLE;