mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
fdt: fdt addr w/o any args reports back the current working address
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
f953d99fd5
commit
7dbc38ad91
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
* 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);
|
working_fdt = (struct fdt_header *)simple_strtoul(argv[2], NULL, 16);
|
||||||
|
|
||||||
if (!fdt_valid()) {
|
if (!fdt_valid()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue