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