From: Kumar Gala Date: Fri, 15 Aug 2008 13:24:35 +0000 (-0500) Subject: fdt: fdt addr w/o any args reports back the current working address X-Git-Tag: v2008.10-rc1~148 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7dbc38ad915f4ae67f4cd1818b7ac8fed368aaa9;p=u-boot fdt: fdt addr w/o any args reports back the current working address Signed-off-by: Kumar Gala --- diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 436fec9928..c129993a91 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -67,6 +67,14 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) /* * Set the address [and length] of the fdt. */ + if (argc == 2) { + if (!fdt_valid()) { + return 1; + } + printf("The address of the fdt is %p\n", working_fdt); + return 0; + } + working_fdt = (struct fdt_header *)simple_strtoul(argv[2], NULL, 16); if (!fdt_valid()) {