diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-11-06 11:21:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-07 12:32:21 +0100 |
commit | 80bd1782c6a3aa8bf6e7ecf7a1153113e6a5b1ef (patch) | |
tree | 5905484a5160efe234e1f99d74272048baae594b /arch/arm/Kconfig | |
parent | 9efa1f8bdcc220be11bb94491b9fc706831a23a7 (diff) | |
download | barebox-80bd1782c6a3aa8bf6e7ecf7a1153113e6a5b1ef.tar.gz barebox-80bd1782c6a3aa8bf6e7ecf7a1153113e6a5b1ef.tar.xz |
ARM: psci: implement PSCI client driver
System reset on the STM32MP may be done via PSCI when running TF-A
as first-stage boot loader. Provide a PSCI driver to simplify using it:
- A psci_invoke function is exported, so other code can use it
- A fixup for the PSCI device tree node is registered
- A reset and poweroff handler via PSCI is registered for PSCI >= v0.2
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f82844a83a..1346f70f4f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -449,6 +449,15 @@ config ARM_PSCI PSCI is used for controlling secondary CPU cores on some systems. Say yes here if you want barebox to service PSCI calls on such systems. +config ARM_PSCI_CLIENT + bool "Enable barebox PSCI client support" + select ARM_SMCCC + select ARM_PSCI_OF + help + Say yes here if you want barebox to communicate with a secure monitor + for resetting/powering off the system over PSCI. barebox' PSCI version + information will also be shared with Linux via device tree fixups. + config ARM_PSCI_DEBUG bool "Enable PSCI debugging" depends on ARM_PSCI |