summaryrefslogtreecommitdiff
path: root/common/cmd_mmc_spi.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2011-04-17 21:00:46 +0000
committerAndy Fleming <afleming@freescale.com>2011-04-29 03:20:01 -0500
commit28df15e0234a773cfec98c2775915abe1472db3c (patch)
tree944254f571bf44721a91f5413af31686193eec50 /common/cmd_mmc_spi.c
parentf0c64526b7e51ba997a0f1baf9e74e6d497b957e (diff)
downloadu-boot-imx-28df15e0234a773cfec98c2775915abe1472db3c.zip
u-boot-imx-28df15e0234a773cfec98c2775915abe1472db3c.tar.gz
u-boot-imx-28df15e0234a773cfec98c2775915abe1472db3c.tar.bz2
mmc_spi: add mmc_init call
As Andy Fleming suggested, we can call mmc_init() in mmc_spi command. So that we don't need to run mmcinfo command next. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'common/cmd_mmc_spi.c')
-rw-r--r--common/cmd_mmc_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_mmc_spi.c b/common/cmd_mmc_spi.c
index 63fe313..cfd0fb1 100644
--- a/common/cmd_mmc_spi.c
+++ b/common/cmd_mmc_spi.c
@@ -74,6 +74,7 @@ static int do_mmc_spi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
printf("%s: %d at %u:%u hz %u mode %u\n", mmc->name, mmc->block_dev.dev,
bus, cs, speed, mode);
+ mmc_init(mmc);
return 0;
usage: