aboutsummaryrefslogtreecommitdiffstats
path: root/bl32/tsp/tsp_main.c
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2014-02-09 18:24:19 +0000
committerDan Handley <dan.handley@arm.com>2014-02-20 19:06:34 +0000
commit607084ee4c2a7c20832beb8cd1d5cebf02b2cb26 (patch)
treebd4a262134027060c027e81f7aaebf64965d370d /bl32/tsp/tsp_main.c
parent375f538a797a89a5f49aab1be70e86df4511c05a (diff)
downloadplatform_external_arm-trusted-firmware-607084ee4c2a7c20832beb8cd1d5cebf02b2cb26.tar.gz
platform_external_arm-trusted-firmware-607084ee4c2a7c20832beb8cd1d5cebf02b2cb26.tar.bz2
platform_external_arm-trusted-firmware-607084ee4c2a7c20832beb8cd1d5cebf02b2cb26.zip
Add power management support in the SPD
This patch implements a set of handlers in the SPD which are called by the PSCI runtime service upon receiving a power management operation. These handlers in turn pass control to the Secure Payload image if required before returning control to PSCI. This ensures that the Secure Payload has complete visibility of all power transitions in the system and can prepare accordingly. Change-Id: I2d1dba5629b7cf2d53999d39fe807dfcf3f62fe2
Diffstat (limited to 'bl32/tsp/tsp_main.c')
-rw-r--r--bl32/tsp/tsp_main.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/bl32/tsp/tsp_main.c b/bl32/tsp/tsp_main.c
index 258bee49e..f6640edd7 100644
--- a/bl32/tsp/tsp_main.c
+++ b/bl32/tsp/tsp_main.c
@@ -199,10 +199,7 @@ tsp_args *tsp_cpu_off_main(uint64_t arg0,
spin_unlock(&console_lock);
- /*
- * Indicate to the SPD that we have completed
- * this initialisation request.
- */
+ /* Indicate to the SPD that we have completed this request */
return set_smc_args(TSP_OFF_DONE, 0, 0, 0, 0, 0, 0, 0);
}
@@ -237,10 +234,7 @@ tsp_args *tsp_cpu_suspend_main(uint64_t power_state,
tsp_stats[linear_id].cpu_suspend_count);
spin_unlock(&console_lock);
- /*
- * Indicate to the SPD that we have completed
- * this initialisation request.
- */
+ /* Indicate to the SPD that we have completed this request */
return set_smc_args(TSP_SUSPEND_DONE, 0, 0, 0, 0, 0, 0, 0);
}
@@ -275,10 +269,7 @@ tsp_args *tsp_cpu_resume_main(uint64_t suspend_level,
tsp_stats[linear_id].cpu_suspend_count);
spin_unlock(&console_lock);
- /*
- * Indicate to the SPD that we have completed
- * this initialisation request.
- */
+ /* Indicate to the SPD that we have completed this request */
return set_smc_args(TSP_RESUME_DONE, 0, 0, 0, 0, 0, 0, 0);
}