mt_cpu_pm.h 648 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2021, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef __MT_CPU_PM_H__
  7. #define __MT_CPU_PM_H__
  8. #define MCUSYS_STATUS_PDN (1 << 0UL)
  9. #define MCUSYS_STATUS_CPUSYS_PROTECT (1 << 8UL)
  10. #define MCUSYS_STATUS_MCUSYS_PROTECT (1 << 9UL)
  11. /* cpu_pm function ID*/
  12. enum mt_cpu_pm_user_id {
  13. MCUSYS_STATUS,
  14. CPC_COMMAND,
  15. IRQ_REMAIN_LIST_ALLOC,
  16. IRQ_REMAIN_IRQ_ADD,
  17. IRQ_REMAIN_IRQ_SUBMIT,
  18. MBOX_INFO,
  19. };
  20. /* cpu_pm lp function ID */
  21. enum mt_cpu_pm_lp_smc_id {
  22. LP_CPC_COMMAND,
  23. IRQS_REMAIN_ALLOC,
  24. IRQS_REMAIN_CTRL,
  25. IRQS_REMAIN_IRQ,
  26. IRQS_REMAIN_WAKEUP_CAT,
  27. IRQS_REMAIN_WAKEUP_SRC,
  28. };
  29. #endif