[PATCH v7 08/13] arm: mach-k3: am62a7_init: Resume on LPM exit
Kumar, Udit
u-kumar1 at ti.com
Sat Dec 13 07:55:21 CET 2025
On 12/10/2025 7:39 PM, Markus Schneider-Pargmann (TI.com) wrote:
> When exiting a low power mode with DDR self-refresh, we can directly
> resume after DDR setup is done. Call the common function to resume.
>
> Tested-by: Anshul Dalal <anshuld at ti.com>
> Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp at baylibre.com>
> ---
> arch/arm/mach-k3/am62ax/am62a7_init.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/mach-k3/am62ax/am62a7_init.c b/arch/arm/mach-k3/am62ax/am62a7_init.c
> index 24fdfdd7f1d9146f0cb6dde333d2bb54df96700d..9fe671c3ff458189ba04ddedd0f2fa8894629cec 100644
> --- a/arch/arm/mach-k3/am62ax/am62a7_init.c
> +++ b/arch/arm/mach-k3/am62ax/am62a7_init.c
> @@ -197,6 +197,15 @@ void board_init_f(ulong dummy)
> ret = uclass_get_device(UCLASS_RAM, 0, &dev);
> if (ret)
> panic("DRAM init failed: %d\n", ret);
> +
> + if (wkup_ctrl_is_lpm_exit()) {
> + u64 meta_data_addr;
> +
> + ret = wkup_r5f_am62_lpm_meta_data_addr(&meta_data_addr);
> + if (ret)
> + panic("Failed to get LPM meta data address %d\n", ret);
> + lpm_resume_from_ddr(meta_data_addr);
> + }
> #endif
I think, code will not return here after resume then how setup_qos will
be done ?
> spl_enable_cache();
>
>
More information about the U-Boot
mailing list