summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-05-12 20:16:26 +0200
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:37:10 +0800
commit88e1f9cdec39fb767567734d332f906ae6165f01 (patch)
tree4196e658dcf02ed191d0f58ad633920b351d21bc /cmd
parent6d2d8b8717785aa5e8e8c7b58c9c2791f8c4b9c0 (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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index b8dcc26eef..a84105eadf 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -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",