diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_fdt.c | 2 | ||||
-rw-r--r-- | common/fdt_support.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 682b6553958..4c18962d853 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -45,7 +45,7 @@ void set_working_fdt_addr(ulong addr) buf = map_sysmem(addr, 0); working_fdt = buf; - setenv_ulong("fdtaddr", addr); + setenv_hex("fdtaddr", addr); } /* diff --git a/common/fdt_support.c b/common/fdt_support.c index 10648b5a4a8..f86365e8f0d 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -454,6 +454,9 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) return err; } + if (!banks) + return 0; + len = fdt_pack_reg(blob, tmp, start, size, banks); err = fdt_setprop(blob, nodeoffset, "reg", tmp, len); |