[PATCH 09/19] arm: mach-k3: am62p5_init: Resume on LPM exit
Markus Schneider-Pargmann
msp at baylibre.com
Tue Mar 11 11:30:48 CET 2025
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.
Signed-off-by: Markus Schneider-Pargmann <msp at baylibre.com>
---
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 a61dcaeb00f799a1f9c42f48d63c42815c4dcae3..af63cbe3191526add83652af4003974cbaeff0e5 100644
--- a/arch/arm/mach-k3/am62px/am62p5_init.c
+++ b/arch/arm/mach-k3/am62px/am62p5_init.c
@@ -223,6 +223,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);
+ }
+
debug("am62px_init: %s done\n", __func__);
fixup_a53_cpu_freq_by_speed_grade();
--
2.47.2
More information about the U-Boot
mailing list