projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f42ffd
)
board: venice: add spl_board_loader_name
author
Tim Harvey
<tharvey@gateworks.com>
Tue, 8 Mar 2022 18:45:39 +0000
(10:45 -0800)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 12 Apr 2022 19:08:22 +0000
(21:08 +0200)
Implement spl_board_loader_name to provide more meaningful device names
vs MMC1 and MMC2.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/venice/spl.c
patch
|
blob
|
history
diff --git
a/board/gateworks/venice/spl.c
b/board/gateworks/venice/spl.c
index
533d44a
..
199e37b
100644
(file)
--- 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;
+ }
+}