diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-08-17 12:19:07 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2015-10-27 15:16:39 +0000 |
commit | ead279e3f137c2ea0e33c449da6b4f188006167c (patch) | |
tree | 9fc29952bfbb483b92985abba4a02048b9dbafaf /lib/power_management/suspend/tftf_suspend.c | |
parent | c48ed44aaf48e2c5130ae5d32d9d451dcc9f1b38 (diff) |
Support save and restore of timer, SGI and GIC context
This patch adds support to save and restore context of system timer, SGI
and GIC registers. This is required for system suspend test cases as the
state of these components need to be saved and restored.
Change-Id: I647f5491a3e6f11259a3256555f6970b8bbd8dfe
Diffstat (limited to 'lib/power_management/suspend/tftf_suspend.c')
-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 0bd81d3..bc477a2 100644 --- a/lib/power_management/suspend/tftf_suspend.c +++ b/lib/power_management/suspend/tftf_suspend.c @@ -18,6 +18,7 @@ #include <platform.h> #include <power_management.h> #include <psci.h> +#include <sgi.h> #include <stdint.h> #include <tftf.h> #include <tftf_lib.h> @@ -77,6 +78,10 @@ void tftf_restore_system_ctx(tftf_suspend_ctx_t *ctx) assert(ctx->save_system_context); INFO("Restoring system context\n"); + + arm_gic_setup(); + tftf_sgi_state_restore(); + tftf_timer_gic_state_restore(); } void tftf_save_system_ctx(tftf_suspend_ctx_t *ctx) |