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 <[email protected]>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]>
---
arch/arm/mach-k3/am62px/am62p5_init.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-k3/am62px/am62p5_init.c
b/arch/arm/mach-k3/am62px/am62p5_init.c
index
976bbbeb8747f9ddddd78b3f8d7f3787c5bfd576..4bc688ae10cd0ce36d87d2c2ad2d7609db52d5b2
100644
--- a/arch/arm/mach-k3/am62px/am62p5_init.c
+++ b/arch/arm/mach-k3/am62px/am62p5_init.c
@@ -255,6 +255,16 @@ void board_init_f(ulong dummy)
spl_enable_cache();
setup_qos();
+
+ 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);
+ }
+
Any specific reason in patch 8/13, resume is done before cache and qos.
for this platform am62p5, cache is qos is done before resuming from standby
debug("am62px_init: %s done\n", __func__);
fixup_a53_cpu_freq_by_speed_grade();