From e5af91bbf430815b993c98f207d9f119165b1846 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Fri, 15 Sep 2017 15:26:30 +0800 Subject: imx8qm/imx8qxp: enable standby suspend As suspend with last CPU power down needs SCFW support, and it is NOT ready now, in order to enable kernel suspend function earlier for modules to start debugging suspend resume function, this patch adds standby suspend for now. Will add last CPU power down suspend function when SCFW is ready. Signed-off-by: Anson Huang --- lib/psci/psci_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/psci/psci_main.c') diff --git a/lib/psci/psci_main.c b/lib/psci/psci_main.c index 2f42b812..5cdc1afd 100644 --- a/lib/psci/psci_main.c +++ b/lib/psci/psci_main.c @@ -182,10 +182,18 @@ int psci_system_suspend(uintptr_t entrypoint, u_register_t context_id) * might return if the power down was abandoned for any reason, e.g. * arrival of an interrupt */ + +#ifdef SYSTEM_SUSPEND_USE_STANDBY + psci_cpu_suspend_start(&ep, + PLAT_MAX_PWR_LVL, + &state_info, + PSTATE_TYPE_STANDBY); +#else psci_cpu_suspend_start(&ep, PLAT_MAX_PWR_LVL, &state_info, PSTATE_TYPE_POWERDOWN); +#endif return PSCI_E_SUCCESS; } -- cgit v1.2.3