mt_spm_suspend.h 579 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2023, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_SUSPEND_H
  7. #define MT_SPM_SUSPEND_H
  8. #include <mt_spm_internal.h>
  9. struct suspend_dbg_ctrl {
  10. uint32_t sleep_suspend_cnt;
  11. };
  12. enum mt_spm_suspend_mode {
  13. MT_SPM_SUSPEND_SYSTEM_PDN = 0,
  14. MT_SPM_SUSPEND_SLEEP,
  15. };
  16. int mt_spm_suspend_mode_set(int mode, void *prv);
  17. int mt_spm_suspend_enter(int state_id, unsigned int ext_opand, unsigned int reosuce_req);
  18. void mt_spm_suspend_resume(int state_id, unsigned int ext_opand, struct wake_status **status);
  19. #endif