arm-trusted-firmware/plat/imx
Sascha Hauer 7eae1db027 feat(imx): add helper to take params from BL2
So far the i.MX BL31 doesn't take any parameters. This means the BL32
image base address and whether or not a BL32 image is used at all has to
be hardcoded in BL31.

This adds a helper function that allows to take params from BL2 safely.
On i.MX BL2 is usually U-Boot SPL which passes random values in arg0,
so make sure arg0 is within the internal SRAM range before accessing it
as a pointer. Also make sure arg0 is sufficiently aligned and the header
type and version is correct.

Change-Id: Idab8013a1d6dabf50a83c75f3e6f831de4a537e9
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2024-04-26 11:04:56 +02:00
..
common feat(imx): add helper to take params from BL2 2024-04-26 11:04:56 +02:00
imx7 chore: remove MULTI_CONSOLE_API references 2023-09-12 15:28:36 +02:00
imx8m feat(imx): add helper to take params from BL2 2024-04-26 11:04:56 +02:00
imx8qm fix: remove old-style declarations 2022-12-01 16:17:34 +00:00
imx8qx feat(imx8): add support for debug uart on lpuart1 2023-04-17 14:43:27 +02:00
imx8ulp feat(imx8ulp): give HIFI4 DSP access to more resources 2024-03-26 15:51:26 +02:00
imx93 feat(imx): add helper to take params from BL2 2024-04-26 11:04:56 +02:00