blob: 4d12624298dbf14bae629307ccd930dac9abfc6f [file] [log] [blame]
developer312ade32022-11-15 20:33:18 +08001/*
2 * Copyright (c) 2023, MediaTek Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef MT_SPM_NOTIFIER_H
8#define MT_SPM_NOTIFIER_H
9
10enum mt_spm_sspm_notify_id {
11 MT_SPM_NOTIFY_LP_ENTER = 0,
12 MT_SPM_NOTIFY_LP_LEAVE,
13 MT_SPM_NOTIFY_SUSPEND_VCORE_VOLTAGE,
14};
15
16#ifdef MTK_PLAT_SPM_SSPM_NOTIFIER_UNSUPPORT
17static inline int mt_spm_sspm_notify_u32(int type, unsigned int val)
18{
19 (void)type;
20 (void)val;
21 return 0;
22}
23#else
24int mt_spm_sspm_notify_u32(int type, unsigned int val);
25#endif
26
27#endif /* MT_SPM_NOTIFIER_H */