summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/smc_sip.h
blob: 30c854be7d74c52984dc6cb636a238d9334ac68a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* 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__ */