mt_spm_pmic_wrap.h 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2023, 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 = 0,
  13. NR_PMIC_WRAP_PHASE,
  14. };
  15. /* IDX mapping */
  16. enum {
  17. CMD_0 = 0, /* PMIC_WRAP_PHASE_ALLINONE */
  18. CMD_1,
  19. CMD_2,
  20. CMD_3,
  21. CMD_4,
  22. CMD_5,
  23. CMD_6,
  24. CMD_7,
  25. CMD_8,
  26. CMD_9,
  27. CMD_10,
  28. CMD_11,
  29. CMD_12,
  30. CMD_13,
  31. CMD_14,
  32. CMD_15,
  33. NR_IDX_ALL,
  34. };
  35. /* APIs */
  36. void mt_spm_pmic_wrap_set_phase(enum pmic_wrap_phase_id phase);
  37. void mt_spm_pmic_wrap_set_cmd(enum pmic_wrap_phase_id phase, unsigned int idx,
  38. unsigned int cmd_wdata);
  39. uint64_t mt_spm_pmic_wrap_get_cmd(enum pmic_wrap_phase_id phase, unsigned int idx);
  40. void mt_spm_dump_pmic_warp_reg(void);
  41. #endif /* MT_SPM_PMIC_WRAP_H */