1 /* 2 * Copyright (c) 2024, MediaTek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef VCP_HELPER_H 8 #define VCP_HELPER_H 9 10 #define MTK_VCP_SRAM_SIZE (0x60000) 11 12 /* Export extern API */ 13 uint32_t get_mmup_fw_size(void); 14 uint64_t get_mmup_l2tcm_offset(void); 15 16 /* SMC calls OPS */ 17 enum mtk_tinysys_vcp_kernel_op { 18 MTK_TINYSYS_VCP_KERNEL_OP_RESET_SET = 0, 19 MTK_TINYSYS_VCP_KERNEL_OP_RESET_RELEASE, 20 MTK_TINYSYS_VCP_KERNEL_OP_COLD_BOOT_VCP, 21 MTK_TINYSYS_MMUP_KERNEL_OP_RESET_SET, 22 MTK_TINYSYS_MMUP_KERNEL_OP_RESET_RELEASE, 23 MTK_TINYSYS_MMUP_KERNEL_OP_SET_L2TCM_OFFSET, 24 MTK_TINYSYS_MMUP_KERNEL_OP_SET_FW_SIZE, 25 MTK_TINYSYS_MMUP_KERNEL_OP_COLD_BOOT_MMUP, 26 MTK_TINYSYS_VCP_KERNEL_OP_NUM, 27 }; 28 29 #endif /* VCP_HELPER_H */ 30