xref: /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/mt_spm_conservation.h (revision cbf956ad0b4d62f7f93fd33d975a4d961009d83f)
1 /*
2  * Copyright (c) 2025, Mediatek Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef MT_SPM_CONSERVATION_H
8 #define MT_SPM_CONSERVATION_H
9 
10 #include <mt_spm.h>
11 #include <mt_spm_internal.h>
12 
13 int spm_conservation(int state_id, uint32_t ext_opand,
14 		     struct spm_lp_scen *spm_lp, uint32_t resource_req);
15 
16 void spm_conservation_finish(int state_id, uint32_t ext_opand,
17 			     struct spm_lp_scen *spm_lp,
18 			     struct wake_status **status);
19 
20 int spm_conservation_get_result(struct wake_status **res);
21 
22 int spm_conservation_fw_run(uint32_t first, void *pwrctrl);
23 
24 int spm_conservation_wakeup_obs(int is_set, int cat, uint32_t wake_src_bits);
25 
26 #endif /* MT_SPM_CONSERVATION_H */
27