mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
fdt: Show the type of devicetree with fdt addr
It seems useful to show whether the address of the Control or Working devicetree is being shown. Add support for this. Drop the confusing 0x prefix since the command itself only accepts hex. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0c929631a2
commit
b29a0dbdc3
1 changed files with 3 additions and 2 deletions
|
@ -136,9 +136,10 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
blob = working_fdt;
|
||||
if (!blob || !fdt_valid(&blob))
|
||||
return 1;
|
||||
printf("The address of the fdt is %#08lx\n",
|
||||
printf("%s fdt: %08lx\n",
|
||||
control ? "Control" : "Working",
|
||||
control ? (ulong)map_to_sysmem(blob) :
|
||||
env_get_hex("fdtaddr", 0));
|
||||
env_get_hex("fdtaddr", 0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue