]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1848d65d0cf7c89d411533084b981c0b4a472a20
tree166af49a18459052bc70ce86a7bf1e74da7c65b0
parentfb4737bf69335bd696249d2912ce73c9e76f198f
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