mt_spm_notifier.h 542 B

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