board: venice: add spl_board_loader_name

Implement spl_board_loader_name to provide more meaningful device names
vs MMC1 and MMC2.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
Tim Harvey 2022-03-08 10:45:39 -08:00 committed by Stefano Babic
parent 0f42ffd0c7
commit 255658127b

View File

@ -294,3 +294,17 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
return BOOT_DEVICE_NONE; return BOOT_DEVICE_NONE;
} }
} }
const char *spl_board_loader_name(u32 boot_device)
{
switch (boot_device) {
/* SDHC2 */
case BOOT_DEVICE_MMC1:
return "eMMC";
/* SDHC3 */
case BOOT_DEVICE_MMC2:
return "SD card";
default:
return NULL;
}
}