ARM: at91: pm: add support for sama5d2 secure suspend
authorClément Léger <clement.leger@bootlin.com>
Mon, 2 May 2022 15:22:19 +0000 (17:22 +0200)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 12 May 2022 11:50:50 +0000 (14:50 +0300)
commitf2f5cf78a3336f0245a1a59e641ce98fa9503db8
tree166af49a18459052bc70ce86a7bf1e74da7c65b0
parent0c9fd821175a5634e00aa391f5f202f8ed4c9223
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>
arch/arm/mach-at91/Kconfig
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/sam_secure.h