imx95: Add get_reset_reason() to retrieve the LM/system last booted/shutdown reasons
authorPeng Fan <peng.fan@nxp.com>
Tue, 23 Sep 2025 02:14:55 +0000 (10:14 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 26 Sep 2025 12:51:21 +0000 (09:51 -0300)
commit998c6cc450e61152b6d0e800989d2d19358e25c2
treefdb82c2b69c96e2463884726ca8cdfc80072b0c5
parenta2d62d3b1d357dccc2e9ed56a4e7bdbb030ca06f
imx95: Add get_reset_reason() to retrieve the LM/system last booted/shutdown reasons

System Manager provides the last booted and shutdown reasons of the
logical machines (LM) and system using the SCMI misc protocol (Protocol
ID: 0x84, Message ID: 0xA). This path adds get_reset_reason() to query
and print these reasons in SPL and U-Boot.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
arch/arm/include/asm/arch-imx9/sys_proto.h
arch/arm/mach-imx/imx9/scmi/soc.c
board/freescale/imx95_evk/spl.c
include/scmi_nxp_protocols.h [new file with mode: 0644]