diff options
author | Heiko Thiery <heiko.thiery@gmail.com> | 2022-01-17 18:25:41 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-29 01:58:41 +0300 |
commit | c592292385b484e4da07d395ac67cd7f83f3f326 (patch) | |
tree | 7c02d10a90d9229e5fd8c2a970374df91ee32356 /common | |
parent | 2d0953c0e0de02dc470345c2b07d77d2a782dba6 (diff) | |
download | u-boot-c592292385b484e4da07d395ac67cd7f83f3f326.tar.xz |
spl: add support for custom boot method names
Currently the names MMC1, MMC2 and MMC2_2 are output in the SPL. To
achieve more userbility here the name of the boot source can be returned.
E.g. for "MMC1" -> "eMMC" or "MMC2" -> "SD card".
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Tested-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 6945ecb56e..884102bdea 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -174,6 +174,11 @@ __weak void spl_board_prepare_for_optee(void *fdt) { } +__weak const char *spl_board_loader_name(u32 boot_device) +{ + return NULL; +} + #if CONFIG_IS_ENABLED(OPTEE_IMAGE) __weak void __noreturn jump_to_image_optee(struct spl_image_info *spl_image) { |