Skip to content
Snippets Groups Projects
Commit 7dbc38ad authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

fdt: fdt addr w/o any args reports back the current working address

parent f953d99f
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment