mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Jaehoon Chung

parent
ef1614acf8
commit
52d241dfba
@ -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",
|
||||
|
Reference in New Issue
Block a user