arm-trusted-firmware/plat/mediatek/drivers/spm/common/dbg_ctrl.h
Wenzhen Yu a24b53e0e5 feat(mt8196): add SPM common driver support
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
2025-01-22 15:28:08 +08:00

27 lines
447 B
C

/*
* Copyright (c) 2025, Mediatek Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef DBG_CTRL_H
#define DBG_CTRL_H
/* SPM_WAKEUP_MISC */
#define WAKE_MISC_TWAM BIT(18)
#define WAKE_MISC_PCM_TIMER BIT(19)
#define WAKE_MISC_CPU_WAKE BIT(20)
struct dbg_ctrl {
uint32_t count;
uint32_t duration;
void *ext;
};
enum dbg_ctrl_enum {
DBG_CTRL_COUNT,
DBG_CTRL_DURATION,
DBG_CTRL_MAX,
};
#endif /* DBG_CTRL_H */