mt_spm_notifier.h 527 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_SSPM_NOTIFIER_H
  7. #define MT_SPM_SSPM_NOTIFIER_H
  8. enum MT_SPM_SSPM_NOTIFY_ID {
  9. MT_SPM_NOTIFY_LP_ENTER = 0U,
  10. MT_SPM_NOTIFY_LP_LEAVE = 1U,
  11. MT_SPM_NOTIFY_SUSPEND_VCORE_VOLTAGE = 2U,
  12. };
  13. int mt_spm_sspm_notify(int type, unsigned int lp_mode);
  14. static inline int mt_spm_sspm_notify_u32(int type, unsigned int lp_mode)
  15. {
  16. return mt_spm_sspm_notify(type, lp_mode);
  17. }
  18. #endif /* MT_SPM_SSPM_NOTIFIER_H */