blob: 89aa16337f83b648149637b99d05b8398d3b02b6 [file] [log] [blame]
jason-ch chenfa82b9b2021-11-16 09:48:20 +08001/*
2 * Copyright (c) 2022, MediaTek Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef MT_SPM_SSPM_NOTIFIER_H
8#define MT_SPM_SSPM_NOTIFIER_H
9
10enum MT_SPM_SSPM_NOTIFY_ID {
11 MT_SPM_NOTIFY_LP_ENTER = 0U,
12 MT_SPM_NOTIFY_LP_LEAVE = 1U,
13 MT_SPM_NOTIFY_SUSPEND_VCORE_VOLTAGE = 2U,
14};
15
16int mt_spm_sspm_notify(int type, unsigned int lp_mode);
17
18static inline int mt_spm_sspm_notify_u32(int type, unsigned int lp_mode)
19{
20 return mt_spm_sspm_notify(type, lp_mode);
21}
22
23#endif /* MT_SPM_SSPM_NOTIFIER_H */