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