Commit b1a7e79949a972231ddf793fd48ca0ce9cf48da5
Committed by
Simon Glass
1 parent
410d9b6446
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
cmd: fdt: Fix fdt address information after the movement
This patch fixes the address information of fdt. wrong case: => fdt addr 0x48000000 => fdt move 0x48000000 0x41000000 0xa000 => fdt addr The address of the fdt is 48000000 Active address in this case is 0x41000000. Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
cmd/fdt.c
... | ... | @@ -202,7 +202,7 @@ |
202 | 202 | fdt_strerror(err)); |
203 | 203 | return 1; |
204 | 204 | } |
205 | - working_fdt = newaddr; | |
205 | + set_working_fdt_addr((ulong)newaddr); | |
206 | 206 | #ifdef CONFIG_OF_SYSTEM_SETUP |
207 | 207 | /* Call the board-specific fixup routine */ |
208 | 208 | } else if (strncmp(argv[1], "sys", 3) == 0) { |