summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/Kconfig
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-05-02 17:22:19 +0200
committerClaudiu Beznea <claudiu.beznea@microchip.com>2022-05-12 13:50:50 +0200
commitf2f5cf78a3336f0245a1a59e641ce98fa9503db8 (patch)
tree166af49a18459052bc70ce86a7bf1e74da7c65b0 /arch/arm/mach-at91/Kconfig
parentARM: at91: add code to handle secure calls (diff)
downloadlinux-f2f5cf78a3336f0245a1a59e641ce98fa9503db8.tar.xz
linux-f2f5cf78a3336f0245a1a59e641ce98fa9503db8.zip
ARM: at91: pm: add support for sama5d2 secure suspend
When running with OP-TEE, the suspend control is handled securely. Suspend can be entered using PSCI support. Since the sama5d2 supports multiple suspend modes, add a new CONFIG_ATMEL_SECURE_PM which will send a SMC call to select the suspend mode at init time. "atmel.pm_modes" boot argument is still supported for compatibility purposes but the standby value is actually ignored since PSCI suspend is used and it only support one mode (suspend). Signed-off-by: Clément Léger <clement.leger@bootlin.com> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Diffstat (limited to 'arch/arm/mach-at91/Kconfig')
-rw-r--r--arch/arm/mach-at91/Kconfig11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 1531b4625c76..0edb60f7ccc6 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -218,7 +218,16 @@ config SOC_SAMA5
select SRAM if PM
config ATMEL_PM
- bool
+ bool "Atmel PM support"
+
+config ATMEL_SECURE_PM
+ bool "Atmel Secure PM support"
+ depends on SOC_SAMA5D2 && ATMEL_PM
+ select ARM_PSCI
+ help
+ When running under a TEE, the suspend mode must be requested to be set
+ at TEE level. When enable, this option will use secure monitor calls
+ to set the suspend level. PSCI is then used to enter suspend.
config SOC_SAMA7
bool