summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2021-02-02 09:43:04 +0300
committerStefan Roese <sr@denx.de>2021-02-08 10:53:14 +0300
commit24a0f8cfe5c85aef5a20baf34ee7b77004b07b04 (patch)
treecdeb62634e9e13f6bbb679baa03c94895aabd1e8 /drivers
parent6e2748452a8951532275f42a8b5fc3fe4ba682cd (diff)
downloadu-boot-24a0f8cfe5c85aef5a20baf34ee7b77004b07b04.tar.xz
mmc: mv_sdhci: parse device-tree entry
Call mmc_of_parse() so that generic DT properties like 'non-removable' are taken into account. This fixes boot on Clearfog with eMMC on SOM that requires the non-removable property. Reported-by: Thorsten Spille <thorsten_spille@netcor.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mv_sdhci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 556dd38046..4dc4a0d2be 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -118,6 +118,10 @@ static int mv_sdhci_probe(struct udevice *dev)
host->mmc->dev = dev;
host->mmc->priv = host;
+ ret = mmc_of_parse(dev, &plat->cfg);
+ if (ret)
+ return ret;
+
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
if (ret)
return ret;