blob: 85b723086907b0d275eaadafc5818585b4f83132 [file] [log] [blame]
Leon Chen2f3f5932022-05-29 22:25:44 +08001/*
Kai Liang5cb0bc02024-12-03 10:23:26 +08002 * Copyright (c) 2024, MediaTek Inc. All rights reserved.
Leon Chen2f3f5932022-05-29 22:25:44 +08003 *
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) \
Bo-Chen Chen3bdd9a22022-09-08 13:14:47 +080013 _func(MTK_SIP_KERNEL_DFD, 0x205) \
Bo-Chen Chen4dbe24c2022-06-22 19:51:41 +080014 _func(MTK_SIP_KERNEL_MSDC, 0x273) \
Leon Chen2f3f5932022-05-29 22:25:44 +080015 _func(MTK_SIP_VCORE_CONTROL, 0x506) \
Kai Liang5cb0bc02024-12-03 10:23:26 +080016 _func(MTK_SIP_MTK_LPM_CONTROL, 0x507) \
Gavin Liu39f5e272024-12-31 14:34:00 +080017 _func(MTK_SIP_EMIDBG_CONTROL, 0x50B) \
Chengci Xube457242022-07-20 16:20:15 +080018 _func(MTK_SIP_IOMMU_CONTROL, 0x514) \
Trevor Wuc70f5672022-09-20 14:50:36 +080019 _func(MTK_SIP_AUDIO_CONTROL, 0x517) \
Leon Chen2f3f5932022-05-29 22:25:44 +080020 _func(MTK_SIP_APUSYS_CONTROL, 0x51E) \
Rex-BC Chena4e50232022-07-11 19:03:35 +080021 _func(MTK_SIP_DP_CONTROL, 0x523) \
Xiangzhi Tanga1763ae2024-11-01 09:31:11 +080022 _func(MTK_SIP_KERNEL_GIC_OP, 0x526) \
23 _func(MTK_SIP_KERNEL_VCP_CONTROL, 0x52C)
Leon Chen2f3f5932022-05-29 22:25:44 +080024
Bo-Chen Chen621eaab2022-12-06 15:20:31 +080025#define MTK_SIP_SMC_FROM_S_EL1_TABLE(_func) \
Gavin Liu39f5e272024-12-31 14:34:00 +080026 _func(MTK_SIP_TEE_MPU_PERM_SET, 0x031) \
27 _func(MTK_SIP_TEE_EMI_MPU_CONTROL, 0x048)
Bo-Chen Chen621eaab2022-12-06 15:20:31 +080028
Leon Chen2f3f5932022-05-29 22:25:44 +080029#define MTK_SIP_SMC_FROM_BL33_TABLE(_func) \
Gavin Liu39f5e272024-12-31 14:34:00 +080030 _func(MTK_SIP_KERNEL_BOOT, 0x115) \
Kai Liang5cb0bc02024-12-03 10:23:26 +080031 _func(MTK_SIP_BL_LPM_CONTROL, 0x410) \
Gavin Liu39f5e272024-12-31 14:34:00 +080032 _func(MTK_SIP_BL_EMIMPU_CONTROL, 0x415)
Leon Chen2f3f5932022-05-29 22:25:44 +080033
34#endif /* MTK_SIP_DEF_H */