summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-02-04 21:56:54 -0600
committerSimon Glass <sjg@chromium.org>2015-02-17 20:19:16 -0700
commitc71a0164d9b23e624552fb614bcb426a11119b57 (patch)
tree0f79ba6f6c4b5a45c239bca3cd531bf3154175d0 /common
parent90fbee3e4051badff770a0ee1b1ca21cb808d634 (diff)
downloadu-boot-imx-c71a0164d9b23e624552fb614bcb426a11119b57.zip
u-boot-imx-c71a0164d9b23e624552fb614bcb426a11119b57.tar.gz
u-boot-imx-c71a0164d9b23e624552fb614bcb426a11119b57.tar.bz2
cmd_fdt: Print the control fdt in terms of virtual memory
If you want to inspect the control device tree using the fdt command, the "fdt address -c" command previously unhelpfully printed the phys memory address of the device tree. That address could not then be used to set the fdt address for inspection. Changed the resulting print to one that can be copied directly to the 'fdt address <addr>' command. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index 5878496..48b3e70 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -111,7 +111,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (!blob || !fdt_valid(&blob))
return 1;
printf("The address of the fdt is %#08lx\n",
- control ? (ulong)blob :
+ control ? (ulong)map_to_sysmem(blob) :
getenv_hex("fdtaddr", 0));
return 0;
}