From 022723e6b8a1fae798f4f1527785f83c7875b9eb Mon Sep 17 00:00:00 2001 From: Jun Nie Date: Tue, 30 Oct 2018 16:43:52 +0800 Subject: warp7: Add workaround to skip suspend SMC Add workaround to skip suspend SMC because warp7 does not support suspend yet due to lack of LPDDR3 configuration to DDR controller. Signed-off-by: Jun Nie --- lib/power_management/suspend/tftf_suspend.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/power_management/suspend/tftf_suspend.c b/lib/power_management/suspend/tftf_suspend.c index 9b08448..c9be10a 100644 --- a/lib/power_management/suspend/tftf_suspend.c +++ b/lib/power_management/suspend/tftf_suspend.c @@ -117,7 +117,12 @@ int tftf_suspend(const suspend_info_t *info) /* Save the local GIC context */ arm_gic_save_context_local(); +#if PLAT == warp7 + /* Add this ugly workaround because warp7 does not support it yet */ + rc = PSCI_E_SUCCESS; +#else rc = __tftf_suspend(info); +#endif /* Restore the local GIC context */ arm_gic_restore_context_local(); -- cgit v1.2.3