mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
f2f5cf78a3
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>
18 lines
407 B
C
18 lines
407 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2022, Microchip
|
|
*/
|
|
|
|
#ifndef SAM_SECURE_H
|
|
#define SAM_SECURE_H
|
|
|
|
#include <linux/arm-smccc.h>
|
|
|
|
/* Secure Monitor mode APIs */
|
|
#define SAMA5_SMC_SIP_SET_SUSPEND_MODE 0x400
|
|
#define SAMA5_SMC_SIP_GET_SUSPEND_MODE 0x401
|
|
|
|
void __init sam_secure_init(void);
|
|
struct arm_smccc_res sam_smccc_call(u32 fn, u32 arg0, u32 arg1);
|
|
|
|
#endif /* SAM_SECURE_H */
|