developer | c0c0782 | 2021-03-29 16:50:30 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, MediaTek Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef PLAT_SIP_CALLS_H |
| 8 | #define PLAT_SIP_CALLS_H |
| 9 | |
| 10 | /******************************************************************************* |
| 11 | * Plat SiP function constants |
| 12 | ******************************************************************************/ |
developer | 4791789 | 2021-11-01 16:43:47 +0800 | [diff] [blame] | 13 | #define MTK_PLAT_SIP_NUM_CALLS 6 |
Rex-BC Chen | 1790304 | 2021-08-10 11:10:58 +0800 | [diff] [blame] | 14 | |
| 15 | /* DFD */ |
| 16 | #define MTK_SIP_KERNEL_DFD_AARCH32 0x82000205 |
| 17 | #define MTK_SIP_KERNEL_DFD_AARCH64 0xC2000205 |
Rex-BC Chen | b48c6c4 | 2021-04-12 11:10:31 +0800 | [diff] [blame] | 18 | |
| 19 | /* DP/eDP */ |
| 20 | #define MTK_SIP_DP_CONTROL_AARCH32 0x82000523 |
| 21 | #define MTK_SIP_DP_CONTROL_AARCH64 0xC2000523 |
developer | c0c0782 | 2021-03-29 16:50:30 +0800 | [diff] [blame] | 22 | |
developer | 4791789 | 2021-11-01 16:43:47 +0800 | [diff] [blame] | 23 | /* APUSYS SMC call */ |
| 24 | #define MTK_SIP_APUSYS_CONTROL_AARCH32 0x8200051E |
| 25 | #define MTK_SIP_APUSYS_CONTROL_AARCH64 0xC200051E |
| 26 | |
developer | c0c0782 | 2021-03-29 16:50:30 +0800 | [diff] [blame] | 27 | #endif /* PLAT_SIP_CALLS_H */ |