summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2018-10-30 16:43:52 +0800
committerJun Nie <jun.nie@linaro.org>2018-10-30 16:43:52 +0800
commit022723e6b8a1fae798f4f1527785f83c7875b9eb (patch)
treece2779073be5d32f7bf25fd11ef5a9184d7adc83
parent2e200d002b86a26efa3bb4d642750244a29b1a8a (diff)
warp7: Add workaround to skip suspend SMClinaro-warp7
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 <jun.nie@linaro.org>
-rw-r--r--lib/power_management/suspend/tftf_suspend.c5
1 files changed, 5 insertions, 0 deletions
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();