imx8ulp_evk: Clear data at fdt_addr_r before booting kernel
authorYe Li <ye.li@nxp.com>
Tue, 31 Jan 2023 08:42:34 +0000 (16:42 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Mar 2023 18:15:43 +0000 (20:15 +0200)
commit4dfb2196cdced30d9404080584746e4205f561b1
tree6980a7262b3b8b6bd447f42653799f449130fa51
parent9b7e39b6c1ff40a8336328708727394ae8a107e5
imx8ulp_evk: Clear data at fdt_addr_r before booting kernel

When using dual boot mode, the DDR won't be reset when APD power off
or reboot. It has possibility that obsolete fdt data existing on
fdt_addr_r address. Then even nothing in EFI partitions, the distro boot
still continue to parse fdt and get uboot crashed.

Clear the data at fdt_addr_r, so the fdt header check in above case
will not pass.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/freescale/imx8ulp_evk/imx8ulp_evk.c