cmd: fdt: use gd->fdt_blob as default fdt address

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I16a413bcbca17842cd560367ebae6454a63354f2
This commit is contained in:
Joseph Chen 2019-12-03 20:12:07 +08:00
parent d625acc28e
commit 2eb7260f2e
1 changed files with 3 additions and 5 deletions

View File

@ -151,11 +151,9 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
if (!working_fdt) {
puts(
"No FDT memory address configured. Please configure\n"
"the FDT address via \"fdt addr <address>\" command.\n"
"Aborting!\n");
return CMD_RET_FAILURE;
working_fdt = (void *)gd->fdt_blob;
printf("No FDT memory address configured. Default at 0x%08lx\n",
(ulong)gd->fdt_blob);
}
/*