xref: /rk3399_ARM-atf/plat/xilinx/common/include/pm_defs.h (revision fa77de87f361d70915534150235dd159c6ceecf1)
192f7de1eSJay Buddhabhatti /*
292f7de1eSJay Buddhabhatti  * Copyright (c) 2019-2022, Xilinx, Inc. All rights reserved.
309abae06SDevanshi Chauhan Alpeshbhai  * Copyright (c) 2022-2025, Advanced Micro Devices, Inc. All rights reserved.
492f7de1eSJay Buddhabhatti  *
592f7de1eSJay Buddhabhatti  * SPDX-License-Identifier: BSD-3-Clause
692f7de1eSJay Buddhabhatti  */
792f7de1eSJay Buddhabhatti 
892f7de1eSJay Buddhabhatti /* Versal power management enums and defines */
992f7de1eSJay Buddhabhatti 
1092f7de1eSJay Buddhabhatti #ifndef PM_DEFS_H
1192f7de1eSJay Buddhabhatti #define PM_DEFS_H
1292f7de1eSJay Buddhabhatti 
1392f7de1eSJay Buddhabhatti #include "pm_node.h"
1492f7de1eSJay Buddhabhatti 
1592f7de1eSJay Buddhabhatti /*********************************************************************
1692f7de1eSJay Buddhabhatti  * Macro definitions
1792f7de1eSJay Buddhabhatti  ********************************************************************/
1892f7de1eSJay Buddhabhatti 
1992f7de1eSJay Buddhabhatti /* State arguments of the self suspend */
2092f7de1eSJay Buddhabhatti #define PM_STATE_CPU_IDLE	0x0U
2159497016SJay Buddhabhatti #define PM_STATE_CPU_OFF	0x1U
2292f7de1eSJay Buddhabhatti #define PM_STATE_SUSPEND_TO_RAM	0xFU
2392f7de1eSJay Buddhabhatti 
2492f7de1eSJay Buddhabhatti #define MAX_LATENCY		(~0U)
2592f7de1eSJay Buddhabhatti 
2692f7de1eSJay Buddhabhatti /* Processor core device IDs */
2792f7de1eSJay Buddhabhatti #define APU_DEVID(IDX)	NODEID(XPM_NODECLASS_DEVICE, XPM_NODESUBCL_DEV_CORE, \
2892f7de1eSJay Buddhabhatti 			       XPM_NODETYPE_DEV_CORE_APU, (IDX))
2992f7de1eSJay Buddhabhatti 
3092f7de1eSJay Buddhabhatti #define XPM_DEVID_ACPU_0	APU_DEVID(XPM_NODEIDX_DEV_ACPU_0)
3192f7de1eSJay Buddhabhatti #define XPM_DEVID_ACPU_1	APU_DEVID(XPM_NODEIDX_DEV_ACPU_1)
3292f7de1eSJay Buddhabhatti 
33964e5592SJay Buddhabhatti #define PERIPH_DEVID(IDX)	NODEID((uint32_t)XPM_NODECLASS_DEVICE, \
34964e5592SJay Buddhabhatti 				       (uint32_t)XPM_NODESUBCL_DEV_PERIPH, \
35964e5592SJay Buddhabhatti 				       (uint32_t)XPM_NODETYPE_DEV_PERIPH, (IDX))
3692f7de1eSJay Buddhabhatti 
379a0f5d12SJay Buddhabhatti #define TF_A_FEATURE_CHECK		0xa00U
3892f7de1eSJay Buddhabhatti #define PM_GET_CALLBACK_DATA		0xa01U
3992f7de1eSJay Buddhabhatti #define PM_GET_TRUSTZONE_VERSION	0xa03U
4092f7de1eSJay Buddhabhatti #define TF_A_PM_REGISTER_SGI		0xa04U
41*1d4372c4SJay Buddhabhatti #define TF_A_CLEAR_PM_STATE		0xa05U
4292f7de1eSJay Buddhabhatti 
4392f7de1eSJay Buddhabhatti /* PM API Versions */
4492f7de1eSJay Buddhabhatti #define PM_API_BASE_VERSION		1U
4592f7de1eSJay Buddhabhatti #define PM_API_VERSION_2		2U
4692f7de1eSJay Buddhabhatti 
4792f7de1eSJay Buddhabhatti /* Loader API ids */
4892f7de1eSJay Buddhabhatti #define PM_LOAD_PDI			0x701U
4992f7de1eSJay Buddhabhatti #define PM_LOAD_GET_HANDOFF_PARAMS	0x70BU
5092f7de1eSJay Buddhabhatti 
5105d0cb4fSMaheedhar Bollapalli /* Boot mode id */
5205d0cb4fSMaheedhar Bollapalli #define CRP_BOOT_MODE_REG_NODE          0x30000001U
5305d0cb4fSMaheedhar Bollapalli #define CRP_BOOT_MODE_REG_OFFSET        0x200U
5405d0cb4fSMaheedhar Bollapalli 
5592f7de1eSJay Buddhabhatti /* System shutdown macros */
5692f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_TYPE_SHUTDOWN	0U
5792f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_TYPE_RESET		1U
5892f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_TYPE_SETSCOPE_ONLY	2U
5992f7de1eSJay Buddhabhatti 
6092f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_SUBTYPE_RST_SUBSYSTEM	0U
6192f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_SUBTYPE_RST_PS_ONLY	1U
6292f7de1eSJay Buddhabhatti #define	XPM_SHUTDOWN_SUBTYPE_RST_SYSTEM		2U
6392f7de1eSJay Buddhabhatti 
6492f7de1eSJay Buddhabhatti /*********************************************************************
6592f7de1eSJay Buddhabhatti  * Enum definitions
6692f7de1eSJay Buddhabhatti  ********************************************************************/
6792f7de1eSJay Buddhabhatti 
68de7ed953SPrasad Kummari /*
69de7ed953SPrasad Kummari  * ioctl id
70de7ed953SPrasad Kummari  */
71c90f4abfSJay Buddhabhatti enum {
72c90f4abfSJay Buddhabhatti 	IOCTL_GET_RPU_OPER_MODE = 0,
73c90f4abfSJay Buddhabhatti 	IOCTL_SET_RPU_OPER_MODE = 1,
74c90f4abfSJay Buddhabhatti 	IOCTL_RPU_BOOT_ADDR_CONFIG = 2,
75c90f4abfSJay Buddhabhatti 	IOCTL_TCM_COMB_CONFIG = 3,
76c90f4abfSJay Buddhabhatti 	IOCTL_SET_TAPDELAY_BYPASS = 4,
77c90f4abfSJay Buddhabhatti 	IOCTL_SD_DLL_RESET = 6,
78c90f4abfSJay Buddhabhatti 	IOCTL_SET_SD_TAPDELAY = 7,
79c90f4abfSJay Buddhabhatti 	 /* Ioctl for clock driver */
80c90f4abfSJay Buddhabhatti 	IOCTL_SET_PLL_FRAC_MODE = 8,
81c90f4abfSJay Buddhabhatti 	IOCTL_GET_PLL_FRAC_MODE = 9,
82c90f4abfSJay Buddhabhatti 	IOCTL_SET_PLL_FRAC_DATA = 10,
83c90f4abfSJay Buddhabhatti 	IOCTL_GET_PLL_FRAC_DATA = 11,
84c90f4abfSJay Buddhabhatti 	IOCTL_WRITE_GGS = 12,
85c90f4abfSJay Buddhabhatti 	IOCTL_READ_GGS = 13,
86c90f4abfSJay Buddhabhatti 	IOCTL_WRITE_PGGS = 14,
87c90f4abfSJay Buddhabhatti 	IOCTL_READ_PGGS = 15,
88c90f4abfSJay Buddhabhatti 	/* IOCTL for ULPI reset */
89c90f4abfSJay Buddhabhatti 	IOCTL_ULPI_RESET = 16,
90c90f4abfSJay Buddhabhatti 	/* Set healthy bit value */
91c90f4abfSJay Buddhabhatti 	IOCTL_SET_BOOT_HEALTH_STATUS = 17,
92c90f4abfSJay Buddhabhatti 	IOCTL_AFI = 18,
93c90f4abfSJay Buddhabhatti 	/* Probe counter read/write */
94c90f4abfSJay Buddhabhatti 	IOCTL_PROBE_COUNTER_READ = 19,
95c90f4abfSJay Buddhabhatti 	IOCTL_PROBE_COUNTER_WRITE = 20,
96c90f4abfSJay Buddhabhatti 	IOCTL_OSPI_MUX_SELECT = 21,
97c90f4abfSJay Buddhabhatti 	/* IOCTL for USB power request */
98c90f4abfSJay Buddhabhatti 	IOCTL_USB_SET_STATE = 22,
99c90f4abfSJay Buddhabhatti 	/* IOCTL to get last reset reason */
100c90f4abfSJay Buddhabhatti 	IOCTL_GET_LAST_RESET_REASON = 23,
101c90f4abfSJay Buddhabhatti 	/* AI engine NPI ISR clear */
102c90f4abfSJay Buddhabhatti 	IOCTL_AIE_ISR_CLEAR = 24,
10305d0cb4fSMaheedhar Bollapalli 	IOCTL_READ_REG = 28U,
104b9c20e5dSAmit Nagal 	IOCTL_UFS_TXRX_CFGRDY_GET = 40,
105b9c20e5dSAmit Nagal 	IOCTL_UFS_SRAM_CSR_SEL = 41,
106c90f4abfSJay Buddhabhatti };
107c90f4abfSJay Buddhabhatti 
10892f7de1eSJay Buddhabhatti /**
109de7ed953SPrasad Kummari  * enum pm_pll_param - enum represents the parameters for a phase-locked loop.
110de7ed953SPrasad Kummari  * @PM_PLL_PARAM_DIV2: Enable for divide by 2 function inside the PLL.
111de7ed953SPrasad Kummari  * @PM_PLL_PARAM_FBDIV: Feedback divisor integer portion for the PLL.
112de7ed953SPrasad Kummari  * @PM_PLL_PARAM_DATA: Feedback divisor fractional portion for the PLL.
113de7ed953SPrasad Kummari  * @PM_PLL_PARAM_PRE_SRC: Clock source for PLL input.
114de7ed953SPrasad Kummari  * @PM_PLL_PARAM_POST_SRC: Clock source for PLL Bypass mode.
115de7ed953SPrasad Kummari  * @PM_PLL_PARAM_LOCK_DLY: Lock circuit config settings for lock windowsize.
116de7ed953SPrasad Kummari  * @PM_PLL_PARAM_LOCK_CNT: Lock circuit counter setting.
117de7ed953SPrasad Kummari  * @PM_PLL_PARAM_LFHF: PLL loop filter high frequency capacitor control.
118de7ed953SPrasad Kummari  * @PM_PLL_PARAM_CP: PLL charge pump control.
119de7ed953SPrasad Kummari  * @PM_PLL_PARAM_RES: PLL loop filter resistor control.
120de7ed953SPrasad Kummari  * @PM_PLL_PARAM_MAX: Represents the maximum parameter value for the PLL
12192f7de1eSJay Buddhabhatti  */
12292f7de1eSJay Buddhabhatti enum pm_pll_param {
12392f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_DIV2,
12492f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_FBDIV,
12592f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_DATA,
12692f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_PRE_SRC,
12792f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_POST_SRC,
12892f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_LOCK_DLY,
12992f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_LOCK_CNT,
13092f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_LFHF,
13192f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_CP,
13292f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_RES,
13392f7de1eSJay Buddhabhatti 	PM_PLL_PARAM_MAX,
13492f7de1eSJay Buddhabhatti };
13592f7de1eSJay Buddhabhatti 
13692f7de1eSJay Buddhabhatti enum pm_api_id {
13792f7de1eSJay Buddhabhatti 	/* Miscellaneous API functions: */
13892f7de1eSJay Buddhabhatti 	PM_GET_API_VERSION = 1, /* Do not change or move */
13992f7de1eSJay Buddhabhatti 	PM_SET_CONFIGURATION,
14092f7de1eSJay Buddhabhatti 	PM_GET_NODE_STATUS,
14192f7de1eSJay Buddhabhatti 	PM_GET_OP_CHARACTERISTIC,
14292f7de1eSJay Buddhabhatti 	PM_REGISTER_NOTIFIER,
14392f7de1eSJay Buddhabhatti 	/* API for suspending of PUs: */
14492f7de1eSJay Buddhabhatti 	PM_REQ_SUSPEND,
14592f7de1eSJay Buddhabhatti 	PM_SELF_SUSPEND,
14692f7de1eSJay Buddhabhatti 	PM_FORCE_POWERDOWN,
14792f7de1eSJay Buddhabhatti 	PM_ABORT_SUSPEND,
14892f7de1eSJay Buddhabhatti 	PM_REQ_WAKEUP,
14992f7de1eSJay Buddhabhatti 	PM_SET_WAKEUP_SOURCE,
15092f7de1eSJay Buddhabhatti 	PM_SYSTEM_SHUTDOWN,
15192f7de1eSJay Buddhabhatti 	/* API for managing PM slaves: */
15292f7de1eSJay Buddhabhatti 	PM_REQ_NODE,
15392f7de1eSJay Buddhabhatti 	PM_RELEASE_NODE,
15492f7de1eSJay Buddhabhatti 	PM_SET_REQUIREMENT,
15592f7de1eSJay Buddhabhatti 	PM_SET_MAX_LATENCY,
15692f7de1eSJay Buddhabhatti 	/* Direct control API functions: */
15792f7de1eSJay Buddhabhatti 	PM_RESET_ASSERT,
15892f7de1eSJay Buddhabhatti 	PM_RESET_GET_STATUS,
15992f7de1eSJay Buddhabhatti 	PM_MMIO_WRITE,
16092f7de1eSJay Buddhabhatti 	PM_MMIO_READ,
16192f7de1eSJay Buddhabhatti 	PM_INIT_FINALIZE,
16292f7de1eSJay Buddhabhatti 	PM_FPGA_LOAD,
16392f7de1eSJay Buddhabhatti 	PM_FPGA_GET_STATUS,
16492f7de1eSJay Buddhabhatti 	PM_GET_CHIPID,
16592f7de1eSJay Buddhabhatti 	PM_SECURE_RSA_AES,
16692f7de1eSJay Buddhabhatti 	PM_SECURE_SHA,
16792f7de1eSJay Buddhabhatti 	PM_SECURE_RSA,
16892f7de1eSJay Buddhabhatti 	PM_PINCTRL_REQUEST,
16992f7de1eSJay Buddhabhatti 	PM_PINCTRL_RELEASE,
17092f7de1eSJay Buddhabhatti 	PM_PINCTRL_GET_FUNCTION,
17192f7de1eSJay Buddhabhatti 	PM_PINCTRL_SET_FUNCTION,
17292f7de1eSJay Buddhabhatti 	PM_PINCTRL_CONFIG_PARAM_GET,
17392f7de1eSJay Buddhabhatti 	PM_PINCTRL_CONFIG_PARAM_SET,
17492f7de1eSJay Buddhabhatti 	PM_IOCTL,
17592f7de1eSJay Buddhabhatti 	/* API to query information from firmware */
17692f7de1eSJay Buddhabhatti 	PM_QUERY_DATA,
17792f7de1eSJay Buddhabhatti 	/* Clock control API functions */
17892f7de1eSJay Buddhabhatti 	PM_CLOCK_ENABLE,
17992f7de1eSJay Buddhabhatti 	PM_CLOCK_DISABLE,
18092f7de1eSJay Buddhabhatti 	PM_CLOCK_GETSTATE,
18192f7de1eSJay Buddhabhatti 	PM_CLOCK_SETDIVIDER,
18292f7de1eSJay Buddhabhatti 	PM_CLOCK_GETDIVIDER,
183e5955d7cSRonak Jain 	PM_CLOCK_SETPARENT = 43,
18492f7de1eSJay Buddhabhatti 	PM_CLOCK_GETPARENT,
18592f7de1eSJay Buddhabhatti 	PM_SECURE_IMAGE,
18692f7de1eSJay Buddhabhatti 	/* FPGA PL Readback */
18792f7de1eSJay Buddhabhatti 	PM_FPGA_READ,
18892f7de1eSJay Buddhabhatti 	PM_SECURE_AES,
18992f7de1eSJay Buddhabhatti 	/* PLL control API functions */
19092f7de1eSJay Buddhabhatti 	PM_PLL_SET_PARAMETER,
19192f7de1eSJay Buddhabhatti 	PM_PLL_GET_PARAMETER,
19292f7de1eSJay Buddhabhatti 	PM_PLL_SET_MODE,
19392f7de1eSJay Buddhabhatti 	PM_PLL_GET_MODE,
19492f7de1eSJay Buddhabhatti 	/* PM Register Access API */
19592f7de1eSJay Buddhabhatti 	PM_REGISTER_ACCESS,
19692f7de1eSJay Buddhabhatti 	PM_EFUSE_ACCESS,
19792f7de1eSJay Buddhabhatti 	PM_FPGA_GET_VERSION,
19892f7de1eSJay Buddhabhatti 	PM_FPGA_GET_FEATURE_LIST,
19992f7de1eSJay Buddhabhatti 	PM_FEATURE_CHECK = 63,
20092f7de1eSJay Buddhabhatti 	PM_API_MAX = 74
20192f7de1eSJay Buddhabhatti };
20292f7de1eSJay Buddhabhatti 
20392f7de1eSJay Buddhabhatti enum pm_abort_reason {
20492f7de1eSJay Buddhabhatti 	ABORT_REASON_WKUP_EVENT = 100,
20592f7de1eSJay Buddhabhatti 	ABORT_REASON_PU_BUSY,
20692f7de1eSJay Buddhabhatti 	ABORT_REASON_NO_PWRDN,
20792f7de1eSJay Buddhabhatti 	ABORT_REASON_UNKNOWN,
20892f7de1eSJay Buddhabhatti };
20992f7de1eSJay Buddhabhatti 
21092f7de1eSJay Buddhabhatti /* TODO: move pm_ret_status from device specific location to common location */
21192f7de1eSJay Buddhabhatti /**
212de7ed953SPrasad Kummari  * enum pm_ret_status - enum represents the return status codes for a PM
213de7ed953SPrasad Kummari  *                      operation.
214de7ed953SPrasad Kummari  * @PM_RET_SUCCESS: success.
215de7ed953SPrasad Kummari  * @PM_RET_ERROR_ARGS: illegal arguments provided (deprecated).
216de7ed953SPrasad Kummari  * @PM_RET_ERROR_NOTSUPPORTED: feature not supported  (deprecated).
2172993166dSDevanshi Chauhan Alpeshbhai  * @PM_RET_ERROR_IOCTL_NOT_SUPPORTED: IOCTL is not supported.
218de7ed953SPrasad Kummari  * @PM_RET_ERROR_INVALID_CRC: invalid crc in IPI communication.
219de7ed953SPrasad Kummari  * @PM_RET_ERROR_NOT_ENABLED: feature is not enabled.
220de7ed953SPrasad Kummari  * @PM_RET_ERROR_INTERNAL: internal error.
221de7ed953SPrasad Kummari  * @PM_RET_ERROR_CONFLICT: conflict.
222de7ed953SPrasad Kummari  * @PM_RET_ERROR_ACCESS: access rights violation.
223de7ed953SPrasad Kummari  * @PM_RET_ERROR_INVALID_NODE: invalid node.
224de7ed953SPrasad Kummari  * @PM_RET_ERROR_DOUBLE_REQ: duplicate request for same node.
225de7ed953SPrasad Kummari  * @PM_RET_ERROR_ABORT_SUSPEND: suspend procedure has been aborted.
226de7ed953SPrasad Kummari  * @PM_RET_ERROR_TIMEOUT: timeout in communication with PMU.
227de7ed953SPrasad Kummari  * @PM_RET_ERROR_NODE_USED: node is already in use.
228de7ed953SPrasad Kummari  * @PM_RET_ERROR_NO_FEATURE: indicates that the requested feature is not
229de7ed953SPrasad Kummari  *                           supported.
23092f7de1eSJay Buddhabhatti  */
23192f7de1eSJay Buddhabhatti enum pm_ret_status {
232c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_SUCCESS = 0U,
233c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_ARGS = 1U,
234c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_NOTSUPPORTED = 4U,
235c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_IOCTL_NOT_SUPPORTED = 19U,
236c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_NOT_ENABLED = 29U,
237c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_INVALID_CRC = 301U,
238c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_INTERNAL = 2000U,
239c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_CONFLICT = 2001U,
240c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_ACCESS = 2002U,
241c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_INVALID_NODE = 2003U,
242c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_DOUBLE_REQ = 2004U,
243c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_ABORT_SUSPEND = 2005U,
244c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_TIMEOUT = 2006U,
245c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_NODE_USED = 2007U,
246c314a0b3SDevanshi Chauhan Alpeshbhai 	PM_RET_ERROR_NO_FEATURE = 2008U
24792f7de1eSJay Buddhabhatti };
24892f7de1eSJay Buddhabhatti 
249de7ed953SPrasad Kummari /*
25092f7de1eSJay Buddhabhatti  * Qids
25192f7de1eSJay Buddhabhatti  */
25292f7de1eSJay Buddhabhatti enum pm_query_id {
25392f7de1eSJay Buddhabhatti 	XPM_QID_INVALID,
25492f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_NAME,
25592f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_TOPOLOGY,
25692f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_FIXEDFACTOR_PARAMS,
25792f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_MUXSOURCES,
25892f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_ATTRIBUTES,
25992f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_NUM_PINS,
26092f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_NUM_FUNCTIONS,
26192f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_NUM_FUNCTION_GROUPS,
26292f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_FUNCTION_NAME,
26392f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_FUNCTION_GROUPS,
26492f7de1eSJay Buddhabhatti 	XPM_QID_PINCTRL_GET_PIN_GROUPS,
26592f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_NUM_CLOCKS,
26692f7de1eSJay Buddhabhatti 	XPM_QID_CLOCK_GET_MAX_DIVISOR,
26792f7de1eSJay Buddhabhatti 	XPM_QID_PLD_GET_PARENT,
26892f7de1eSJay Buddhabhatti };
26905d0cb4fSMaheedhar Bollapalli 
27005d0cb4fSMaheedhar Bollapalli enum pm_boot_mode_ids {
27105d0cb4fSMaheedhar Bollapalli 	BOOT_MODE_INVALID = 0x000000FFU,
27205d0cb4fSMaheedhar Bollapalli 	BOOT_MODES_MASK = 0x0000000FU,
27305d0cb4fSMaheedhar Bollapalli 	QSPI_MODE_24BIT = 0x00000001U,
27405d0cb4fSMaheedhar Bollapalli 	QSPI_MODE_32BIT = 0x00000002U,
27505d0cb4fSMaheedhar Bollapalli 	SD_MODE = 0x00000003U, /* sd 0 */
27605d0cb4fSMaheedhar Bollapalli 	SD_MODE1 = 0x00000005U, /* sd 1 */
27705d0cb4fSMaheedhar Bollapalli 	EMMC_MODE = 0x00000006U,
27805d0cb4fSMaheedhar Bollapalli 	USB_MODE = 0x00000007U,
27905d0cb4fSMaheedhar Bollapalli 	OSPI_MODE = 0x00000008U,
28005d0cb4fSMaheedhar Bollapalli 	SELECTMAP_MODE = 0x0000000AU,
28105d0cb4fSMaheedhar Bollapalli 	SD1_LSHFT_MODE = 0x0000000EU, /* SD1 Level shifter */
28205d0cb4fSMaheedhar Bollapalli 	JTAG_MODE = 0x00000000U,
28305d0cb4fSMaheedhar Bollapalli };
28492f7de1eSJay Buddhabhatti #endif /* PM_DEFS_H */
285