arm-trusted-firmware/plat/mediatek/drivers/spm/mt8196/mt_spm_idle.h
Wenzhen Yu 01ce1d5d2f feat(mt8196): add SPM features support
When the system is in idle or suspend state, SPM will turn off some
unused system resources. This patch enables this feature to achieve
power saving.

Signed-off-by: Wenzhen Yu <wenzhen.yu@mediatek.com>
Change-Id: Ia9764b91073c4765d41fe7fcd8e4a21372c290f1
2025-01-22 15:28:08 +08:00

27 lines
729 B
C

/*
* Copyright (c) 2025, Mediatek Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MT_SPM_IDLE_H
#define MT_SPM_IDLE_H
#include <mt_spm_internal.h>
typedef int (*spm_idle_conduct)(int state_id, struct spm_lp_scen *spm_lp,
uint32_t *resource_req);
typedef int (*spm_idle_conduct_restore)(int state_id,
struct spm_lp_scen *spm_lp,
struct wake_status *status);
int mt_spm_idle_generic_enter(int state_id, uint32_t ext_opand,
spm_idle_conduct fn);
void mt_spm_idle_generic_resume(int state_id, uint32_t ext_opand,
struct wake_status **status,
spm_idle_conduct_restore fn);
int mt_spm_idle_generic_get_spm_lp(struct spm_lp_scen **lp);
#endif /* MT_SPM_IDLE_H */