arm64: add PSCI CPU_SUSPEND based cpu_suspend support
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 27 Sep 2013 09:25:02 +0000 (10:25 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 29 May 2014 20:43:15 +0000 (21:43 +0100)
commit75ce30ddaa79134bd0225a5834016acd7cbb62ac
treee3565fc5b4789d16e7694af55db1bb386c190181
parent830b8519a41c5b13b1787ef94f31ad1d3507ec73
arm64: add PSCI CPU_SUSPEND based cpu_suspend support

This patch implements the cpu_suspend cpu operations method through
the PSCI CPU_SUSPEND API. The PSCI implementation translates the idle state
index passed by the cpu_suspend core call into a valid PSCI state according to
the PSCI states initialized at boot by the PSCI suspend backend.

Entry point is set to cpu_resume physical address, that represents the
default kernel execution address following a CPU reset.

Idle state indices missing a DT node description are initialized to power
state standby WFI so that if called by the idle driver they provide the
default behaviour.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/psci.h
arch/arm64/kernel/psci.c