Skip to content
Snippets Groups Projects
Commit 34dd9284 authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Pantelis Antoniou
Browse files

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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
parent 64029f7a
Branches
Tags
No related merge requests found
...@@ -1693,11 +1693,19 @@ void print_mmc_devices(char separator) ...@@ -1693,11 +1693,19 @@ void print_mmc_devices(char separator)
{ {
struct mmc *m; struct mmc *m;
struct list_head *entry; struct list_head *entry;
char *mmc_type;
list_for_each(entry, &mmc_devices) { list_for_each(entry, &mmc_devices) {
m = list_entry(entry, struct mmc, link); 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); printf("%s: %d", m->cfg->name, m->block_dev.dev);
if (mmc_type)
printf(" (%s)", mmc_type);
if (entry->next != &mmc_devices) { if (entry->next != &mmc_devices) {
printf("%c", separator); printf("%c", separator);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment