Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
67 lines
1.5 KiB
C
67 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
#ifndef _MTK_SECURE_API_H_
|
|
#define _MTK_SECURE_API_H_
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#ifdef CONFIG_ARM64
|
|
#define MTK_SIP_SMC_AARCH_BIT 0x40000000
|
|
#else
|
|
#define MTK_SIP_SMC_AARCH_BIT 0x00000000
|
|
#endif
|
|
|
|
/* CCCI debug feature */
|
|
#define MTK_SIP_KERNEL_CCCI_GET_INFO \
|
|
(0x82000206 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* eMMC related SMC call */
|
|
#define MTK_SIP_KERNEL_HW_FDE_AES_INIT \
|
|
(0x82000271 | MTK_SIP_SMC_AARCH_BIT)
|
|
#define MTK_SIP_KERNEL_HW_FDE_KEY \
|
|
(0x82000272 | MTK_SIP_SMC_AARCH_BIT)
|
|
#define MTK_SIP_KERNEL_HW_FDE_MSDC_CTL \
|
|
(0x82000273 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* M4U kernel SMC call */
|
|
#define MTK_M4U_DEBUG_DUMP \
|
|
(0x820002B0 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* Debug related SMC call */
|
|
#define MTK_SIP_KERNEL_CCCI_CONTROL \
|
|
(0x82000505 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* EMI MPU */
|
|
#define MTK_SIP_EMIMPU_CONTROL \
|
|
(0x8200050B | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* VPU */
|
|
#define MTK_SIP_APUSYS_CONTROL \
|
|
(0x8200051E | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* Clock Buffer */
|
|
#define MTK_SIP_CLKBUF_CONTROL \
|
|
(0x82000520 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* MCUSYS CPU */
|
|
#define MTK_SIP_MCUSYS_CPU_CONTROL \
|
|
(0x82000521 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* display port control related SMC call */
|
|
#define MTK_SIP_DP_CONTROL \
|
|
(0x82000523 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* SDA */
|
|
#define MTK_SIP_SDA_CONTROL \
|
|
(0x82000525 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
/* USB related SMC call */
|
|
#define MTK_SIP_USB_CONTROL \
|
|
(0x82000527 | MTK_SIP_SMC_AARCH_BIT)
|
|
|
|
#endif
|
|
/* _MTK_SECURE_API_H_ */
|