projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f1643
)
mmc: atmel-sdhci: use mmc_of_parse to get the DT properties
author
Eugen Hristev
<eugen.hristev@microchip.com>
Thu, 27 Aug 2020 09:25:57 +0000
(12:25 +0300)
committer
Eugen Hristev
<eugen.hristev@microchip.com>
Fri, 25 Sep 2020 07:39:22 +0000
(10:39 +0300)
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>
drivers/mmc/atmel_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/atmel_sdhci.c
b/drivers/mmc/atmel_sdhci.c
index c67b06506108b4fe73311f5f3d069c762ada194a..f56ae63bc2cdf13d09a3db643ac6d197b803b0be 100644
(file)
--- 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;