mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
f0c64526b7
commit
28df15e023
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue