]> git.baikalelectronics.ru Git - uboot.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)
commit7eb833912a4a0e55f2e65f3cb2e0af1939fc2c39
treeebe9927ea34d0822543b682ab49d5aee0549437e
parent121bb4b461cf5d023013d69c1fec5ed3d3f3650d
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