From: Alexander Sverdlin <[email protected]>

Make get_reset_reason() available on TI K3 AM62x and AM64x SoCs a model
for further SoC/platform-specific implementations.

Introduce new CONFIG_RESET_REASON_FDT option and optionally populate reset
reason in FDT passed to Linux under /chosen/reset-reason with a string
returned by get_reset_reason().

The above paves a way to pass reset reason information to Linux user space
in a platform-agnostic way.

Alexander Sverdlin (4):
  arm: mach-k3: Allow for calling get_reset_reason() twice
  nxp: imx9: rename get_reset_reason() -> print_reset_reason()
  common: Make TI K3 get_reset_reason() a weak global
  fdt: Optionally populate /chosen/reset-reason

 arch/arm/include/asm/arch-imx9/sys_proto.h |  2 +-
 arch/arm/include/asm/global_data.h         |  3 +++
 arch/arm/mach-imx/imx9/scmi/soc.c          |  2 +-
 arch/arm/mach-k3/am62x/boot.c              | 13 ++++++++++---
 arch/arm/mach-k3/am64x/boot.c              | 13 ++++++++++---
 arch/arm/mach-k3/common.c                  |  5 -----
 arch/arm/mach-k3/include/mach/hardware.h   |  1 -
 board/nxp/imx94_evk/spl.c                  |  2 +-
 board/nxp/imx95_evk/spl.c                  |  2 +-
 board/toradex/smarc-imx95/spl.c            |  2 +-
 boot/fdt_support.c                         | 14 ++++++++++++++
 common/board_info.c                        |  5 +++++
 include/init.h                             | 12 ++++++++++++
 lib/Kconfig                                |  9 +++++++++
 14 files changed, 68 insertions(+), 17 deletions(-)

-- 
2.52.0

Reply via email to