diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2020-02-26 13:44:30 +0530 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-03-09 08:33:15 +0800 |
commit | 32860bdbc1f2d4133c1ef38685c6b02368136fbb (patch) | |
tree | 19a1f95a352def35d79a151c6c8577cc3e361af4 /drivers/mmc/mmc.c | |
parent | 0d3c8584885a7c76929bfa59fa34e44a2134ae1f (diff) | |
download | u-boot-32860bdbc1f2d4133c1ef38685c6b02368136fbb.tar.gz |
mmc: Add a deferred_probe() API
Add a deferred_probe() API for platforms that want to do some
configurations just before starting to enumerate the device.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b50fcbf6cf..a347308976 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -2845,7 +2845,9 @@ int mmc_start_init(struct mmc *mmc) */ mmc->host_caps = mmc->cfg->host_caps | MMC_CAP(SD_LEGACY) | MMC_CAP(MMC_LEGACY) | MMC_MODE_1BIT; - +#if CONFIG_IS_ENABLED(DM_MMC) + mmc_deferred_probe(mmc); +#endif #if !defined(CONFIG_MMC_BROKEN_CD) no_card = mmc_getcd(mmc) == 0; #else |