vcp_helper.h 741 B

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