ARM: stm32: Auto-detect ROM API table on STM32MP15xx
authorMarek Vasut <marek.vasut@mailbox.org>
Mon, 12 May 2025 16:45:14 +0000 (18:45 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 11 Jun 2025 07:42:55 +0000 (09:42 +0200)
commitecd6fd02e1225e6e0d44005f4f25747d29794ddf
tree0238fd3ff347eee818b078ada9eb1d1a4ffb967b
parentd4972d5b59cb14a59d5afab3cba5a7ae7d7aedca
ARM: stm32: Auto-detect ROM API table on STM32MP15xx

The ROM API table location is passed to the SPL by BootROM in register r0,
make use of this, store the content of r0 and later use it to access the
ROM API table to determine current boot device.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/stm32mp1/cpu.c
arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c