diff options
author | Jun Nie <jun.nie@linaro.org> | 2018-10-30 16:43:52 +0800 |
---|---|---|
committer | Jun Nie <jun.nie@linaro.org> | 2018-10-30 16:43:52 +0800 |
commit | 022723e6b8a1fae798f4f1527785f83c7875b9eb (patch) | |
tree | ce2779073be5d32f7bf25fd11ef5a9184d7adc83 | |
parent | 2e200d002b86a26efa3bb4d642750244a29b1a8a (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.c | 5 |
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(); |