summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-23 15:38:48 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:25 -0600
commite7ecf7cb5a6b873daf2d88daf03034d51fad4acc (patch)
treed7bc50bfa1fc488a40f5a05795325c03653a0417 /drivers/mmc/mmc.c
parentfdfa39d3f20b669b0cdb8f5e934003e5689fd911 (diff)
downloadu-boot-imx-e7ecf7cb5a6b873daf2d88daf03034d51fad4acc.zip
u-boot-imx-e7ecf7cb5a6b873daf2d88daf03034d51fad4acc.tar.gz
u-boot-imx-e7ecf7cb5a6b873daf2d88daf03034d51fad4acc.tar.bz2
dm: mmc: Add an MMC uclass
Add basic support for MMC, providing a uclass which can set up an MMC device. This allows MMC drivers to move to using driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 79e6fee..4eab274 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1761,8 +1761,10 @@ int mmc_initialize(bd_t *bis)
INIT_LIST_HEAD (&mmc_devices);
cur_dev_num = 0;
+#ifndef CONFIG_DM_MMC
if (board_mmc_init(bis) < 0)
cpu_mmc_init(bis);
+#endif
#ifndef CONFIG_SPL_BUILD
print_mmc_devices(',');