summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSubrahmanya Lingappa <[email protected]>2024-08-06 10:38:46 +0530
committerAnup Patel <[email protected]>2024-12-06 09:26:35 +0530
commitfdd72635368beb5f9c85533b92abb31adee20406 (patch)
tree51357007f62fa2383526ef00e32bb8b2e8876130 /platform
parent13f55f33a1d361784fd250b9e3897918b7ae82d4 (diff)
lib: sbi: Add optional resume address to hart suspend
Add an optional resume address to the platform specific hart suspend call. Signed-off-by: Subrahmanya Lingappa <[email protected]> Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/allwinner/sun20i-d1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/allwinner/sun20i-d1.c b/platform/generic/allwinner/sun20i-d1.c
index b65013c2..c31ebdb2 100644
--- a/platform/generic/allwinner/sun20i-d1.c
+++ b/platform/generic/allwinner/sun20i-d1.c
@@ -130,7 +130,7 @@ static void sun20i_d1_riscv_cfg_init(void)
writel_relaxed(entry >> 32, SUN20I_D1_RISCV_CFG_BASE + RESET_ENTRY_HI_REG);
}
-static int sun20i_d1_hart_suspend(u32 suspend_type)
+static int sun20i_d1_hart_suspend(u32 suspend_type, ulong mmode_resume_addr)
{
/* Use the generic code for retentive suspend. */
if (!(suspend_type & SBI_HSM_SUSP_NON_RET_BIT))