mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
![Cedric Neveux](/assets/img/avatar_default.png)
- When OPTEE OS is present and if it support the busfreq for the running the i.MX, the busfreq is executed in the OPTEE OS by calling a specific SMC function - Only a WFE function is copied into the OCRAM to synchronize all Cores in multi-core devices - OPTEE OS add a DT property 'busfreq=1' in the 'firmware/optee' node to indicate the busfreq support Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com> Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
37 lines
840 B
C
37 lines
840 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2018 NXP
|
|
*/
|
|
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __SMC_SIP_H__
|
|
#define __SMC_SIP_H__
|
|
|
|
#include <linux/arm-smccc.h>
|
|
|
|
/*
|
|
* Macro definition building the OPTEE SMC Code function
|
|
* for a Fast Call, SIP operation
|
|
*/
|
|
#define OPTEE_SMC_FAST_CALL_SIP_VAL(func_num) \
|
|
ARM_SMCCC_CALL_VAL( \
|
|
ARM_SMCCC_FAST_CALL, \
|
|
ARM_SMCCC_SMC_32, \
|
|
ARM_SMCCC_OWNER_SIP, \
|
|
(func_num))
|
|
|
|
|
|
/*
|
|
* Definition of the i.MX SMC SIP Operations
|
|
* Operation value must be aligned with i.MX OPTEE
|
|
* SIP definitions
|
|
*/
|
|
/* Busfreq operation */
|
|
#define IMX_SIP_BUSFREQ_CHANGE 6
|
|
|
|
#endif /* __SMC_SIP_H__ */
|
|
|