mt_spm_pmic_wrap.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2020, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /****************************************************************
  7. * Auto generated by DE, please DO NOT modify this file directly.
  8. *****************************************************************/
  9. #ifndef MT_SPM_PMIC_WRAP_H
  10. #define MT_SPM_PMIC_WRAP_H
  11. enum pmic_wrap_phase_id {
  12. PMIC_WRAP_PHASE_ALLINONE,
  13. NR_PMIC_WRAP_PHASE,
  14. };
  15. /* IDX mapping, PMIC_WRAP_PHASE_ALLINONE */
  16. enum {
  17. CMD_0, /* 0x0 */
  18. CMD_1, /* 0x1 */
  19. CMD_2, /* 0x2 */
  20. CMD_3, /* 0x3 */
  21. CMD_4, /* 0x4 */
  22. CMD_5, /* 0x5 */
  23. CMD_6, /* 0x6 */
  24. CMD_7, /* 0x7 */
  25. CMD_8, /* 0x8 */
  26. CMD_9, /* 0x9 */
  27. CMD_10, /* 0xA */
  28. CMD_11, /* 0xB */
  29. CMD_12, /* 0xC */
  30. CMD_13, /* 0xD */
  31. CMD_14, /* 0xE */
  32. CMD_15, /* 0xF */
  33. NR_IDX_ALL,
  34. };
  35. /* APIs */
  36. extern void mt_spm_pmic_wrap_set_phase(enum pmic_wrap_phase_id phase);
  37. extern void mt_spm_pmic_wrap_set_cmd(enum pmic_wrap_phase_id phase,
  38. uint32_t idx, uint32_t cmd_wdata);
  39. extern uint64_t mt_spm_pmic_wrap_get_cmd(enum pmic_wrap_phase_id phase,
  40. uint32_t idx);
  41. #endif /* MT_SPM_PMIC_WRAP_H */