blob: e7ef346f2f5e4317f3a67d3d15994c59241ac356 [file] [log] [blame]
jason-ch chenfa82b9b2021-11-16 09:48:20 +08001/*
2 * Copyright (c) 2022, 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_internal.h>
11
12extern int spm_conservation(int state_id, unsigned int ext_opand,
13 struct spm_lp_scen *spm_lp,
14 unsigned int resource_req);
15extern void spm_conservation_finish(int state_id, unsigned int ext_opand,
16 struct spm_lp_scen *spm_lp,
17 struct wake_status **status);
18extern int spm_conservation_get_result(struct wake_status **res);
19extern void spm_conservation_pwrctrl_init(struct pwr_ctrl *pwrctrl);
20
21#endif /* MT_SPM_CONSERVATION_H */