mt_spm_suspend.h 675 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, 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. #define MCUPM_MBOX_OFFSET_PDN 0x0C55FDA8
  10. #define MCUPM_POWER_DOWN 0x4D50444E
  11. enum MT_SPM_SUSPEND_MODE {
  12. MT_SPM_SUSPEND_SYSTEM_PDN,
  13. MT_SPM_SUSPEND_SLEEP,
  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 */