linux-brain/arch/arm/mach-imx/smc_sip.h
Cedric Neveux 7c335a91f0 MLK-20023 Move Busfreq support to OPTEE OS
- 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>
2020-07-23 11:22:56 +02:00

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__ */