xref: /rk3399_ARM-atf/plat/imx/imx9/imx95/include/imx95_scmi_def.h (revision 480e8dd9df291cc0e31695983fa6ff235e1671cd)
1*d70b09f8SPeng Fan /*
2*d70b09f8SPeng Fan  * Copyright 2024-2025 NXP
3*d70b09f8SPeng Fan  *
4*d70b09f8SPeng Fan  * SPDX-License-Identifier: BSD-3-Clause
5*d70b09f8SPeng Fan  */
6*d70b09f8SPeng Fan 
7*d70b09f8SPeng Fan #ifndef IMX95_SCMI_DEF_H
8*d70b09f8SPeng Fan #define IMX95_SCMI_DEF_H
9*d70b09f8SPeng Fan 
10*d70b09f8SPeng Fan #define IMR_NUM					U(12)
11*d70b09f8SPeng Fan #define IMX95_A55P_IDX				6U
12*d70b09f8SPeng Fan 
13*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C0			2U
14*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C1			3U
15*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C2			4U
16*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C3			5U
17*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C4			6U
18*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55C5			7U
19*d70b09f8SPeng Fan #define IMX9_SCMI_CPU_A55P			8U
20*d70b09f8SPeng Fan 
21*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_ANA		0U
22*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_AON		1U
23*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_BBSM		2U
24*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_CAMERA		3U
25*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_CCMSRCGPC	4U
26*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C0		5U
27*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C1		6U
28*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C2		7U
29*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C3		8U
30*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C4		9U
31*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55C5		10U
32*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_A55P		11U
33*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_DDR		12U
34*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_DISPLAY		13U
35*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_GPU		14U
36*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_HSIO_TOP		15U
37*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_HSIO_WAON	16U
38*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_M7		17U
39*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_NETC		18U
40*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_NOC		19U
41*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_NPU		20U
42*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_VPU		21U
43*d70b09f8SPeng Fan #define SCMI_PWR_MIX_SLICE_IDX_WAKEUP		22U
44*d70b09f8SPeng Fan 
45*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_AON		0U
46*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_CAMERA		1U
47*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C0		2U
48*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C1		3U
49*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C2		4U
50*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C3		5U
51*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C4		6U
52*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55C5		7U
53*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55P		8U
54*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_A55L3		9U
55*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_DDR		10U
56*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_DISPLAY		11U
57*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_GPU		12U
58*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_HSIO		13U
59*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_M7		14U
60*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_NETC		15U
61*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_NOC_OCRAM	16U
62*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_NOC2		17U
63*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_NPU		18U
64*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_VPU		19U
65*d70b09f8SPeng Fan #define SCMI_PWR_MEM_SLICE_IDX_WAKEUP		20U
66*d70b09f8SPeng Fan 
67*d70b09f8SPeng Fan /* Peripheral LPI index */
68*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_GPIO1			0U
69*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_GPIO2			1U
70*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_GPIO3			2U
71*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_GPIO4			3U
72*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_GPIO5			4U
73*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_CAN1			5U
74*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_CAN2			6U
75*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_CAN3			7U
76*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_CAN4			8U
77*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_CAN5			9U
78*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART1			10U
79*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART2			11U
80*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART3			12U
81*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART4			13U
82*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART5			14U
83*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART6			15U
84*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART7			16U
85*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_LPUART8			17U
86*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_WDOG3			18U
87*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_WDOG4			19U
88*d70b09f8SPeng Fan #define CPU_PER_LPI_IDX_WDOG5			20U
89*d70b09f8SPeng Fan 
90*d70b09f8SPeng Fan 
91*d70b09f8SPeng Fan #define DEBUG_WAKEUP_MASK			BIT(1)
92*d70b09f8SPeng Fan #define EVENT_WAKEUP_MASK			BIT(0)
93*d70b09f8SPeng Fan 
94*d70b09f8SPeng Fan #endif /* IMX95_SCMI_DEF_H */
95