[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241030013533.855696-2-karl.li@mediatek.com>
Date: Wed, 30 Oct 2024 09:35:28 +0800
From: Karl.Li <karl.li@...iatek.com>
To: Matthias Brugger <matthias.bgg@...il.com>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
CC: <linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>, Karl Li <Karl.Li@...iatek.com>,
Chungying Lu <chungying.lu@...iatek.com>,
<Project_Global_Chrome_Upstream_Group@...iatek.com>,
<chien-chih.tseng@...iatek.com>, <andy.teng@...iatek.com>, Karl Li
<karl.li@...iatek.com>
Subject: [PATCH v2 1/1] soc: mediatek: Add command for APU SMC call
From: Karl Li <karl.li@...iatek.com>
Add command for APU SMC call.
The APU microprocess's start and stop sequence will process in ATF.
Signed-off-by: Karl Li <karl.li@...iatek.com>
---
include/linux/firmware/mediatek/mtk-apu.h | 32 +++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 include/linux/firmware/mediatek/mtk-apu.h
diff --git a/include/linux/firmware/mediatek/mtk-apu.h b/include/linux/firmware/mediatek/mtk-apu.h
new file mode 100644
index 000000000000..a327e31d40fa
--- /dev/null
+++ b/include/linux/firmware/mediatek/mtk-apu.h
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2024 MediaTek Inc.
+ */
+
+#ifndef __MEDIATEK_APU_H__
+#define __MEDIATEK_APU_H__
+
+enum mtk_apusys_kernel_op {
+ MTK_APUSYS_KERNEL_OP_APUSYS_PWR_TOP_ON, /* 0 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_PWR_TOP_OFF, /* 1 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_SETUP_REVISER, /* 2 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_RESET_MP, /* 3 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_SETUP_BOOT, /* 4 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_START_MP, /* 5 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_STOP_MP, /* 6 */
+ MTK_APUSYS_KERNEL_OP_DEVAPC_INIT_RCX, /* 7 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_SETUP_SEC_MEM, /* 8 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_DISABLE_WDT_ISR, /* 9 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_CLEAR_WDT_ISR, /* 10 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_CG_GATING, /* 11 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_CG_UNGATING, /* 12 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_RV_SETUP_APUMMU, /* 13 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_LOGTOP_REG_DUMP, /* 14 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_LOGTOP_REG_WRITE, /* 15 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_LOGTOP_REG_W1C, /* 16 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_COLD_BOOT_CLR_MBOX_DUMMY, /* 17 */
+ MTK_APUSYS_KERNEL_OP_APUSYS_SETUP_CE_BIN, /* 18 */
+ MTK_APUSYS_KERNEL_OP_NUM,
+};
+
+#endif
--
2.18.0
Powered by blists - more mailing lists