diff options
author | Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> | 2018-10-18 20:43:54 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-20 19:14:22 -0700 |
commit | b1a7e79949a972231ddf793fd48ca0ce9cf48da5 (patch) | |
tree | 5d10d0b102b7dbd916405726795975f200697862 /cmd/fdt.c | |
parent | 410d9b644639799259cddba9cbff96c2db038a6b (diff) | |
download | u-boot-b1a7e79949a972231ddf793fd48ca0ce9cf48da5.tar.gz u-boot-b1a7e79949a972231ddf793fd48ca0ce9cf48da5.tar.bz2 u-boot-b1a7e79949a972231ddf793fd48ca0ce9cf48da5.zip |
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>
Diffstat (limited to 'cmd/fdt.c')
-rw-r--r-- | cmd/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -202,7 +202,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) fdt_strerror(err)); return 1; } - working_fdt = newaddr; + set_working_fdt_addr((ulong)newaddr); #ifdef CONFIG_OF_SYSTEM_SETUP /* Call the board-specific fixup routine */ } else if (strncmp(argv[1], "sys", 3) == 0) { |