arm-trusted-firmware/plat/st/stm32mp2/include/stm32mp2_smc.h
Gatien Chevallier 7f41506fa7 feat(stm32mp2): add a runtime service for STGEN configuration
Other component such as OP-TEE may have the responsibility for
STGEN configuration but updating Arm CNTFRQ can only be done from
EL3. Therefore, implement a SiP SMC handler for this purpose and
a runtime service to catch SIP SMCs.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Maxime Méré <maxime.mere@foss.st.com>
Change-Id: I7854e1ae6328f149798b43d52bb1ecdf71a5aa69
2024-12-13 11:48:38 +01:00

22 lines
522 B
C

/*
* Copyright (c) 2024, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP2_SMC_H
#define STM32MP2_SMC_H
#define STM32_COMMON_SIP_NUM_CALLS 1U
/*
* STM32_SIP_SMC_STGEN_SET_RATE call API
* This service is opened to secure world only.
*
* Argument a0: (input) SMCC ID
* (output) status return code
* Argument a1: (input) Frequency to set (given by sender)
*/
#define STM32_SIP_SMC_STGEN_SET_RATE 0x82000000
#endif /* STM32MP2_SMC_H */