1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2af013592SPeng Fan /*
3af013592SPeng Fan  * Copyright (C) 2016 Freescale Semiconductor, Inc.
4af013592SPeng Fan  */
5af013592SPeng Fan 
6af013592SPeng Fan #ifndef __MX7D_RDC_H__
7af013592SPeng Fan #define __MX7D_RDC_H__
8af013592SPeng Fan 
9af013592SPeng Fan #define RDC_SEMA_PROC_ID 2  /* The processor ID for main CPU */
10af013592SPeng Fan 
11af013592SPeng Fan enum {
12af013592SPeng Fan 	RDC_PER_GPIO1 = 0,
13af013592SPeng Fan 	RDC_PER_GPIO2,
14af013592SPeng Fan 	RDC_PER_GPIO3,
15af013592SPeng Fan 	RDC_PER_GPIO4,
16af013592SPeng Fan 	RDC_PER_GPIO5,
17af013592SPeng Fan 	RDC_PER_GPIO6,
18af013592SPeng Fan 	RDC_PER_GPIO7,
19af013592SPeng Fan 	RDC_PER_IOMUXC_LPSR_GPR,
20af013592SPeng Fan 	RDC_PER_WDOG1,
21af013592SPeng Fan 	RDC_PER_WDOG2,
22af013592SPeng Fan 	RDC_PER_WDOG3,
23af013592SPeng Fan 	RDC_PER_WDOG4,
24af013592SPeng Fan 	RDC_PER_IOMUXC_LPSR,
25af013592SPeng Fan 	RDC_PER_GPT1,
26af013592SPeng Fan 	RDC_PER_GPT2,
27af013592SPeng Fan 	RDC_PER_GPT3,
28af013592SPeng Fan 	RDC_PER_GPT4,
29af013592SPeng Fan 	RDC_PER_ROMCP,
30af013592SPeng Fan 	RDC_PER_KPP,
31af013592SPeng Fan 	RDC_PER_IOMUXC,
32af013592SPeng Fan 	RDC_PER_IOMUXCGPR,
33af013592SPeng Fan 	RDC_PER_OCOTP,
34af013592SPeng Fan 	RDC_PER_ANATOP_DIG,
35af013592SPeng Fan 	RDC_PER_SNVS_HP,
36af013592SPeng Fan 	RDC_PER_CCM,
37af013592SPeng Fan 	RDC_PER_SRC,
38af013592SPeng Fan 	RDC_PER_GPC,
39af013592SPeng Fan 	RDC_PER_SEMA1,
40af013592SPeng Fan 	RDC_PER_SEMA2,
41af013592SPeng Fan 	RDC_PER_RDC,
42af013592SPeng Fan 	RDC_PER_CSU,
43af013592SPeng Fan 	RDC_PER_RESERVED1,
44af013592SPeng Fan 	RDC_PER_RESERVED2,
45af013592SPeng Fan 	RDC_PER_ADC1,
46af013592SPeng Fan 	RDC_PER_ADC2,
47af013592SPeng Fan 	RDC_PER_ECSPI4,
48af013592SPeng Fan 	RDC_PER_FLEX_TIMER1,
49af013592SPeng Fan 	RDC_PER_FLEX_TIMER2,
50af013592SPeng Fan 	RDC_PER_PWM1,
51af013592SPeng Fan 	RDC_PER_PWM2,
52af013592SPeng Fan 	RDC_PER_PWM3,
53af013592SPeng Fan 	RDC_PER_PWM4,
54af013592SPeng Fan 	RDC_PER_SYSTEM_COUNTER_READ,
55af013592SPeng Fan 	RDC_PER_SYSTEM_COUNTER_COMPARE,
56af013592SPeng Fan 	RDC_PER_SYSTEM_COUNTER_CONTROL,
57af013592SPeng Fan 	RDC_PER_PCIE_PHY,
58af013592SPeng Fan 	RDC_PER_RESERVED3,
59af013592SPeng Fan 	RDC_PER_EPDC,
60af013592SPeng Fan 	RDC_PER_PXP,
61af013592SPeng Fan 	RDC_PER_CSI,
62af013592SPeng Fan 	RDC_PER_RESERVED4,
63af013592SPeng Fan 	RDC_PER_LCDIF,
64af013592SPeng Fan 	RDC_PER_RESERVED5,
65af013592SPeng Fan 	RDC_PER_MIPI_CSI,
66af013592SPeng Fan 	RDC_PER_MIPI_DSI,
67af013592SPeng Fan 	RDC_PER_RESERVED6,
68af013592SPeng Fan 	RDC_PER_TZASC,
69af013592SPeng Fan 	RDC_PER_DDR_PHY,
70af013592SPeng Fan 	RDC_PER_DDRC,
71af013592SPeng Fan 	RDC_PER_RESERVED7,
72af013592SPeng Fan 	RDC_PER_PERFMON1,
73af013592SPeng Fan 	RDC_PER_PERFMON2,
74af013592SPeng Fan 	RDC_PER_AXI_DEBUG_MON,
75af013592SPeng Fan 	RDC_PER_QOSC,
76af013592SPeng Fan 	RDC_PER_FLEXCAN1,
77af013592SPeng Fan 	RDC_PER_FLEXCAN2,
78af013592SPeng Fan 	RDC_PER_I2C1,
79af013592SPeng Fan 	RDC_PER_I2C2,
80af013592SPeng Fan 	RDC_PER_I2C3,
81af013592SPeng Fan 	RDC_PER_I2C4,
82af013592SPeng Fan 	RDC_PER_UART4,
83af013592SPeng Fan 	RDC_PER_UART5,
84af013592SPeng Fan 	RDC_PER_UART6,
85af013592SPeng Fan 	RDC_PER_UART7,
86af013592SPeng Fan 	RDC_PER_MU_A,
87af013592SPeng Fan 	RDC_PER_MU_B,
88af013592SPeng Fan 	RDC_PER_SEMAPHORE_HS,
89af013592SPeng Fan 	RDC_PER_USB_PL301,
90af013592SPeng Fan 	RDC_PER_RESERVED8,
91af013592SPeng Fan 	RDC_PER_RESERVED9,
92af013592SPeng Fan 	RDC_PER_RESERVED10,
93af013592SPeng Fan 	RDC_PER_USB1,
94af013592SPeng Fan 	RDC_PER_USB2,
95af013592SPeng Fan 	RDC_PER_USB3,
96af013592SPeng Fan 	RDC_PER_USDHC1,
97af013592SPeng Fan 	RDC_PER_USDHC2,
98af013592SPeng Fan 	RDC_PER_USDHC3,
99af013592SPeng Fan 	RDC_PER_RESERVED11,
100af013592SPeng Fan 	RDC_PER_RESERVED12,
101af013592SPeng Fan 	RDC_PER_SIM1,
102af013592SPeng Fan 	RDC_PER_SIM2,
103af013592SPeng Fan 	RDC_PER_QSPI,
104af013592SPeng Fan 	RDC_PER_WEIM,
105af013592SPeng Fan 	RDC_PER_SDMA,
106af013592SPeng Fan 	RDC_PER_ENET1,
107af013592SPeng Fan 	RDC_PER_ENET2,
108af013592SPeng Fan 	RDC_PER_RESERVED13,
109af013592SPeng Fan 	RDC_PER_RESERVED14,
110af013592SPeng Fan 	RDC_PER_ECSPI1,
111af013592SPeng Fan 	RDC_PER_ECSPI2,
112af013592SPeng Fan 	RDC_PER_ECSPI3,
113af013592SPeng Fan 	RDC_PER_RESERVED15,
114af013592SPeng Fan 	RDC_PER_UART1,
115af013592SPeng Fan 	RDC_PER_UART2,
116af013592SPeng Fan 	RDC_PER_UART3,
117af013592SPeng Fan 	RDC_PER_RESERVED16,
118af013592SPeng Fan 	RDC_PER_SAI1,
119af013592SPeng Fan 	RDC_PER_SAI2,
120af013592SPeng Fan 	RDC_PER_SAI3,
121af013592SPeng Fan 	RDC_PER_RESERVED17,
122af013592SPeng Fan 	RDC_PER_RESERVED18,
123af013592SPeng Fan 	RDC_PER_SPBA,
124af013592SPeng Fan 	RDC_PER_DAP,
125af013592SPeng Fan 	RDC_PER_RESERVED19,
126af013592SPeng Fan 	RDC_PER_RESERVED20,
127af013592SPeng Fan 	RDC_PER_RESERVED21,
128af013592SPeng Fan 	RDC_PER_CAAM,
129af013592SPeng Fan 	RDC_PER_RESERVED22,
130af013592SPeng Fan };
131af013592SPeng Fan 
132af013592SPeng Fan enum {
133af013592SPeng Fan 	RDC_MA_A7 = 0,
134af013592SPeng Fan 	RDC_MA_M4,
135af013592SPeng Fan 	RDC_MA_PCIE,
136af013592SPeng Fan 	RDC_MA_CSI,
137af013592SPeng Fan 	RDC_MA_EPDC,
138af013592SPeng Fan 	RDC_MA_LCDIF,
139af013592SPeng Fan 	RDC_MA_DISPLAY_PORT,
140af013592SPeng Fan 	RDC_MA_PXP,
141af013592SPeng Fan 	RDC_MA_CORESIGHT,
142af013592SPeng Fan 	RDC_MA_DAP,
143af013592SPeng Fan 	RDC_MA_CAAM,
144af013592SPeng Fan 	RDC_MA_SDMA_PERI,
145af013592SPeng Fan 	RDC_MA_SDMA_BURST,
146af013592SPeng Fan 	RDC_MA_APBHDMA,
147af013592SPeng Fan 	RDC_MA_RAWNAND,
148af013592SPeng Fan 	RDC_MA_USDHC1,
149af013592SPeng Fan 	RDC_MA_USDHC2,
150af013592SPeng Fan 	RDC_MA_USDHC3,
151af013592SPeng Fan 	RDC_MA_NC1,
152af013592SPeng Fan 	RDC_MA_USB,
153af013592SPeng Fan 	RDC_MA_NC2,
154af013592SPeng Fan 	RDC_MA_TEST,
155af013592SPeng Fan 	RDC_MA_ENET1_TX,
156af013592SPeng Fan 	RDC_MA_ENET1_RX,
157af013592SPeng Fan 	RDC_MA_ENET2_TX,
158af013592SPeng Fan 	RDC_MA_ENET2_RX,
159af013592SPeng Fan 	RDC_MA_SDMA,
160af013592SPeng Fan };
161af013592SPeng Fan 
162af013592SPeng Fan #endif	/* __MX7D_RDC_H__*/
163