[U-Boot] [PATCH 13/33] cmd: mmc: show the current speed mode
Ziyuan Xu
xzy.xu at rock-chips.com
Mon May 15 06:07:07 UTC 2017
So far mmc framework had support speed mode switch, it good to show the
current speed mode from 'mmc info'.
Signed-off-by: Ziyuan Xu <xzy.xu at rock-chips.com>
---
cmd/mmc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 6ead27a..832eeb0 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -15,6 +15,10 @@ static int curr_device = -1;
static void print_mmcinfo(struct mmc *mmc)
{
int i;
+ const char *timing[] = {
+ "Legacy", "High Speed", "High Speed", "SDR12",
+ "SDR25", "SDR50", "SDR104", "DDR50",
+ "DDR52", "HS200", "HS400", "HS400 Enhanced Strobe"};
printf("Device: %s\n", mmc->cfg->name);
printf("Manufacturer ID: %x\n", mmc->cid[0] >> 24);
@@ -23,6 +27,7 @@ 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("Timing Interface: %s\n", timing[mmc->timing]);
printf("Tran Speed: %d\n", mmc->clock);
printf("Rd Block Len: %d\n", mmc->read_bl_len);
--
2.7.4
More information about the U-Boot
mailing list