ppc: qemu: Delete the temporary FDT virtual-physical mapping after U-Boot is relocated
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:55 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:44 +0000 (10:25 +0530)
commitc8f911cb08fcb6216424be5a6904a1ed237c4318
tree211b04ac346bd04575b306a84cc984208b3591eb
parent9a39f76c7ac06ba04235b4192c1f4daf5094a924
ppc: qemu: Delete the temporary FDT virtual-physical mapping after U-Boot is relocated

After U-Boot is relocated to RAM already, the previous temporary FDT
virtual-physical mapping that was used in the pre-relocation phase
is no longer needed. Let's delete the mapping.

get_fdt_virt() might be used before and after relocation, update it
to return different virtual address of FDT.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/qemu-ppce500/qemu-ppce500.c