Provide support for SoCs to participate in PSCI commands. There are 2 steps to a command: 1. prepare() - look at request and adjust state accordingly 2. commit() - take action on the command
The prepare() function is called with psci locks held while the commit() function is called with the locks dropped. No SoC implements the appropriate logic yet.
BUG=chrome-os-partner:32136 BRANCH=None TEST=Booted PSCI kernel -- no SMP because cmd_prepare() knowingly fails. Spintable kernel still brings up both CPUs.
Change-Id: I2ae4d1c3f3eac4d1060c1b41472909933815d078
0179fcf arm64: Implement PSCI command support
src/arch/arm64/armv8/secmon/psci.c | 76 +++++++++++++++++++++++++++++++-----
src/arch/arm64/include/arch/psci.h | 35 +++++++++++++++++
src/soc/nvidia/tegra132/psci.c | 12 ++++++
3 files changed, 113 insertions(+), 10 deletions(-)
Upstream: review.coreboot.org