diff options
author | Tim Harvey | 2022-03-08 10:45:39 -0800 |
---|---|---|
committer | Stefano Babic | 2022-04-12 21:08:22 +0200 |
commit | 255658127b2a26ee8d18d97cc16f1bc694e46bbd (patch) | |
tree | b1d45a290a40c607106e75dc07240adc8efc2514 /board/gateworks | |
parent | 0f42ffd0c79a975c609bf4cdee533c3d1ed6a245 (diff) |
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>
Diffstat (limited to 'board/gateworks')
-rw-r--r-- | board/gateworks/venice/spl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c index 533d44a07a0..199e37bca73 100644 --- a/board/gateworks/venice/spl.c +++ b/board/gateworks/venice/spl.c @@ -294,3 +294,17 @@ int spl_board_boot_device(enum boot_device boot_dev_spl) 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; + } +} |