xref: /rk3399_ARM-atf/plat/mediatek/include/mtk_sip_def.h (revision 6dc5979a6cb2121e4c16e7bd62e24030e0f42755)
1 /*
2  * Copyright (c) 2022, MediaTek Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef MTK_SIP_DEF_H
8 #define MTK_SIP_DEF_H
9 
10 /* Define SiP SMC ID here */
11 #define MTK_SIP_SMC_FROM_NS_EL1_TABLE(_func) \
12 	_func(MTK_SIP_KERNEL_TIME_SYNC, 0x202) \
13 	_func(MTK_SIP_KERNEL_DFD, 0x205) \
14 	_func(MTK_SIP_KERNEL_MSDC, 0x273) \
15 	_func(MTK_SIP_VCORE_CONTROL, 0x506) \
16 	_func(MTK_SIP_IOMMU_CONTROL, 0x514) \
17 	_func(MTK_SIP_APUSYS_CONTROL, 0x51E) \
18 	_func(MTK_SIP_DP_CONTROL, 0x523) \
19 	_func(MTK_SIP_KERNEL_GIC_OP, 0x526)
20 
21 #define MTK_SIP_SMC_FROM_BL33_TABLE(_func) \
22 	_func(MTK_SIP_KERNEL_BOOT, 0x115)
23 
24 #endif /* MTK_SIP_DEF_H */
25