On 8/28/2026 7:27 PM, Richard Genoud (TI) wrote:
> From: Abhash Kumar Jha <[email protected]>
>
> While resuming from suspend, the wakeup reason need to be stored
> and this will be used by the Linux kernel once its up.
>
> Use the 32 bytes of MCU_PSRAM0_RAM area (addr = 0x40280000) to
> store the wakeup reason.
>
> Read the value as soon as it starts and store it internally.
>
> Signed-off-by: Abhash Kumar Jha <[email protected]>
> Co-developed-by: Richard Genoud (TI) <[email protected]>
> Signed-off-by: Richard Genoud (TI) <[email protected]>
> ---
> arch/arm/mach-k3/Kconfig | 10 ++++++++++
> arch/arm/mach-k3/r5/lpm-common.c | 24 ++++++++++++++++++++++++
> 2 files changed, 34 insertions(+)
>
> diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig
> index a32ed3a9683f..bbb62fa617fc 100644
> --- a/arch/arm/mach-k3/Kconfig
> +++ b/arch/arm/mach-k3/Kconfig
> @@ -101,6 +101,16 @@ config SYS_K3_BOOT_CORE_ID
> int
> default 16
>
> +config SYS_K3_SCRATCH_LPM_ADDR
> + hex
> + default 0x40280000 if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J784S4
> + default 0x0
J721E does not support LPM, please correct through series
> + help
> + Address where the wake-up reason is stored at resume (32 bits).
> + It will be read by the Linux kernel once its up.
> + On J7200/J784s4 the MCU_PSRAM0_RAM is used by default.
>[..]