diff options
author | Baruch Siach <baruch@tkos.co.il> | 2021-02-02 08:43:04 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-02-08 08:53:14 +0100 |
commit | 24a0f8cfe5c85aef5a20baf34ee7b77004b07b04 (patch) | |
tree | cdeb62634e9e13f6bbb679baa03c94895aabd1e8 /drivers | |
parent | 6e2748452a8951532275f42a8b5fc3fe4ba682cd (diff) | |
download | u-boot-24a0f8cfe5c85aef5a20baf34ee7b77004b07b04.zip u-boot-24a0f8cfe5c85aef5a20baf34ee7b77004b07b04.tar.gz u-boot-24a0f8cfe5c85aef5a20baf34ee7b77004b07b04.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index 556dd38..4dc4a0d 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; |