mmc: Add a function to dump the mmc capabilities

This adds a simple helper function to display information (bus width and
mode) based on a capability mask. Useful for debug.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
Jean-Jacques Hiblot
2017-09-21 16:29:54 +02:00
committed by Jaehoon Chung
parent 35f9e196f9
commit 4c9d2aaa7e
2 changed files with 25 additions and 0 deletions

View File

@ -426,6 +426,7 @@ enum bus_mode {
};
const char *mmc_mode_name(enum bus_mode mode);
void mmc_dump_capabilities(const char *text, uint caps);
/*
* With CONFIG_DM_MMC enabled, struct mmc can be accessed from the MMC device