summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/mt8186/drivers/spm/mt_spm_conservation.h
blob: e7ef346f2f5e4317f3a67d3d15994c59241ac356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2022, MediaTek Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef MT_SPM_CONSERVATION_H
#define MT_SPM_CONSERVATION_H

#include <mt_spm_internal.h>

extern int spm_conservation(int state_id, unsigned int ext_opand,
			    struct spm_lp_scen *spm_lp,
			    unsigned int resource_req);
extern void spm_conservation_finish(int state_id, unsigned int ext_opand,
				    struct spm_lp_scen *spm_lp,
				    struct wake_status **status);
extern int spm_conservation_get_result(struct wake_status **res);
extern void spm_conservation_pwrctrl_init(struct pwr_ctrl *pwrctrl);

#endif /* MT_SPM_CONSERVATION_H */