summaryrefslogtreecommitdiff
path: root/drivers/mmc/atmel_sdhci.c
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2020-08-27 12:25:57 +0300
committerEugen Hristev <eugen.hristev@microchip.com>2020-09-25 10:39:22 +0300
commit3710b464e43abe27ed9ab40c39f98a309a7db055 (patch)
tree4d0689d4190fff795c6317f93eae416c474da20d /drivers/mmc/atmel_sdhci.c
parent81f16438d48f4690339ae47adc72dfcd4aa63ba0 (diff)
downloadu-boot-3710b464e43abe27ed9ab40c39f98a309a7db055.tar.xz
mmc: atmel-sdhci: use mmc_of_parse to get the DT properties
Call mmc_of_parse at probe time to fetch all the host properties from the DT. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/mmc/atmel_sdhci.c')
-rw-r--r--drivers/mmc/atmel_sdhci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index c67b065061..f56ae63bc2 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -89,6 +89,10 @@ static int atmel_sdhci_probe(struct udevice *dev)
if (ret)
return ret;
+ ret = mmc_of_parse(dev, &plat->cfg);
+ if (ret)
+ return ret;
+
host->max_clk = max_clk;
host->mmc = &plat->mmc;
host->mmc->dev = dev;