mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
venice: show emmc boot hardware partition
To aid in understanding what emmc hardware partition is being used to boot on power-up, display the hardware partition name in the SPL. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
150481e5ba
commit
1f239b6feb
1 changed files with 12 additions and 4 deletions
|
@ -363,16 +363,24 @@ unsigned long board_spl_mmc_get_uboot_raw_sector(struct mmc *mmc, unsigned long
|
|||
|
||||
const char *spl_board_loader_name(u32 boot_device)
|
||||
{
|
||||
static char name[16];
|
||||
struct mmc *mmc;
|
||||
|
||||
switch (boot_device) {
|
||||
/* SDHC2 */
|
||||
case BOOT_DEVICE_MMC1:
|
||||
return "eMMC";
|
||||
mmc_init_device(0);
|
||||
mmc = find_mmc_device(0);
|
||||
mmc_init(mmc);
|
||||
snprintf(name, sizeof(name), "eMMC %s", emmc_hwpart_names[EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config)]);
|
||||
return name;
|
||||
/* SDHC3 */
|
||||
case BOOT_DEVICE_MMC2:
|
||||
return "SD card";
|
||||
default:
|
||||
return NULL;
|
||||
sprintf(name, "SD card");
|
||||
return name;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void spl_board_init(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue