ARM: nxp-imx8mq-evk: fix second stage booting
If the whole image already resides in DRAM, e.g. by starting the
image via the bootm handler we try to load the piggydata from storage,
which may well be different from our expected piggydata, already
present in DRAM.

Fix this by avoiding the special piggydata load function, but instead
load the whole image after DRAM is up and just replace the PBL part to
ensure we are still running the HAB validated code after TF-A hands
back control to our code in DRAM.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9cede72 commit e973ec56e7117c601e3b69c9d3c8e0bf206977f3
@Lucas Stach Lucas Stach authored on 7 Jan 2020
Sascha Hauer committed on 9 Jan 2020
Showing 1 changed file
View
arch/arm/boards/nxp-imx8mq-evk/lowlevel.c