summaryrefslogtreecommitdiff
path: root/lib/power_management/suspend/tftf_suspend.c
diff options
context:
space:
mode:
authoramobal01 <amol.balasokamble@arm.com>2015-12-14 22:56:07 +0530
committerSoby Mathew <soby.mathew@arm.com>2015-12-16 12:28:25 +0000
commit220fe90e69a54b01df00bb42c26ad62324f874eb (patch)
tree1b33f0b006dddc1c83f54ff8ebe0fd051d5a5ec0 /lib/power_management/suspend/tftf_suspend.c
parent8d2690808629366c768f6f333b1c35d9dd8e3a44 (diff)
Re-initialize console on resuming from system suspend
The TFTF code should not assume that the console will be initialized by Trusted Firmware. This patch re-initializes the console after resuming from system suspend in TFTF Change-Id: I1b421a1b94816f718a2c90b60d397db0f3720496
Diffstat (limited to 'lib/power_management/suspend/tftf_suspend.c')
-rw-r--r--lib/power_management/suspend/tftf_suspend.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/power_management/suspend/tftf_suspend.c b/lib/power_management/suspend/tftf_suspend.c
index bc477a2..ae607f8 100644
--- a/lib/power_management/suspend/tftf_suspend.c
+++ b/lib/power_management/suspend/tftf_suspend.c
@@ -77,6 +77,13 @@ void tftf_restore_system_ctx(tftf_suspend_ctx_t *ctx)
assert(ctx != NULL);
assert(ctx->save_system_context);
+ /*
+ * TODO: Check if there is a need for separate platform
+ * API for resume.
+ */
+
+ tftf_early_platform_setup();
+
INFO("Restoring system context\n");
arm_gic_setup();