mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
board: gateworks: venice: display DTB used
Display the DTB file used for U-Boot. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
658eb1abd8
commit
9d2e639f8e
1 changed files with 5 additions and 1 deletions
|
@ -42,12 +42,16 @@ int board_fit_config_name_match(const char *name)
|
|||
{
|
||||
int i = 0;
|
||||
const char *dtb;
|
||||
static char init;
|
||||
char buf[32];
|
||||
|
||||
do {
|
||||
dtb = gsc_get_dtb_name(i++, buf, sizeof(buf));
|
||||
if (!strcmp(dtb, name))
|
||||
if (!strcmp(dtb, name)) {
|
||||
if (!init++)
|
||||
printf("DTB : %s\n", name);
|
||||
return 0;
|
||||
}
|
||||
} while (dtb);
|
||||
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue