From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Jacques Hiblot Date: Fri, 12 May 2017 20:16:26 +0200 Subject: [U-Boot] [PATCH 08/22] cmd: mmc: display the mode name and current bus speed in the mmc info In-Reply-To: <1494613000-8156-1-git-send-email-jjhiblot@ti.com> References: <1494613000-8156-1-git-send-email-jjhiblot@ti.com> Message-ID: <1494613000-8156-9-git-send-email-jjhiblot@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- cmd/mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/mmc.c b/cmd/mmc.c index f83032e..59c8023 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", -- 1.9.1