aboutsummaryrefslogtreecommitdiff
path: root/plat/mediatek/mt8195/drivers/spm/notifier/mt_spm_notifier.h
blob: ee3738de2f589b0da586cc1ca327929a881a9af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2021, MediaTek Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef MT_SPM_SSPM_NOTIFIER_H
#define MT_SPM_SSPM_NOTIFIER_H

enum MT_SPM_SSPM_NOTIFY_ID {
	MT_SPM_NOTIFY_LP_ENTER,
	MT_SPM_NOTIFY_LP_LEAVE,
};

int mt_spm_sspm_notify(int type, unsigned int lp_mode);

static inline int mt_spm_sspm_notify_u32(int type, unsigned int lp_mode)
{
	return mt_spm_sspm_notify(type, lp_mode);
}
#endif /* MT_SPM_SSPM_NOTIFIER_H */