diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-09-21 16:29:54 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:03 +0900 |
commit | 4c9d2aaa7ea720ff8c304dd8621afa3ed085486e (patch) | |
tree | 5ab0d6691e9d7a49cdba312604baf4a92475b323 /include | |
parent | 35f9e196f9573af4091076c19aaa6d5afeb91338 (diff) | |
download | u-boot-4c9d2aaa7ea720ff8c304dd8621afa3ed085486e.tar.gz u-boot-4c9d2aaa7ea720ff8c304dd8621afa3ed085486e.tar.bz2 u-boot-4c9d2aaa7ea720ff8c304dd8621afa3ed085486e.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/mmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 76bd57ae42..dd83f14b6c 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -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 |