mt_spm_suspend.h 692 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_SUSPEDN_H
  7. #define MT_SPM_SUSPEDN_H
  8. #include <mt_spm_internal.h>
  9. #define MCUPM_MBOX_OFFSET_PDN (0x0C55FDA8)
  10. #define MCUPM_POWER_DOWN (0x4D50444E)
  11. enum MT_SPM_SUSPEND_MODE {
  12. MT_SPM_SUSPEND_SYSTEM_PDN = 0U,
  13. MT_SPM_SUSPEND_SLEEP = 1U,
  14. };
  15. extern int mt_spm_suspend_mode_set(int mode);
  16. extern int mt_spm_suspend_enter(int state_id, unsigned int ext_opand,
  17. unsigned int reosuce_req);
  18. extern void mt_spm_suspend_resume(int state_id, unsigned int ext_opand,
  19. struct wake_status **status);
  20. extern void mt_spm_suspend_init(void);
  21. #endif /* MT_SPM_SUSPEND_H */