1 /* 2 * Copyright (c) 2025, 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 10 enum mt_spm_sspm_notify_id { 11 MT_SPM_NOTIFY_LP_ENTER = 0, 12 MT_SPM_NOTIFY_LP_LEAVE, 13 MT_SPM_NOTIFY_SUSPEND_VCORE, 14 MT_SPM_NOTIFY_IDLE_ENTER, 15 MT_SPM_NOTIFY_IDLE_LEAVE, 16 }; 17 18 #ifdef MTK_PLAT_SPM_SSPM_NOTIFIER_UNSUPPORT mt_spm_sspm_notify_u32(int type,unsigned int val)19static inline int mt_spm_sspm_notify_u32(int type, unsigned int val) 20 { 21 (void)type; 22 (void)val; 23 return 0; 24 } 25 #else 26 int mt_spm_sspm_notify_u32(int type, unsigned int val); 27 #endif 28 29 #endif /* MT_SPM_NOTIFIER_H */ 30