diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-05-12 20:16:26 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2017-08-17 07:57:19 +0800 |
commit | 85619fcdce3d814638e6ef23cacbedf49ce98b7e (patch) | |
tree | aab7580c1bd59d0dab4decc0af1153258d9f43bb | |
parent | 9d6e41108a5cb23caaaa89304807b7a8e6b78761 (diff) |
cmd: mmc: display the mode name and current bus speed in the mmc info
Display the mode name when the user execute 'mmc info'. Also instead of
displaying tran_speed, display the actual bus speed.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | cmd/mmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -23,7 +23,8 @@ static void print_mmcinfo(struct mmc *mmc) (mmc->cid[1] >> 24), (mmc->cid[1] >> 16) & 0xff, (mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff); - printf("Tran Speed: %d\n", mmc->tran_speed); + printf("Bus Speed: %d\n", mmc->clock); + printf("Mode : %s\n", mmc_mode_name(mmc->selected_mode)); printf("Rd Block Len: %d\n", mmc->read_bl_len); printf("%s version %d.%d", IS_SD(mmc) ? "SD" : "MMC", |