aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-11-30 17:43:54 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 18:11:04 +0900
commit52d241dfba7c3903a3a7d97fe6cb815c9ed379d6 (patch)
tree7d7154d958ac7bf164a8b9dd28ece7032c375c7e /cmd
parentef1614acf8f39637c798125deea06aaa83b5f986 (diff)
downloadu-boot-52d241dfba7c3903a3a7d97fe6cb815c9ed379d6.zip
u-boot-52d241dfba7c3903a3a7d97fe6cb815c9ed379d6.tar.gz
u-boot-52d241dfba7c3903a3a7d97fe6cb815c9ed379d6.tar.bz2
mmc: dump card and host capabilities if debug is enabled
This is a useful information while debugging the initialization process or performance issues. Also dump this information with the other mmc info if the verbose option is selected Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 6d48ecb..25795e0 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -24,7 +24,11 @@ static void print_mmcinfo(struct mmc *mmc)
(mmc->cid[1] >> 8) & 0xff, mmc->cid[1] & 0xff);
printf("Bus Speed: %d\n", mmc->clock);
+#if CONFIG_IS_ENABLED(MMC_VERBOSE)
printf("Mode : %s\n", mmc_mode_name(mmc->selected_mode));
+ mmc_dump_capabilities("card capabilities", mmc->card_caps);
+ mmc_dump_capabilities("host capabilities", mmc->host_caps);
+#endif
printf("Rd Block Len: %d\n", mmc->read_bl_len);
printf("%s version %d.%d", IS_SD(mmc) ? "SD" : "MMC",