mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00

This patch mainly initializes the SPM and provides common APIs for SPM to enable the use of its various features. Signed-off-by: Wenzhen Yu <wenzhen.yu@mediatek.com> Change-Id: I9facb6bf9962bb2d5fcacd945846bfaeb4c87a55
30 lines
772 B
C
30 lines
772 B
C
/*
|
|
* Copyright (c) 2025, Mediatek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MT_SPM_CONSERVATION_H
|
|
#define MT_SPM_CONSERVATION_H
|
|
|
|
#include <mt_spm.h>
|
|
#include <mt_spm_internal.h>
|
|
|
|
int spm_conservation(int state_id, uint32_t ext_opand,
|
|
struct spm_lp_scen *spm_lp,
|
|
uint32_t resource_req);
|
|
|
|
void spm_conservation_finish(int state_id, uint32_t ext_opand,
|
|
struct spm_lp_scen *spm_lp,
|
|
struct wake_status **status);
|
|
|
|
int spm_conservation_get_result(struct wake_status **res);
|
|
|
|
int spm_conservation_fw_run(uint32_t first, void *pwrctrl);
|
|
|
|
int spm_conservation_wakeup_obs(int IsSet, int cat,
|
|
uint32_t wake_src_bits);
|
|
|
|
void mt_uart_save(void);
|
|
void mt_uart_restore(void);
|
|
#endif /* MT_SPM_CONSERVATION_H */
|