spm_pmic_wrap.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2019, ARM Limited and Contributors. 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 SPM_PMIC_WRAP__H
  10. #define SPM_PMIC_WRAP__H
  11. enum pmic_wrap_phase_id {
  12. PMIC_WRAP_PHASE_ALLINONE,
  13. NR_PMIC_WRAP_PHASE
  14. };
  15. /* IDX mapping */
  16. enum {
  17. CMD_0, /* 0x0 *//* PMIC_WRAP_PHASE_ALLINONE */
  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. CMD_20, /* 0x14 */
  34. CMD_21, /* 0x15 */
  35. CMD_22, /* 0x16 */
  36. CMD_23, /* 0x17 */
  37. NR_IDX_ALL
  38. };
  39. /* APIs */
  40. void mt_spm_pmic_wrap_set_phase(enum pmic_wrap_phase_id phase);
  41. void mt_spm_pmic_wrap_set_cmd(enum pmic_wrap_phase_id phase,
  42. uint32_t idx, uint32_t cmd_wdata);
  43. uint64_t mt_spm_pmic_wrap_get_cmd(enum pmic_wrap_phase_id phase, uint32_t idx);
  44. #endif /* SPM_PMIC_WRAP__H */