mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 17:37:02 +02:00
Add SPM suspend driver for suspend/resume features. TEST=build pass BUG=b:202871018 Signed-off-by: Jason-ch Chen <jason-ch.chen@mediatek.com> Change-Id: I25b4b97cd3138a7b347385539e47ccfa884d64fc
22 lines
656 B
C
22 lines
656 B
C
/*
|
|
* 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 */
|