summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorBen Zong-You Xie <[email protected]>2025-12-29 15:19:11 +0800
committerAnup Patel <[email protected]>2026-02-11 12:04:01 +0530
commit85bff9cc163e05130899264eb6e963fc582de117 (patch)
treeaeaf6765355c189f47775570e2259bd2fbe0a06c /lib/utils
parent9ffacc8ae1ca07ed36d57f887d62a65ae7a44223 (diff)
platform: generic/andes: add CSR save and restore functions for AE350 platform
Implement a save and restore mechanism for Andes-specific CSRs to support hardware power-saving modes, such as CPU hotplug or suspend to RAM. Signed-off-by: Ben Zong-You Xie <[email protected]> Signed-off-by: Leo Yu-Chi Liang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/hsm/fdt_hsm_andes_atcsmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/hsm/fdt_hsm_andes_atcsmu.c b/lib/utils/hsm/fdt_hsm_andes_atcsmu.c
index a9621773..8cadc7f0 100644
--- a/lib/utils/hsm/fdt_hsm_andes_atcsmu.c
+++ b/lib/utils/hsm/fdt_hsm_andes_atcsmu.c
@@ -126,6 +126,7 @@ static int ae350_hart_stop(void)
if (rc)
return SBI_EFAIL;
+ ae350_non_ret_save(sbi_scratch_thishart_ptr());
ae350_disable_coherency();
wfi();
return 0;