developer | 8c327e8 | 2022-05-29 22:25:44 +0800 | [diff] [blame] | 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) \ |
developer | c5b2c1a | 2022-09-08 13:14:47 +0800 | [diff] [blame] | 13 | _func(MTK_SIP_KERNEL_DFD, 0x205) \ |
developer | c9d2bfa | 2022-06-22 19:51:41 +0800 | [diff] [blame] | 14 | _func(MTK_SIP_KERNEL_MSDC, 0x273) \ |
developer | 8c327e8 | 2022-05-29 22:25:44 +0800 | [diff] [blame] | 15 | _func(MTK_SIP_VCORE_CONTROL, 0x506) \ |
Chengci Xu | db1e75b | 2022-07-20 16:20:15 +0800 | [diff] [blame] | 16 | _func(MTK_SIP_IOMMU_CONTROL, 0x514) \ |
developer | 369b039 | 2022-09-20 14:50:36 +0800 | [diff] [blame] | 17 | _func(MTK_SIP_AUDIO_CONTROL, 0x517) \ |
developer | 8c327e8 | 2022-05-29 22:25:44 +0800 | [diff] [blame] | 18 | _func(MTK_SIP_APUSYS_CONTROL, 0x51E) \ |
developer | 7fa15de | 2022-07-11 19:03:35 +0800 | [diff] [blame] | 19 | _func(MTK_SIP_DP_CONTROL, 0x523) \ |
developer | 8c327e8 | 2022-05-29 22:25:44 +0800 | [diff] [blame] | 20 | _func(MTK_SIP_KERNEL_GIC_OP, 0x526) |
| 21 | |
| 22 | #define MTK_SIP_SMC_FROM_BL33_TABLE(_func) \ |
| 23 | _func(MTK_SIP_KERNEL_BOOT, 0x115) |
| 24 | |
| 25 | #endif /* MTK_SIP_DEF_H */ |