]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: stm32: Factor out save_boot_params
authorMarek Vasut <marex@denx.de>
Thu, 12 Jan 2023 17:58:40 +0000 (18:58 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 13 Jan 2023 12:46:57 +0000 (13:46 +0100)
commitdbeaca79b7924d46a51228fa0b1db3462036b5e0
treeebe9927ea34d0822543b682ab49d5aee0549437e
parentbbafbc044dcab06eccba0dc6a7235a0c6e782484
ARM: stm32: Factor out save_boot_params

The STM32MP15xx platform currently comes with two incompatible
implementations of save_boot_params() weak function override.
Factor the save_boot_params() implementation into common cpu.c
code and provide accessors to read out both ROM API table address
and DT address from any place in the code instead.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-stm32mp/boot_params.c
arch/arm/mach-stm32mp/cpu.c
arch/arm/mach-stm32mp/ecdsa_romapi.c
arch/arm/mach-stm32mp/include/mach/sys_proto.h