arm-trusted-firmware/include
Achin Gupta f1054c93cc Pass the target suspend level to SPD suspend hooks
In certain Trusted OS implementations it is a requirement to pass them the
highest power level which will enter a power down state during a PSCI
CPU_SUSPEND or SYSTEM_SUSPEND API invocation. This patch passes this power level
to the SPD in the "max_off_pwrlvl" parameter of the svc_suspend() hook.

Currently, the highest power level which was requested to be placed in a low
power state (retention or power down) is passed to the SPD svc_suspend_finish()
hook. This hook is called after emerging from the low power state. It is more
useful to pass the highest power level which was powered down instead. This
patch does this by changing the semantics of the parameter passed to an SPD's
svc_suspend_finish() hook. The name of the parameter has been changed from
"suspend_level" to "max_off_pwrlvl" as well. Same changes have been made to the
parameter passed to the tsp_cpu_resume_main() function.

NOTE: THIS PATCH CHANGES THE SEMANTICS OF THE EXISTING "svc_suspend_finish()"
      API BETWEEN THE PSCI AND SPD/SP IMPLEMENTATIONS. THE LATTER MIGHT NEED
      UPDATES TO ENSURE CORRECT BEHAVIOUR.

Change-Id: If3a9d39b13119bbb6281f508a91f78a2f46a8b90
2015-09-10 15:16:45 +01:00
..
bl31 Pass the target suspend level to SPD suspend hooks 2015-09-10 15:16:45 +01:00
bl32 Pass arguments/results between EL3/S-EL1 via CPU registers (x0-x7) 2015-04-13 17:17:56 +01:00
common Ensure BL2 security state is secure 2015-09-02 13:48:45 +01:00
drivers Use uintptr_t as base address type in ARM driver APIs 2015-07-09 11:53:32 +01:00
lib Add macros for retention control in Cortex-A53/A57 2015-08-24 21:30:21 +05:30
plat Configure all secure interrupts on ARM platforms 2015-09-01 14:11:09 +01:00
stdlib Enable type-checking of arguments passed to printf() et al. 2015-03-06 13:07:43 +00:00