blob: a86a46cff4d5e8bed9875a0c42bd3b5973fe059a [file] [log] [blame]
developer8c327e82022-05-29 22:25:44 +08001/*
developer12872762022-12-06 15:20:31 +08002 * Copyright (c) 2022-2023, MediaTek Inc. All rights reserved.
developer8c327e82022-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) \
developerc5b2c1a2022-09-08 13:14:47 +080013 _func(MTK_SIP_KERNEL_DFD, 0x205) \
developerc9d2bfa2022-06-22 19:51:41 +080014 _func(MTK_SIP_KERNEL_MSDC, 0x273) \
developer8c327e82022-05-29 22:25:44 +080015 _func(MTK_SIP_VCORE_CONTROL, 0x506) \
Chengci Xudb1e75b2022-07-20 16:20:15 +080016 _func(MTK_SIP_IOMMU_CONTROL, 0x514) \
developer369b0392022-09-20 14:50:36 +080017 _func(MTK_SIP_AUDIO_CONTROL, 0x517) \
developer8c327e82022-05-29 22:25:44 +080018 _func(MTK_SIP_APUSYS_CONTROL, 0x51E) \
developer7fa15de2022-07-11 19:03:35 +080019 _func(MTK_SIP_DP_CONTROL, 0x523) \
developer8c327e82022-05-29 22:25:44 +080020 _func(MTK_SIP_KERNEL_GIC_OP, 0x526)
21
developer12872762022-12-06 15:20:31 +080022#define MTK_SIP_SMC_FROM_S_EL1_TABLE(_func) \
23 _func(MTK_SIP_TEE_MPU_PERM_SET, 0x031)
24
developer8c327e82022-05-29 22:25:44 +080025#define MTK_SIP_SMC_FROM_BL33_TABLE(_func) \
26 _func(MTK_SIP_KERNEL_BOOT, 0x115)
27
28#endif /* MTK_SIP_DEF_H */