diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2015-02-20 12:29:27 +0100 |
---|---|---|
committer | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2015-02-23 19:49:49 +0200 |
commit | 34dd928492fa020455d9b9f59fe4b643c0708306 (patch) | |
tree | ec28642182bfda60784cca64aa0e87312495758a | |
parent | 64029f7aeec4e843ab99297c24e0ef4f40267a6e (diff) | |
download | u-boot-imx-34dd928492fa020455d9b9f59fe4b643c0708306.zip u-boot-imx-34dd928492fa020455d9b9f59fe4b643c0708306.tar.gz u-boot-imx-34dd928492fa020455d9b9f59fe4b643c0708306.tar.bz2 |
mmc: print SD/eMMC type for inited mmc devices
Depending on the boot priority, the eMMC/SD cards,
can be initialized with the same numbers for each boot.
To be sure which mmc device is SD and which is eMMC,
this info is printed by 'mmc list' command, when
the init is done.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
-rw-r--r-- | drivers/mmc/mmc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b8039cd..a13769e 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1693,11 +1693,19 @@ void print_mmc_devices(char separator) { struct mmc *m; struct list_head *entry; + char *mmc_type; list_for_each(entry, &mmc_devices) { m = list_entry(entry, struct mmc, link); + if (m->has_init) + mmc_type = IS_SD(m) ? "SD" : "eMMC"; + else + mmc_type = NULL; + printf("%s: %d", m->cfg->name, m->block_dev.dev); + if (mmc_type) + printf(" (%s)", mmc_type); if (entry->next != &mmc_devices) { printf("%c", separator); |