mt_spm_resource_req.h 725 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2021, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_RESOURCE_REQ_H
  7. #define MT_SPM_RESOURCE_REQ_H
  8. /* SPM resource request internal bit */
  9. #define MT_SPM_BIT_XO_FPM 0
  10. #define MT_SPM_BIT_26M 1
  11. #define MT_SPM_BIT_INFRA 2
  12. #define MT_SPM_BIT_SYSPLL 3
  13. #define MT_SPM_BIT_DRAM_S0 4
  14. #define MT_SPM_BIT_DRAM_S1 5
  15. /* SPM resource request internal bit_mask */
  16. #define MT_SPM_XO_FPM BIT(MT_SPM_BIT_XO_FPM)
  17. #define MT_SPM_26M BIT(MT_SPM_BIT_26M)
  18. #define MT_SPM_INFRA BIT(MT_SPM_BIT_INFRA)
  19. #define MT_SPM_SYSPLL BIT(MT_SPM_BIT_SYSPLL)
  20. #define MT_SPM_DRAM_S0 BIT(MT_SPM_BIT_DRAM_S0)
  21. #define MT_SPM_DRAM_S1 BIT(MT_SPM_BIT_DRAM_S1)
  22. #endif /* MT_SPM_RESOURCE_REQ_H */