From: Marek Szyprowski Date: Thu, 16 Jan 2020 15:25:33 +0000 (+0100) Subject: mmc: s5p_sdhci: Read generic MMC properties from DT X-Git-Tag: v2020.04-rc2~25^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e27108c433a249ba8ebc59f7a3113b9b666f5d67;p=oweals%2Fu-boot.git mmc: s5p_sdhci: Read generic MMC properties from DT Read generic MMC properties from device-tree. This allows to specify for example cd-inverted property and let MMC core to properly handle such case. Signed-off-by: Marek Szyprowski Reviewed-by: Anand Moon Signed-off-by: Minkyu Kang --- diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 53efa968cf..b5fe828dd6 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -204,8 +204,13 @@ static int s5p_sdhci_probe(struct udevice *dev) if (ret) return ret; + ret = mmc_of_parse(dev, &plat->cfg); + if (ret) + return ret; + host->mmc = &plat->mmc; host->mmc->dev = dev; + ret = sdhci_setup_cfg(&plat->cfg, host, 0, 400000); if (ret) return ret;