]> git.ipfire.org Git - thirdparty/u-boot.git/commit
stm32mp2: update register used by BL31 for boot parameter
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 17 Sep 2025 12:31:30 +0000 (14:31 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Sep 2025 15:37:10 +0000 (17:37 +0200)
commit8a2e75e6a1ca51bbd81eef36ffb26737adec316f
tree18f08d6ddab97896ef99de9c3722922bf1e35284
parentd1afa6650434b1d6ebeba22a44c3e02a2e822798
stm32mp2: update register used by BL31 for boot parameter

Use the ARM64 kernel booting register settings, defined in Linux
documentation Documentation/arch/arm64/booting.rst:

 x0 = physical address of device tree blob (dtb) in system RAM.

so kernel can replace U-Boot in FIP without modification of BL31.

Use x0 for future TF-A version and keep x2 as fallback to be compatible
with previous version of TF-A BL31.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/stm32mp2/cpu.c