Hi,

On 12/7/22 20:24, Marek Vasut wrote:
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.

Signed-off-by: Marek Vasut <ma...@denx.de>
---
Cc: Alexandru Gagniuc <mr.nuke...@gmail.com>
Cc: Patrice Chotard <patrice.chot...@foss.st.com>
Cc: Patrick Delaunay <patrick.delau...@foss.st.com>
---
V2: Avoid #if CONFIG... , use if (CONFIG... instead
V3: No change
---
  arch/arm/mach-stm32mp/boot_params.c           | 20 ++---------
  arch/arm/mach-stm32mp/cpu.c                   | 35 +++++++++++++++++++
  arch/arm/mach-stm32mp/ecdsa_romapi.c          | 20 ++---------
  .../arm/mach-stm32mp/include/mach/sys_proto.h |  3 ++
  4 files changed, 42 insertions(+), 36 deletions(-)



Reviewed-by: Patrick Delaunay <patrick.delau...@foss.st.com>

Thanks
Patrick

Reply via email to