Rework 'state' field usage in per-cpu TSP context
This patch lays the foundation for using the per-cpu 'state' field in
the 'tsp_context' structure for other flags apart from the power state
of the TSP.

It allocates 2 bits for the power state, introduces the necessary
macros to manipulate the power state in the 'state' field and
accordingly reworks all use of the TSP_STATE_* states.

It also allocates a flag bit to determine if the TSP is handling a
standard SMC. If this flag is set then the TSP was interrupted due to
non-secure or EL3 interupt depending upon the chosen routing
model. Macros to get, set and clear this flag have been added as
well. This flag will be used by subsequent patches.

Change-Id: Ic6ee80bd5895812c83b35189cf2c3be70a9024a6
1 parent ec786cb commit dc24fe4801449eb8b60d06a26966b5ee65ec1111
@Achin Gupta Achin Gupta authored on 4 May 2014
Showing 4 changed files
View
services/spd/tspd/tspd_common.c
View
services/spd/tspd/tspd_main.c
View
services/spd/tspd/tspd_pm.c
View
services/spd/tspd/tspd_private.h