diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN6')
31 files changed, 59429 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN6/MIMX8MN6_cm7.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN6/MIMX8MN6_cm7.h new file mode 100644 index 000000000..a0069260b --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN6/MIMX8MN6_cm7.h | |||
@@ -0,0 +1,51096 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Processors: MIMX8MN6CVTIZ | ||
4 | ** MIMX8MN6DVTJZ | ||
5 | ** | ||
6 | ** Compilers: GNU C Compiler | ||
7 | ** IAR ANSI C/C++ Compiler for ARM | ||
8 | ** Keil ARM C/C++ Compiler | ||
9 | ** | ||
10 | ** Reference manual: MX8MNRM, Rev.A, 04/2019 | ||
11 | ** Version: rev. 2.0, 2019-09-23 | ||
12 | ** Build: b190830 | ||
13 | ** | ||
14 | ** Abstract: | ||
15 | ** CMSIS Peripheral Access Layer for MIMX8MN6_cm7 | ||
16 | ** | ||
17 | ** Copyright 1997-2016 Freescale Semiconductor, Inc. | ||
18 | ** Copyright 2016-2019 NXP | ||
19 | ** All rights reserved. | ||
20 | ** | ||
21 | ** SPDX-License-Identifier: BSD-3-Clause | ||
22 | ** | ||
23 | ** http: www.nxp.com | ||
24 | ** mail: [email protected] | ||
25 | ** | ||
26 | ** Revisions: | ||
27 | ** - rev. 1.0 (2019-04-22) | ||
28 | ** Initial version. | ||
29 | ** - rev. 2.0 (2019-09-23) | ||
30 | ** Rev.B Header RFP | ||
31 | ** | ||
32 | ** ################################################################### | ||
33 | */ | ||
34 | |||
35 | /*! | ||
36 | * @file MIMX8MN6_cm7.h | ||
37 | * @version 2.0 | ||
38 | * @date 2019-09-23 | ||
39 | * @brief CMSIS Peripheral Access Layer for MIMX8MN6_cm7 | ||
40 | * | ||
41 | * CMSIS Peripheral Access Layer for MIMX8MN6_cm7 | ||
42 | */ | ||
43 | |||
44 | #ifndef _MIMX8MN6_CM7_H_ | ||
45 | #define _MIMX8MN6_CM7_H_ /**< Symbol preventing repeated inclusion */ | ||
46 | |||
47 | /** Memory map major version (memory maps with equal major version number are | ||
48 | * compatible) */ | ||
49 | #define MCU_MEM_MAP_VERSION 0x0200U | ||
50 | /** Memory map minor version */ | ||
51 | #define MCU_MEM_MAP_VERSION_MINOR 0x0000U | ||
52 | |||
53 | /* ---------------------------------------------------------------------------- | ||
54 | -- Interrupt vector numbers | ||
55 | ---------------------------------------------------------------------------- */ | ||
56 | |||
57 | /*! | ||
58 | * @addtogroup Interrupt_vector_numbers Interrupt vector numbers | ||
59 | * @{ | ||
60 | */ | ||
61 | |||
62 | /** Interrupt Number Definitions */ | ||
63 | #define NUMBER_OF_INT_VECTORS 144 /**< Number of interrupts in the Vector table */ | ||
64 | |||
65 | typedef enum IRQn | ||
66 | { | ||
67 | /* Auxiliary constants */ | ||
68 | NotAvail_IRQn = -128, /**< Not available device specific interrupt */ | ||
69 | |||
70 | /* Core interrupts */ | ||
71 | NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */ | ||
72 | HardFault_IRQn = -13, /**< Cortex-M7 SV Hard Fault Interrupt */ | ||
73 | MemoryManagement_IRQn = -12, /**< Cortex-M7 Memory Management Interrupt */ | ||
74 | BusFault_IRQn = -11, /**< Cortex-M7 Bus Fault Interrupt */ | ||
75 | UsageFault_IRQn = -10, /**< Cortex-M7 Usage Fault Interrupt */ | ||
76 | SVCall_IRQn = -5, /**< Cortex-M7 SV Call Interrupt */ | ||
77 | DebugMonitor_IRQn = -4, /**< Cortex-M7 Debug Monitor Interrupt */ | ||
78 | PendSV_IRQn = -2, /**< Cortex-M7 Pend SV Interrupt */ | ||
79 | SysTick_IRQn = -1, /**< Cortex-M7 System Tick Interrupt */ | ||
80 | |||
81 | /* Device specific interrupts */ | ||
82 | GPR_IRQ_IRQn = 0, /**< GPR Interrupt. Used to notify cores on exception condition while boot. */ | ||
83 | DAP_IRQn = 1, /**< DAP Interrupt */ | ||
84 | SDMA1_IRQn = 2, /**< AND of all 48 SDMA1 interrupts (events) from all the channels */ | ||
85 | GPU3D_IRQn = 3, /**< GPU3D Interrupt */ | ||
86 | SNVS_IRQn = 4, /**< ON-OFF button press shorter than 5 seconds (pulse event) */ | ||
87 | LCDIF_IRQn = 5, /**< LCDIF Interrupt */ | ||
88 | SPDIF1_IRQn = 6, /**< SPDIF1 RZX/TX Interrupt */ | ||
89 | Reserved23_IRQn = 7, /**< Reserved Interrupt */ | ||
90 | Reserved24_IRQn = 8, /**< Reserved Interrupt */ | ||
91 | QOS_IRQn = 9, /**< QOS interrupt */ | ||
92 | WDOG3_IRQn = 10, /**< Watchdog Timer reset */ | ||
93 | HS_CP1_IRQn = 11, /**< HS Interrupt Request */ | ||
94 | APBHDMA_IRQn = 12, /**< GPMI operation channel 0-3 description complete interrupt */ | ||
95 | Reserved29_IRQn = 13, /**< Reserved */ | ||
96 | BCH_IRQn = 14, /**< BCH operation complete interrupt */ | ||
97 | GPMI_IRQn = 15, /**< GPMI operation TIMEOUT ERROR interrupt */ | ||
98 | ISI_CH0_IRQn = 16, /**< ISI Camera Channel 0 Interrupt */ | ||
99 | MIPI_CSI1_IRQn = 17, /**< MIPI CSI Interrupt */ | ||
100 | MIPI_DSI_IRQn = 18, /**< MIPI DSI Interrupt */ | ||
101 | SNVS_Consolidated_IRQn = 19, /**< SRTC Consolidated Interrupt. Non TZ. */ | ||
102 | SNVS_Security_IRQn = 20, /**< SRTC Security Interrupt. TZ. */ | ||
103 | CSU_IRQn = | ||
104 | 21, /**< CSU Interrupt Request. Indicates to the processor that one or more alarm inputs were asserted. */ | ||
105 | USDHC1_IRQn = 22, /**< uSDHC1 Enhanced SDHC Interrupt Request */ | ||
106 | USDHC2_IRQn = 23, /**< uSDHC2 Enhanced SDHC Interrupt Request */ | ||
107 | USDHC3_IRQn = 24, /**< uSDHC3 Enhanced SDHC Interrupt Request */ | ||
108 | Reserved41_IRQn = 25, /**< Reserved Interrupt */ | ||
109 | UART1_IRQn = 26, /**< UART-1 ORed interrupt */ | ||
110 | UART2_IRQn = 27, /**< UART-2 ORed interrupt */ | ||
111 | UART3_IRQn = 28, /**< UART-3 ORed interrupt */ | ||
112 | UART4_IRQn = 29, /**< UART-4 ORed interrupt */ | ||
113 | Reserved46_IRQn = 30, /**< Reserved Interrupt */ | ||
114 | ECSPI1_IRQn = 31, /**< ECSPI1 interrupt request line to the core. */ | ||
115 | ECSPI2_IRQn = 32, /**< ECSPI2 interrupt request line to the core. */ | ||
116 | ECSPI3_IRQn = 33, /**< ECSPI3 interrupt request line to the core. */ | ||
117 | SDMA3_IRQn = 34, /**< AND of all 48 SDMA3 interrupts (events) from all the channels */ | ||
118 | I2C1_IRQn = 35, /**< I2C-1 Interrupt */ | ||
119 | I2C2_IRQn = 36, /**< I2C-2 Interrupt */ | ||
120 | I2C3_IRQn = 37, /**< I2C-3 Interrupt */ | ||
121 | I2C4_IRQn = 38, /**< I2C-4 Interrupt */ | ||
122 | RDC_IRQn = 39, /**< RDC interrupt */ | ||
123 | USB1_IRQn = 40, /**< USB1 Interrupt */ | ||
124 | Reserved57_IRQn = 41, /**< Reserved Interrupt */ | ||
125 | ISI_CH1_IRQn = 42, /**< ISI Camera Channel 1 Interrupt */ | ||
126 | ISI_CH2_IRQn = 43, /**< ISI Camera Channel 2 Interrupt */ | ||
127 | PDM_HWVAD_EVENT_IRQn = 44, /**< Digital Microphone interface voice activity detector event interrupt */ | ||
128 | PDM_HWVAD_ERROR_IRQn = 45, /**< Digital Microphone interface voice activity detector error interrupt */ | ||
129 | GPT6_IRQn = 46, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
130 | Interrupt lines */ | ||
131 | SCTR_IRQ0_IRQn = 47, /**< System Counter Interrupt 0 */ | ||
132 | SCTR_IRQ1_IRQn = 48, /**< System Counter Interrupt 1 */ | ||
133 | TEMPMON_LOW_IRQn = 49, /**< TempSensor (Temperature low alarm). */ | ||
134 | I2S3_IRQn = 50, /**< SAI3 Receive / Transmit Interrupt */ | ||
135 | GPT5_IRQn = 51, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
136 | Interrupt lines */ | ||
137 | GPT4_IRQn = 52, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
138 | Interrupt lines */ | ||
139 | GPT3_IRQn = 53, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
140 | Interrupt lines */ | ||
141 | GPT2_IRQn = 54, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
142 | Interrupt lines */ | ||
143 | GPT1_IRQn = 55, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 | ||
144 | Interrupt lines */ | ||
145 | GPIO1_INT7_IRQn = 56, /**< Active HIGH Interrupt from INT7 from GPIO */ | ||
146 | GPIO1_INT6_IRQn = 57, /**< Active HIGH Interrupt from INT6 from GPIO */ | ||
147 | GPIO1_INT5_IRQn = 58, /**< Active HIGH Interrupt from INT5 from GPIO */ | ||
148 | GPIO1_INT4_IRQn = 59, /**< Active HIGH Interrupt from INT4 from GPIO */ | ||
149 | GPIO1_INT3_IRQn = 60, /**< Active HIGH Interrupt from INT3 from GPIO */ | ||
150 | GPIO1_INT2_IRQn = 61, /**< Active HIGH Interrupt from INT2 from GPIO */ | ||
151 | GPIO1_INT1_IRQn = 62, /**< Active HIGH Interrupt from INT1 from GPIO */ | ||
152 | GPIO1_INT0_IRQn = 63, /**< Active HIGH Interrupt from INT0 from GPIO */ | ||
153 | GPIO1_Combined_0_15_IRQn = 64, /**< Combined interrupt indication for GPIO1 signal 0 throughout 15 */ | ||
154 | GPIO1_Combined_16_31_IRQn = 65, /**< Combined interrupt indication for GPIO1 signal 16 throughout 31 */ | ||
155 | GPIO2_Combined_0_15_IRQn = 66, /**< Combined interrupt indication for GPIO2 signal 0 throughout 15 */ | ||
156 | GPIO2_Combined_16_31_IRQn = 67, /**< Combined interrupt indication for GPIO2 signal 16 throughout 31 */ | ||
157 | GPIO3_Combined_0_15_IRQn = 68, /**< Combined interrupt indication for GPIO3 signal 0 throughout 15 */ | ||
158 | GPIO3_Combined_16_31_IRQn = 69, /**< Combined interrupt indication for GPIO3 signal 16 throughout 31 */ | ||
159 | GPIO4_Combined_0_15_IRQn = 70, /**< Combined interrupt indication for GPIO4 signal 0 throughout 15 */ | ||
160 | GPIO4_Combined_16_31_IRQn = 71, /**< Combined interrupt indication for GPIO4 signal 16 throughout 31 */ | ||
161 | GPIO5_Combined_0_15_IRQn = 72, /**< Combined interrupt indication for GPIO5 signal 0 throughout 15 */ | ||
162 | GPIO5_Combined_16_31_IRQn = 73, /**< Combined interrupt indication for GPIO5 signal 16 throughout 31 */ | ||
163 | Reserved90_IRQn = 74, /**< Reserved interrupt */ | ||
164 | Reserved91_IRQn = 75, /**< Reserved interrupt */ | ||
165 | Reserved92_IRQn = 76, /**< Reserved interrupt */ | ||
166 | Reserved93_IRQn = 77, /**< Reserved interrupt */ | ||
167 | WDOG1_IRQn = 78, /**< Watchdog Timer reset */ | ||
168 | WDOG2_IRQn = 79, /**< Watchdog Timer reset */ | ||
169 | Reserved96_IRQn = 80, /**< Reserved interrupt */ | ||
170 | PWM1_IRQn = 81, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO | ||
171 | Waterlevel crossing interrupt line. */ | ||
172 | PWM2_IRQn = 82, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO | ||
173 | Waterlevel crossing interrupt line. */ | ||
174 | PWM3_IRQn = 83, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO | ||
175 | Waterlevel crossing interrupt line. */ | ||
176 | PWM4_IRQn = 84, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO | ||
177 | Waterlevel crossing interrupt line. */ | ||
178 | CCM_IRQ1_IRQn = 85, /**< CCM Interrupt Request 1 */ | ||
179 | CCM_IRQ2_IRQn = 86, /**< CCM Interrupt Request 2 */ | ||
180 | GPC_IRQn = 87, /**< GPC Interrupt Request 1 */ | ||
181 | MU_A53_IRQn = 88, /**< Interrupt to A53 */ | ||
182 | SRC_IRQn = 89, /**< SRC interrupt request */ | ||
183 | I2S56_IRQn = 90, /**< SAI5/6 Receive / Transmit Interrupt */ | ||
184 | RTIC_IRQn = 91, /**< RTIC Interrupt */ | ||
185 | CPU_PerformanceUnit_IRQn = 92, /**< Performance Unit Interrupts from Cheetah (interrnally: PMUIRQ[n] */ | ||
186 | CPU_CTI_Trigger_IRQn = 93, /**< CTI trigger outputs (internal: nCTIIRQ[n] */ | ||
187 | SRC_Combined_IRQn = 94, /**< Combined CPU wdog interrupts (4x) out of SRC. */ | ||
188 | Reserved111_IRQn = 95, /**< Reserved Interrupt */ | ||
189 | I2S2_IRQn = 96, /**< SAI2 Receive / Transmit Interrupt */ | ||
190 | MU_M7_IRQn = 97, /**< Interrupt to M7 */ | ||
191 | DDR_PerformanceMonitor_IRQn = 98, /**< ddr Interrupt for performance monitor */ | ||
192 | DDR_IRQn = 99, /**< ddr Interrupt */ | ||
193 | Reserved116_IRQn = 100, /**< Reserved interrupt */ | ||
194 | CPU_Error_AXI_IRQn = 101, /**< CPU Error indicator for AXI transaction with a write response error condition */ | ||
195 | CPU_Error_L2RAM_IRQn = 102, /**< CPU Error indicator for L2 RAM double-bit ECC error */ | ||
196 | SDMA2_IRQn = 103, /**< AND of all 48 SDMA2 interrupts (events) from all the channels */ | ||
197 | SJC_IRQn = 104, /**< Interrupt triggered by SJC register */ | ||
198 | CAAM_IRQ0_IRQn = 105, /**< CAAM interrupt queue for JQ */ | ||
199 | CAAM_IRQ1_IRQn = 106, /**< CAAM interrupt queue for JQ */ | ||
200 | QSPI_IRQn = 107, /**< QSPI Interrupt */ | ||
201 | TZASC_IRQn = 108, /**< TZASC (PL380) interrupt */ | ||
202 | PDM_EVENT_IRQn = 109, /**< Digital Microphone interface interrupt */ | ||
203 | PDM_ERROR_IRQn = 110, /**< Digital Microphone interface error interrupt */ | ||
204 | I2S7_IRQn = 111, /**< SAI7 Receive / Transmit Interrupt */ | ||
205 | PERFMON1_IRQn = 112, /**< General Interrupt */ | ||
206 | PERFMON2_IRQn = 113, /**< General Interrupt */ | ||
207 | CAAM_IRQ2_IRQn = 114, /**< CAAM interrupt queue for JQ */ | ||
208 | CAAM_ERROR_IRQn = 115, /**< Recoverable error interrupt */ | ||
209 | HS_CP0_IRQn = 116, /**< HS Interrupt Request */ | ||
210 | CM7_CTI_IRQn = 117, /**< CTI trigger outputs from CM7 platform */ | ||
211 | ENET_MAC0_Rx_Tx_Done1_IRQn = 118, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */ | ||
212 | ENET_MAC0_Rx_Tx_Done2_IRQn = 119, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */ | ||
213 | ENET_IRQn = 120, /**< MAC 0 IRQ */ | ||
214 | ENET_1588_IRQn = 121, /**< MAC 0 1588 Timer Interrupt - synchronous */ | ||
215 | ASRC_IRQn = 122, /**< ASRC Interrupt */ | ||
216 | Reserved139_IRQn = 123, /**< Reserved Interrupt */ | ||
217 | Reserved140_IRQn = 124, /**< Reserved Interrupt */ | ||
218 | Reserved141_IRQn = 125, /**< Reserved Interrupt */ | ||
219 | ISI_CH3_IRQn = 126, /**< ISI Camera Channel 3 Interrupt */ | ||
220 | Reserved143_IRQn = 127 /**< Reserved Interrupt */ | ||
221 | } IRQn_Type; | ||
222 | |||
223 | /*! | ||
224 | * @} | ||
225 | */ /* end of group Interrupt_vector_numbers */ | ||
226 | |||
227 | /* ---------------------------------------------------------------------------- | ||
228 | -- Cortex M7 Core Configuration | ||
229 | ---------------------------------------------------------------------------- */ | ||
230 | |||
231 | /*! | ||
232 | * @addtogroup Cortex_Core_Configuration Cortex M7 Core Configuration | ||
233 | * @{ | ||
234 | */ | ||
235 | |||
236 | #define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */ | ||
237 | #define __ICACHE_PRESENT 1 /**< Defines if an ICACHE is present or not */ | ||
238 | #define __DCACHE_PRESENT 1 /**< Defines if an DCACHE is present or not */ | ||
239 | #define __DTCM_PRESENT 1 /**< Defines if an DTCM is present or not */ | ||
240 | #define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */ | ||
241 | #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */ | ||
242 | #define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */ | ||
243 | |||
244 | #include "core_cm7.h" /* Core Peripheral Access Layer */ | ||
245 | #include "system_MIMX8MN6_cm7.h" /* Device specific configuration file */ | ||
246 | |||
247 | /*! | ||
248 | * @} | ||
249 | */ /* end of group Cortex_Core_Configuration */ | ||
250 | |||
251 | /* ---------------------------------------------------------------------------- | ||
252 | -- Mapping Information | ||
253 | ---------------------------------------------------------------------------- */ | ||
254 | |||
255 | /*! | ||
256 | * @addtogroup Mapping_Information Mapping Information | ||
257 | * @{ | ||
258 | */ | ||
259 | |||
260 | /** Mapping Information */ | ||
261 | /*! | ||
262 | * @addtogroup iomuxc_pads | ||
263 | * @{ */ | ||
264 | |||
265 | /******************************************************************************* | ||
266 | * Definitions | ||
267 | *******************************************************************************/ | ||
268 | |||
269 | /*! | ||
270 | * @brief Enumeration for the IOMUXC SW_MUX_CTL_PAD | ||
271 | * | ||
272 | * Defines the enumeration for the IOMUXC SW_MUX_CTL_PAD collections. | ||
273 | */ | ||
274 | typedef enum _iomuxc_sw_mux_ctl_pad | ||
275 | { | ||
276 | kIOMUXC_SW_MUX_CTL_PAD_BOOT_MODE2 = 0U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
277 | kIOMUXC_SW_MUX_CTL_PAD_BOOT_MODE3 = 1U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
278 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO00 = 2U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
279 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO01 = 3U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
280 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO02 = 4U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
281 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO03 = 5U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
282 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO04 = 6U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
283 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO05 = 7U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
284 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO06 = 8U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
285 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO07 = 9U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
286 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO08 = 10U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
287 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO09 = 11U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
288 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO10 = 12U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
289 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO11 = 13U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
290 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO12 = 14U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
291 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO13 = 15U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
292 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO14 = 16U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
293 | kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO15 = 17U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
294 | kIOMUXC_SW_MUX_CTL_PAD_ENET_MDC = 18U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
295 | kIOMUXC_SW_MUX_CTL_PAD_ENET_MDIO = 19U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
296 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TD3 = 20U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
297 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TD2 = 21U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
298 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TD1 = 22U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
299 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TD0 = 23U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
300 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TX_CTL = 24U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
301 | kIOMUXC_SW_MUX_CTL_PAD_ENET_TXC = 25U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
302 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RX_CTL = 26U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
303 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RXC = 27U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
304 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RD0 = 28U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
305 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RD1 = 29U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
306 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RD2 = 30U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
307 | kIOMUXC_SW_MUX_CTL_PAD_ENET_RD3 = 31U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
308 | kIOMUXC_SW_MUX_CTL_PAD_SD1_CLK = 32U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
309 | kIOMUXC_SW_MUX_CTL_PAD_SD1_CMD = 33U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
310 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA0 = 34U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
311 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA1 = 35U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
312 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA2 = 36U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
313 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA3 = 37U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
314 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA4 = 38U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
315 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA5 = 39U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
316 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA6 = 40U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
317 | kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA7 = 41U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
318 | kIOMUXC_SW_MUX_CTL_PAD_SD1_RESET_B = 42U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
319 | kIOMUXC_SW_MUX_CTL_PAD_SD1_STROBE = 43U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
320 | kIOMUXC_SW_MUX_CTL_PAD_SD2_CD_B = 44U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
321 | kIOMUXC_SW_MUX_CTL_PAD_SD2_CLK = 45U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
322 | kIOMUXC_SW_MUX_CTL_PAD_SD2_CMD = 46U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
323 | kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA0 = 47U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
324 | kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA1 = 48U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
325 | kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA2 = 49U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
326 | kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA3 = 50U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
327 | kIOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B = 51U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
328 | kIOMUXC_SW_MUX_CTL_PAD_SD2_WP = 52U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
329 | kIOMUXC_SW_MUX_CTL_PAD_NAND_ALE = 53U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
330 | kIOMUXC_SW_MUX_CTL_PAD_NAND_CE0_B = 54U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
331 | kIOMUXC_SW_MUX_CTL_PAD_NAND_CE1_B = 55U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
332 | kIOMUXC_SW_MUX_CTL_PAD_NAND_CE2_B = 56U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
333 | kIOMUXC_SW_MUX_CTL_PAD_NAND_CE3_B = 57U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
334 | kIOMUXC_SW_MUX_CTL_PAD_NAND_CLE = 58U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
335 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA00 = 59U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
336 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA01 = 60U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
337 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA02 = 61U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
338 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA03 = 62U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
339 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA04 = 63U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
340 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA05 = 64U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
341 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA06 = 65U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
342 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA07 = 66U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
343 | kIOMUXC_SW_MUX_CTL_PAD_NAND_DQS = 67U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
344 | kIOMUXC_SW_MUX_CTL_PAD_NAND_RE_B = 68U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
345 | kIOMUXC_SW_MUX_CTL_PAD_NAND_READY_B = 69U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
346 | kIOMUXC_SW_MUX_CTL_PAD_NAND_WE_B = 70U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
347 | kIOMUXC_SW_MUX_CTL_PAD_NAND_WP_B = 71U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
348 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXFS = 72U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
349 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXC = 73U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
350 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD0 = 74U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
351 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD1 = 75U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
352 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD2 = 76U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
353 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD3 = 77U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
354 | kIOMUXC_SW_MUX_CTL_PAD_SAI5_MCLK = 78U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
355 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXFS = 100U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
356 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXC = 101U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
357 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXD0 = 102U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
358 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXFS = 103U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
359 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXC = 104U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
360 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXD0 = 105U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
361 | kIOMUXC_SW_MUX_CTL_PAD_SAI2_MCLK = 106U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
362 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXFS = 107U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
363 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXC = 108U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
364 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXD = 109U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
365 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXFS = 110U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
366 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXC = 111U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
367 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXD = 112U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
368 | kIOMUXC_SW_MUX_CTL_PAD_SAI3_MCLK = 113U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
369 | kIOMUXC_SW_MUX_CTL_PAD_SPDIF_TX = 114U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
370 | kIOMUXC_SW_MUX_CTL_PAD_SPDIF_RX = 115U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
371 | kIOMUXC_SW_MUX_CTL_PAD_SPDIF_EXT_CLK = 116U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
372 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_SCLK = 117U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
373 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_MOSI = 118U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
374 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_MISO = 119U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
375 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_SS0 = 120U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
376 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_SCLK = 121U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
377 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_MOSI = 122U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
378 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_MISO = 123U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
379 | kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_SS0 = 124U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
380 | kIOMUXC_SW_MUX_CTL_PAD_I2C1_SCL = 125U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
381 | kIOMUXC_SW_MUX_CTL_PAD_I2C1_SDA = 126U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
382 | kIOMUXC_SW_MUX_CTL_PAD_I2C2_SCL = 127U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
383 | kIOMUXC_SW_MUX_CTL_PAD_I2C2_SDA = 128U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
384 | kIOMUXC_SW_MUX_CTL_PAD_I2C3_SCL = 129U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
385 | kIOMUXC_SW_MUX_CTL_PAD_I2C3_SDA = 130U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
386 | kIOMUXC_SW_MUX_CTL_PAD_I2C4_SCL = 131U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
387 | kIOMUXC_SW_MUX_CTL_PAD_I2C4_SDA = 132U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
388 | kIOMUXC_SW_MUX_CTL_PAD_UART1_RXD = 133U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
389 | kIOMUXC_SW_MUX_CTL_PAD_UART1_TXD = 134U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
390 | kIOMUXC_SW_MUX_CTL_PAD_UART2_RXD = 135U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
391 | kIOMUXC_SW_MUX_CTL_PAD_UART2_TXD = 136U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
392 | kIOMUXC_SW_MUX_CTL_PAD_UART3_RXD = 137U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
393 | kIOMUXC_SW_MUX_CTL_PAD_UART3_TXD = 138U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
394 | kIOMUXC_SW_MUX_CTL_PAD_UART4_RXD = 139U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
395 | kIOMUXC_SW_MUX_CTL_PAD_UART4_TXD = 140U, /**< IOMUXC SW_MUX_CTL_PAD index */ | ||
396 | } iomuxc_sw_mux_ctl_pad_t; | ||
397 | |||
398 | /*! | ||
399 | * @addtogroup iomuxc_pads | ||
400 | * @{ */ | ||
401 | |||
402 | /******************************************************************************* | ||
403 | * Definitions | ||
404 | *******************************************************************************/ | ||
405 | |||
406 | /*! | ||
407 | * @brief Enumeration for the IOMUXC SW_PAD_CTL_PAD | ||
408 | * | ||
409 | * Defines the enumeration for the IOMUXC SW_PAD_CTL_PAD collections. | ||
410 | */ | ||
411 | typedef enum _iomuxc_sw_pad_ctl_pad | ||
412 | { | ||
413 | kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE0 = 0U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
414 | kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE1 = 1U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
415 | kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE2 = 2U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
416 | kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE3 = 3U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
417 | kIOMUXC_SW_PAD_CTL_PAD_JTAG_MOD = 4U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
418 | kIOMUXC_SW_PAD_CTL_PAD_JTAG_TDI = 5U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
419 | kIOMUXC_SW_PAD_CTL_PAD_JTAG_TMS = 6U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
420 | kIOMUXC_SW_PAD_CTL_PAD_JTAG_TCK = 7U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
421 | kIOMUXC_SW_PAD_CTL_PAD_JTAG_TDO = 8U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
422 | kIOMUXC_SW_PAD_CTL_PAD_PMIC_STBY_REQ = 10U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
423 | kIOMUXC_SW_PAD_CTL_PAD_PMIC_ON_REQ = 11U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
424 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO00 = 15U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
425 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO01 = 16U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
426 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO02 = 17U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
427 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO03 = 18U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
428 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO04 = 19U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
429 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO05 = 20U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
430 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO06 = 21U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
431 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO07 = 22U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
432 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO08 = 23U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
433 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO09 = 24U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
434 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO10 = 25U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
435 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO11 = 26U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
436 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO12 = 27U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
437 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO13 = 28U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
438 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO14 = 29U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
439 | kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO15 = 30U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
440 | kIOMUXC_SW_PAD_CTL_PAD_ENET_MDC = 31U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
441 | kIOMUXC_SW_PAD_CTL_PAD_ENET_MDIO = 32U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
442 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TD3 = 33U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
443 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TD2 = 34U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
444 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TD1 = 35U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
445 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TD0 = 36U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
446 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TX_CTL = 37U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
447 | kIOMUXC_SW_PAD_CTL_PAD_ENET_TXC = 38U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
448 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RX_CTL = 39U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
449 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RXC = 40U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
450 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RD0 = 41U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
451 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RD1 = 42U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
452 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RD2 = 43U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
453 | kIOMUXC_SW_PAD_CTL_PAD_ENET_RD3 = 44U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
454 | kIOMUXC_SW_PAD_CTL_PAD_SD1_CLK = 45U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
455 | kIOMUXC_SW_PAD_CTL_PAD_SD1_CMD = 46U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
456 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA0 = 47U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
457 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA1 = 48U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
458 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA2 = 49U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
459 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA3 = 50U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
460 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA4 = 51U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
461 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA5 = 52U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
462 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA6 = 53U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
463 | kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA7 = 54U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
464 | kIOMUXC_SW_PAD_CTL_PAD_SD1_RESET_B = 55U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
465 | kIOMUXC_SW_PAD_CTL_PAD_SD1_STROBE = 56U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
466 | kIOMUXC_SW_PAD_CTL_PAD_SD2_CD_B = 57U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
467 | kIOMUXC_SW_PAD_CTL_PAD_SD2_CLK = 58U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
468 | kIOMUXC_SW_PAD_CTL_PAD_SD2_CMD = 59U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
469 | kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA0 = 60U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
470 | kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA1 = 61U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
471 | kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA2 = 62U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
472 | kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA3 = 63U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
473 | kIOMUXC_SW_PAD_CTL_PAD_SD2_RESET_B = 64U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
474 | kIOMUXC_SW_PAD_CTL_PAD_SD2_WP = 65U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
475 | kIOMUXC_SW_PAD_CTL_PAD_NAND_ALE = 66U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
476 | kIOMUXC_SW_PAD_CTL_PAD_NAND_CE0_B = 67U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
477 | kIOMUXC_SW_PAD_CTL_PAD_NAND_CE1_B = 68U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
478 | kIOMUXC_SW_PAD_CTL_PAD_NAND_CE2_B = 69U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
479 | kIOMUXC_SW_PAD_CTL_PAD_NAND_CE3_B = 70U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
480 | kIOMUXC_SW_PAD_CTL_PAD_NAND_CLE = 71U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
481 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA00 = 72U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
482 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA01 = 73U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
483 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA02 = 74U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
484 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA03 = 75U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
485 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA04 = 76U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
486 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA05 = 77U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
487 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA06 = 78U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
488 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA07 = 79U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
489 | kIOMUXC_SW_PAD_CTL_PAD_NAND_DQS = 80U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
490 | kIOMUXC_SW_PAD_CTL_PAD_NAND_RE_B = 81U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
491 | kIOMUXC_SW_PAD_CTL_PAD_NAND_READY_B = 82U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
492 | kIOMUXC_SW_PAD_CTL_PAD_NAND_WE_B = 83U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
493 | kIOMUXC_SW_PAD_CTL_PAD_NAND_WP_B = 84U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
494 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXFS = 85U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
495 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXC = 86U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
496 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD0 = 87U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
497 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD1 = 88U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
498 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD2 = 89U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
499 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD3 = 90U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
500 | kIOMUXC_SW_PAD_CTL_PAD_SAI5_MCLK = 91U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
501 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXFS = 113U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
502 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXC = 114U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
503 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXD0 = 115U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
504 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXFS = 116U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
505 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXC = 117U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
506 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXD0 = 118U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
507 | kIOMUXC_SW_PAD_CTL_PAD_SAI2_MCLK = 119U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
508 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXFS = 120U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
509 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXC = 121U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
510 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXD = 122U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
511 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXFS = 123U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
512 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXC = 124U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
513 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXD = 125U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
514 | kIOMUXC_SW_PAD_CTL_PAD_SAI3_MCLK = 126U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
515 | kIOMUXC_SW_PAD_CTL_PAD_SPDIF_TX = 127U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
516 | kIOMUXC_SW_PAD_CTL_PAD_SPDIF_RX = 128U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
517 | kIOMUXC_SW_PAD_CTL_PAD_SPDIF_EXT_CLK = 129U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
518 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_SCLK = 130U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
519 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_MOSI = 131U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
520 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_MISO = 132U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
521 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_SS0 = 133U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
522 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_SCLK = 134U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
523 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_MOSI = 135U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
524 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_MISO = 136U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
525 | kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_SS0 = 137U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
526 | kIOMUXC_SW_PAD_CTL_PAD_I2C1_SCL = 138U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
527 | kIOMUXC_SW_PAD_CTL_PAD_I2C1_SDA = 139U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
528 | kIOMUXC_SW_PAD_CTL_PAD_I2C2_SCL = 140U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
529 | kIOMUXC_SW_PAD_CTL_PAD_I2C2_SDA = 141U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
530 | kIOMUXC_SW_PAD_CTL_PAD_I2C3_SCL = 142U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
531 | kIOMUXC_SW_PAD_CTL_PAD_I2C3_SDA = 143U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
532 | kIOMUXC_SW_PAD_CTL_PAD_I2C4_SCL = 144U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
533 | kIOMUXC_SW_PAD_CTL_PAD_I2C4_SDA = 145U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
534 | kIOMUXC_SW_PAD_CTL_PAD_UART1_RXD = 146U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
535 | kIOMUXC_SW_PAD_CTL_PAD_UART1_TXD = 147U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
536 | kIOMUXC_SW_PAD_CTL_PAD_UART2_RXD = 148U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
537 | kIOMUXC_SW_PAD_CTL_PAD_UART2_TXD = 149U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
538 | kIOMUXC_SW_PAD_CTL_PAD_UART3_RXD = 150U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
539 | kIOMUXC_SW_PAD_CTL_PAD_UART3_TXD = 151U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
540 | kIOMUXC_SW_PAD_CTL_PAD_UART4_RXD = 152U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
541 | kIOMUXC_SW_PAD_CTL_PAD_UART4_TXD = 153U, /**< IOMUXC SW_PAD_CTL_PAD index */ | ||
542 | } iomuxc_sw_pad_ctl_pad_t; | ||
543 | |||
544 | /* @} */ | ||
545 | |||
546 | /*! | ||
547 | * @brief Enumeration for the IOMUXC select input | ||
548 | * | ||
549 | * Defines the enumeration for the IOMUXC select input collections. | ||
550 | */ | ||
551 | typedef enum _iomuxc_select_input | ||
552 | { | ||
553 | kIOMUXC_CCM_PMIC_READY_SELECT_INPUT = 0U, /**< IOMUXC select input index */ | ||
554 | kIOMUXC_ENET1_MDIO_SELECT_INPUT = 1U, /**< IOMUXC select input index */ | ||
555 | kIOMUXC_SAI5_RX_BCLK_SELECT_INPUT = 5U, /**< IOMUXC select input index */ | ||
556 | kIOMUXC_SAI5_RX_DATA0_SELECT_INPUT = 6U, /**< IOMUXC select input index */ | ||
557 | kIOMUXC_SAI5_RX_DATA1_SELECT_INPUT = 7U, /**< IOMUXC select input index */ | ||
558 | kIOMUXC_SAI5_RX_DATA2_SELECT_INPUT = 8U, /**< IOMUXC select input index */ | ||
559 | kIOMUXC_SAI5_RX_DATA3_SELECT_INPUT = 9U, /**< IOMUXC select input index */ | ||
560 | kIOMUXC_SAI5_RX_SYNC_SELECT_INPUT = 10U, /**< IOMUXC select input index */ | ||
561 | kIOMUXC_SAI5_TX_BCLK_SELECT_INPUT = 11U, /**< IOMUXC select input index */ | ||
562 | kIOMUXC_SAI5_TX_SYNC_SELECT_INPUT = 12U, /**< IOMUXC select input index */ | ||
563 | kIOMUXC_UART1_RTS_B_SELECT_INPUT = 13U, /**< IOMUXC select input index */ | ||
564 | kIOMUXC_UART1_RX_SELECT_INPUT = 14U, /**< IOMUXC select input index */ | ||
565 | kIOMUXC_UART2_RTS_B_SELECT_INPUT = 15U, /**< IOMUXC select input index */ | ||
566 | kIOMUXC_UART2_RX_SELECT_INPUT = 16U, /**< IOMUXC select input index */ | ||
567 | kIOMUXC_UART3_RTS_B_SELECT_INPUT = 17U, /**< IOMUXC select input index */ | ||
568 | kIOMUXC_UART3_RX_SELECT_INPUT = 18U, /**< IOMUXC select input index */ | ||
569 | kIOMUXC_UART4_RTS_B_SELECT_INPUT = 19U, /**< IOMUXC select input index */ | ||
570 | kIOMUXC_UART4_RX_SELECT_INPUT = 20U, /**< IOMUXC select input index */ | ||
571 | kIOMUXC_PDM_BIT_STREAM0_SELECT_INPUT = 30U, /**< IOMUXC select input index */ | ||
572 | kIOMUXC_PDM_BIT_STREAM1_SELECT_INPUT = 31U, /**< IOMUXC select input index */ | ||
573 | kIOMUXC_PDM_BIT_STREAM2_SELECT_INPUT = 32U, /**< IOMUXC select input index */ | ||
574 | kIOMUXC_PDM_BIT_STREAM3_SELECT_INPUT = 33U, /**< IOMUXC select input index */ | ||
575 | kIOMUXC_USDHC3_DATA7_SELECT_INPUT = 36U, /**< IOMUXC select input index */ | ||
576 | kIOMUXC_USDHC3_DATA5_SELECT_INPUT = 37U, /**< IOMUXC select input index */ | ||
577 | kIOMUXC_ENET1_RGMII_RD1_SELECT_INPUT = 38U, /**< IOMUXC select input index */ | ||
578 | kIOMUXC_USDHC3_DATA4_SELECT_INPUT = 39U, /**< IOMUXC select input index */ | ||
579 | kIOMUXC_I2C1_SCL_SELECT_INPUT = 40U, /**< IOMUXC select input index */ | ||
580 | kIOMUXC_I2C2_SDA_SELECT_INPUT = 41U, /**< IOMUXC select input index */ | ||
581 | kIOMUXC_ECSPI1_SS0_SELECT_INPUT = 42U, /**< IOMUXC select input index */ | ||
582 | kIOMUXC_SPDIF1_EXT_CLK_SELECT_INPUT = 43U, /**< IOMUXC select input index */ | ||
583 | kIOMUXC_I2C1_SDA_SELECT_INPUT = 44U, /**< IOMUXC select input index */ | ||
584 | kIOMUXC_ECSPI2_SS0_SELECT_INPUT = 45U, /**< IOMUXC select input index */ | ||
585 | kIOMUXC_ENET1_RGMII_RX_CTL_SELECT_INPUT = 46U, /**< IOMUXC select input index */ | ||
586 | kIOMUXC_ECSPI2_MISO_SELECT_INPUT = 47U, /**< IOMUXC select input index */ | ||
587 | kIOMUXC_ENET1_RGMII_RD0_SELECT_INPUT = 48U, /**< IOMUXC select input index */ | ||
588 | kIOMUXC_ECSPI2_SCLK_SELECT_INPUT = 49U, /**< IOMUXC select input index */ | ||
589 | kIOMUXC_USDHC3_DATA6_SELECT_INPUT = 50U, /**< IOMUXC select input index */ | ||
590 | kIOMUXC_I2C3_SCL_SELECT_INPUT = 51U, /**< IOMUXC select input index */ | ||
591 | kIOMUXC_I2C4_SDA_SELECT_INPUT = 52U, /**< IOMUXC select input index */ | ||
592 | kIOMUXC_ECSPI2_MOSI_SELECT_INPUT = 53U, /**< IOMUXC select input index */ | ||
593 | kIOMUXC_SAI5_MCLK_SELECT_INPUT = 54U, /**< IOMUXC select input index */ | ||
594 | kIOMUXC_USDHC3_CD_B_SELECT_INPUT = 55U, /**< IOMUXC select input index */ | ||
595 | kIOMUXC_USDHC3_STROBE_SELECT_INPUT = 56U, /**< IOMUXC select input index */ | ||
596 | kIOMUXC_USDHC3_CLK_SELECT_INPUT = 57U, /**< IOMUXC select input index */ | ||
597 | kIOMUXC_ENET1_IPG_CLK_RMII_SELECT_INPUT = 58U, /**< IOMUXC select input index */ | ||
598 | kIOMUXC_ECSPI1_MOSI_SELECT_INPUT = 59U, /**< IOMUXC select input index */ | ||
599 | kIOMUXC_SAI2_RX_DATA1_SELECT_INPUT = 60U, /**< IOMUXC select input index */ | ||
600 | kIOMUXC_USDHC3_DATA1_SELECT_INPUT = 61U, /**< IOMUXC select input index */ | ||
601 | kIOMUXC_USDHC3_DATA0_SELECT_INPUT = 62U, /**< IOMUXC select input index */ | ||
602 | kIOMUXC_USDHC3_WP_SELECT_INPUT = 63U, /**< IOMUXC select input index */ | ||
603 | kIOMUXC_I2C3_SDA_SELECT_INPUT = 64U, /**< IOMUXC select input index */ | ||
604 | kIOMUXC_SAI3_MCLK_SELECT_INPUT = 65U, /**< IOMUXC select input index */ | ||
605 | kIOMUXC_ECSPI1_MISO_SELECT_INPUT = 66U, /**< IOMUXC select input index */ | ||
606 | kIOMUXC_ENET1_RX_ER_SELECT_INPUT = 67U, /**< IOMUXC select input index */ | ||
607 | kIOMUXC_SPDIF1_IN_SELECT_INPUT = 68U, /**< IOMUXC select input index */ | ||
608 | kIOMUXC_I2C2_SCL_SELECT_INPUT = 69U, /**< IOMUXC select input index */ | ||
609 | kIOMUXC_I2C4_SCL_SELECT_INPUT = 70U, /**< IOMUXC select input index */ | ||
610 | kIOMUXC_ECSPI1_SCLK_SELECT_INPUT = 71U, /**< IOMUXC select input index */ | ||
611 | kIOMUXC_USDHC3_CMD_SELECT_INPUT = 72U, /**< IOMUXC select input index */ | ||
612 | kIOMUXC_USDHC3_DATA3_SELECT_INPUT = 73U, /**< IOMUXC select input index */ | ||
613 | kIOMUXC_USDHC3_DATA2_SELECT_INPUT = 74U, /**< IOMUXC select input index */ | ||
614 | kIOMUXC_GPT1_CLK_SELECT_INPUT = 75U, /**< IOMUXC select input index */ | ||
615 | kIOMUXC_GPT1_CAPTURE2_SELECT_INPUT = 76U, /**< IOMUXC select input index */ | ||
616 | kIOMUXC_GPT1_CAPTURE1_SELECT_INPUT = 77U, /**< IOMUXC select input index */ | ||
617 | } iomuxc_select_input_t; | ||
618 | |||
619 | /*! | ||
620 | * @addtogroup rdc_mapping | ||
621 | * @{ | ||
622 | */ | ||
623 | |||
624 | /******************************************************************************* | ||
625 | * Definitions | ||
626 | ******************************************************************************/ | ||
627 | |||
628 | /*! | ||
629 | * @brief Structure for the RDC mapping | ||
630 | * | ||
631 | * Defines the structure for the RDC resource collections. | ||
632 | */ | ||
633 | |||
634 | typedef enum _rdc_master | ||
635 | { | ||
636 | kRDC_Master_A53 = 0U, /**< ARM Cortex-A53 RDC Master */ | ||
637 | kRDC_Master_M7 = 1U, /**< ARM Cortex-M7 RDC Master */ | ||
638 | kRDC_Reserved0 = 2U, /**< Reserved */ | ||
639 | kRDC_Master_SDMA3_PERIPH = 3U, /**< SDMA3 PERIPHERAL RDC Master */ | ||
640 | kRDC_Reserved1 = 4U, /**< Reserved */ | ||
641 | kRDC_Master_LCDIF = 5U, /**< LCDIF RDC Master */ | ||
642 | kRDC_Master_ISI = 6U, /**< ISI PORT RDC Master */ | ||
643 | kRDC_Master_SDMA3_BURST = 7U, /**< SDMA3 BURST RDC Master */ | ||
644 | kRDC_Master_Coresight = 8U, /**< CORESIGHT RDC Master */ | ||
645 | kRDC_Master_DAP = 9U, /**< DAP RDC Master */ | ||
646 | kRDC_Master_CAAM = 10U, /**< CAAM RDC Master */ | ||
647 | kRDC_Master_SDMA1_PERIPH = 11U, /**< SDMA1 PERIPHERAL RDC Master */ | ||
648 | kRDC_Master_SDMA1_BURST = 12U, /**< SDMA1 BURST RDC Master */ | ||
649 | kRDC_Master_APBHDMA = 13U, /**< APBH DMA RDC Master */ | ||
650 | kRDC_Master_RAWNAND = 14U, /**< RAW NAND RDC Master */ | ||
651 | kRDC_Master_USDHC1 = 15U, /**< USDHC1 RDC Master */ | ||
652 | kRDC_Master_USDHC2 = 16U, /**< USDHC2 RDC Master */ | ||
653 | kRDC_Master_USDHC3 = 17U, /**< USDHC3 RDC Master */ | ||
654 | kRDC_Master_GPU = 18U, /**< GPU RDC Master */ | ||
655 | kRDC_Master_USB1 = 19U, /**< USB1 RDC Master */ | ||
656 | kRDC_Reserved2 = 20U, /**< Reserved */ | ||
657 | kRDC_Master_TESTPORT = 21U, /**< TESTPORT RDC Master */ | ||
658 | kRDC_Master_ENET1TX = 22U, /**< ENET1 TX RDC Master */ | ||
659 | kRDC_Master_ENET1RX = 23U, /**< ENET1 RX RDC Master */ | ||
660 | kRDC_Master_SDMA2_PERIPH = 24U, /**< SDMA2 PERIPH RDC Master */ | ||
661 | kRDC_Master_SDMA2_BURST = 24U, /**< SDMA2 BURST RDC Master */ | ||
662 | kRDC_Master_SDMA2_SPBA2 = 24U, /**< SDMA2 to SPBA2 RDC Master */ | ||
663 | kRDC_Master_SDMA3_SPBA2 = 25U, /**< SDMA3 to SPBA2 RDC Master */ | ||
664 | kRDC_Master_SDMA1_SPBA1 = 26U, /**< SDMA1 to SPBA1 RDC Master */ | ||
665 | } rdc_master_t; | ||
666 | |||
667 | typedef enum _rdc_mem | ||
668 | { | ||
669 | kRDC_Mem_MRC0_0 = 0U, /**< DRAM. Region resolution 4KB. */ | ||
670 | kRDC_Mem_MRC0_1 = 1U, | ||
671 | kRDC_Mem_MRC0_2 = 2U, | ||
672 | kRDC_Mem_MRC0_3 = 3U, | ||
673 | kRDC_Mem_MRC0_4 = 4U, | ||
674 | kRDC_Mem_MRC0_5 = 5U, | ||
675 | kRDC_Mem_MRC0_6 = 6U, | ||
676 | kRDC_Mem_MRC0_7 = 7U, | ||
677 | kRDC_Mem_MRC1_0 = 8U, /**< QSPI. Region resolution 4KB. */ | ||
678 | kRDC_Mem_MRC1_1 = 9U, | ||
679 | kRDC_Mem_MRC1_2 = 10U, | ||
680 | kRDC_Mem_MRC1_3 = 11U, | ||
681 | kRDC_Mem_MRC1_4 = 12U, | ||
682 | kRDC_Mem_MRC1_5 = 13U, | ||
683 | kRDC_Mem_MRC1_6 = 14U, | ||
684 | kRDC_Mem_MRC1_7 = 15U, | ||
685 | kRDC_Mem_MRC2_0 = 16U, /**< OCRAM. Region resolution 128B. */ | ||
686 | kRDC_Mem_MRC2_1 = 17U, | ||
687 | kRDC_Mem_MRC2_2 = 18U, | ||
688 | kRDC_Mem_MRC2_3 = 19U, | ||
689 | kRDC_Mem_MRC2_4 = 20U, | ||
690 | kRDC_Mem_MRC3_0 = 21U, /**< OCRAM_S. Region resolution 128B. */ | ||
691 | kRDC_Mem_MRC3_1 = 22U, | ||
692 | kRDC_Mem_MRC3_2 = 23U, | ||
693 | kRDC_Mem_MRC3_3 = 24U, | ||
694 | kRDC_Mem_MRC3_4 = 25U, | ||
695 | kRDC_Mem_MRC4_0 = 26U, /**< TCM. Region resolution 128B. */ | ||
696 | kRDC_Mem_MRC4_1 = 27U, | ||
697 | kRDC_Mem_MRC4_2 = 28U, | ||
698 | kRDC_Mem_MRC4_3 = 29U, | ||
699 | kRDC_Mem_MRC4_4 = 30U, | ||
700 | kRDC_Mem_MRC5_0 = 31U, /**< GIC. Region resolution 4KB. */ | ||
701 | kRDC_Mem_MRC5_1 = 32U, | ||
702 | kRDC_Mem_MRC5_2 = 33U, | ||
703 | kRDC_Mem_MRC5_3 = 34U, | ||
704 | kRDC_Mem_MRC6_0 = 35U, /**< GPU. Region resolution 4KB. */ | ||
705 | kRDC_Mem_MRC6_1 = 36U, | ||
706 | kRDC_Mem_MRC6_2 = 37U, | ||
707 | kRDC_Mem_MRC6_3 = 38U, | ||
708 | kRDC_Mem_MRC6_4 = 39U, | ||
709 | kRDC_Mem_MRC6_5 = 40U, | ||
710 | kRDC_Mem_MRC6_6 = 41U, | ||
711 | kRDC_Mem_MRC6_7 = 42U, | ||
712 | kRDC_Mem_MRC7_0 = 43U, /**< DEBUG(DAP). Region resolution 4KB. */ | ||
713 | kRDC_Mem_MRC7_1 = 44U, | ||
714 | kRDC_Mem_MRC7_2 = 45U, | ||
715 | kRDC_Mem_MRC7_3 = 46U, | ||
716 | kRDC_Mem_MRC8_0 = 47U, /**< DDRC(REG). Region resolution 4KB. */ | ||
717 | kRDC_Mem_MRC8_1 = 48U, | ||
718 | kRDC_Mem_MRC8_2 = 49U, | ||
719 | kRDC_Mem_MRC8_3 = 50U, | ||
720 | kRDC_Mem_MRC8_4 = 51U, | ||
721 | } rdc_mem_t; | ||
722 | |||
723 | typedef enum _rdc_periph | ||
724 | { | ||
725 | kRDC_Periph_GPIO1 = 0U, /**< GPIO1 RDC Peripheral */ | ||
726 | kRDC_Periph_GPIO2 = 1U, /**< GPIO2 RDC Peripheral */ | ||
727 | kRDC_Periph_GPIO3 = 2U, /**< GPIO3 RDC Peripheral */ | ||
728 | kRDC_Periph_GPIO4 = 3U, /**< GPIO4 RDC Peripheral */ | ||
729 | kRDC_Periph_GPIO5 = 4U, /**< GPIO5 RDC Peripheral */ | ||
730 | kRDC_Periph_ANA_TSENSOR = 6U, /**< ANA_TSENSOR RDC Peripheral */ | ||
731 | kRDC_Periph_ANA_OSC = 7U, /**< ANA_OSC RDC Peripheral */ | ||
732 | kRDC_Periph_WDOG1 = 8U, /**< WDOG1 RDC Peripheral */ | ||
733 | kRDC_Periph_WDOG2 = 9U, /**< WDOG2 RDC Peripheral */ | ||
734 | kRDC_Periph_WDOG3 = 10U, /**< WDOG3 RDC Peripheral */ | ||
735 | kRDC_Periph_SDMA3 = 11U, /**< SDMA3 RDC Peripheral */ | ||
736 | kRDC_Periph_SDMA2 = 12U, /**< SDMA2 RDC Peripheral */ | ||
737 | kRDC_Periph_GPT1 = 13U, /**< GPT1 RDC Peripheral */ | ||
738 | kRDC_Periph_GPT2 = 14U, /**< GPT2 RDC Peripheral */ | ||
739 | kRDC_Periph_GPT3 = 15U, /**< GPT3 RDC Peripheral */ | ||
740 | kRDC_Periph_ROMCP = 17U, /**< ROMCP RDC Peripheral */ | ||
741 | kRDC_Periph_IOMUXC = 19U, /**< IOMUXC RDC Peripheral */ | ||
742 | kRDC_Periph_IOMUXC_GPR = 20U, /**< IOMUXC_GPR RDC Peripheral */ | ||
743 | kRDC_Periph_OCOTP_CTRL = 21U, /**< OCOTP_CTRL RDC Peripheral */ | ||
744 | kRDC_Periph_ANA_PLL = 22U, /**< ANA_PLL RDC Peripheral */ | ||
745 | kRDC_Periph_SNVS_HP = 23U, /**< SNVS_HP GPR RDC Peripheral */ | ||
746 | kRDC_Periph_CCM = 24U, /**< CCM RDC Peripheral */ | ||
747 | kRDC_Periph_SRC = 25U, /**< SRC RDC Peripheral */ | ||
748 | kRDC_Periph_GPC = 26U, /**< GPC RDC Peripheral */ | ||
749 | kRDC_Periph_SEMAPHORE1 = 27U, /**< SEMAPHORE1 RDC Peripheral */ | ||
750 | kRDC_Periph_SEMAPHORE2 = 28U, /**< SEMAPHORE2 RDC Peripheral */ | ||
751 | kRDC_Periph_RDC = 29U, /**< RDC RDC Peripheral */ | ||
752 | kRDC_Periph_CSU = 30U, /**< CSU RDC Peripheral */ | ||
753 | kRDC_Periph_LCDIF = 32U, /**< LCDIF RDC Peripheral */ | ||
754 | kRDC_Periph_MIPI_DSI = 33U, /**< MIPI_DSI RDC Peripheral */ | ||
755 | kRDC_Periph_ISI = 34U, /**< ISI RDC Peripheral */ | ||
756 | kRDC_Periph_MIPI_CSI = 35U, /**< MIPI_CSI RDC Peripheral */ | ||
757 | kRDC_Periph_USB1 = 36U, /**< USB1 RDC Peripheral */ | ||
758 | kRDC_Periph_PWM1 = 38U, /**< PWM1 RDC Peripheral */ | ||
759 | kRDC_Periph_PWM2 = 39U, /**< PWM2 RDC Peripheral */ | ||
760 | kRDC_Periph_PWM3 = 40U, /**< PWM3 RDC Peripheral */ | ||
761 | kRDC_Periph_PWM4 = 41U, /**< PWM4 RDC Peripheral */ | ||
762 | kRDC_Periph_SYS_COUNTER_RD = 42U, /**< System counter read RDC Peripheral */ | ||
763 | kRDC_Periph_SYS_COUNTER_CMP = 43U, /**< System counter compare RDC Peripheral */ | ||
764 | kRDC_Periph_SYS_COUNTER_CTRL = 44U, /**< System counter control RDC Peripheral */ | ||
765 | kRDC_Periph_GPT6 = 46U, /**< GPT6 RDC Peripheral */ | ||
766 | kRDC_Periph_GPT5 = 47U, /**< GPT5 RDC Peripheral */ | ||
767 | kRDC_Periph_GPT4 = 48U, /**< GPT4 RDC Peripheral */ | ||
768 | kRDC_Periph_TZASC = 56U, /**< TZASC RDC Peripheral */ | ||
769 | kRDC_Periph_PERFMON1 = 60U, /**< PERFMON1 RDC Peripheral */ | ||
770 | kRDC_Periph_PERFMON2 = 61U, /**< PERFMON2 RDC Peripheral */ | ||
771 | kRDC_Periph_PLATFORM_CTRL = 62U, /**< PLATFORM_CTRL RDC Peripheral */ | ||
772 | kRDC_Periph_QOSC = 63U, /**< QOSC RDC Peripheral */ | ||
773 | kRDC_Periph_I2C1 = 66U, /**< I2C1 RDC Peripheral */ | ||
774 | kRDC_Periph_I2C2 = 67U, /**< I2C2 RDC Peripheral */ | ||
775 | kRDC_Periph_I2C3 = 68U, /**< I2C3 RDC Peripheral */ | ||
776 | kRDC_Periph_I2C4 = 69U, /**< I2C4 RDC Peripheral */ | ||
777 | kRDC_Periph_UART4 = 70U, /**< UART4 RDC Peripheral */ | ||
778 | kRDC_Periph_MU_A = 74U, /**< MU_A RDC Peripheral */ | ||
779 | kRDC_Periph_MU_B = 75U, /**< MU_B RDC Peripheral */ | ||
780 | kRDC_Periph_SEMAPHORE_HS = 76U, /**< SEMAPHORE_HS RDC Peripheral */ | ||
781 | kRDC_Periph_SAI2 = 79U, /**< SAI2 RDC Peripheral */ | ||
782 | kRDC_Periph_SAI3 = 80U, /**< SAI3 RDC Peripheral */ | ||
783 | kRDC_Periph_SAI5 = 82U, /**< SAI5 RDC Peripheral */ | ||
784 | kRDC_Periph_SAI6 = 83U, /**< SAI6 RDC Peripheral */ | ||
785 | kRDC_Periph_USDHC1 = 84U, /**< USDHC1 RDC Peripheral */ | ||
786 | kRDC_Periph_USDHC2 = 85U, /**< USDHC2 RDC Peripheral */ | ||
787 | kRDC_Periph_USDHC3 = 86U, /**< USDHC3 RDC Peripheral */ | ||
788 | kRDC_Periph_SAI7 = 87U, /**< SAI7 RDC Peripheral */ | ||
789 | kRDC_Periph_SPBA2 = 90U, /**< SPBA2 RDC Peripheral */ | ||
790 | kRDC_Periph_QSPI = 91U, /**< QSPI RDC Peripheral */ | ||
791 | kRDC_Periph_SDMA1 = 93U, /**< SDMA1 RDC Peripheral */ | ||
792 | kRDC_Periph_ENET1 = 94U, /**< ENET1 RDC Peripheral */ | ||
793 | kRDC_Periph_SPDIF1 = 97U, /**< SPDIF1 RDC Peripheral */ | ||
794 | kRDC_Periph_ECSPI1 = 98U, /**< ECSPI1 RDC Peripheral */ | ||
795 | kRDC_Periph_ECSPI2 = 99U, /**< ECSPI2 RDC Peripheral */ | ||
796 | kRDC_Periph_ECSPI3 = 100U, /**< ECSPI3 RDC Peripheral */ | ||
797 | kRDC_Periph_MICFIL = 101U, /**< MICFIL RDC Peripheral */ | ||
798 | kRDC_Periph_UART1 = 102U, /**< UART1 RDC Peripheral */ | ||
799 | kRDC_Periph_UART3 = 104U, /**< UART3 RDC Peripheral */ | ||
800 | kRDC_Periph_UART2 = 105U, /**< UART2 RDC Peripheral */ | ||
801 | kRDC_Periph_ASRC = 107U, /**< ASRC RDC Peripheral */ | ||
802 | kRDC_Periph_SPBA1 = 111U, /**< SPBA1 RDC Peripheral */ | ||
803 | kRDC_Periph_CAAM = 114U, /**< CAAM RDC Peripheral */ | ||
804 | } rdc_periph_t; | ||
805 | |||
806 | /* @} */ | ||
807 | |||
808 | /*! | ||
809 | * @} | ||
810 | */ /* end of group Mapping_Information */ | ||
811 | |||
812 | /* ---------------------------------------------------------------------------- | ||
813 | -- Device Peripheral Access Layer | ||
814 | ---------------------------------------------------------------------------- */ | ||
815 | |||
816 | /*! | ||
817 | * @addtogroup Peripheral_access_layer Device Peripheral Access Layer | ||
818 | * @{ | ||
819 | */ | ||
820 | |||
821 | /* | ||
822 | ** Start of section using anonymous unions | ||
823 | */ | ||
824 | |||
825 | #if defined(__ARMCC_VERSION) | ||
826 | #if (__ARMCC_VERSION >= 6010050) | ||
827 | #pragma clang diagnostic push | ||
828 | #else | ||
829 | #pragma push | ||
830 | #pragma anon_unions | ||
831 | #endif | ||
832 | #elif defined(__GNUC__) | ||
833 | /* anonymous unions are enabled by default */ | ||
834 | #elif defined(__IAR_SYSTEMS_ICC__) | ||
835 | #pragma language = extended | ||
836 | #else | ||
837 | #error Not supported compiler type | ||
838 | #endif | ||
839 | |||
840 | /* ---------------------------------------------------------------------------- | ||
841 | -- AIPSTZ Peripheral Access Layer | ||
842 | ---------------------------------------------------------------------------- */ | ||
843 | |||
844 | /*! | ||
845 | * @addtogroup AIPSTZ_Peripheral_Access_Layer AIPSTZ Peripheral Access Layer | ||
846 | * @{ | ||
847 | */ | ||
848 | |||
849 | /** AIPSTZ - Register Layout Typedef */ | ||
850 | typedef struct | ||
851 | { | ||
852 | __IO uint32_t MPR; /**< Master Priviledge Registers, offset: 0x0 */ | ||
853 | uint8_t RESERVED_0[60]; | ||
854 | __IO uint32_t OPACR; /**< Off-Platform Peripheral Access Control Registers, offset: 0x40 */ | ||
855 | __IO uint32_t OPACR1; /**< Off-Platform Peripheral Access Control Registers, offset: 0x44 */ | ||
856 | __IO uint32_t OPACR2; /**< Off-Platform Peripheral Access Control Registers, offset: 0x48 */ | ||
857 | __IO uint32_t OPACR3; /**< Off-Platform Peripheral Access Control Registers, offset: 0x4C */ | ||
858 | __IO uint32_t OPACR4; /**< Off-Platform Peripheral Access Control Registers, offset: 0x50 */ | ||
859 | } AIPSTZ_Type; | ||
860 | |||
861 | /* ---------------------------------------------------------------------------- | ||
862 | -- AIPSTZ Register Masks | ||
863 | ---------------------------------------------------------------------------- */ | ||
864 | |||
865 | /*! | ||
866 | * @addtogroup AIPSTZ_Register_Masks AIPSTZ Register Masks | ||
867 | * @{ | ||
868 | */ | ||
869 | |||
870 | /*! @name MPR - Master Priviledge Registers */ | ||
871 | /*! @{ */ | ||
872 | #define AIPSTZ_MPR_MPROT5_MASK (0xF00U) | ||
873 | #define AIPSTZ_MPR_MPROT5_SHIFT (8U) | ||
874 | /*! MPROT5 | ||
875 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of | ||
876 | * the hprot[1] access attribute. 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access | ||
877 | * attribute is used directly to determine ips_supervisor_access. 0bxx0x..This master is not trusted for write accesses. | ||
878 | * 0bxx1x..This master is trusted for write accesses. | ||
879 | * 0bx0xx..This master is not trusted for read accesses. | ||
880 | * 0bx1xx..This master is trusted for read accesses. | ||
881 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
882 | */ | ||
883 | #define AIPSTZ_MPR_MPROT5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT5_SHIFT)) & AIPSTZ_MPR_MPROT5_MASK) | ||
884 | #define AIPSTZ_MPR_MPROT3_MASK (0xF0000U) | ||
885 | #define AIPSTZ_MPR_MPROT3_SHIFT (16U) | ||
886 | /*! MPROT3 | ||
887 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of | ||
888 | * the hprot[1] access attribute. 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access | ||
889 | * attribute is used directly to determine ips_supervisor_access. 0bxx0x..This master is not trusted for write accesses. | ||
890 | * 0bxx1x..This master is trusted for write accesses. | ||
891 | * 0bx0xx..This master is not trusted for read accesses. | ||
892 | * 0bx1xx..This master is trusted for read accesses. | ||
893 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
894 | */ | ||
895 | #define AIPSTZ_MPR_MPROT3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT3_SHIFT)) & AIPSTZ_MPR_MPROT3_MASK) | ||
896 | #define AIPSTZ_MPR_MPROT2_MASK (0xF00000U) | ||
897 | #define AIPSTZ_MPR_MPROT2_SHIFT (20U) | ||
898 | /*! MPROT2 | ||
899 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of | ||
900 | * the hprot[1] access attribute. 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access | ||
901 | * attribute is used directly to determine ips_supervisor_access. 0bxx0x..This master is not trusted for write accesses. | ||
902 | * 0bxx1x..This master is trusted for write accesses. | ||
903 | * 0bx0xx..This master is not trusted for read accesses. | ||
904 | * 0bx1xx..This master is trusted for read accesses. | ||
905 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
906 | */ | ||
907 | #define AIPSTZ_MPR_MPROT2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT2_SHIFT)) & AIPSTZ_MPR_MPROT2_MASK) | ||
908 | #define AIPSTZ_MPR_MPROT1_MASK (0xF000000U) | ||
909 | #define AIPSTZ_MPR_MPROT1_SHIFT (24U) | ||
910 | /*! MPROT1 | ||
911 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of | ||
912 | * the hprot[1] access attribute. 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access | ||
913 | * attribute is used directly to determine ips_supervisor_access. 0bxx0x..This master is not trusted for write accesses. | ||
914 | * 0bxx1x..This master is trusted for write accesses. | ||
915 | * 0bx0xx..This master is not trusted for read accesses. | ||
916 | * 0bx1xx..This master is trusted for read accesses. | ||
917 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
918 | */ | ||
919 | #define AIPSTZ_MPR_MPROT1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT1_SHIFT)) & AIPSTZ_MPR_MPROT1_MASK) | ||
920 | #define AIPSTZ_MPR_MPROT0_MASK (0xF0000000U) | ||
921 | #define AIPSTZ_MPR_MPROT0_SHIFT (28U) | ||
922 | /*! MPROT0 | ||
923 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of | ||
924 | * the hprot[1] access attribute. 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access | ||
925 | * attribute is used directly to determine ips_supervisor_access. 0bxx0x..This master is not trusted for write accesses. | ||
926 | * 0bxx1x..This master is trusted for write accesses. | ||
927 | * 0bx0xx..This master is not trusted for read accesses. | ||
928 | * 0bx1xx..This master is trusted for read accesses. | ||
929 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
930 | */ | ||
931 | #define AIPSTZ_MPR_MPROT0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT0_SHIFT)) & AIPSTZ_MPR_MPROT0_MASK) | ||
932 | /*! @} */ | ||
933 | |||
934 | /*! @name OPACR - Off-Platform Peripheral Access Control Registers */ | ||
935 | /*! @{ */ | ||
936 | #define AIPSTZ_OPACR_OPAC7_MASK (0xFU) | ||
937 | #define AIPSTZ_OPACR_OPAC7_SHIFT (0U) | ||
938 | /*! OPAC7 | ||
939 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
940 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
941 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
942 | * 0bxx0x..This peripheral allows write accesses. | ||
943 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
944 | * error response and no peripheral access is initiated on the IPS bus. | ||
945 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
946 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
947 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
948 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
949 | * on the IPS bus. | ||
950 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
951 | */ | ||
952 | #define AIPSTZ_OPACR_OPAC7(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC7_SHIFT)) & AIPSTZ_OPACR_OPAC7_MASK) | ||
953 | #define AIPSTZ_OPACR_OPAC6_MASK (0xF0U) | ||
954 | #define AIPSTZ_OPACR_OPAC6_SHIFT (4U) | ||
955 | /*! OPAC6 | ||
956 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
957 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
958 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
959 | * 0bxx0x..This peripheral allows write accesses. | ||
960 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
961 | * error response and no peripheral access is initiated on the IPS bus. | ||
962 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
963 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
964 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
965 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
966 | * on the IPS bus. | ||
967 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
968 | */ | ||
969 | #define AIPSTZ_OPACR_OPAC6(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC6_SHIFT)) & AIPSTZ_OPACR_OPAC6_MASK) | ||
970 | #define AIPSTZ_OPACR_OPAC5_MASK (0xF00U) | ||
971 | #define AIPSTZ_OPACR_OPAC5_SHIFT (8U) | ||
972 | /*! OPAC5 | ||
973 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
974 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
975 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
976 | * 0bxx0x..This peripheral allows write accesses. | ||
977 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
978 | * error response and no peripheral access is initiated on the IPS bus. | ||
979 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
980 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
981 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
982 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
983 | * on the IPS bus. | ||
984 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
985 | */ | ||
986 | #define AIPSTZ_OPACR_OPAC5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC5_SHIFT)) & AIPSTZ_OPACR_OPAC5_MASK) | ||
987 | #define AIPSTZ_OPACR_OPAC4_MASK (0xF000U) | ||
988 | #define AIPSTZ_OPACR_OPAC4_SHIFT (12U) | ||
989 | /*! OPAC4 | ||
990 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
991 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
992 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
993 | * 0bxx0x..This peripheral allows write accesses. | ||
994 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
995 | * error response and no peripheral access is initiated on the IPS bus. | ||
996 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
997 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
998 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
999 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1000 | * on the IPS bus. | ||
1001 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1002 | */ | ||
1003 | #define AIPSTZ_OPACR_OPAC4(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC4_SHIFT)) & AIPSTZ_OPACR_OPAC4_MASK) | ||
1004 | #define AIPSTZ_OPACR_OPAC3_MASK (0xF0000U) | ||
1005 | #define AIPSTZ_OPACR_OPAC3_SHIFT (16U) | ||
1006 | /*! OPAC3 | ||
1007 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1008 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1009 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1010 | * 0bxx0x..This peripheral allows write accesses. | ||
1011 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1012 | * error response and no peripheral access is initiated on the IPS bus. | ||
1013 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1014 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1015 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1016 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1017 | * on the IPS bus. | ||
1018 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1019 | */ | ||
1020 | #define AIPSTZ_OPACR_OPAC3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC3_SHIFT)) & AIPSTZ_OPACR_OPAC3_MASK) | ||
1021 | #define AIPSTZ_OPACR_OPAC2_MASK (0xF00000U) | ||
1022 | #define AIPSTZ_OPACR_OPAC2_SHIFT (20U) | ||
1023 | /*! OPAC2 | ||
1024 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1025 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1026 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1027 | * 0bxx0x..This peripheral allows write accesses. | ||
1028 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1029 | * error response and no peripheral access is initiated on the IPS bus. | ||
1030 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1031 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1032 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1033 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1034 | * on the IPS bus. | ||
1035 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1036 | */ | ||
1037 | #define AIPSTZ_OPACR_OPAC2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC2_SHIFT)) & AIPSTZ_OPACR_OPAC2_MASK) | ||
1038 | #define AIPSTZ_OPACR_OPAC1_MASK (0xF000000U) | ||
1039 | #define AIPSTZ_OPACR_OPAC1_SHIFT (24U) | ||
1040 | /*! OPAC1 | ||
1041 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1042 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1043 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1044 | * 0bxx0x..This peripheral allows write accesses. | ||
1045 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1046 | * error response and no peripheral access is initiated on the IPS bus. | ||
1047 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1048 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1049 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1050 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1051 | * on the IPS bus. | ||
1052 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1053 | */ | ||
1054 | #define AIPSTZ_OPACR_OPAC1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC1_SHIFT)) & AIPSTZ_OPACR_OPAC1_MASK) | ||
1055 | #define AIPSTZ_OPACR_OPAC0_MASK (0xF0000000U) | ||
1056 | #define AIPSTZ_OPACR_OPAC0_SHIFT (28U) | ||
1057 | /*! OPAC0 | ||
1058 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1059 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1060 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1061 | * 0bxx0x..This peripheral allows write accesses. | ||
1062 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1063 | * error response and no peripheral access is initiated on the IPS bus. | ||
1064 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1065 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1066 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1067 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1068 | * on the IPS bus. | ||
1069 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1070 | */ | ||
1071 | #define AIPSTZ_OPACR_OPAC0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC0_SHIFT)) & AIPSTZ_OPACR_OPAC0_MASK) | ||
1072 | /*! @} */ | ||
1073 | |||
1074 | /*! @name OPACR1 - Off-Platform Peripheral Access Control Registers */ | ||
1075 | /*! @{ */ | ||
1076 | #define AIPSTZ_OPACR1_OPAC15_MASK (0xFU) | ||
1077 | #define AIPSTZ_OPACR1_OPAC15_SHIFT (0U) | ||
1078 | /*! OPAC15 | ||
1079 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1080 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1081 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1082 | * 0bxx0x..This peripheral allows write accesses. | ||
1083 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1084 | * error response and no peripheral access is initiated on the IPS bus. | ||
1085 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1086 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1087 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1088 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1089 | * on the IPS bus. | ||
1090 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1091 | */ | ||
1092 | #define AIPSTZ_OPACR1_OPAC15(x) \ | ||
1093 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC15_SHIFT)) & AIPSTZ_OPACR1_OPAC15_MASK) | ||
1094 | #define AIPSTZ_OPACR1_OPAC14_MASK (0xF0U) | ||
1095 | #define AIPSTZ_OPACR1_OPAC14_SHIFT (4U) | ||
1096 | /*! OPAC14 | ||
1097 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1098 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1099 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1100 | * 0bxx0x..This peripheral allows write accesses. | ||
1101 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1102 | * error response and no peripheral access is initiated on the IPS bus. | ||
1103 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1104 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1105 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1106 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1107 | * on the IPS bus. | ||
1108 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1109 | */ | ||
1110 | #define AIPSTZ_OPACR1_OPAC14(x) \ | ||
1111 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC14_SHIFT)) & AIPSTZ_OPACR1_OPAC14_MASK) | ||
1112 | #define AIPSTZ_OPACR1_OPAC13_MASK (0xF00U) | ||
1113 | #define AIPSTZ_OPACR1_OPAC13_SHIFT (8U) | ||
1114 | /*! OPAC13 | ||
1115 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1116 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1117 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1118 | * 0bxx0x..This peripheral allows write accesses. | ||
1119 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1120 | * error response and no peripheral access is initiated on the IPS bus. | ||
1121 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1122 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1123 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1124 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1125 | * on the IPS bus. | ||
1126 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1127 | */ | ||
1128 | #define AIPSTZ_OPACR1_OPAC13(x) \ | ||
1129 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC13_SHIFT)) & AIPSTZ_OPACR1_OPAC13_MASK) | ||
1130 | #define AIPSTZ_OPACR1_OPAC12_MASK (0xF000U) | ||
1131 | #define AIPSTZ_OPACR1_OPAC12_SHIFT (12U) | ||
1132 | /*! OPAC12 | ||
1133 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1134 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1135 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1136 | * 0bxx0x..This peripheral allows write accesses. | ||
1137 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1138 | * error response and no peripheral access is initiated on the IPS bus. | ||
1139 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1140 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1141 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1142 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1143 | * on the IPS bus. | ||
1144 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1145 | */ | ||
1146 | #define AIPSTZ_OPACR1_OPAC12(x) \ | ||
1147 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC12_SHIFT)) & AIPSTZ_OPACR1_OPAC12_MASK) | ||
1148 | #define AIPSTZ_OPACR1_OPAC11_MASK (0xF0000U) | ||
1149 | #define AIPSTZ_OPACR1_OPAC11_SHIFT (16U) | ||
1150 | /*! OPAC11 | ||
1151 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1152 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1153 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1154 | * 0bxx0x..This peripheral allows write accesses. | ||
1155 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1156 | * error response and no peripheral access is initiated on the IPS bus. | ||
1157 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1158 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1159 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1160 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1161 | * on the IPS bus. | ||
1162 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1163 | */ | ||
1164 | #define AIPSTZ_OPACR1_OPAC11(x) \ | ||
1165 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC11_SHIFT)) & AIPSTZ_OPACR1_OPAC11_MASK) | ||
1166 | #define AIPSTZ_OPACR1_OPAC10_MASK (0xF00000U) | ||
1167 | #define AIPSTZ_OPACR1_OPAC10_SHIFT (20U) | ||
1168 | /*! OPAC10 | ||
1169 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1170 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1171 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1172 | * 0bxx0x..This peripheral allows write accesses. | ||
1173 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1174 | * error response and no peripheral access is initiated on the IPS bus. | ||
1175 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1176 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1177 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1178 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1179 | * on the IPS bus. | ||
1180 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1181 | */ | ||
1182 | #define AIPSTZ_OPACR1_OPAC10(x) \ | ||
1183 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC10_SHIFT)) & AIPSTZ_OPACR1_OPAC10_MASK) | ||
1184 | #define AIPSTZ_OPACR1_OPAC9_MASK (0xF000000U) | ||
1185 | #define AIPSTZ_OPACR1_OPAC9_SHIFT (24U) | ||
1186 | /*! OPAC9 | ||
1187 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1188 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1189 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1190 | * 0bxx0x..This peripheral allows write accesses. | ||
1191 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1192 | * error response and no peripheral access is initiated on the IPS bus. | ||
1193 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1194 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1195 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1196 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1197 | * on the IPS bus. | ||
1198 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1199 | */ | ||
1200 | #define AIPSTZ_OPACR1_OPAC9(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC9_SHIFT)) & AIPSTZ_OPACR1_OPAC9_MASK) | ||
1201 | #define AIPSTZ_OPACR1_OPAC8_MASK (0xF0000000U) | ||
1202 | #define AIPSTZ_OPACR1_OPAC8_SHIFT (28U) | ||
1203 | /*! OPAC8 | ||
1204 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1205 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1206 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1207 | * 0bxx0x..This peripheral allows write accesses. | ||
1208 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1209 | * error response and no peripheral access is initiated on the IPS bus. | ||
1210 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1211 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1212 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1213 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1214 | * on the IPS bus. | ||
1215 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1216 | */ | ||
1217 | #define AIPSTZ_OPACR1_OPAC8(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC8_SHIFT)) & AIPSTZ_OPACR1_OPAC8_MASK) | ||
1218 | /*! @} */ | ||
1219 | |||
1220 | /*! @name OPACR2 - Off-Platform Peripheral Access Control Registers */ | ||
1221 | /*! @{ */ | ||
1222 | #define AIPSTZ_OPACR2_OPAC23_MASK (0xFU) | ||
1223 | #define AIPSTZ_OPACR2_OPAC23_SHIFT (0U) | ||
1224 | /*! OPAC23 | ||
1225 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1226 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1227 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1228 | * 0bxx0x..This peripheral allows write accesses. | ||
1229 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1230 | * error response and no peripheral access is initiated on the IPS bus. | ||
1231 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1232 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1233 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1234 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1235 | * on the IPS bus. | ||
1236 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1237 | */ | ||
1238 | #define AIPSTZ_OPACR2_OPAC23(x) \ | ||
1239 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC23_SHIFT)) & AIPSTZ_OPACR2_OPAC23_MASK) | ||
1240 | #define AIPSTZ_OPACR2_OPAC22_MASK (0xF0U) | ||
1241 | #define AIPSTZ_OPACR2_OPAC22_SHIFT (4U) | ||
1242 | /*! OPAC22 | ||
1243 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1244 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1245 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1246 | * 0bxx0x..This peripheral allows write accesses. | ||
1247 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1248 | * error response and no peripheral access is initiated on the IPS bus. | ||
1249 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1250 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1251 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1252 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1253 | * on the IPS bus. | ||
1254 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1255 | */ | ||
1256 | #define AIPSTZ_OPACR2_OPAC22(x) \ | ||
1257 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC22_SHIFT)) & AIPSTZ_OPACR2_OPAC22_MASK) | ||
1258 | #define AIPSTZ_OPACR2_OPAC21_MASK (0xF00U) | ||
1259 | #define AIPSTZ_OPACR2_OPAC21_SHIFT (8U) | ||
1260 | /*! OPAC21 | ||
1261 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1262 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1263 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1264 | * 0bxx0x..This peripheral allows write accesses. | ||
1265 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1266 | * error response and no peripheral access is initiated on the IPS bus. | ||
1267 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1268 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1269 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1270 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1271 | * on the IPS bus. | ||
1272 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1273 | */ | ||
1274 | #define AIPSTZ_OPACR2_OPAC21(x) \ | ||
1275 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC21_SHIFT)) & AIPSTZ_OPACR2_OPAC21_MASK) | ||
1276 | #define AIPSTZ_OPACR2_OPAC20_MASK (0xF000U) | ||
1277 | #define AIPSTZ_OPACR2_OPAC20_SHIFT (12U) | ||
1278 | /*! OPAC20 | ||
1279 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1280 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1281 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1282 | * 0bxx0x..This peripheral allows write accesses. | ||
1283 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1284 | * error response and no peripheral access is initiated on the IPS bus. | ||
1285 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1286 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1287 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1288 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1289 | * on the IPS bus. | ||
1290 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1291 | */ | ||
1292 | #define AIPSTZ_OPACR2_OPAC20(x) \ | ||
1293 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC20_SHIFT)) & AIPSTZ_OPACR2_OPAC20_MASK) | ||
1294 | #define AIPSTZ_OPACR2_OPAC19_MASK (0xF0000U) | ||
1295 | #define AIPSTZ_OPACR2_OPAC19_SHIFT (16U) | ||
1296 | /*! OPAC19 | ||
1297 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1298 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1299 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1300 | * 0bxx0x..This peripheral allows write accesses. | ||
1301 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1302 | * error response and no peripheral access is initiated on the IPS bus. | ||
1303 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1304 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1305 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1306 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1307 | * on the IPS bus. | ||
1308 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1309 | */ | ||
1310 | #define AIPSTZ_OPACR2_OPAC19(x) \ | ||
1311 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC19_SHIFT)) & AIPSTZ_OPACR2_OPAC19_MASK) | ||
1312 | #define AIPSTZ_OPACR2_OPAC18_MASK (0xF00000U) | ||
1313 | #define AIPSTZ_OPACR2_OPAC18_SHIFT (20U) | ||
1314 | /*! OPAC18 | ||
1315 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1316 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1317 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1318 | * 0bxx0x..This peripheral allows write accesses. | ||
1319 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1320 | * error response and no peripheral access is initiated on the IPS bus. | ||
1321 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1322 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1323 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1324 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1325 | * on the IPS bus. | ||
1326 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1327 | */ | ||
1328 | #define AIPSTZ_OPACR2_OPAC18(x) \ | ||
1329 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC18_SHIFT)) & AIPSTZ_OPACR2_OPAC18_MASK) | ||
1330 | #define AIPSTZ_OPACR2_OPAC17_MASK (0xF000000U) | ||
1331 | #define AIPSTZ_OPACR2_OPAC17_SHIFT (24U) | ||
1332 | /*! OPAC17 | ||
1333 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1334 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1335 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1336 | * 0bxx0x..This peripheral allows write accesses. | ||
1337 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1338 | * error response and no peripheral access is initiated on the IPS bus. | ||
1339 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1340 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1341 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1342 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1343 | * on the IPS bus. | ||
1344 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1345 | */ | ||
1346 | #define AIPSTZ_OPACR2_OPAC17(x) \ | ||
1347 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC17_SHIFT)) & AIPSTZ_OPACR2_OPAC17_MASK) | ||
1348 | #define AIPSTZ_OPACR2_OPAC16_MASK (0xF0000000U) | ||
1349 | #define AIPSTZ_OPACR2_OPAC16_SHIFT (28U) | ||
1350 | /*! OPAC16 | ||
1351 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1352 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1353 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1354 | * 0bxx0x..This peripheral allows write accesses. | ||
1355 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1356 | * error response and no peripheral access is initiated on the IPS bus. | ||
1357 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1358 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1359 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1360 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1361 | * on the IPS bus. | ||
1362 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1363 | */ | ||
1364 | #define AIPSTZ_OPACR2_OPAC16(x) \ | ||
1365 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC16_SHIFT)) & AIPSTZ_OPACR2_OPAC16_MASK) | ||
1366 | /*! @} */ | ||
1367 | |||
1368 | /*! @name OPACR3 - Off-Platform Peripheral Access Control Registers */ | ||
1369 | /*! @{ */ | ||
1370 | #define AIPSTZ_OPACR3_OPAC31_MASK (0xFU) | ||
1371 | #define AIPSTZ_OPACR3_OPAC31_SHIFT (0U) | ||
1372 | /*! OPAC31 | ||
1373 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1374 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1375 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1376 | * 0bxx0x..This peripheral allows write accesses. | ||
1377 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1378 | * error response and no peripheral access is initiated on the IPS bus. | ||
1379 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1380 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1381 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1382 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1383 | * on the IPS bus. | ||
1384 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1385 | */ | ||
1386 | #define AIPSTZ_OPACR3_OPAC31(x) \ | ||
1387 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC31_SHIFT)) & AIPSTZ_OPACR3_OPAC31_MASK) | ||
1388 | #define AIPSTZ_OPACR3_OPAC30_MASK (0xF0U) | ||
1389 | #define AIPSTZ_OPACR3_OPAC30_SHIFT (4U) | ||
1390 | /*! OPAC30 | ||
1391 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1392 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1393 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1394 | * 0bxx0x..This peripheral allows write accesses. | ||
1395 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1396 | * error response and no peripheral access is initiated on the IPS bus. | ||
1397 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1398 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1399 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1400 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1401 | * on the IPS bus. | ||
1402 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1403 | */ | ||
1404 | #define AIPSTZ_OPACR3_OPAC30(x) \ | ||
1405 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC30_SHIFT)) & AIPSTZ_OPACR3_OPAC30_MASK) | ||
1406 | #define AIPSTZ_OPACR3_OPAC29_MASK (0xF00U) | ||
1407 | #define AIPSTZ_OPACR3_OPAC29_SHIFT (8U) | ||
1408 | /*! OPAC29 | ||
1409 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1410 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1411 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1412 | * 0bxx0x..This peripheral allows write accesses. | ||
1413 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1414 | * error response and no peripheral access is initiated on the IPS bus. | ||
1415 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1416 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1417 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1418 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1419 | * on the IPS bus. | ||
1420 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1421 | */ | ||
1422 | #define AIPSTZ_OPACR3_OPAC29(x) \ | ||
1423 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC29_SHIFT)) & AIPSTZ_OPACR3_OPAC29_MASK) | ||
1424 | #define AIPSTZ_OPACR3_OPAC28_MASK (0xF000U) | ||
1425 | #define AIPSTZ_OPACR3_OPAC28_SHIFT (12U) | ||
1426 | /*! OPAC28 | ||
1427 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1428 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1429 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1430 | * 0bxx0x..This peripheral allows write accesses. | ||
1431 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1432 | * error response and no peripheral access is initiated on the IPS bus. | ||
1433 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1434 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1435 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1436 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1437 | * on the IPS bus. | ||
1438 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1439 | */ | ||
1440 | #define AIPSTZ_OPACR3_OPAC28(x) \ | ||
1441 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC28_SHIFT)) & AIPSTZ_OPACR3_OPAC28_MASK) | ||
1442 | #define AIPSTZ_OPACR3_OPAC27_MASK (0xF0000U) | ||
1443 | #define AIPSTZ_OPACR3_OPAC27_SHIFT (16U) | ||
1444 | /*! OPAC27 | ||
1445 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1446 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1447 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1448 | * 0bxx0x..This peripheral allows write accesses. | ||
1449 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1450 | * error response and no peripheral access is initiated on the IPS bus. | ||
1451 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1452 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1453 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1454 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1455 | * on the IPS bus. | ||
1456 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1457 | */ | ||
1458 | #define AIPSTZ_OPACR3_OPAC27(x) \ | ||
1459 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC27_SHIFT)) & AIPSTZ_OPACR3_OPAC27_MASK) | ||
1460 | #define AIPSTZ_OPACR3_OPAC26_MASK (0xF00000U) | ||
1461 | #define AIPSTZ_OPACR3_OPAC26_SHIFT (20U) | ||
1462 | /*! OPAC26 | ||
1463 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1464 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1465 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1466 | * 0bxx0x..This peripheral allows write accesses. | ||
1467 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1468 | * error response and no peripheral access is initiated on the IPS bus. | ||
1469 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1470 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1471 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1472 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1473 | * on the IPS bus. | ||
1474 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1475 | */ | ||
1476 | #define AIPSTZ_OPACR3_OPAC26(x) \ | ||
1477 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC26_SHIFT)) & AIPSTZ_OPACR3_OPAC26_MASK) | ||
1478 | #define AIPSTZ_OPACR3_OPAC25_MASK (0xF000000U) | ||
1479 | #define AIPSTZ_OPACR3_OPAC25_SHIFT (24U) | ||
1480 | /*! OPAC25 | ||
1481 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1482 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1483 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1484 | * 0bxx0x..This peripheral allows write accesses. | ||
1485 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1486 | * error response and no peripheral access is initiated on the IPS bus. | ||
1487 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1488 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1489 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1490 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1491 | * on the IPS bus. | ||
1492 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1493 | */ | ||
1494 | #define AIPSTZ_OPACR3_OPAC25(x) \ | ||
1495 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC25_SHIFT)) & AIPSTZ_OPACR3_OPAC25_MASK) | ||
1496 | #define AIPSTZ_OPACR3_OPAC24_MASK (0xF0000000U) | ||
1497 | #define AIPSTZ_OPACR3_OPAC24_SHIFT (28U) | ||
1498 | /*! OPAC24 | ||
1499 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1500 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1501 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1502 | * 0bxx0x..This peripheral allows write accesses. | ||
1503 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1504 | * error response and no peripheral access is initiated on the IPS bus. | ||
1505 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1506 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1507 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1508 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1509 | * on the IPS bus. | ||
1510 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1511 | */ | ||
1512 | #define AIPSTZ_OPACR3_OPAC24(x) \ | ||
1513 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC24_SHIFT)) & AIPSTZ_OPACR3_OPAC24_MASK) | ||
1514 | /*! @} */ | ||
1515 | |||
1516 | /*! @name OPACR4 - Off-Platform Peripheral Access Control Registers */ | ||
1517 | /*! @{ */ | ||
1518 | #define AIPSTZ_OPACR4_OPAC33_MASK (0xF000000U) | ||
1519 | #define AIPSTZ_OPACR4_OPAC33_SHIFT (24U) | ||
1520 | /*! OPAC33 | ||
1521 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1522 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1523 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1524 | * 0bxx0x..This peripheral allows write accesses. | ||
1525 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1526 | * error response and no peripheral access is initiated on the IPS bus. | ||
1527 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1528 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1529 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1530 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1531 | * on the IPS bus. | ||
1532 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1533 | */ | ||
1534 | #define AIPSTZ_OPACR4_OPAC33(x) \ | ||
1535 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC33_SHIFT)) & AIPSTZ_OPACR4_OPAC33_MASK) | ||
1536 | #define AIPSTZ_OPACR4_OPAC32_MASK (0xF0000000U) | ||
1537 | #define AIPSTZ_OPACR4_OPAC32_SHIFT (28U) | ||
1538 | /*! OPAC32 | ||
1539 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1540 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1541 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1542 | * 0bxx0x..This peripheral allows write accesses. | ||
1543 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1544 | * error response and no peripheral access is initiated on the IPS bus. | ||
1545 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1546 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1547 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1548 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1549 | * on the IPS bus. | ||
1550 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1551 | */ | ||
1552 | #define AIPSTZ_OPACR4_OPAC32(x) \ | ||
1553 | (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC32_SHIFT)) & AIPSTZ_OPACR4_OPAC32_MASK) | ||
1554 | /*! @} */ | ||
1555 | |||
1556 | /*! | ||
1557 | * @} | ||
1558 | */ /* end of group AIPSTZ_Register_Masks */ | ||
1559 | |||
1560 | /* AIPSTZ - Peripheral instance base addresses */ | ||
1561 | /** Peripheral AIPSTZ base address */ | ||
1562 | #define AIPSTZ_BASE (0x301F0000u) | ||
1563 | /** Peripheral AIPSTZ base pointer */ | ||
1564 | #define AIPSTZ ((AIPSTZ_Type *)AIPSTZ_BASE) | ||
1565 | /** Array initializer of AIPSTZ peripheral base addresses */ | ||
1566 | #define AIPSTZ_BASE_ADDRS \ | ||
1567 | { \ | ||
1568 | AIPSTZ_BASE \ | ||
1569 | } | ||
1570 | /** Array initializer of AIPSTZ peripheral base pointers */ | ||
1571 | #define AIPSTZ_BASE_PTRS \ | ||
1572 | { \ | ||
1573 | AIPSTZ \ | ||
1574 | } | ||
1575 | |||
1576 | /*! | ||
1577 | * @} | ||
1578 | */ /* end of group AIPSTZ_Peripheral_Access_Layer */ | ||
1579 | |||
1580 | /* ---------------------------------------------------------------------------- | ||
1581 | -- APBH Peripheral Access Layer | ||
1582 | ---------------------------------------------------------------------------- */ | ||
1583 | |||
1584 | /*! | ||
1585 | * @addtogroup APBH_Peripheral_Access_Layer APBH Peripheral Access Layer | ||
1586 | * @{ | ||
1587 | */ | ||
1588 | |||
1589 | /** APBH - Register Layout Typedef */ | ||
1590 | typedef struct | ||
1591 | { | ||
1592 | __IO uint32_t CTRL0; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x0 */ | ||
1593 | __IO uint32_t CTRL0_SET; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x4 */ | ||
1594 | __IO uint32_t CTRL0_CLR; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x8 */ | ||
1595 | __IO uint32_t CTRL0_TOG; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0xC */ | ||
1596 | __IO uint32_t CTRL1; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x10 */ | ||
1597 | __IO uint32_t CTRL1_SET; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x14 */ | ||
1598 | __IO uint32_t CTRL1_CLR; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x18 */ | ||
1599 | __IO uint32_t CTRL1_TOG; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x1C */ | ||
1600 | __IO uint32_t CTRL2; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x20 */ | ||
1601 | __IO uint32_t CTRL2_SET; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x24 */ | ||
1602 | __IO uint32_t CTRL2_CLR; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x28 */ | ||
1603 | __IO uint32_t CTRL2_TOG; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x2C */ | ||
1604 | __IO uint32_t CHANNEL_CTRL; /**< AHB to APBH Bridge Channel Register, offset: 0x30 */ | ||
1605 | __IO uint32_t CHANNEL_CTRL_SET; /**< AHB to APBH Bridge Channel Register, offset: 0x34 */ | ||
1606 | __IO uint32_t CHANNEL_CTRL_CLR; /**< AHB to APBH Bridge Channel Register, offset: 0x38 */ | ||
1607 | __IO uint32_t CHANNEL_CTRL_TOG; /**< AHB to APBH Bridge Channel Register, offset: 0x3C */ | ||
1608 | __I uint32_t DEVSEL; /**< AHB to APBH DMA Device Assignment Register, offset: 0x40 */ | ||
1609 | uint8_t RESERVED_0[12]; | ||
1610 | __IO uint32_t DMA_BURST_SIZE; /**< AHB to APBH DMA burst size, offset: 0x50 */ | ||
1611 | uint8_t RESERVED_1[12]; | ||
1612 | __IO uint32_t DEBUGr; /**< AHB to APBH DMA Debug Register, offset: 0x60 */ | ||
1613 | uint8_t RESERVED_2[156]; | ||
1614 | struct | ||
1615 | { /* offset: 0x100, array step: 0x70 */ | ||
1616 | __I uint32_t CH_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, array offset: 0x100, array | ||
1617 | step: 0x70 */ | ||
1618 | uint8_t RESERVED_0[12]; | ||
1619 | __IO uint32_t | ||
1620 | CH_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, array offset: 0x110, array step: 0x70 */ | ||
1621 | uint8_t RESERVED_1[12]; | ||
1622 | __I uint32_t CH_CMD; /**< APBH DMA Channel n Command Register, array offset: 0x120, array step: 0x70 */ | ||
1623 | uint8_t RESERVED_2[12]; | ||
1624 | __I uint32_t CH_BAR; /**< APBH DMA Channel n Buffer Address Register, array offset: 0x130, array step: 0x70 */ | ||
1625 | uint8_t RESERVED_3[12]; | ||
1626 | __IO uint32_t CH_SEMA; /**< APBH DMA Channel n Semaphore Register, array offset: 0x140, array step: 0x70 */ | ||
1627 | uint8_t RESERVED_4[12]; | ||
1628 | __I uint32_t | ||
1629 | CH_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x150, array step: 0x70 */ | ||
1630 | uint8_t RESERVED_5[12]; | ||
1631 | __I uint32_t | ||
1632 | CH_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x160, array step: 0x70 */ | ||
1633 | uint8_t RESERVED_6[12]; | ||
1634 | } CH_CFGn[16]; | ||
1635 | __I uint32_t VERSION; /**< APBH Bridge Version Register, offset: 0x800 */ | ||
1636 | } APBH_Type; | ||
1637 | |||
1638 | /* ---------------------------------------------------------------------------- | ||
1639 | -- APBH Register Masks | ||
1640 | ---------------------------------------------------------------------------- */ | ||
1641 | |||
1642 | /*! | ||
1643 | * @addtogroup APBH_Register_Masks APBH Register Masks | ||
1644 | * @{ | ||
1645 | */ | ||
1646 | |||
1647 | /*! @name CTRL0 - AHB to APBH Bridge Control and Status Register 0 */ | ||
1648 | /*! @{ */ | ||
1649 | #define APBH_CTRL0_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1650 | #define APBH_CTRL0_CLKGATE_CHANNEL_SHIFT (0U) | ||
1651 | /*! CLKGATE_CHANNEL | ||
1652 | * 0b0000000000000001..NAND0 | ||
1653 | * 0b0000000000000010..NAND1 | ||
1654 | * 0b0000000000000100..NAND2 | ||
1655 | * 0b0000000000001000..NAND3 | ||
1656 | * 0b0000000000010000..NAND4 | ||
1657 | * 0b0000000000100000..NAND5 | ||
1658 | * 0b0000000001000000..NAND6 | ||
1659 | * 0b0000000010000000..NAND7 | ||
1660 | * 0b0000000100000000..SSP | ||
1661 | */ | ||
1662 | #define APBH_CTRL0_CLKGATE_CHANNEL(x) \ | ||
1663 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLKGATE_CHANNEL_MASK) | ||
1664 | #define APBH_CTRL0_RSVD0_MASK (0xFFF0000U) | ||
1665 | #define APBH_CTRL0_RSVD0_SHIFT (16U) | ||
1666 | #define APBH_CTRL0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_RSVD0_SHIFT)) & APBH_CTRL0_RSVD0_MASK) | ||
1667 | #define APBH_CTRL0_APB_BURST_EN_MASK (0x10000000U) | ||
1668 | #define APBH_CTRL0_APB_BURST_EN_SHIFT (28U) | ||
1669 | #define APBH_CTRL0_APB_BURST_EN(x) \ | ||
1670 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_APB_BURST_EN_SHIFT)) & APBH_CTRL0_APB_BURST_EN_MASK) | ||
1671 | #define APBH_CTRL0_AHB_BURST8_EN_MASK (0x20000000U) | ||
1672 | #define APBH_CTRL0_AHB_BURST8_EN_SHIFT (29U) | ||
1673 | #define APBH_CTRL0_AHB_BURST8_EN(x) \ | ||
1674 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_AHB_BURST8_EN_MASK) | ||
1675 | #define APBH_CTRL0_CLKGATE_MASK (0x40000000U) | ||
1676 | #define APBH_CTRL0_CLKGATE_SHIFT (30U) | ||
1677 | #define APBH_CTRL0_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_SHIFT)) & APBH_CTRL0_CLKGATE_MASK) | ||
1678 | #define APBH_CTRL0_SFTRST_MASK (0x80000000U) | ||
1679 | #define APBH_CTRL0_SFTRST_SHIFT (31U) | ||
1680 | #define APBH_CTRL0_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SFTRST_SHIFT)) & APBH_CTRL0_SFTRST_MASK) | ||
1681 | /*! @} */ | ||
1682 | |||
1683 | /*! @name CTRL0_SET - AHB to APBH Bridge Control and Status Register 0 */ | ||
1684 | /*! @{ */ | ||
1685 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1686 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT (0U) | ||
1687 | /*! CLKGATE_CHANNEL | ||
1688 | * 0b0000000000000001..NAND0 | ||
1689 | * 0b0000000000000010..NAND1 | ||
1690 | * 0b0000000000000100..NAND2 | ||
1691 | * 0b0000000000001000..NAND3 | ||
1692 | * 0b0000000000010000..NAND4 | ||
1693 | * 0b0000000000100000..NAND5 | ||
1694 | * 0b0000000001000000..NAND6 | ||
1695 | * 0b0000000010000000..NAND7 | ||
1696 | * 0b0000000100000000..SSP | ||
1697 | */ | ||
1698 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL(x) \ | ||
1699 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK) | ||
1700 | #define APBH_CTRL0_SET_RSVD0_MASK (0xFFF0000U) | ||
1701 | #define APBH_CTRL0_SET_RSVD0_SHIFT (16U) | ||
1702 | #define APBH_CTRL0_SET_RSVD0(x) \ | ||
1703 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_RSVD0_SHIFT)) & APBH_CTRL0_SET_RSVD0_MASK) | ||
1704 | #define APBH_CTRL0_SET_APB_BURST_EN_MASK (0x10000000U) | ||
1705 | #define APBH_CTRL0_SET_APB_BURST_EN_SHIFT (28U) | ||
1706 | #define APBH_CTRL0_SET_APB_BURST_EN(x) \ | ||
1707 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_APB_BURST_EN_SHIFT)) & APBH_CTRL0_SET_APB_BURST_EN_MASK) | ||
1708 | #define APBH_CTRL0_SET_AHB_BURST8_EN_MASK (0x20000000U) | ||
1709 | #define APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT (29U) | ||
1710 | #define APBH_CTRL0_SET_AHB_BURST8_EN(x) \ | ||
1711 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_SET_AHB_BURST8_EN_MASK) | ||
1712 | #define APBH_CTRL0_SET_CLKGATE_MASK (0x40000000U) | ||
1713 | #define APBH_CTRL0_SET_CLKGATE_SHIFT (30U) | ||
1714 | #define APBH_CTRL0_SET_CLKGATE(x) \ | ||
1715 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_SHIFT)) & APBH_CTRL0_SET_CLKGATE_MASK) | ||
1716 | #define APBH_CTRL0_SET_SFTRST_MASK (0x80000000U) | ||
1717 | #define APBH_CTRL0_SET_SFTRST_SHIFT (31U) | ||
1718 | #define APBH_CTRL0_SET_SFTRST(x) \ | ||
1719 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_SFTRST_SHIFT)) & APBH_CTRL0_SET_SFTRST_MASK) | ||
1720 | /*! @} */ | ||
1721 | |||
1722 | /*! @name CTRL0_CLR - AHB to APBH Bridge Control and Status Register 0 */ | ||
1723 | /*! @{ */ | ||
1724 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1725 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT (0U) | ||
1726 | /*! CLKGATE_CHANNEL | ||
1727 | * 0b0000000000000001..NAND0 | ||
1728 | * 0b0000000000000010..NAND1 | ||
1729 | * 0b0000000000000100..NAND2 | ||
1730 | * 0b0000000000001000..NAND3 | ||
1731 | * 0b0000000000010000..NAND4 | ||
1732 | * 0b0000000000100000..NAND5 | ||
1733 | * 0b0000000001000000..NAND6 | ||
1734 | * 0b0000000010000000..NAND7 | ||
1735 | * 0b0000000100000000..SSP | ||
1736 | */ | ||
1737 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL(x) \ | ||
1738 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK) | ||
1739 | #define APBH_CTRL0_CLR_RSVD0_MASK (0xFFF0000U) | ||
1740 | #define APBH_CTRL0_CLR_RSVD0_SHIFT (16U) | ||
1741 | #define APBH_CTRL0_CLR_RSVD0(x) \ | ||
1742 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_RSVD0_SHIFT)) & APBH_CTRL0_CLR_RSVD0_MASK) | ||
1743 | #define APBH_CTRL0_CLR_APB_BURST_EN_MASK (0x10000000U) | ||
1744 | #define APBH_CTRL0_CLR_APB_BURST_EN_SHIFT (28U) | ||
1745 | #define APBH_CTRL0_CLR_APB_BURST_EN(x) \ | ||
1746 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_APB_BURST_EN_SHIFT)) & APBH_CTRL0_CLR_APB_BURST_EN_MASK) | ||
1747 | #define APBH_CTRL0_CLR_AHB_BURST8_EN_MASK (0x20000000U) | ||
1748 | #define APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT (29U) | ||
1749 | #define APBH_CTRL0_CLR_AHB_BURST8_EN(x) \ | ||
1750 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_CLR_AHB_BURST8_EN_MASK) | ||
1751 | #define APBH_CTRL0_CLR_CLKGATE_MASK (0x40000000U) | ||
1752 | #define APBH_CTRL0_CLR_CLKGATE_SHIFT (30U) | ||
1753 | #define APBH_CTRL0_CLR_CLKGATE(x) \ | ||
1754 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_MASK) | ||
1755 | #define APBH_CTRL0_CLR_SFTRST_MASK (0x80000000U) | ||
1756 | #define APBH_CTRL0_CLR_SFTRST_SHIFT (31U) | ||
1757 | #define APBH_CTRL0_CLR_SFTRST(x) \ | ||
1758 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_SFTRST_SHIFT)) & APBH_CTRL0_CLR_SFTRST_MASK) | ||
1759 | /*! @} */ | ||
1760 | |||
1761 | /*! @name CTRL0_TOG - AHB to APBH Bridge Control and Status Register 0 */ | ||
1762 | /*! @{ */ | ||
1763 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1764 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT (0U) | ||
1765 | /*! CLKGATE_CHANNEL | ||
1766 | * 0b0000000000000001..NAND0 | ||
1767 | * 0b0000000000000010..NAND1 | ||
1768 | * 0b0000000000000100..NAND2 | ||
1769 | * 0b0000000000001000..NAND3 | ||
1770 | * 0b0000000000010000..NAND4 | ||
1771 | * 0b0000000000100000..NAND5 | ||
1772 | * 0b0000000001000000..NAND6 | ||
1773 | * 0b0000000010000000..NAND7 | ||
1774 | * 0b0000000100000000..SSP | ||
1775 | */ | ||
1776 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL(x) \ | ||
1777 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK) | ||
1778 | #define APBH_CTRL0_TOG_RSVD0_MASK (0xFFF0000U) | ||
1779 | #define APBH_CTRL0_TOG_RSVD0_SHIFT (16U) | ||
1780 | #define APBH_CTRL0_TOG_RSVD0(x) \ | ||
1781 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_RSVD0_SHIFT)) & APBH_CTRL0_TOG_RSVD0_MASK) | ||
1782 | #define APBH_CTRL0_TOG_APB_BURST_EN_MASK (0x10000000U) | ||
1783 | #define APBH_CTRL0_TOG_APB_BURST_EN_SHIFT (28U) | ||
1784 | #define APBH_CTRL0_TOG_APB_BURST_EN(x) \ | ||
1785 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_APB_BURST_EN_SHIFT)) & APBH_CTRL0_TOG_APB_BURST_EN_MASK) | ||
1786 | #define APBH_CTRL0_TOG_AHB_BURST8_EN_MASK (0x20000000U) | ||
1787 | #define APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT (29U) | ||
1788 | #define APBH_CTRL0_TOG_AHB_BURST8_EN(x) \ | ||
1789 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_TOG_AHB_BURST8_EN_MASK) | ||
1790 | #define APBH_CTRL0_TOG_CLKGATE_MASK (0x40000000U) | ||
1791 | #define APBH_CTRL0_TOG_CLKGATE_SHIFT (30U) | ||
1792 | #define APBH_CTRL0_TOG_CLKGATE(x) \ | ||
1793 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_MASK) | ||
1794 | #define APBH_CTRL0_TOG_SFTRST_MASK (0x80000000U) | ||
1795 | #define APBH_CTRL0_TOG_SFTRST_SHIFT (31U) | ||
1796 | #define APBH_CTRL0_TOG_SFTRST(x) \ | ||
1797 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_SFTRST_SHIFT)) & APBH_CTRL0_TOG_SFTRST_MASK) | ||
1798 | /*! @} */ | ||
1799 | |||
1800 | /*! @name CTRL1 - AHB to APBH Bridge Control and Status Register 1 */ | ||
1801 | /*! @{ */ | ||
1802 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
1803 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
1804 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ(x) \ | ||
1805 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK) | ||
1806 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
1807 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
1808 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ(x) \ | ||
1809 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK) | ||
1810 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
1811 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
1812 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ(x) \ | ||
1813 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK) | ||
1814 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
1815 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
1816 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ(x) \ | ||
1817 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK) | ||
1818 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
1819 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
1820 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ(x) \ | ||
1821 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK) | ||
1822 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
1823 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
1824 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ(x) \ | ||
1825 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK) | ||
1826 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
1827 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
1828 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ(x) \ | ||
1829 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK) | ||
1830 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
1831 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
1832 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ(x) \ | ||
1833 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK) | ||
1834 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
1835 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
1836 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ(x) \ | ||
1837 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK) | ||
1838 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
1839 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
1840 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ(x) \ | ||
1841 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK) | ||
1842 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
1843 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
1844 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ(x) \ | ||
1845 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK) | ||
1846 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
1847 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
1848 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ(x) \ | ||
1849 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK) | ||
1850 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
1851 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
1852 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ(x) \ | ||
1853 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK) | ||
1854 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
1855 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
1856 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ(x) \ | ||
1857 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK) | ||
1858 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
1859 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
1860 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ(x) \ | ||
1861 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK) | ||
1862 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
1863 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
1864 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ(x) \ | ||
1865 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK) | ||
1866 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
1867 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
1868 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN(x) \ | ||
1869 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
1870 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
1871 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
1872 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN(x) \ | ||
1873 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
1874 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
1875 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
1876 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN(x) \ | ||
1877 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
1878 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
1879 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
1880 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN(x) \ | ||
1881 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
1882 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
1883 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
1884 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN(x) \ | ||
1885 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
1886 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
1887 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
1888 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN(x) \ | ||
1889 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
1890 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
1891 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
1892 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN(x) \ | ||
1893 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
1894 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
1895 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
1896 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN(x) \ | ||
1897 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
1898 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
1899 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
1900 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN(x) \ | ||
1901 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
1902 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
1903 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
1904 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN(x) \ | ||
1905 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
1906 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
1907 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
1908 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN(x) \ | ||
1909 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
1910 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
1911 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
1912 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN(x) \ | ||
1913 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
1914 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
1915 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
1916 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN(x) \ | ||
1917 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
1918 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
1919 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
1920 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN(x) \ | ||
1921 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
1922 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
1923 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
1924 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN(x) \ | ||
1925 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
1926 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
1927 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
1928 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN(x) \ | ||
1929 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
1930 | /*! @} */ | ||
1931 | |||
1932 | /*! @name CTRL1_SET - AHB to APBH Bridge Control and Status Register 1 */ | ||
1933 | /*! @{ */ | ||
1934 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
1935 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
1936 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ(x) \ | ||
1937 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK) | ||
1938 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
1939 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
1940 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ(x) \ | ||
1941 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK) | ||
1942 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
1943 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
1944 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ(x) \ | ||
1945 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK) | ||
1946 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
1947 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
1948 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ(x) \ | ||
1949 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK) | ||
1950 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
1951 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
1952 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ(x) \ | ||
1953 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK) | ||
1954 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
1955 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
1956 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ(x) \ | ||
1957 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK) | ||
1958 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
1959 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
1960 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ(x) \ | ||
1961 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK) | ||
1962 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
1963 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
1964 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ(x) \ | ||
1965 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK) | ||
1966 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
1967 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
1968 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ(x) \ | ||
1969 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK) | ||
1970 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
1971 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
1972 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ(x) \ | ||
1973 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK) | ||
1974 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
1975 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
1976 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ(x) \ | ||
1977 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK) | ||
1978 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
1979 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
1980 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ(x) \ | ||
1981 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK) | ||
1982 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
1983 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
1984 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ(x) \ | ||
1985 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK) | ||
1986 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
1987 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
1988 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ(x) \ | ||
1989 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK) | ||
1990 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
1991 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
1992 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ(x) \ | ||
1993 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK) | ||
1994 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
1995 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
1996 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ(x) \ | ||
1997 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK) | ||
1998 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
1999 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
2000 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN(x) \ | ||
2001 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2002 | APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
2003 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
2004 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
2005 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN(x) \ | ||
2006 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2007 | APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
2008 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
2009 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
2010 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN(x) \ | ||
2011 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2012 | APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
2013 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
2014 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
2015 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN(x) \ | ||
2016 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2017 | APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
2018 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
2019 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
2020 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN(x) \ | ||
2021 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2022 | APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
2023 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
2024 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
2025 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN(x) \ | ||
2026 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2027 | APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
2028 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
2029 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
2030 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN(x) \ | ||
2031 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2032 | APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
2033 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
2034 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
2035 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN(x) \ | ||
2036 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2037 | APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
2038 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
2039 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
2040 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN(x) \ | ||
2041 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2042 | APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
2043 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
2044 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
2045 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN(x) \ | ||
2046 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2047 | APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
2048 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
2049 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
2050 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN(x) \ | ||
2051 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2052 | APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
2053 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
2054 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
2055 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN(x) \ | ||
2056 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2057 | APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
2058 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
2059 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
2060 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN(x) \ | ||
2061 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2062 | APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
2063 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
2064 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
2065 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN(x) \ | ||
2066 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2067 | APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
2068 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
2069 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
2070 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN(x) \ | ||
2071 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2072 | APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
2073 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
2074 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
2075 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN(x) \ | ||
2076 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2077 | APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
2078 | /*! @} */ | ||
2079 | |||
2080 | /*! @name CTRL1_CLR - AHB to APBH Bridge Control and Status Register 1 */ | ||
2081 | /*! @{ */ | ||
2082 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
2083 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
2084 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ(x) \ | ||
2085 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK) | ||
2086 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
2087 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
2088 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ(x) \ | ||
2089 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK) | ||
2090 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
2091 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
2092 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ(x) \ | ||
2093 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK) | ||
2094 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
2095 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
2096 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ(x) \ | ||
2097 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK) | ||
2098 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
2099 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
2100 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ(x) \ | ||
2101 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK) | ||
2102 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
2103 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
2104 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ(x) \ | ||
2105 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK) | ||
2106 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
2107 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
2108 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ(x) \ | ||
2109 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK) | ||
2110 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
2111 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
2112 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ(x) \ | ||
2113 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK) | ||
2114 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
2115 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
2116 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ(x) \ | ||
2117 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK) | ||
2118 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
2119 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
2120 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ(x) \ | ||
2121 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK) | ||
2122 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
2123 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
2124 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ(x) \ | ||
2125 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK) | ||
2126 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
2127 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
2128 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ(x) \ | ||
2129 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK) | ||
2130 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
2131 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
2132 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ(x) \ | ||
2133 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK) | ||
2134 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
2135 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
2136 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ(x) \ | ||
2137 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK) | ||
2138 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
2139 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
2140 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ(x) \ | ||
2141 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK) | ||
2142 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
2143 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
2144 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ(x) \ | ||
2145 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK) | ||
2146 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
2147 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
2148 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN(x) \ | ||
2149 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2150 | APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
2151 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
2152 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
2153 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN(x) \ | ||
2154 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2155 | APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
2156 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
2157 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
2158 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN(x) \ | ||
2159 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2160 | APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
2161 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
2162 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
2163 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN(x) \ | ||
2164 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2165 | APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
2166 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
2167 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
2168 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN(x) \ | ||
2169 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2170 | APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
2171 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
2172 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
2173 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN(x) \ | ||
2174 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2175 | APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
2176 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
2177 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
2178 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN(x) \ | ||
2179 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2180 | APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
2181 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
2182 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
2183 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN(x) \ | ||
2184 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2185 | APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
2186 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
2187 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
2188 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN(x) \ | ||
2189 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2190 | APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
2191 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
2192 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
2193 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN(x) \ | ||
2194 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2195 | APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
2196 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
2197 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
2198 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN(x) \ | ||
2199 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2200 | APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
2201 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
2202 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
2203 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN(x) \ | ||
2204 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2205 | APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
2206 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
2207 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
2208 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN(x) \ | ||
2209 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2210 | APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
2211 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
2212 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
2213 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN(x) \ | ||
2214 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2215 | APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
2216 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
2217 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
2218 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN(x) \ | ||
2219 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2220 | APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
2221 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
2222 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
2223 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN(x) \ | ||
2224 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2225 | APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
2226 | /*! @} */ | ||
2227 | |||
2228 | /*! @name CTRL1_TOG - AHB to APBH Bridge Control and Status Register 1 */ | ||
2229 | /*! @{ */ | ||
2230 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
2231 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
2232 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ(x) \ | ||
2233 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK) | ||
2234 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
2235 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
2236 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ(x) \ | ||
2237 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK) | ||
2238 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
2239 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
2240 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ(x) \ | ||
2241 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK) | ||
2242 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
2243 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
2244 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ(x) \ | ||
2245 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK) | ||
2246 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
2247 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
2248 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ(x) \ | ||
2249 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK) | ||
2250 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
2251 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
2252 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ(x) \ | ||
2253 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK) | ||
2254 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
2255 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
2256 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ(x) \ | ||
2257 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK) | ||
2258 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
2259 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
2260 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ(x) \ | ||
2261 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK) | ||
2262 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
2263 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
2264 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ(x) \ | ||
2265 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK) | ||
2266 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
2267 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
2268 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ(x) \ | ||
2269 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK) | ||
2270 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
2271 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
2272 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ(x) \ | ||
2273 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK) | ||
2274 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
2275 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
2276 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ(x) \ | ||
2277 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK) | ||
2278 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
2279 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
2280 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ(x) \ | ||
2281 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK) | ||
2282 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
2283 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
2284 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ(x) \ | ||
2285 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK) | ||
2286 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
2287 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
2288 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ(x) \ | ||
2289 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK) | ||
2290 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
2291 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
2292 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ(x) \ | ||
2293 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK) | ||
2294 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
2295 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
2296 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN(x) \ | ||
2297 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2298 | APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
2299 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
2300 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
2301 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN(x) \ | ||
2302 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2303 | APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
2304 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
2305 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
2306 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN(x) \ | ||
2307 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2308 | APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
2309 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
2310 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
2311 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN(x) \ | ||
2312 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2313 | APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
2314 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
2315 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
2316 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN(x) \ | ||
2317 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2318 | APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
2319 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
2320 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
2321 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN(x) \ | ||
2322 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2323 | APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
2324 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
2325 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
2326 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN(x) \ | ||
2327 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2328 | APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
2329 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
2330 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
2331 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN(x) \ | ||
2332 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2333 | APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
2334 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
2335 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
2336 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN(x) \ | ||
2337 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2338 | APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
2339 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
2340 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
2341 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN(x) \ | ||
2342 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2343 | APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
2344 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
2345 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
2346 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN(x) \ | ||
2347 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2348 | APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
2349 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
2350 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
2351 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN(x) \ | ||
2352 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2353 | APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
2354 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
2355 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
2356 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN(x) \ | ||
2357 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2358 | APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
2359 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
2360 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
2361 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN(x) \ | ||
2362 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2363 | APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
2364 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
2365 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
2366 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN(x) \ | ||
2367 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2368 | APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
2369 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
2370 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
2371 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN(x) \ | ||
2372 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & \ | ||
2373 | APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
2374 | /*! @} */ | ||
2375 | |||
2376 | /*! @name CTRL2 - AHB to APBH Bridge Control and Status Register 2 */ | ||
2377 | /*! @{ */ | ||
2378 | #define APBH_CTRL2_CH0_ERROR_IRQ_MASK (0x1U) | ||
2379 | #define APBH_CTRL2_CH0_ERROR_IRQ_SHIFT (0U) | ||
2380 | #define APBH_CTRL2_CH0_ERROR_IRQ(x) \ | ||
2381 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH0_ERROR_IRQ_MASK) | ||
2382 | #define APBH_CTRL2_CH1_ERROR_IRQ_MASK (0x2U) | ||
2383 | #define APBH_CTRL2_CH1_ERROR_IRQ_SHIFT (1U) | ||
2384 | #define APBH_CTRL2_CH1_ERROR_IRQ(x) \ | ||
2385 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH1_ERROR_IRQ_MASK) | ||
2386 | #define APBH_CTRL2_CH2_ERROR_IRQ_MASK (0x4U) | ||
2387 | #define APBH_CTRL2_CH2_ERROR_IRQ_SHIFT (2U) | ||
2388 | #define APBH_CTRL2_CH2_ERROR_IRQ(x) \ | ||
2389 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH2_ERROR_IRQ_MASK) | ||
2390 | #define APBH_CTRL2_CH3_ERROR_IRQ_MASK (0x8U) | ||
2391 | #define APBH_CTRL2_CH3_ERROR_IRQ_SHIFT (3U) | ||
2392 | #define APBH_CTRL2_CH3_ERROR_IRQ(x) \ | ||
2393 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH3_ERROR_IRQ_MASK) | ||
2394 | #define APBH_CTRL2_CH4_ERROR_IRQ_MASK (0x10U) | ||
2395 | #define APBH_CTRL2_CH4_ERROR_IRQ_SHIFT (4U) | ||
2396 | #define APBH_CTRL2_CH4_ERROR_IRQ(x) \ | ||
2397 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH4_ERROR_IRQ_MASK) | ||
2398 | #define APBH_CTRL2_CH5_ERROR_IRQ_MASK (0x20U) | ||
2399 | #define APBH_CTRL2_CH5_ERROR_IRQ_SHIFT (5U) | ||
2400 | #define APBH_CTRL2_CH5_ERROR_IRQ(x) \ | ||
2401 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH5_ERROR_IRQ_MASK) | ||
2402 | #define APBH_CTRL2_CH6_ERROR_IRQ_MASK (0x40U) | ||
2403 | #define APBH_CTRL2_CH6_ERROR_IRQ_SHIFT (6U) | ||
2404 | #define APBH_CTRL2_CH6_ERROR_IRQ(x) \ | ||
2405 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH6_ERROR_IRQ_MASK) | ||
2406 | #define APBH_CTRL2_CH7_ERROR_IRQ_MASK (0x80U) | ||
2407 | #define APBH_CTRL2_CH7_ERROR_IRQ_SHIFT (7U) | ||
2408 | #define APBH_CTRL2_CH7_ERROR_IRQ(x) \ | ||
2409 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH7_ERROR_IRQ_MASK) | ||
2410 | #define APBH_CTRL2_CH8_ERROR_IRQ_MASK (0x100U) | ||
2411 | #define APBH_CTRL2_CH8_ERROR_IRQ_SHIFT (8U) | ||
2412 | #define APBH_CTRL2_CH8_ERROR_IRQ(x) \ | ||
2413 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH8_ERROR_IRQ_MASK) | ||
2414 | #define APBH_CTRL2_CH9_ERROR_IRQ_MASK (0x200U) | ||
2415 | #define APBH_CTRL2_CH9_ERROR_IRQ_SHIFT (9U) | ||
2416 | #define APBH_CTRL2_CH9_ERROR_IRQ(x) \ | ||
2417 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH9_ERROR_IRQ_MASK) | ||
2418 | #define APBH_CTRL2_CH10_ERROR_IRQ_MASK (0x400U) | ||
2419 | #define APBH_CTRL2_CH10_ERROR_IRQ_SHIFT (10U) | ||
2420 | #define APBH_CTRL2_CH10_ERROR_IRQ(x) \ | ||
2421 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH10_ERROR_IRQ_MASK) | ||
2422 | #define APBH_CTRL2_CH11_ERROR_IRQ_MASK (0x800U) | ||
2423 | #define APBH_CTRL2_CH11_ERROR_IRQ_SHIFT (11U) | ||
2424 | #define APBH_CTRL2_CH11_ERROR_IRQ(x) \ | ||
2425 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH11_ERROR_IRQ_MASK) | ||
2426 | #define APBH_CTRL2_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2427 | #define APBH_CTRL2_CH12_ERROR_IRQ_SHIFT (12U) | ||
2428 | #define APBH_CTRL2_CH12_ERROR_IRQ(x) \ | ||
2429 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH12_ERROR_IRQ_MASK) | ||
2430 | #define APBH_CTRL2_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2431 | #define APBH_CTRL2_CH13_ERROR_IRQ_SHIFT (13U) | ||
2432 | #define APBH_CTRL2_CH13_ERROR_IRQ(x) \ | ||
2433 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH13_ERROR_IRQ_MASK) | ||
2434 | #define APBH_CTRL2_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2435 | #define APBH_CTRL2_CH14_ERROR_IRQ_SHIFT (14U) | ||
2436 | #define APBH_CTRL2_CH14_ERROR_IRQ(x) \ | ||
2437 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH14_ERROR_IRQ_MASK) | ||
2438 | #define APBH_CTRL2_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2439 | #define APBH_CTRL2_CH15_ERROR_IRQ_SHIFT (15U) | ||
2440 | #define APBH_CTRL2_CH15_ERROR_IRQ(x) \ | ||
2441 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH15_ERROR_IRQ_MASK) | ||
2442 | #define APBH_CTRL2_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2443 | #define APBH_CTRL2_CH0_ERROR_STATUS_SHIFT (16U) | ||
2444 | /*! CH0_ERROR_STATUS | ||
2445 | * 0b0..An early termination from the device causes error IRQ. | ||
2446 | * 0b1..An AHB bus error causes error IRQ. | ||
2447 | */ | ||
2448 | #define APBH_CTRL2_CH0_ERROR_STATUS(x) \ | ||
2449 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH0_ERROR_STATUS_MASK) | ||
2450 | #define APBH_CTRL2_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2451 | #define APBH_CTRL2_CH1_ERROR_STATUS_SHIFT (17U) | ||
2452 | /*! CH1_ERROR_STATUS | ||
2453 | * 0b0..An early termination from the device causes error IRQ. | ||
2454 | * 0b1..An AHB bus error causes error IRQ. | ||
2455 | */ | ||
2456 | #define APBH_CTRL2_CH1_ERROR_STATUS(x) \ | ||
2457 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH1_ERROR_STATUS_MASK) | ||
2458 | #define APBH_CTRL2_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2459 | #define APBH_CTRL2_CH2_ERROR_STATUS_SHIFT (18U) | ||
2460 | /*! CH2_ERROR_STATUS | ||
2461 | * 0b0..An early termination from the device causes error IRQ. | ||
2462 | * 0b1..An AHB bus error causes error IRQ. | ||
2463 | */ | ||
2464 | #define APBH_CTRL2_CH2_ERROR_STATUS(x) \ | ||
2465 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH2_ERROR_STATUS_MASK) | ||
2466 | #define APBH_CTRL2_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2467 | #define APBH_CTRL2_CH3_ERROR_STATUS_SHIFT (19U) | ||
2468 | /*! CH3_ERROR_STATUS | ||
2469 | * 0b0..An early termination from the device causes error IRQ. | ||
2470 | * 0b1..An AHB bus error causes error IRQ. | ||
2471 | */ | ||
2472 | #define APBH_CTRL2_CH3_ERROR_STATUS(x) \ | ||
2473 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH3_ERROR_STATUS_MASK) | ||
2474 | #define APBH_CTRL2_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2475 | #define APBH_CTRL2_CH4_ERROR_STATUS_SHIFT (20U) | ||
2476 | /*! CH4_ERROR_STATUS | ||
2477 | * 0b0..An early termination from the device causes error IRQ. | ||
2478 | * 0b1..An AHB bus error causes error IRQ. | ||
2479 | */ | ||
2480 | #define APBH_CTRL2_CH4_ERROR_STATUS(x) \ | ||
2481 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH4_ERROR_STATUS_MASK) | ||
2482 | #define APBH_CTRL2_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2483 | #define APBH_CTRL2_CH5_ERROR_STATUS_SHIFT (21U) | ||
2484 | /*! CH5_ERROR_STATUS | ||
2485 | * 0b0..An early termination from the device causes error IRQ. | ||
2486 | * 0b1..An AHB bus error causes error IRQ. | ||
2487 | */ | ||
2488 | #define APBH_CTRL2_CH5_ERROR_STATUS(x) \ | ||
2489 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH5_ERROR_STATUS_MASK) | ||
2490 | #define APBH_CTRL2_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2491 | #define APBH_CTRL2_CH6_ERROR_STATUS_SHIFT (22U) | ||
2492 | /*! CH6_ERROR_STATUS | ||
2493 | * 0b0..An early termination from the device causes error IRQ. | ||
2494 | * 0b1..An AHB bus error causes error IRQ. | ||
2495 | */ | ||
2496 | #define APBH_CTRL2_CH6_ERROR_STATUS(x) \ | ||
2497 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH6_ERROR_STATUS_MASK) | ||
2498 | #define APBH_CTRL2_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2499 | #define APBH_CTRL2_CH7_ERROR_STATUS_SHIFT (23U) | ||
2500 | /*! CH7_ERROR_STATUS | ||
2501 | * 0b0..An early termination from the device causes error IRQ. | ||
2502 | * 0b1..An AHB bus error causes error IRQ. | ||
2503 | */ | ||
2504 | #define APBH_CTRL2_CH7_ERROR_STATUS(x) \ | ||
2505 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH7_ERROR_STATUS_MASK) | ||
2506 | #define APBH_CTRL2_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2507 | #define APBH_CTRL2_CH8_ERROR_STATUS_SHIFT (24U) | ||
2508 | /*! CH8_ERROR_STATUS | ||
2509 | * 0b0..An early termination from the device causes error IRQ. | ||
2510 | * 0b1..An AHB bus error causes error IRQ. | ||
2511 | */ | ||
2512 | #define APBH_CTRL2_CH8_ERROR_STATUS(x) \ | ||
2513 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH8_ERROR_STATUS_MASK) | ||
2514 | #define APBH_CTRL2_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2515 | #define APBH_CTRL2_CH9_ERROR_STATUS_SHIFT (25U) | ||
2516 | /*! CH9_ERROR_STATUS | ||
2517 | * 0b0..An early termination from the device causes error IRQ. | ||
2518 | * 0b1..An AHB bus error causes error IRQ. | ||
2519 | */ | ||
2520 | #define APBH_CTRL2_CH9_ERROR_STATUS(x) \ | ||
2521 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH9_ERROR_STATUS_MASK) | ||
2522 | #define APBH_CTRL2_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2523 | #define APBH_CTRL2_CH10_ERROR_STATUS_SHIFT (26U) | ||
2524 | /*! CH10_ERROR_STATUS | ||
2525 | * 0b0..An early termination from the device causes error IRQ. | ||
2526 | * 0b1..An AHB bus error causes error IRQ. | ||
2527 | */ | ||
2528 | #define APBH_CTRL2_CH10_ERROR_STATUS(x) \ | ||
2529 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH10_ERROR_STATUS_MASK) | ||
2530 | #define APBH_CTRL2_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2531 | #define APBH_CTRL2_CH11_ERROR_STATUS_SHIFT (27U) | ||
2532 | /*! CH11_ERROR_STATUS | ||
2533 | * 0b0..An early termination from the device causes error IRQ. | ||
2534 | * 0b1..An AHB bus error causes error IRQ. | ||
2535 | */ | ||
2536 | #define APBH_CTRL2_CH11_ERROR_STATUS(x) \ | ||
2537 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH11_ERROR_STATUS_MASK) | ||
2538 | #define APBH_CTRL2_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2539 | #define APBH_CTRL2_CH12_ERROR_STATUS_SHIFT (28U) | ||
2540 | /*! CH12_ERROR_STATUS | ||
2541 | * 0b0..An early termination from the device causes error IRQ. | ||
2542 | * 0b1..An AHB bus error causes error IRQ. | ||
2543 | */ | ||
2544 | #define APBH_CTRL2_CH12_ERROR_STATUS(x) \ | ||
2545 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH12_ERROR_STATUS_MASK) | ||
2546 | #define APBH_CTRL2_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2547 | #define APBH_CTRL2_CH13_ERROR_STATUS_SHIFT (29U) | ||
2548 | /*! CH13_ERROR_STATUS | ||
2549 | * 0b0..An early termination from the device causes error IRQ. | ||
2550 | * 0b1..An AHB bus error causes error IRQ. | ||
2551 | */ | ||
2552 | #define APBH_CTRL2_CH13_ERROR_STATUS(x) \ | ||
2553 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH13_ERROR_STATUS_MASK) | ||
2554 | #define APBH_CTRL2_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2555 | #define APBH_CTRL2_CH14_ERROR_STATUS_SHIFT (30U) | ||
2556 | /*! CH14_ERROR_STATUS | ||
2557 | * 0b0..An early termination from the device causes error IRQ. | ||
2558 | * 0b1..An AHB bus error causes error IRQ. | ||
2559 | */ | ||
2560 | #define APBH_CTRL2_CH14_ERROR_STATUS(x) \ | ||
2561 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH14_ERROR_STATUS_MASK) | ||
2562 | #define APBH_CTRL2_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2563 | #define APBH_CTRL2_CH15_ERROR_STATUS_SHIFT (31U) | ||
2564 | /*! CH15_ERROR_STATUS | ||
2565 | * 0b0..An early termination from the device causes error IRQ. | ||
2566 | * 0b1..An AHB bus error causes error IRQ. | ||
2567 | */ | ||
2568 | #define APBH_CTRL2_CH15_ERROR_STATUS(x) \ | ||
2569 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH15_ERROR_STATUS_MASK) | ||
2570 | /*! @} */ | ||
2571 | |||
2572 | /*! @name CTRL2_SET - AHB to APBH Bridge Control and Status Register 2 */ | ||
2573 | /*! @{ */ | ||
2574 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK (0x1U) | ||
2575 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT (0U) | ||
2576 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ(x) \ | ||
2577 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK) | ||
2578 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK (0x2U) | ||
2579 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT (1U) | ||
2580 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ(x) \ | ||
2581 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK) | ||
2582 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK (0x4U) | ||
2583 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT (2U) | ||
2584 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ(x) \ | ||
2585 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK) | ||
2586 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK (0x8U) | ||
2587 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT (3U) | ||
2588 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ(x) \ | ||
2589 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK) | ||
2590 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK (0x10U) | ||
2591 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT (4U) | ||
2592 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ(x) \ | ||
2593 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK) | ||
2594 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK (0x20U) | ||
2595 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT (5U) | ||
2596 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ(x) \ | ||
2597 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK) | ||
2598 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK (0x40U) | ||
2599 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT (6U) | ||
2600 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ(x) \ | ||
2601 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK) | ||
2602 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK (0x80U) | ||
2603 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT (7U) | ||
2604 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ(x) \ | ||
2605 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK) | ||
2606 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK (0x100U) | ||
2607 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT (8U) | ||
2608 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ(x) \ | ||
2609 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK) | ||
2610 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK (0x200U) | ||
2611 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT (9U) | ||
2612 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ(x) \ | ||
2613 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK) | ||
2614 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK (0x400U) | ||
2615 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT (10U) | ||
2616 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ(x) \ | ||
2617 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK) | ||
2618 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK (0x800U) | ||
2619 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT (11U) | ||
2620 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ(x) \ | ||
2621 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK) | ||
2622 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2623 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT (12U) | ||
2624 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ(x) \ | ||
2625 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK) | ||
2626 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2627 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT (13U) | ||
2628 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ(x) \ | ||
2629 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK) | ||
2630 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2631 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT (14U) | ||
2632 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ(x) \ | ||
2633 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK) | ||
2634 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2635 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT (15U) | ||
2636 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ(x) \ | ||
2637 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK) | ||
2638 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2639 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT (16U) | ||
2640 | /*! CH0_ERROR_STATUS | ||
2641 | * 0b0..An early termination from the device causes error IRQ. | ||
2642 | * 0b1..An AHB bus error causes error IRQ. | ||
2643 | */ | ||
2644 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS(x) \ | ||
2645 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK) | ||
2646 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2647 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT (17U) | ||
2648 | /*! CH1_ERROR_STATUS | ||
2649 | * 0b0..An early termination from the device causes error IRQ. | ||
2650 | * 0b1..An AHB bus error causes error IRQ. | ||
2651 | */ | ||
2652 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS(x) \ | ||
2653 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK) | ||
2654 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2655 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT (18U) | ||
2656 | /*! CH2_ERROR_STATUS | ||
2657 | * 0b0..An early termination from the device causes error IRQ. | ||
2658 | * 0b1..An AHB bus error causes error IRQ. | ||
2659 | */ | ||
2660 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS(x) \ | ||
2661 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK) | ||
2662 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2663 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT (19U) | ||
2664 | /*! CH3_ERROR_STATUS | ||
2665 | * 0b0..An early termination from the device causes error IRQ. | ||
2666 | * 0b1..An AHB bus error causes error IRQ. | ||
2667 | */ | ||
2668 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS(x) \ | ||
2669 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK) | ||
2670 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2671 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT (20U) | ||
2672 | /*! CH4_ERROR_STATUS | ||
2673 | * 0b0..An early termination from the device causes error IRQ. | ||
2674 | * 0b1..An AHB bus error causes error IRQ. | ||
2675 | */ | ||
2676 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS(x) \ | ||
2677 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK) | ||
2678 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2679 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT (21U) | ||
2680 | /*! CH5_ERROR_STATUS | ||
2681 | * 0b0..An early termination from the device causes error IRQ. | ||
2682 | * 0b1..An AHB bus error causes error IRQ. | ||
2683 | */ | ||
2684 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS(x) \ | ||
2685 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK) | ||
2686 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2687 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT (22U) | ||
2688 | /*! CH6_ERROR_STATUS | ||
2689 | * 0b0..An early termination from the device causes error IRQ. | ||
2690 | * 0b1..An AHB bus error causes error IRQ. | ||
2691 | */ | ||
2692 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS(x) \ | ||
2693 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK) | ||
2694 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2695 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT (23U) | ||
2696 | /*! CH7_ERROR_STATUS | ||
2697 | * 0b0..An early termination from the device causes error IRQ. | ||
2698 | * 0b1..An AHB bus error causes error IRQ. | ||
2699 | */ | ||
2700 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS(x) \ | ||
2701 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK) | ||
2702 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2703 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT (24U) | ||
2704 | /*! CH8_ERROR_STATUS | ||
2705 | * 0b0..An early termination from the device causes error IRQ. | ||
2706 | * 0b1..An AHB bus error causes error IRQ. | ||
2707 | */ | ||
2708 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS(x) \ | ||
2709 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK) | ||
2710 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2711 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT (25U) | ||
2712 | /*! CH9_ERROR_STATUS | ||
2713 | * 0b0..An early termination from the device causes error IRQ. | ||
2714 | * 0b1..An AHB bus error causes error IRQ. | ||
2715 | */ | ||
2716 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS(x) \ | ||
2717 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK) | ||
2718 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2719 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT (26U) | ||
2720 | /*! CH10_ERROR_STATUS | ||
2721 | * 0b0..An early termination from the device causes error IRQ. | ||
2722 | * 0b1..An AHB bus error causes error IRQ. | ||
2723 | */ | ||
2724 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS(x) \ | ||
2725 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK) | ||
2726 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2727 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT (27U) | ||
2728 | /*! CH11_ERROR_STATUS | ||
2729 | * 0b0..An early termination from the device causes error IRQ. | ||
2730 | * 0b1..An AHB bus error causes error IRQ. | ||
2731 | */ | ||
2732 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS(x) \ | ||
2733 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK) | ||
2734 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2735 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT (28U) | ||
2736 | /*! CH12_ERROR_STATUS | ||
2737 | * 0b0..An early termination from the device causes error IRQ. | ||
2738 | * 0b1..An AHB bus error causes error IRQ. | ||
2739 | */ | ||
2740 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS(x) \ | ||
2741 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK) | ||
2742 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2743 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT (29U) | ||
2744 | /*! CH13_ERROR_STATUS | ||
2745 | * 0b0..An early termination from the device causes error IRQ. | ||
2746 | * 0b1..An AHB bus error causes error IRQ. | ||
2747 | */ | ||
2748 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS(x) \ | ||
2749 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK) | ||
2750 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2751 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT (30U) | ||
2752 | /*! CH14_ERROR_STATUS | ||
2753 | * 0b0..An early termination from the device causes error IRQ. | ||
2754 | * 0b1..An AHB bus error causes error IRQ. | ||
2755 | */ | ||
2756 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS(x) \ | ||
2757 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK) | ||
2758 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2759 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT (31U) | ||
2760 | /*! CH15_ERROR_STATUS | ||
2761 | * 0b0..An early termination from the device causes error IRQ. | ||
2762 | * 0b1..An AHB bus error causes error IRQ. | ||
2763 | */ | ||
2764 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS(x) \ | ||
2765 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK) | ||
2766 | /*! @} */ | ||
2767 | |||
2768 | /*! @name CTRL2_CLR - AHB to APBH Bridge Control and Status Register 2 */ | ||
2769 | /*! @{ */ | ||
2770 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK (0x1U) | ||
2771 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT (0U) | ||
2772 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ(x) \ | ||
2773 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK) | ||
2774 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK (0x2U) | ||
2775 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT (1U) | ||
2776 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ(x) \ | ||
2777 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK) | ||
2778 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK (0x4U) | ||
2779 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT (2U) | ||
2780 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ(x) \ | ||
2781 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK) | ||
2782 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK (0x8U) | ||
2783 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT (3U) | ||
2784 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ(x) \ | ||
2785 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK) | ||
2786 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK (0x10U) | ||
2787 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT (4U) | ||
2788 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ(x) \ | ||
2789 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK) | ||
2790 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK (0x20U) | ||
2791 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT (5U) | ||
2792 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ(x) \ | ||
2793 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK) | ||
2794 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK (0x40U) | ||
2795 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT (6U) | ||
2796 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ(x) \ | ||
2797 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK) | ||
2798 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK (0x80U) | ||
2799 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT (7U) | ||
2800 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ(x) \ | ||
2801 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK) | ||
2802 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK (0x100U) | ||
2803 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT (8U) | ||
2804 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ(x) \ | ||
2805 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK) | ||
2806 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK (0x200U) | ||
2807 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT (9U) | ||
2808 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ(x) \ | ||
2809 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK) | ||
2810 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK (0x400U) | ||
2811 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT (10U) | ||
2812 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ(x) \ | ||
2813 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK) | ||
2814 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK (0x800U) | ||
2815 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT (11U) | ||
2816 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ(x) \ | ||
2817 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK) | ||
2818 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2819 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT (12U) | ||
2820 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ(x) \ | ||
2821 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK) | ||
2822 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2823 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT (13U) | ||
2824 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ(x) \ | ||
2825 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK) | ||
2826 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2827 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT (14U) | ||
2828 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ(x) \ | ||
2829 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK) | ||
2830 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2831 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT (15U) | ||
2832 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ(x) \ | ||
2833 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK) | ||
2834 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2835 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT (16U) | ||
2836 | /*! CH0_ERROR_STATUS | ||
2837 | * 0b0..An early termination from the device causes error IRQ. | ||
2838 | * 0b1..An AHB bus error causes error IRQ. | ||
2839 | */ | ||
2840 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS(x) \ | ||
2841 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK) | ||
2842 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2843 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT (17U) | ||
2844 | /*! CH1_ERROR_STATUS | ||
2845 | * 0b0..An early termination from the device causes error IRQ. | ||
2846 | * 0b1..An AHB bus error causes error IRQ. | ||
2847 | */ | ||
2848 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS(x) \ | ||
2849 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK) | ||
2850 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2851 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT (18U) | ||
2852 | /*! CH2_ERROR_STATUS | ||
2853 | * 0b0..An early termination from the device causes error IRQ. | ||
2854 | * 0b1..An AHB bus error causes error IRQ. | ||
2855 | */ | ||
2856 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS(x) \ | ||
2857 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK) | ||
2858 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2859 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT (19U) | ||
2860 | /*! CH3_ERROR_STATUS | ||
2861 | * 0b0..An early termination from the device causes error IRQ. | ||
2862 | * 0b1..An AHB bus error causes error IRQ. | ||
2863 | */ | ||
2864 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS(x) \ | ||
2865 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK) | ||
2866 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2867 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT (20U) | ||
2868 | /*! CH4_ERROR_STATUS | ||
2869 | * 0b0..An early termination from the device causes error IRQ. | ||
2870 | * 0b1..An AHB bus error causes error IRQ. | ||
2871 | */ | ||
2872 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS(x) \ | ||
2873 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK) | ||
2874 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2875 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT (21U) | ||
2876 | /*! CH5_ERROR_STATUS | ||
2877 | * 0b0..An early termination from the device causes error IRQ. | ||
2878 | * 0b1..An AHB bus error causes error IRQ. | ||
2879 | */ | ||
2880 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS(x) \ | ||
2881 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK) | ||
2882 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2883 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT (22U) | ||
2884 | /*! CH6_ERROR_STATUS | ||
2885 | * 0b0..An early termination from the device causes error IRQ. | ||
2886 | * 0b1..An AHB bus error causes error IRQ. | ||
2887 | */ | ||
2888 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS(x) \ | ||
2889 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK) | ||
2890 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2891 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT (23U) | ||
2892 | /*! CH7_ERROR_STATUS | ||
2893 | * 0b0..An early termination from the device causes error IRQ. | ||
2894 | * 0b1..An AHB bus error causes error IRQ. | ||
2895 | */ | ||
2896 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS(x) \ | ||
2897 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK) | ||
2898 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2899 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT (24U) | ||
2900 | /*! CH8_ERROR_STATUS | ||
2901 | * 0b0..An early termination from the device causes error IRQ. | ||
2902 | * 0b1..An AHB bus error causes error IRQ. | ||
2903 | */ | ||
2904 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS(x) \ | ||
2905 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK) | ||
2906 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2907 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT (25U) | ||
2908 | /*! CH9_ERROR_STATUS | ||
2909 | * 0b0..An early termination from the device causes error IRQ. | ||
2910 | * 0b1..An AHB bus error causes error IRQ. | ||
2911 | */ | ||
2912 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS(x) \ | ||
2913 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK) | ||
2914 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2915 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT (26U) | ||
2916 | /*! CH10_ERROR_STATUS | ||
2917 | * 0b0..An early termination from the device causes error IRQ. | ||
2918 | * 0b1..An AHB bus error causes error IRQ. | ||
2919 | */ | ||
2920 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS(x) \ | ||
2921 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK) | ||
2922 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2923 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT (27U) | ||
2924 | /*! CH11_ERROR_STATUS | ||
2925 | * 0b0..An early termination from the device causes error IRQ. | ||
2926 | * 0b1..An AHB bus error causes error IRQ. | ||
2927 | */ | ||
2928 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS(x) \ | ||
2929 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK) | ||
2930 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2931 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT (28U) | ||
2932 | /*! CH12_ERROR_STATUS | ||
2933 | * 0b0..An early termination from the device causes error IRQ. | ||
2934 | * 0b1..An AHB bus error causes error IRQ. | ||
2935 | */ | ||
2936 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS(x) \ | ||
2937 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK) | ||
2938 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2939 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT (29U) | ||
2940 | /*! CH13_ERROR_STATUS | ||
2941 | * 0b0..An early termination from the device causes error IRQ. | ||
2942 | * 0b1..An AHB bus error causes error IRQ. | ||
2943 | */ | ||
2944 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS(x) \ | ||
2945 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK) | ||
2946 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2947 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT (30U) | ||
2948 | /*! CH14_ERROR_STATUS | ||
2949 | * 0b0..An early termination from the device causes error IRQ. | ||
2950 | * 0b1..An AHB bus error causes error IRQ. | ||
2951 | */ | ||
2952 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS(x) \ | ||
2953 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK) | ||
2954 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2955 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT (31U) | ||
2956 | /*! CH15_ERROR_STATUS | ||
2957 | * 0b0..An early termination from the device causes error IRQ. | ||
2958 | * 0b1..An AHB bus error causes error IRQ. | ||
2959 | */ | ||
2960 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS(x) \ | ||
2961 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK) | ||
2962 | /*! @} */ | ||
2963 | |||
2964 | /*! @name CTRL2_TOG - AHB to APBH Bridge Control and Status Register 2 */ | ||
2965 | /*! @{ */ | ||
2966 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK (0x1U) | ||
2967 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT (0U) | ||
2968 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ(x) \ | ||
2969 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK) | ||
2970 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK (0x2U) | ||
2971 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT (1U) | ||
2972 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ(x) \ | ||
2973 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK) | ||
2974 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK (0x4U) | ||
2975 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT (2U) | ||
2976 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ(x) \ | ||
2977 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK) | ||
2978 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK (0x8U) | ||
2979 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT (3U) | ||
2980 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ(x) \ | ||
2981 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK) | ||
2982 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK (0x10U) | ||
2983 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT (4U) | ||
2984 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ(x) \ | ||
2985 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK) | ||
2986 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK (0x20U) | ||
2987 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT (5U) | ||
2988 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ(x) \ | ||
2989 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK) | ||
2990 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK (0x40U) | ||
2991 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT (6U) | ||
2992 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ(x) \ | ||
2993 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK) | ||
2994 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK (0x80U) | ||
2995 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT (7U) | ||
2996 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ(x) \ | ||
2997 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK) | ||
2998 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK (0x100U) | ||
2999 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT (8U) | ||
3000 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ(x) \ | ||
3001 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK) | ||
3002 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK (0x200U) | ||
3003 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT (9U) | ||
3004 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ(x) \ | ||
3005 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK) | ||
3006 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK (0x400U) | ||
3007 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT (10U) | ||
3008 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ(x) \ | ||
3009 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK) | ||
3010 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK (0x800U) | ||
3011 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT (11U) | ||
3012 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ(x) \ | ||
3013 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK) | ||
3014 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK (0x1000U) | ||
3015 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT (12U) | ||
3016 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ(x) \ | ||
3017 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK) | ||
3018 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK (0x2000U) | ||
3019 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT (13U) | ||
3020 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ(x) \ | ||
3021 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK) | ||
3022 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK (0x4000U) | ||
3023 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT (14U) | ||
3024 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ(x) \ | ||
3025 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK) | ||
3026 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK (0x8000U) | ||
3027 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT (15U) | ||
3028 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ(x) \ | ||
3029 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK) | ||
3030 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK (0x10000U) | ||
3031 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT (16U) | ||
3032 | /*! CH0_ERROR_STATUS | ||
3033 | * 0b0..An early termination from the device causes error IRQ. | ||
3034 | * 0b1..An AHB bus error causes error IRQ. | ||
3035 | */ | ||
3036 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS(x) \ | ||
3037 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK) | ||
3038 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK (0x20000U) | ||
3039 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT (17U) | ||
3040 | /*! CH1_ERROR_STATUS | ||
3041 | * 0b0..An early termination from the device causes error IRQ. | ||
3042 | * 0b1..An AHB bus error causes error IRQ. | ||
3043 | */ | ||
3044 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS(x) \ | ||
3045 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK) | ||
3046 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK (0x40000U) | ||
3047 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT (18U) | ||
3048 | /*! CH2_ERROR_STATUS | ||
3049 | * 0b0..An early termination from the device causes error IRQ. | ||
3050 | * 0b1..An AHB bus error causes error IRQ. | ||
3051 | */ | ||
3052 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS(x) \ | ||
3053 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK) | ||
3054 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK (0x80000U) | ||
3055 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT (19U) | ||
3056 | /*! CH3_ERROR_STATUS | ||
3057 | * 0b0..An early termination from the device causes error IRQ. | ||
3058 | * 0b1..An AHB bus error causes error IRQ. | ||
3059 | */ | ||
3060 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS(x) \ | ||
3061 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK) | ||
3062 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK (0x100000U) | ||
3063 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT (20U) | ||
3064 | /*! CH4_ERROR_STATUS | ||
3065 | * 0b0..An early termination from the device causes error IRQ. | ||
3066 | * 0b1..An AHB bus error causes error IRQ. | ||
3067 | */ | ||
3068 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS(x) \ | ||
3069 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK) | ||
3070 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK (0x200000U) | ||
3071 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT (21U) | ||
3072 | /*! CH5_ERROR_STATUS | ||
3073 | * 0b0..An early termination from the device causes error IRQ. | ||
3074 | * 0b1..An AHB bus error causes error IRQ. | ||
3075 | */ | ||
3076 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS(x) \ | ||
3077 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK) | ||
3078 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK (0x400000U) | ||
3079 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT (22U) | ||
3080 | /*! CH6_ERROR_STATUS | ||
3081 | * 0b0..An early termination from the device causes error IRQ. | ||
3082 | * 0b1..An AHB bus error causes error IRQ. | ||
3083 | */ | ||
3084 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS(x) \ | ||
3085 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK) | ||
3086 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK (0x800000U) | ||
3087 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT (23U) | ||
3088 | /*! CH7_ERROR_STATUS | ||
3089 | * 0b0..An early termination from the device causes error IRQ. | ||
3090 | * 0b1..An AHB bus error causes error IRQ. | ||
3091 | */ | ||
3092 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS(x) \ | ||
3093 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK) | ||
3094 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
3095 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT (24U) | ||
3096 | /*! CH8_ERROR_STATUS | ||
3097 | * 0b0..An early termination from the device causes error IRQ. | ||
3098 | * 0b1..An AHB bus error causes error IRQ. | ||
3099 | */ | ||
3100 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS(x) \ | ||
3101 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK) | ||
3102 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
3103 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT (25U) | ||
3104 | /*! CH9_ERROR_STATUS | ||
3105 | * 0b0..An early termination from the device causes error IRQ. | ||
3106 | * 0b1..An AHB bus error causes error IRQ. | ||
3107 | */ | ||
3108 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS(x) \ | ||
3109 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK) | ||
3110 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
3111 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT (26U) | ||
3112 | /*! CH10_ERROR_STATUS | ||
3113 | * 0b0..An early termination from the device causes error IRQ. | ||
3114 | * 0b1..An AHB bus error causes error IRQ. | ||
3115 | */ | ||
3116 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS(x) \ | ||
3117 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK) | ||
3118 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
3119 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT (27U) | ||
3120 | /*! CH11_ERROR_STATUS | ||
3121 | * 0b0..An early termination from the device causes error IRQ. | ||
3122 | * 0b1..An AHB bus error causes error IRQ. | ||
3123 | */ | ||
3124 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS(x) \ | ||
3125 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK) | ||
3126 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
3127 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT (28U) | ||
3128 | /*! CH12_ERROR_STATUS | ||
3129 | * 0b0..An early termination from the device causes error IRQ. | ||
3130 | * 0b1..An AHB bus error causes error IRQ. | ||
3131 | */ | ||
3132 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS(x) \ | ||
3133 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK) | ||
3134 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
3135 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT (29U) | ||
3136 | /*! CH13_ERROR_STATUS | ||
3137 | * 0b0..An early termination from the device causes error IRQ. | ||
3138 | * 0b1..An AHB bus error causes error IRQ. | ||
3139 | */ | ||
3140 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS(x) \ | ||
3141 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK) | ||
3142 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
3143 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT (30U) | ||
3144 | /*! CH14_ERROR_STATUS | ||
3145 | * 0b0..An early termination from the device causes error IRQ. | ||
3146 | * 0b1..An AHB bus error causes error IRQ. | ||
3147 | */ | ||
3148 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS(x) \ | ||
3149 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK) | ||
3150 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
3151 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT (31U) | ||
3152 | /*! CH15_ERROR_STATUS | ||
3153 | * 0b0..An early termination from the device causes error IRQ. | ||
3154 | * 0b1..An AHB bus error causes error IRQ. | ||
3155 | */ | ||
3156 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS(x) \ | ||
3157 | (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK) | ||
3158 | /*! @} */ | ||
3159 | |||
3160 | /*! @name CHANNEL_CTRL - AHB to APBH Bridge Channel Register */ | ||
3161 | /*! @{ */ | ||
3162 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
3163 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT (0U) | ||
3164 | /*! FREEZE_CHANNEL | ||
3165 | * 0b0000000000000001..NAND0 | ||
3166 | * 0b0000000000000010..NAND1 | ||
3167 | * 0b0000000000000100..NAND2 | ||
3168 | * 0b0000000000001000..NAND3 | ||
3169 | * 0b0000000000010000..NAND4 | ||
3170 | * 0b0000000000100000..NAND5 | ||
3171 | * 0b0000000001000000..NAND6 | ||
3172 | * 0b0000000010000000..NAND7 | ||
3173 | * 0b0000000100000000..SSP | ||
3174 | */ | ||
3175 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL(x) \ | ||
3176 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK) | ||
3177 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
3178 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT (16U) | ||
3179 | /*! RESET_CHANNEL | ||
3180 | * 0b0000000000000001..NAND0 | ||
3181 | * 0b0000000000000010..NAND1 | ||
3182 | * 0b0000000000000100..NAND2 | ||
3183 | * 0b0000000000001000..NAND3 | ||
3184 | * 0b0000000000010000..NAND4 | ||
3185 | * 0b0000000000100000..NAND5 | ||
3186 | * 0b0000000001000000..NAND6 | ||
3187 | * 0b0000000010000000..NAND7 | ||
3188 | * 0b0000000100000000..SSP | ||
3189 | */ | ||
3190 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL(x) \ | ||
3191 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK) | ||
3192 | /*! @} */ | ||
3193 | |||
3194 | /*! @name CHANNEL_CTRL_SET - AHB to APBH Bridge Channel Register */ | ||
3195 | /*! @{ */ | ||
3196 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
3197 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT (0U) | ||
3198 | /*! FREEZE_CHANNEL | ||
3199 | * 0b0000000000000001..NAND0 | ||
3200 | * 0b0000000000000010..NAND1 | ||
3201 | * 0b0000000000000100..NAND2 | ||
3202 | * 0b0000000000001000..NAND3 | ||
3203 | * 0b0000000000010000..NAND4 | ||
3204 | * 0b0000000000100000..NAND5 | ||
3205 | * 0b0000000001000000..NAND6 | ||
3206 | * 0b0000000010000000..NAND7 | ||
3207 | * 0b0000000100000000..SSP | ||
3208 | */ | ||
3209 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL(x) \ | ||
3210 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT)) & \ | ||
3211 | APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK) | ||
3212 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
3213 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT (16U) | ||
3214 | /*! RESET_CHANNEL | ||
3215 | * 0b0000000000000001..NAND0 | ||
3216 | * 0b0000000000000010..NAND1 | ||
3217 | * 0b0000000000000100..NAND2 | ||
3218 | * 0b0000000000001000..NAND3 | ||
3219 | * 0b0000000000010000..NAND4 | ||
3220 | * 0b0000000000100000..NAND5 | ||
3221 | * 0b0000000001000000..NAND6 | ||
3222 | * 0b0000000010000000..NAND7 | ||
3223 | * 0b0000000100000000..SSP | ||
3224 | */ | ||
3225 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL(x) \ | ||
3226 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT)) & \ | ||
3227 | APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK) | ||
3228 | /*! @} */ | ||
3229 | |||
3230 | /*! @name CHANNEL_CTRL_CLR - AHB to APBH Bridge Channel Register */ | ||
3231 | /*! @{ */ | ||
3232 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
3233 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT (0U) | ||
3234 | /*! FREEZE_CHANNEL | ||
3235 | * 0b0000000000000001..NAND0 | ||
3236 | * 0b0000000000000010..NAND1 | ||
3237 | * 0b0000000000000100..NAND2 | ||
3238 | * 0b0000000000001000..NAND3 | ||
3239 | * 0b0000000000010000..NAND4 | ||
3240 | * 0b0000000000100000..NAND5 | ||
3241 | * 0b0000000001000000..NAND6 | ||
3242 | * 0b0000000010000000..NAND7 | ||
3243 | * 0b0000000100000000..SSP | ||
3244 | */ | ||
3245 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL(x) \ | ||
3246 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT)) & \ | ||
3247 | APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK) | ||
3248 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
3249 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT (16U) | ||
3250 | /*! RESET_CHANNEL | ||
3251 | * 0b0000000000000001..NAND0 | ||
3252 | * 0b0000000000000010..NAND1 | ||
3253 | * 0b0000000000000100..NAND2 | ||
3254 | * 0b0000000000001000..NAND3 | ||
3255 | * 0b0000000000010000..NAND4 | ||
3256 | * 0b0000000000100000..NAND5 | ||
3257 | * 0b0000000001000000..NAND6 | ||
3258 | * 0b0000000010000000..NAND7 | ||
3259 | * 0b0000000100000000..SSP | ||
3260 | */ | ||
3261 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL(x) \ | ||
3262 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT)) & \ | ||
3263 | APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK) | ||
3264 | /*! @} */ | ||
3265 | |||
3266 | /*! @name CHANNEL_CTRL_TOG - AHB to APBH Bridge Channel Register */ | ||
3267 | /*! @{ */ | ||
3268 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
3269 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT (0U) | ||
3270 | /*! FREEZE_CHANNEL | ||
3271 | * 0b0000000000000001..NAND0 | ||
3272 | * 0b0000000000000010..NAND1 | ||
3273 | * 0b0000000000000100..NAND2 | ||
3274 | * 0b0000000000001000..NAND3 | ||
3275 | * 0b0000000000010000..NAND4 | ||
3276 | * 0b0000000000100000..NAND5 | ||
3277 | * 0b0000000001000000..NAND6 | ||
3278 | * 0b0000000010000000..NAND7 | ||
3279 | * 0b0000000100000000..SSP | ||
3280 | */ | ||
3281 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL(x) \ | ||
3282 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT)) & \ | ||
3283 | APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK) | ||
3284 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
3285 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT (16U) | ||
3286 | /*! RESET_CHANNEL | ||
3287 | * 0b0000000000000001..NAND0 | ||
3288 | * 0b0000000000000010..NAND1 | ||
3289 | * 0b0000000000000100..NAND2 | ||
3290 | * 0b0000000000001000..NAND3 | ||
3291 | * 0b0000000000010000..NAND4 | ||
3292 | * 0b0000000000100000..NAND5 | ||
3293 | * 0b0000000001000000..NAND6 | ||
3294 | * 0b0000000010000000..NAND7 | ||
3295 | * 0b0000000100000000..SSP | ||
3296 | */ | ||
3297 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL(x) \ | ||
3298 | (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT)) & \ | ||
3299 | APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK) | ||
3300 | /*! @} */ | ||
3301 | |||
3302 | /*! @name DEVSEL - AHB to APBH DMA Device Assignment Register */ | ||
3303 | /*! @{ */ | ||
3304 | #define APBH_DEVSEL_CH0_MASK (0x3U) | ||
3305 | #define APBH_DEVSEL_CH0_SHIFT (0U) | ||
3306 | #define APBH_DEVSEL_CH0(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH0_SHIFT)) & APBH_DEVSEL_CH0_MASK) | ||
3307 | #define APBH_DEVSEL_CH1_MASK (0xCU) | ||
3308 | #define APBH_DEVSEL_CH1_SHIFT (2U) | ||
3309 | #define APBH_DEVSEL_CH1(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH1_SHIFT)) & APBH_DEVSEL_CH1_MASK) | ||
3310 | #define APBH_DEVSEL_CH2_MASK (0x30U) | ||
3311 | #define APBH_DEVSEL_CH2_SHIFT (4U) | ||
3312 | #define APBH_DEVSEL_CH2(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH2_SHIFT)) & APBH_DEVSEL_CH2_MASK) | ||
3313 | #define APBH_DEVSEL_CH3_MASK (0xC0U) | ||
3314 | #define APBH_DEVSEL_CH3_SHIFT (6U) | ||
3315 | #define APBH_DEVSEL_CH3(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH3_SHIFT)) & APBH_DEVSEL_CH3_MASK) | ||
3316 | #define APBH_DEVSEL_CH4_MASK (0x300U) | ||
3317 | #define APBH_DEVSEL_CH4_SHIFT (8U) | ||
3318 | #define APBH_DEVSEL_CH4(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH4_SHIFT)) & APBH_DEVSEL_CH4_MASK) | ||
3319 | #define APBH_DEVSEL_CH5_MASK (0xC00U) | ||
3320 | #define APBH_DEVSEL_CH5_SHIFT (10U) | ||
3321 | #define APBH_DEVSEL_CH5(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH5_SHIFT)) & APBH_DEVSEL_CH5_MASK) | ||
3322 | #define APBH_DEVSEL_CH6_MASK (0x3000U) | ||
3323 | #define APBH_DEVSEL_CH6_SHIFT (12U) | ||
3324 | #define APBH_DEVSEL_CH6(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH6_SHIFT)) & APBH_DEVSEL_CH6_MASK) | ||
3325 | #define APBH_DEVSEL_CH7_MASK (0xC000U) | ||
3326 | #define APBH_DEVSEL_CH7_SHIFT (14U) | ||
3327 | #define APBH_DEVSEL_CH7(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH7_SHIFT)) & APBH_DEVSEL_CH7_MASK) | ||
3328 | #define APBH_DEVSEL_CH8_MASK (0x30000U) | ||
3329 | #define APBH_DEVSEL_CH8_SHIFT (16U) | ||
3330 | #define APBH_DEVSEL_CH8(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH8_SHIFT)) & APBH_DEVSEL_CH8_MASK) | ||
3331 | #define APBH_DEVSEL_CH9_MASK (0xC0000U) | ||
3332 | #define APBH_DEVSEL_CH9_SHIFT (18U) | ||
3333 | #define APBH_DEVSEL_CH9(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH9_SHIFT)) & APBH_DEVSEL_CH9_MASK) | ||
3334 | #define APBH_DEVSEL_CH10_MASK (0x300000U) | ||
3335 | #define APBH_DEVSEL_CH10_SHIFT (20U) | ||
3336 | #define APBH_DEVSEL_CH10(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH10_SHIFT)) & APBH_DEVSEL_CH10_MASK) | ||
3337 | #define APBH_DEVSEL_CH11_MASK (0xC00000U) | ||
3338 | #define APBH_DEVSEL_CH11_SHIFT (22U) | ||
3339 | #define APBH_DEVSEL_CH11(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH11_SHIFT)) & APBH_DEVSEL_CH11_MASK) | ||
3340 | #define APBH_DEVSEL_CH12_MASK (0x3000000U) | ||
3341 | #define APBH_DEVSEL_CH12_SHIFT (24U) | ||
3342 | #define APBH_DEVSEL_CH12(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH12_SHIFT)) & APBH_DEVSEL_CH12_MASK) | ||
3343 | #define APBH_DEVSEL_CH13_MASK (0xC000000U) | ||
3344 | #define APBH_DEVSEL_CH13_SHIFT (26U) | ||
3345 | #define APBH_DEVSEL_CH13(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH13_SHIFT)) & APBH_DEVSEL_CH13_MASK) | ||
3346 | #define APBH_DEVSEL_CH14_MASK (0x30000000U) | ||
3347 | #define APBH_DEVSEL_CH14_SHIFT (28U) | ||
3348 | #define APBH_DEVSEL_CH14(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH14_SHIFT)) & APBH_DEVSEL_CH14_MASK) | ||
3349 | #define APBH_DEVSEL_CH15_MASK (0xC0000000U) | ||
3350 | #define APBH_DEVSEL_CH15_SHIFT (30U) | ||
3351 | #define APBH_DEVSEL_CH15(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH15_SHIFT)) & APBH_DEVSEL_CH15_MASK) | ||
3352 | /*! @} */ | ||
3353 | |||
3354 | /*! @name DMA_BURST_SIZE - AHB to APBH DMA burst size */ | ||
3355 | /*! @{ */ | ||
3356 | #define APBH_DMA_BURST_SIZE_CH0_MASK (0x3U) | ||
3357 | #define APBH_DMA_BURST_SIZE_CH0_SHIFT (0U) | ||
3358 | #define APBH_DMA_BURST_SIZE_CH0(x) \ | ||
3359 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH0_SHIFT)) & APBH_DMA_BURST_SIZE_CH0_MASK) | ||
3360 | #define APBH_DMA_BURST_SIZE_CH1_MASK (0xCU) | ||
3361 | #define APBH_DMA_BURST_SIZE_CH1_SHIFT (2U) | ||
3362 | #define APBH_DMA_BURST_SIZE_CH1(x) \ | ||
3363 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH1_SHIFT)) & APBH_DMA_BURST_SIZE_CH1_MASK) | ||
3364 | #define APBH_DMA_BURST_SIZE_CH2_MASK (0x30U) | ||
3365 | #define APBH_DMA_BURST_SIZE_CH2_SHIFT (4U) | ||
3366 | #define APBH_DMA_BURST_SIZE_CH2(x) \ | ||
3367 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH2_SHIFT)) & APBH_DMA_BURST_SIZE_CH2_MASK) | ||
3368 | #define APBH_DMA_BURST_SIZE_CH3_MASK (0xC0U) | ||
3369 | #define APBH_DMA_BURST_SIZE_CH3_SHIFT (6U) | ||
3370 | #define APBH_DMA_BURST_SIZE_CH3(x) \ | ||
3371 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH3_SHIFT)) & APBH_DMA_BURST_SIZE_CH3_MASK) | ||
3372 | #define APBH_DMA_BURST_SIZE_CH4_MASK (0x300U) | ||
3373 | #define APBH_DMA_BURST_SIZE_CH4_SHIFT (8U) | ||
3374 | #define APBH_DMA_BURST_SIZE_CH4(x) \ | ||
3375 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH4_SHIFT)) & APBH_DMA_BURST_SIZE_CH4_MASK) | ||
3376 | #define APBH_DMA_BURST_SIZE_CH5_MASK (0xC00U) | ||
3377 | #define APBH_DMA_BURST_SIZE_CH5_SHIFT (10U) | ||
3378 | #define APBH_DMA_BURST_SIZE_CH5(x) \ | ||
3379 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH5_SHIFT)) & APBH_DMA_BURST_SIZE_CH5_MASK) | ||
3380 | #define APBH_DMA_BURST_SIZE_CH6_MASK (0x3000U) | ||
3381 | #define APBH_DMA_BURST_SIZE_CH6_SHIFT (12U) | ||
3382 | #define APBH_DMA_BURST_SIZE_CH6(x) \ | ||
3383 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH6_SHIFT)) & APBH_DMA_BURST_SIZE_CH6_MASK) | ||
3384 | #define APBH_DMA_BURST_SIZE_CH7_MASK (0xC000U) | ||
3385 | #define APBH_DMA_BURST_SIZE_CH7_SHIFT (14U) | ||
3386 | #define APBH_DMA_BURST_SIZE_CH7(x) \ | ||
3387 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH7_SHIFT)) & APBH_DMA_BURST_SIZE_CH7_MASK) | ||
3388 | #define APBH_DMA_BURST_SIZE_CH8_MASK (0x30000U) | ||
3389 | #define APBH_DMA_BURST_SIZE_CH8_SHIFT (16U) | ||
3390 | /*! CH8 | ||
3391 | * 0b00..BURST0 | ||
3392 | * 0b01..BURST4 | ||
3393 | * 0b10..BURST8 | ||
3394 | */ | ||
3395 | #define APBH_DMA_BURST_SIZE_CH8(x) \ | ||
3396 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH8_SHIFT)) & APBH_DMA_BURST_SIZE_CH8_MASK) | ||
3397 | #define APBH_DMA_BURST_SIZE_CH9_MASK (0xC0000U) | ||
3398 | #define APBH_DMA_BURST_SIZE_CH9_SHIFT (18U) | ||
3399 | #define APBH_DMA_BURST_SIZE_CH9(x) \ | ||
3400 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH9_SHIFT)) & APBH_DMA_BURST_SIZE_CH9_MASK) | ||
3401 | #define APBH_DMA_BURST_SIZE_CH10_MASK (0x300000U) | ||
3402 | #define APBH_DMA_BURST_SIZE_CH10_SHIFT (20U) | ||
3403 | #define APBH_DMA_BURST_SIZE_CH10(x) \ | ||
3404 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH10_SHIFT)) & APBH_DMA_BURST_SIZE_CH10_MASK) | ||
3405 | #define APBH_DMA_BURST_SIZE_CH11_MASK (0xC00000U) | ||
3406 | #define APBH_DMA_BURST_SIZE_CH11_SHIFT (22U) | ||
3407 | #define APBH_DMA_BURST_SIZE_CH11(x) \ | ||
3408 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH11_SHIFT)) & APBH_DMA_BURST_SIZE_CH11_MASK) | ||
3409 | #define APBH_DMA_BURST_SIZE_CH12_MASK (0x3000000U) | ||
3410 | #define APBH_DMA_BURST_SIZE_CH12_SHIFT (24U) | ||
3411 | #define APBH_DMA_BURST_SIZE_CH12(x) \ | ||
3412 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH12_SHIFT)) & APBH_DMA_BURST_SIZE_CH12_MASK) | ||
3413 | #define APBH_DMA_BURST_SIZE_CH13_MASK (0xC000000U) | ||
3414 | #define APBH_DMA_BURST_SIZE_CH13_SHIFT (26U) | ||
3415 | #define APBH_DMA_BURST_SIZE_CH13(x) \ | ||
3416 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH13_SHIFT)) & APBH_DMA_BURST_SIZE_CH13_MASK) | ||
3417 | #define APBH_DMA_BURST_SIZE_CH14_MASK (0x30000000U) | ||
3418 | #define APBH_DMA_BURST_SIZE_CH14_SHIFT (28U) | ||
3419 | #define APBH_DMA_BURST_SIZE_CH14(x) \ | ||
3420 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH14_SHIFT)) & APBH_DMA_BURST_SIZE_CH14_MASK) | ||
3421 | #define APBH_DMA_BURST_SIZE_CH15_MASK (0xC0000000U) | ||
3422 | #define APBH_DMA_BURST_SIZE_CH15_SHIFT (30U) | ||
3423 | #define APBH_DMA_BURST_SIZE_CH15(x) \ | ||
3424 | (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH15_SHIFT)) & APBH_DMA_BURST_SIZE_CH15_MASK) | ||
3425 | /*! @} */ | ||
3426 | |||
3427 | /*! @name DEBUG - AHB to APBH DMA Debug Register */ | ||
3428 | /*! @{ */ | ||
3429 | #define APBH_DEBUG_GPMI_ONE_FIFO_MASK (0x1U) | ||
3430 | #define APBH_DEBUG_GPMI_ONE_FIFO_SHIFT (0U) | ||
3431 | #define APBH_DEBUG_GPMI_ONE_FIFO(x) \ | ||
3432 | (((uint32_t)(((uint32_t)(x)) << APBH_DEBUG_GPMI_ONE_FIFO_SHIFT)) & APBH_DEBUG_GPMI_ONE_FIFO_MASK) | ||
3433 | /*! @} */ | ||
3434 | |||
3435 | /*! @name CH_CURCMDAR - APBH DMA Channel n Current Command Address Register */ | ||
3436 | /*! @{ */ | ||
3437 | #define APBH_CH_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU) | ||
3438 | #define APBH_CH_CURCMDAR_CMD_ADDR_SHIFT (0U) | ||
3439 | #define APBH_CH_CURCMDAR_CMD_ADDR(x) \ | ||
3440 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_CURCMDAR_CMD_ADDR_MASK) | ||
3441 | /*! @} */ | ||
3442 | |||
3443 | /* The count of APBH_CH_CURCMDAR */ | ||
3444 | #define APBH_CH_CURCMDAR_COUNT (16U) | ||
3445 | |||
3446 | /*! @name CH_NXTCMDAR - APBH DMA Channel n Next Command Address Register */ | ||
3447 | /*! @{ */ | ||
3448 | #define APBH_CH_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU) | ||
3449 | #define APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT (0U) | ||
3450 | #define APBH_CH_NXTCMDAR_CMD_ADDR(x) \ | ||
3451 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_NXTCMDAR_CMD_ADDR_MASK) | ||
3452 | /*! @} */ | ||
3453 | |||
3454 | /* The count of APBH_CH_NXTCMDAR */ | ||
3455 | #define APBH_CH_NXTCMDAR_COUNT (16U) | ||
3456 | |||
3457 | /*! @name CH_CMD - APBH DMA Channel n Command Register */ | ||
3458 | /*! @{ */ | ||
3459 | #define APBH_CH_CMD_COMMAND_MASK (0x3U) | ||
3460 | #define APBH_CH_CMD_COMMAND_SHIFT (0U) | ||
3461 | /*! COMMAND | ||
3462 | * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer. | ||
3463 | * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified | ||
3464 | * number of bytes. 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for | ||
3465 | * the specified number of bytes. 0b11..Perform any requested PIO word transfers and then perform a conditional branch | ||
3466 | * to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS | ||
3467 | * as a chain pointer if the peripheral sense line is false. | ||
3468 | */ | ||
3469 | #define APBH_CH_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_COMMAND_SHIFT)) & APBH_CH_CMD_COMMAND_MASK) | ||
3470 | #define APBH_CH_CMD_CHAIN_MASK (0x4U) | ||
3471 | #define APBH_CH_CMD_CHAIN_SHIFT (2U) | ||
3472 | #define APBH_CH_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CHAIN_SHIFT)) & APBH_CH_CMD_CHAIN_MASK) | ||
3473 | #define APBH_CH_CMD_IRQONCMPLT_MASK (0x8U) | ||
3474 | #define APBH_CH_CMD_IRQONCMPLT_SHIFT (3U) | ||
3475 | #define APBH_CH_CMD_IRQONCMPLT(x) \ | ||
3476 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_IRQONCMPLT_SHIFT)) & APBH_CH_CMD_IRQONCMPLT_MASK) | ||
3477 | #define APBH_CH_CMD_NANDLOCK_MASK (0x10U) | ||
3478 | #define APBH_CH_CMD_NANDLOCK_SHIFT (4U) | ||
3479 | #define APBH_CH_CMD_NANDLOCK(x) \ | ||
3480 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDLOCK_SHIFT)) & APBH_CH_CMD_NANDLOCK_MASK) | ||
3481 | #define APBH_CH_CMD_NANDWAIT4READY_MASK (0x20U) | ||
3482 | #define APBH_CH_CMD_NANDWAIT4READY_SHIFT (5U) | ||
3483 | #define APBH_CH_CMD_NANDWAIT4READY(x) \ | ||
3484 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH_CMD_NANDWAIT4READY_MASK) | ||
3485 | #define APBH_CH_CMD_SEMAPHORE_MASK (0x40U) | ||
3486 | #define APBH_CH_CMD_SEMAPHORE_SHIFT (6U) | ||
3487 | #define APBH_CH_CMD_SEMAPHORE(x) \ | ||
3488 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_SEMAPHORE_SHIFT)) & APBH_CH_CMD_SEMAPHORE_MASK) | ||
3489 | #define APBH_CH_CMD_WAIT4ENDCMD_MASK (0x80U) | ||
3490 | #define APBH_CH_CMD_WAIT4ENDCMD_SHIFT (7U) | ||
3491 | #define APBH_CH_CMD_WAIT4ENDCMD(x) \ | ||
3492 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH_CMD_WAIT4ENDCMD_MASK) | ||
3493 | #define APBH_CH_CMD_HALTONTERMINATE_MASK (0x100U) | ||
3494 | #define APBH_CH_CMD_HALTONTERMINATE_SHIFT (8U) | ||
3495 | #define APBH_CH_CMD_HALTONTERMINATE(x) \ | ||
3496 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH_CMD_HALTONTERMINATE_MASK) | ||
3497 | #define APBH_CH_CMD_CMDWORDS_MASK (0xF000U) | ||
3498 | #define APBH_CH_CMD_CMDWORDS_SHIFT (12U) | ||
3499 | #define APBH_CH_CMD_CMDWORDS(x) \ | ||
3500 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CMDWORDS_SHIFT)) & APBH_CH_CMD_CMDWORDS_MASK) | ||
3501 | #define APBH_CH_CMD_XFER_COUNT_MASK (0xFFFF0000U) | ||
3502 | #define APBH_CH_CMD_XFER_COUNT_SHIFT (16U) | ||
3503 | #define APBH_CH_CMD_XFER_COUNT(x) \ | ||
3504 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_XFER_COUNT_SHIFT)) & APBH_CH_CMD_XFER_COUNT_MASK) | ||
3505 | /*! @} */ | ||
3506 | |||
3507 | /* The count of APBH_CH_CMD */ | ||
3508 | #define APBH_CH_CMD_COUNT (16U) | ||
3509 | |||
3510 | /*! @name CH_BAR - APBH DMA Channel n Buffer Address Register */ | ||
3511 | /*! @{ */ | ||
3512 | #define APBH_CH_BAR_ADDRESS_MASK (0xFFFFFFFFU) | ||
3513 | #define APBH_CH_BAR_ADDRESS_SHIFT (0U) | ||
3514 | #define APBH_CH_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_BAR_ADDRESS_SHIFT)) & APBH_CH_BAR_ADDRESS_MASK) | ||
3515 | /*! @} */ | ||
3516 | |||
3517 | /* The count of APBH_CH_BAR */ | ||
3518 | #define APBH_CH_BAR_COUNT (16U) | ||
3519 | |||
3520 | /*! @name CH_SEMA - APBH DMA Channel n Semaphore Register */ | ||
3521 | /*! @{ */ | ||
3522 | #define APBH_CH_SEMA_INCREMENT_SEMA_MASK (0xFFU) | ||
3523 | #define APBH_CH_SEMA_INCREMENT_SEMA_SHIFT (0U) | ||
3524 | #define APBH_CH_SEMA_INCREMENT_SEMA(x) \ | ||
3525 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH_SEMA_INCREMENT_SEMA_MASK) | ||
3526 | #define APBH_CH_SEMA_PHORE_MASK (0xFF0000U) | ||
3527 | #define APBH_CH_SEMA_PHORE_SHIFT (16U) | ||
3528 | #define APBH_CH_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_PHORE_SHIFT)) & APBH_CH_SEMA_PHORE_MASK) | ||
3529 | /*! @} */ | ||
3530 | |||
3531 | /* The count of APBH_CH_SEMA */ | ||
3532 | #define APBH_CH_SEMA_COUNT (16U) | ||
3533 | |||
3534 | /*! @name CH_DEBUG1 - AHB to APBH DMA Channel n Debug Information */ | ||
3535 | /*! @{ */ | ||
3536 | #define APBH_CH_DEBUG1_STATEMACHINE_MASK (0x1FU) | ||
3537 | #define APBH_CH_DEBUG1_STATEMACHINE_SHIFT (0U) | ||
3538 | /*! STATEMACHINE | ||
3539 | * 0b00000..This is the idle state of the DMA state machine. | ||
3540 | * 0b00001..State in which the DMA is waiting to receive the first word of a command. | ||
3541 | * 0b00010..State in which the DMA is waiting to receive the third word of a command. | ||
3542 | * 0b00011..State in which the DMA is waiting to receive the second word of a command. | ||
3543 | * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly. | ||
3544 | * 0b00101..The state machine waits in this state for the PIO APB cycles to complete. | ||
3545 | * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the | ||
3546 | * PIO words when PIO count is greater than 1. | ||
3547 | * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers. | ||
3548 | * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on | ||
3549 | * the APB. 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to | ||
3550 | * complete. 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter | ||
3551 | * accepts the request from this channel. 0b01101..During DMA Read transfers, the state machine waits in this state | ||
3552 | * until the AHB master arbiter accepts the request from this channel. 0b01110..Upon completion of the DMA transfers, | ||
3553 | * this state checks the value of the Chain bit and branches accordingly. 0b01111..The state machine goes to this state | ||
3554 | * after the DMA transfers are complete, and determines what step to take next. 0b10100..When a terminate signal is set, | ||
3555 | * the state machine enters this state until the current AHB transfer is completed. 0b10101..When the Wait for Command | ||
3556 | * End bit is set, the state machine enters this state until the DMA device indicates that the command is complete. | ||
3557 | * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write | ||
3558 | * to the AHB memory space. 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters | ||
3559 | * this state and effectively halts. A channel reset is required to exit this state 0b11110..If the Chain bit is a 0, | ||
3560 | * the state machine enters this state and effectively halts. 0b11111..When the NAND Wait for Ready bit is set, the | ||
3561 | * state machine enters this state until the GPMI device indicates that the external device is ready. | ||
3562 | */ | ||
3563 | #define APBH_CH_DEBUG1_STATEMACHINE(x) \ | ||
3564 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH_DEBUG1_STATEMACHINE_MASK) | ||
3565 | #define APBH_CH_DEBUG1_RSVD1_MASK (0xFFFE0U) | ||
3566 | #define APBH_CH_DEBUG1_RSVD1_SHIFT (5U) | ||
3567 | #define APBH_CH_DEBUG1_RSVD1(x) \ | ||
3568 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RSVD1_SHIFT)) & APBH_CH_DEBUG1_RSVD1_MASK) | ||
3569 | #define APBH_CH_DEBUG1_WR_FIFO_FULL_MASK (0x100000U) | ||
3570 | #define APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT (20U) | ||
3571 | #define APBH_CH_DEBUG1_WR_FIFO_FULL(x) \ | ||
3572 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_FULL_MASK) | ||
3573 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U) | ||
3574 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U) | ||
3575 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY(x) \ | ||
3576 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK) | ||
3577 | #define APBH_CH_DEBUG1_RD_FIFO_FULL_MASK (0x400000U) | ||
3578 | #define APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT (22U) | ||
3579 | #define APBH_CH_DEBUG1_RD_FIFO_FULL(x) \ | ||
3580 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_FULL_MASK) | ||
3581 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U) | ||
3582 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U) | ||
3583 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY(x) \ | ||
3584 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK) | ||
3585 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U) | ||
3586 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U) | ||
3587 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID(x) \ | ||
3588 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK) | ||
3589 | #define APBH_CH_DEBUG1_LOCK_MASK (0x2000000U) | ||
3590 | #define APBH_CH_DEBUG1_LOCK_SHIFT (25U) | ||
3591 | #define APBH_CH_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_LOCK_SHIFT)) & APBH_CH_DEBUG1_LOCK_MASK) | ||
3592 | #define APBH_CH_DEBUG1_READY_MASK (0x4000000U) | ||
3593 | #define APBH_CH_DEBUG1_READY_SHIFT (26U) | ||
3594 | #define APBH_CH_DEBUG1_READY(x) \ | ||
3595 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_READY_SHIFT)) & APBH_CH_DEBUG1_READY_MASK) | ||
3596 | #define APBH_CH_DEBUG1_SENSE_MASK (0x8000000U) | ||
3597 | #define APBH_CH_DEBUG1_SENSE_SHIFT (27U) | ||
3598 | #define APBH_CH_DEBUG1_SENSE(x) \ | ||
3599 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_SENSE_SHIFT)) & APBH_CH_DEBUG1_SENSE_MASK) | ||
3600 | #define APBH_CH_DEBUG1_END_MASK (0x10000000U) | ||
3601 | #define APBH_CH_DEBUG1_END_SHIFT (28U) | ||
3602 | #define APBH_CH_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_END_SHIFT)) & APBH_CH_DEBUG1_END_MASK) | ||
3603 | #define APBH_CH_DEBUG1_KICK_MASK (0x20000000U) | ||
3604 | #define APBH_CH_DEBUG1_KICK_SHIFT (29U) | ||
3605 | #define APBH_CH_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_KICK_SHIFT)) & APBH_CH_DEBUG1_KICK_MASK) | ||
3606 | #define APBH_CH_DEBUG1_BURST_MASK (0x40000000U) | ||
3607 | #define APBH_CH_DEBUG1_BURST_SHIFT (30U) | ||
3608 | #define APBH_CH_DEBUG1_BURST(x) \ | ||
3609 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_BURST_SHIFT)) & APBH_CH_DEBUG1_BURST_MASK) | ||
3610 | #define APBH_CH_DEBUG1_REQ_MASK (0x80000000U) | ||
3611 | #define APBH_CH_DEBUG1_REQ_SHIFT (31U) | ||
3612 | #define APBH_CH_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_REQ_SHIFT)) & APBH_CH_DEBUG1_REQ_MASK) | ||
3613 | /*! @} */ | ||
3614 | |||
3615 | /* The count of APBH_CH_DEBUG1 */ | ||
3616 | #define APBH_CH_DEBUG1_COUNT (16U) | ||
3617 | |||
3618 | /*! @name CH_DEBUG2 - AHB to APBH DMA Channel n Debug Information */ | ||
3619 | /*! @{ */ | ||
3620 | #define APBH_CH_DEBUG2_AHB_BYTES_MASK (0xFFFFU) | ||
3621 | #define APBH_CH_DEBUG2_AHB_BYTES_SHIFT (0U) | ||
3622 | #define APBH_CH_DEBUG2_AHB_BYTES(x) \ | ||
3623 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH_DEBUG2_AHB_BYTES_MASK) | ||
3624 | #define APBH_CH_DEBUG2_APB_BYTES_MASK (0xFFFF0000U) | ||
3625 | #define APBH_CH_DEBUG2_APB_BYTES_SHIFT (16U) | ||
3626 | #define APBH_CH_DEBUG2_APB_BYTES(x) \ | ||
3627 | (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH_DEBUG2_APB_BYTES_MASK) | ||
3628 | /*! @} */ | ||
3629 | |||
3630 | /* The count of APBH_CH_DEBUG2 */ | ||
3631 | #define APBH_CH_DEBUG2_COUNT (16U) | ||
3632 | |||
3633 | /*! @name VERSION - APBH Bridge Version Register */ | ||
3634 | /*! @{ */ | ||
3635 | #define APBH_VERSION_STEP_MASK (0xFFFFU) | ||
3636 | #define APBH_VERSION_STEP_SHIFT (0U) | ||
3637 | #define APBH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_STEP_SHIFT)) & APBH_VERSION_STEP_MASK) | ||
3638 | #define APBH_VERSION_MINOR_MASK (0xFF0000U) | ||
3639 | #define APBH_VERSION_MINOR_SHIFT (16U) | ||
3640 | #define APBH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MINOR_SHIFT)) & APBH_VERSION_MINOR_MASK) | ||
3641 | #define APBH_VERSION_MAJOR_MASK (0xFF000000U) | ||
3642 | #define APBH_VERSION_MAJOR_SHIFT (24U) | ||
3643 | #define APBH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MAJOR_SHIFT)) & APBH_VERSION_MAJOR_MASK) | ||
3644 | /*! @} */ | ||
3645 | |||
3646 | /*! | ||
3647 | * @} | ||
3648 | */ /* end of group APBH_Register_Masks */ | ||
3649 | |||
3650 | /* APBH - Peripheral instance base addresses */ | ||
3651 | /** Peripheral APBH base address */ | ||
3652 | #define APBH_BASE (0x33000000u) | ||
3653 | /** Peripheral APBH base pointer */ | ||
3654 | #define APBH ((APBH_Type *)APBH_BASE) | ||
3655 | /** Array initializer of APBH peripheral base addresses */ | ||
3656 | #define APBH_BASE_ADDRS \ | ||
3657 | { \ | ||
3658 | APBH_BASE \ | ||
3659 | } | ||
3660 | /** Array initializer of APBH peripheral base pointers */ | ||
3661 | #define APBH_BASE_PTRS \ | ||
3662 | { \ | ||
3663 | APBH \ | ||
3664 | } | ||
3665 | /** Interrupt vectors for the APBH peripheral type */ | ||
3666 | #define APBH_IRQS \ | ||
3667 | { \ | ||
3668 | APBHDMA_IRQn \ | ||
3669 | } | ||
3670 | |||
3671 | /*! | ||
3672 | * @} | ||
3673 | */ /* end of group APBH_Peripheral_Access_Layer */ | ||
3674 | |||
3675 | /* ---------------------------------------------------------------------------- | ||
3676 | -- ASRC Peripheral Access Layer | ||
3677 | ---------------------------------------------------------------------------- */ | ||
3678 | |||
3679 | /*! | ||
3680 | * @addtogroup ASRC_Peripheral_Access_Layer ASRC Peripheral Access Layer | ||
3681 | * @{ | ||
3682 | */ | ||
3683 | |||
3684 | /** ASRC - Register Layout Typedef */ | ||
3685 | typedef struct | ||
3686 | { | ||
3687 | __O uint32_t WRFIFO[4]; /**< ASRC Input Write FIFO, array offset: 0x0, array step: 0x4 */ | ||
3688 | __I uint32_t RDFIFO[4]; /**< ASRC Output Read FIFO, array offset: 0x10, array step: 0x4 */ | ||
3689 | __IO uint32_t CTX_CTRL[4]; /**< ASRC Context Control, array offset: 0x20, array step: 0x4 */ | ||
3690 | __IO uint32_t CTX_CTRL_EXT1[4]; /**< ASRC Context Control Extended 1, array offset: 0x30, array step: 0x4 */ | ||
3691 | __IO uint32_t CTX_CTRL_EXT2[4]; /**< ASRC Context Control Extended 2, array offset: 0x40, array step: 0x4 */ | ||
3692 | __IO uint32_t CTRL_IN_ACCESS[4]; /**< ASRC Control Input Access, array offset: 0x50, array step: 0x4 */ | ||
3693 | __IO uint32_t PROC_CTRL_SLOT0_R0[4]; /**< ASRC Datapath Processor Control Slot0 Register0, array offset: 0x60, array | ||
3694 | step: 0x4 */ | ||
3695 | __IO uint32_t PROC_CTRL_SLOT0_R1[4]; /**< ASRC Datapath Processor Control Slot0 Register1, array offset: 0x70, array | ||
3696 | step: 0x4 */ | ||
3697 | __IO uint32_t PROC_CTRL_SLOT0_R2[4]; /**< ASRC Datapath Processor Control Slot0 Register2, array offset: 0x80, array | ||
3698 | step: 0x4 */ | ||
3699 | __IO uint32_t PROC_CTRL_SLOT0_R3[4]; /**< ASRC Datapath Processor Control Slot0 Register3, array offset: 0x90, array | ||
3700 | step: 0x4 */ | ||
3701 | __IO uint32_t PROC_CTRL_SLOT1_R0[4]; /**< ASRC Datapath Processor Control Slot1 Register0, array offset: 0xA0, array | ||
3702 | step: 0x4 */ | ||
3703 | __IO uint32_t PROC_CTRL_SLOT1_R1[4]; /**< ASRC Datapath Processor Control SLOT1 Register1, array offset: 0xB0, array | ||
3704 | step: 0x4 */ | ||
3705 | __IO uint32_t PROC_CTRL_SLOT1_R2[4]; /**< ASRC Datapath Processor Control SLOT1 Register2, array offset: 0xC0, array | ||
3706 | step: 0x4 */ | ||
3707 | __IO uint32_t PROC_CTRL_SLOT1_R3[4]; /**< ASRC Datapath Processor Control SLOT1 Register3, array offset: 0xD0, array | ||
3708 | step: 0x4 */ | ||
3709 | __IO uint32_t CTX_OUT_CTRL[4]; /**< ASRC Context Output Control, array offset: 0xE0, array step: 0x4 */ | ||
3710 | __IO uint32_t CTRL_OUT_ACCESS[4]; /**< ASRC Control Output Access, array offset: 0xF0, array step: 0x4 */ | ||
3711 | __I uint32_t SAMPLE_FIFO_STATUS[4]; /**< ASRC Sample FIFO Status, array offset: 0x100, array step: 0x4 */ | ||
3712 | struct | ||
3713 | { /* offset: 0x110, array step: 0x8 */ | ||
3714 | __IO uint32_t RS_RATIO_LOW; /**< ASRC Resampling Ratio Low, array offset: 0x110, array step: 0x8 */ | ||
3715 | __IO uint32_t RS_RATIO_HIGH; /**< ASRC Resampling Ratio High, array offset: 0x114, array step: 0x8 */ | ||
3716 | } RS_RATIO_LOW[4]; | ||
3717 | __IO uint32_t RS_UPDATE_CTRL[4]; /**< ASRC Resampling Ratio Update Control, array offset: 0x130, array step: 0x4 */ | ||
3718 | __IO uint32_t RS_UPDATE_RATE[4]; /**< ASRC Resampling Ratio Update Rate, array offset: 0x140, array step: 0x4 */ | ||
3719 | __IO uint32_t RS_CT_LOW; /**< ASRC Resampling Center Tap Coefficient Low, offset: 0x150 */ | ||
3720 | __IO uint32_t RS_CT_HIGH; /**< ASRC Resampling Center Tap Coefficient High, offset: 0x154 */ | ||
3721 | uint8_t RESERVED_0[8]; | ||
3722 | __IO uint32_t PRE_COEFF_FIFO[4]; /**< ASRC Prefilter Coefficient FIFO, array offset: 0x160, array step: 0x4 */ | ||
3723 | __O uint32_t CTX_RS_COEFF_MEM; /**< ASRC Context Resampling Coefficient Memory, offset: 0x170 */ | ||
3724 | __IO uint32_t CTX_RS_COEFF_CTRL; /**< ASRC Context Resampling Coefficient Control, offset: 0x174 */ | ||
3725 | __IO uint32_t IRQ_CTRL; /**< ASRC Interrupt Control, offset: 0x178 */ | ||
3726 | __IO uint32_t IRQ_FLAGS; /**< ASRC Interrupt Status Flags, offset: 0x17C */ | ||
3727 | __IO uint32_t CHANNEL_STATUS_0[4]; /**< ASRC Channel Status 0, array offset: 0x180, array step: 0x4 */ | ||
3728 | __IO uint32_t CHANNEL_STATUS_1[4]; /**< ASRC Channel Status 1, array offset: 0x190, array step: 0x4 */ | ||
3729 | __IO uint32_t CHANNEL_STATUS_2[4]; /**< ASRC Channel Status 2, array offset: 0x1A0, array step: 0x4 */ | ||
3730 | __IO uint32_t CHANNEL_STATUS_3[4]; /**< ASRC Channel Status 3, array offset: 0x1B0, array step: 0x4 */ | ||
3731 | __IO uint32_t CHANNEL_STATUS_4[4]; /**< ASRC Channel Status 4, array offset: 0x1C0, array step: 0x4 */ | ||
3732 | __IO uint32_t CHANNEL_STATUS_5[4]; /**< ASRC Channel Status 5, array offset: 0x1D0, array step: 0x4 */ | ||
3733 | } ASRC_Type; | ||
3734 | |||
3735 | /* ---------------------------------------------------------------------------- | ||
3736 | -- ASRC Register Masks | ||
3737 | ---------------------------------------------------------------------------- */ | ||
3738 | |||
3739 | /*! | ||
3740 | * @addtogroup ASRC_Register_Masks ASRC Register Masks | ||
3741 | * @{ | ||
3742 | */ | ||
3743 | |||
3744 | /*! @name WRFIFO - ASRC Input Write FIFO */ | ||
3745 | /*! @{ */ | ||
3746 | #define ASRC_WRFIFO_CTX_WR_DATA_MASK (0xFFFFFFFFU) | ||
3747 | #define ASRC_WRFIFO_CTX_WR_DATA_SHIFT (0U) | ||
3748 | #define ASRC_WRFIFO_CTX_WR_DATA(x) \ | ||
3749 | (((uint32_t)(((uint32_t)(x)) << ASRC_WRFIFO_CTX_WR_DATA_SHIFT)) & ASRC_WRFIFO_CTX_WR_DATA_MASK) | ||
3750 | /*! @} */ | ||
3751 | |||
3752 | /* The count of ASRC_WRFIFO */ | ||
3753 | #define ASRC_WRFIFO_COUNT (4U) | ||
3754 | |||
3755 | /*! @name RDFIFO - ASRC Output Read FIFO */ | ||
3756 | /*! @{ */ | ||
3757 | #define ASRC_RDFIFO_CTX_RD_DATA_MASK (0xFFFFFFFFU) | ||
3758 | #define ASRC_RDFIFO_CTX_RD_DATA_SHIFT (0U) | ||
3759 | #define ASRC_RDFIFO_CTX_RD_DATA(x) \ | ||
3760 | (((uint32_t)(((uint32_t)(x)) << ASRC_RDFIFO_CTX_RD_DATA_SHIFT)) & ASRC_RDFIFO_CTX_RD_DATA_MASK) | ||
3761 | /*! @} */ | ||
3762 | |||
3763 | /* The count of ASRC_RDFIFO */ | ||
3764 | #define ASRC_RDFIFO_COUNT (4U) | ||
3765 | |||
3766 | /*! @name CTX_CTRL - ASRC Context Control */ | ||
3767 | /*! @{ */ | ||
3768 | #define ASRC_CTX_CTRL_NUM_CH_EN_MASK (0x1FU) | ||
3769 | #define ASRC_CTX_CTRL_NUM_CH_EN_SHIFT (0U) | ||
3770 | #define ASRC_CTX_CTRL_NUM_CH_EN(x) \ | ||
3771 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_NUM_CH_EN_SHIFT)) & ASRC_CTX_CTRL_NUM_CH_EN_MASK) | ||
3772 | #define ASRC_CTX_CTRL_SIGN_IN_MASK (0x40U) | ||
3773 | #define ASRC_CTX_CTRL_SIGN_IN_SHIFT (6U) | ||
3774 | /*! SIGN_IN - Input Data Sign | ||
3775 | * 0b0..Signed Format | ||
3776 | * 0b1..Unsigned Format | ||
3777 | */ | ||
3778 | #define ASRC_CTX_CTRL_SIGN_IN(x) \ | ||
3779 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_SIGN_IN_SHIFT)) & ASRC_CTX_CTRL_SIGN_IN_MASK) | ||
3780 | #define ASRC_CTX_CTRL_FLOAT_FMT_MASK (0x80U) | ||
3781 | #define ASRC_CTX_CTRL_FLOAT_FMT_SHIFT (7U) | ||
3782 | /*! FLOAT_FMT - Context Input Floating Point Format | ||
3783 | * 0b0..Integer Format | ||
3784 | * 0b1..Single Precision Floating Point Format | ||
3785 | */ | ||
3786 | #define ASRC_CTX_CTRL_FLOAT_FMT(x) \ | ||
3787 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_FLOAT_FMT_SHIFT)) & ASRC_CTX_CTRL_FLOAT_FMT_MASK) | ||
3788 | #define ASRC_CTX_CTRL_BITS_PER_SAMPLE_MASK (0x300U) | ||
3789 | #define ASRC_CTX_CTRL_BITS_PER_SAMPLE_SHIFT (8U) | ||
3790 | /*! BITS_PER_SAMPLE - Number of Bits Per Audio Sample | ||
3791 | * 0b00..16-bits Per Sample | ||
3792 | * 0b01..20-bits Per Sample | ||
3793 | * 0b10..24-bits Per Sample | ||
3794 | * 0b11..32-bits Per Sample | ||
3795 | */ | ||
3796 | #define ASRC_CTX_CTRL_BITS_PER_SAMPLE(x) \ | ||
3797 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_BITS_PER_SAMPLE_SHIFT)) & ASRC_CTX_CTRL_BITS_PER_SAMPLE_MASK) | ||
3798 | #define ASRC_CTX_CTRL_BIT_REV_MASK (0x400U) | ||
3799 | #define ASRC_CTX_CTRL_BIT_REV_SHIFT (10U) | ||
3800 | /*! BIT_REV - Sample Bit Reversal | ||
3801 | * 0b0..Keep Input Ordering | ||
3802 | * 0b1..Reverse Bit Ordering | ||
3803 | */ | ||
3804 | #define ASRC_CTX_CTRL_BIT_REV(x) \ | ||
3805 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_BIT_REV_SHIFT)) & ASRC_CTX_CTRL_BIT_REV_MASK) | ||
3806 | #define ASRC_CTX_CTRL_SAMPLE_POSITION_MASK (0xF800U) | ||
3807 | #define ASRC_CTX_CTRL_SAMPLE_POSITION_SHIFT (11U) | ||
3808 | #define ASRC_CTX_CTRL_SAMPLE_POSITION(x) \ | ||
3809 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_SAMPLE_POSITION_SHIFT)) & ASRC_CTX_CTRL_SAMPLE_POSITION_MASK) | ||
3810 | #define ASRC_CTX_CTRL_FIFO_WTMK_MASK (0x7F0000U) | ||
3811 | #define ASRC_CTX_CTRL_FIFO_WTMK_SHIFT (16U) | ||
3812 | #define ASRC_CTX_CTRL_FIFO_WTMK(x) \ | ||
3813 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_FIFO_WTMK_SHIFT)) & ASRC_CTX_CTRL_FIFO_WTMK_MASK) | ||
3814 | #define ASRC_CTX_CTRL_FWMDE_MASK (0x10000000U) | ||
3815 | #define ASRC_CTX_CTRL_FWMDE_SHIFT (28U) | ||
3816 | /*! FWMDE - FIFO Watermark DMA Enable | ||
3817 | * 0b0..Input DMA Requests Not Enabled for This Context | ||
3818 | * 0b1..Input DMA Requests Enabled for This Context | ||
3819 | */ | ||
3820 | #define ASRC_CTX_CTRL_FWMDE(x) (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_FWMDE_SHIFT)) & ASRC_CTX_CTRL_FWMDE_MASK) | ||
3821 | #define ASRC_CTX_CTRL_RUN_STOP_MASK (0x20000000U) | ||
3822 | #define ASRC_CTX_CTRL_RUN_STOP_SHIFT (29U) | ||
3823 | #define ASRC_CTX_CTRL_RUN_STOP(x) \ | ||
3824 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_RUN_STOP_SHIFT)) & ASRC_CTX_CTRL_RUN_STOP_MASK) | ||
3825 | #define ASRC_CTX_CTRL_RUN_EN_MASK (0x80000000U) | ||
3826 | #define ASRC_CTX_CTRL_RUN_EN_SHIFT (31U) | ||
3827 | #define ASRC_CTX_CTRL_RUN_EN(x) \ | ||
3828 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_RUN_EN_SHIFT)) & ASRC_CTX_CTRL_RUN_EN_MASK) | ||
3829 | /*! @} */ | ||
3830 | |||
3831 | /* The count of ASRC_CTX_CTRL */ | ||
3832 | #define ASRC_CTX_CTRL_COUNT (4U) | ||
3833 | |||
3834 | /*! @name CTX_CTRL_EXT1 - ASRC Context Control Extended 1 */ | ||
3835 | /*! @{ */ | ||
3836 | #define ASRC_CTX_CTRL_EXT1_PF_INIT_MODE_MASK (0x3U) | ||
3837 | #define ASRC_CTX_CTRL_EXT1_PF_INIT_MODE_SHIFT (0U) | ||
3838 | /*! PF_INIT_MODE - Prefilter Initialization Mode | ||
3839 | * 0b00..Do not pre-fill any prefilter taps. The first sample written to the ASRC corresponds to the highest index | ||
3840 | * prefilter filter tap. 0b01..Replicate the first sample to fill the right half of the prefilter. 0b10..Zero fill the | ||
3841 | * right half of the prefilter. 0b11..N/A | ||
3842 | */ | ||
3843 | #define ASRC_CTX_CTRL_EXT1_PF_INIT_MODE(x) \ | ||
3844 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_INIT_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_PF_INIT_MODE_MASK) | ||
3845 | #define ASRC_CTX_CTRL_EXT1_RS_INIT_MODE_MASK (0xCU) | ||
3846 | #define ASRC_CTX_CTRL_EXT1_RS_INIT_MODE_SHIFT (2U) | ||
3847 | /*! RS_INIT_MODE - Resampler Initialization Mode | ||
3848 | * 0b00..Do not pre-fill any resampler taps. The first sample output from the prefilter corresponds to the highest | ||
3849 | * index resampling filter tap. 0b01..Replicate the first prefilter output sample to fill the right half of the | ||
3850 | * resampler. 0b10..Fill the right half of the re-sampler with zeros. 0b11..N/A | ||
3851 | */ | ||
3852 | #define ASRC_CTX_CTRL_EXT1_RS_INIT_MODE(x) \ | ||
3853 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_RS_INIT_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_RS_INIT_MODE_MASK) | ||
3854 | #define ASRC_CTX_CTRL_EXT1_PF_STOP_MODE_MASK (0x10U) | ||
3855 | #define ASRC_CTX_CTRL_EXT1_PF_STOP_MODE_SHIFT (4U) | ||
3856 | /*! PF_STOP_MODE - Pre-Filter Stop Mode | ||
3857 | * 0b0..Replicate the last sample input to the ASRC_WRFIFO for the left-half of the pre-filter on RUN_STOP. | ||
3858 | * 0b1..Zero-Fill the left-half of the pre-filter on RUN_STOP. | ||
3859 | */ | ||
3860 | #define ASRC_CTX_CTRL_EXT1_PF_STOP_MODE(x) \ | ||
3861 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_STOP_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_PF_STOP_MODE_MASK) | ||
3862 | #define ASRC_CTX_CTRL_EXT1_RS_STOP_MODE_MASK (0x20U) | ||
3863 | #define ASRC_CTX_CTRL_EXT1_RS_STOP_MODE_SHIFT (5U) | ||
3864 | /*! RS_STOP_MODE - Resampler Stop Mode | ||
3865 | * 0b0..Replicate the final prefilter output for the left-half of the resampler on RUN_STOP. | ||
3866 | * 0b1..Zero-Fill the left-half of the resampler on RUN_STOP. | ||
3867 | */ | ||
3868 | #define ASRC_CTX_CTRL_EXT1_RS_STOP_MODE(x) \ | ||
3869 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_RS_STOP_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_RS_STOP_MODE_MASK) | ||
3870 | #define ASRC_CTX_CTRL_EXT1_PF_BYPASS_MODE_MASK (0x40U) | ||
3871 | #define ASRC_CTX_CTRL_EXT1_PF_BYPASS_MODE_SHIFT (6U) | ||
3872 | /*! PF_BYPASS_MODE - Prefilter Bypass Mode | ||
3873 | * 0b0..Run the prefilter in normal operation. | ||
3874 | * 0b1..Run the prefilter in bypass mode. | ||
3875 | */ | ||
3876 | #define ASRC_CTX_CTRL_EXT1_PF_BYPASS_MODE(x) \ | ||
3877 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_BYPASS_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_PF_BYPASS_MODE_MASK) | ||
3878 | #define ASRC_CTX_CTRL_EXT1_RS_BYPASS_MODE_MASK (0x80U) | ||
3879 | #define ASRC_CTX_CTRL_EXT1_RS_BYPASS_MODE_SHIFT (7U) | ||
3880 | /*! RS_BYPASS_MODE - Resampler Bypass Mode | ||
3881 | * 0b0..Run the resampler in normal operation. | ||
3882 | * 0b1..Run the resampler in bypass mode. | ||
3883 | */ | ||
3884 | #define ASRC_CTX_CTRL_EXT1_RS_BYPASS_MODE(x) \ | ||
3885 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_RS_BYPASS_MODE_SHIFT)) & ASRC_CTX_CTRL_EXT1_RS_BYPASS_MODE_MASK) | ||
3886 | #define ASRC_CTX_CTRL_EXT1_PF_TWO_STAGE_EN_MASK (0x100U) | ||
3887 | #define ASRC_CTX_CTRL_EXT1_PF_TWO_STAGE_EN_SHIFT (8U) | ||
3888 | /*! PF_TWO_STAGE_EN - Prefilter Two-Stage Enable | ||
3889 | * 0b0..The pre-filter will run in single stage mode (ST1 only) | ||
3890 | * 0b1..The pre-filter will run in two stage mode (ST1 and ST2) | ||
3891 | */ | ||
3892 | #define ASRC_CTX_CTRL_EXT1_PF_TWO_STAGE_EN(x) \ | ||
3893 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_TWO_STAGE_EN_SHIFT)) & \ | ||
3894 | ASRC_CTX_CTRL_EXT1_PF_TWO_STAGE_EN_MASK) | ||
3895 | #define ASRC_CTX_CTRL_EXT1_PF_ST1_WB_FLOAT_MASK (0x200U) | ||
3896 | #define ASRC_CTX_CTRL_EXT1_PF_ST1_WB_FLOAT_SHIFT (9U) | ||
3897 | /*! PF_ST1_WB_FLOAT - Prefilter Stage1 Writeback Floating Point | ||
3898 | * 0b0..The pre-filter stage1 results are stored in 32-bit integer format. | ||
3899 | * 0b1..The pre-filter stage1 results are stored in 32-bit floating point format. | ||
3900 | */ | ||
3901 | #define ASRC_CTX_CTRL_EXT1_PF_ST1_WB_FLOAT(x) \ | ||
3902 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_ST1_WB_FLOAT_SHIFT)) & \ | ||
3903 | ASRC_CTX_CTRL_EXT1_PF_ST1_WB_FLOAT_MASK) | ||
3904 | #define ASRC_CTX_CTRL_EXT1_PF_EXPANSION_FACTOR_MASK (0xFF0000U) | ||
3905 | #define ASRC_CTX_CTRL_EXT1_PF_EXPANSION_FACTOR_SHIFT (16U) | ||
3906 | #define ASRC_CTX_CTRL_EXT1_PF_EXPANSION_FACTOR(x) \ | ||
3907 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_EXPANSION_FACTOR_SHIFT)) & \ | ||
3908 | ASRC_CTX_CTRL_EXT1_PF_EXPANSION_FACTOR_MASK) | ||
3909 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_MEM_RST_MASK (0x1000000U) | ||
3910 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_MEM_RST_SHIFT (24U) | ||
3911 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_MEM_RST(x) \ | ||
3912 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_COEFF_MEM_RST_SHIFT)) & \ | ||
3913 | ASRC_CTX_CTRL_EXT1_PF_COEFF_MEM_RST_MASK) | ||
3914 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_STAGE_WR_MASK (0x2000000U) | ||
3915 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_STAGE_WR_SHIFT (25U) | ||
3916 | #define ASRC_CTX_CTRL_EXT1_PF_COEFF_STAGE_WR(x) \ | ||
3917 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT1_PF_COEFF_STAGE_WR_SHIFT)) & \ | ||
3918 | ASRC_CTX_CTRL_EXT1_PF_COEFF_STAGE_WR_MASK) | ||
3919 | /*! @} */ | ||
3920 | |||
3921 | /* The count of ASRC_CTX_CTRL_EXT1 */ | ||
3922 | #define ASRC_CTX_CTRL_EXT1_COUNT (4U) | ||
3923 | |||
3924 | /*! @name CTX_CTRL_EXT2 - ASRC Context Control Extended 2 */ | ||
3925 | /*! @{ */ | ||
3926 | #define ASRC_CTX_CTRL_EXT2_ST1_NUM_TAPS_MASK (0x1FFU) | ||
3927 | #define ASRC_CTX_CTRL_EXT2_ST1_NUM_TAPS_SHIFT (0U) | ||
3928 | #define ASRC_CTX_CTRL_EXT2_ST1_NUM_TAPS(x) \ | ||
3929 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT2_ST1_NUM_TAPS_SHIFT)) & ASRC_CTX_CTRL_EXT2_ST1_NUM_TAPS_MASK) | ||
3930 | #define ASRC_CTX_CTRL_EXT2_ST2_NUM_TAPS_MASK (0x1FF0000U) | ||
3931 | #define ASRC_CTX_CTRL_EXT2_ST2_NUM_TAPS_SHIFT (16U) | ||
3932 | #define ASRC_CTX_CTRL_EXT2_ST2_NUM_TAPS(x) \ | ||
3933 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_CTRL_EXT2_ST2_NUM_TAPS_SHIFT)) & ASRC_CTX_CTRL_EXT2_ST2_NUM_TAPS_MASK) | ||
3934 | /*! @} */ | ||
3935 | |||
3936 | /* The count of ASRC_CTX_CTRL_EXT2 */ | ||
3937 | #define ASRC_CTX_CTRL_EXT2_COUNT (4U) | ||
3938 | |||
3939 | /*! @name CTRL_IN_ACCESS - ASRC Control Input Access */ | ||
3940 | /*! @{ */ | ||
3941 | #define ASRC_CTRL_IN_ACCESS_ACCESS_LENGTH_MASK (0x3FU) | ||
3942 | #define ASRC_CTRL_IN_ACCESS_ACCESS_LENGTH_SHIFT (0U) | ||
3943 | #define ASRC_CTRL_IN_ACCESS_ACCESS_LENGTH(x) \ | ||
3944 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_IN_ACCESS_ACCESS_LENGTH_SHIFT)) & ASRC_CTRL_IN_ACCESS_ACCESS_LENGTH_MASK) | ||
3945 | #define ASRC_CTRL_IN_ACCESS_GROUP_LENGTH_MASK (0x3F00U) | ||
3946 | #define ASRC_CTRL_IN_ACCESS_GROUP_LENGTH_SHIFT (8U) | ||
3947 | #define ASRC_CTRL_IN_ACCESS_GROUP_LENGTH(x) \ | ||
3948 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_IN_ACCESS_GROUP_LENGTH_SHIFT)) & ASRC_CTRL_IN_ACCESS_GROUP_LENGTH_MASK) | ||
3949 | #define ASRC_CTRL_IN_ACCESS_ITERATIONS_MASK (0x3F0000U) | ||
3950 | #define ASRC_CTRL_IN_ACCESS_ITERATIONS_SHIFT (16U) | ||
3951 | #define ASRC_CTRL_IN_ACCESS_ITERATIONS(x) \ | ||
3952 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_IN_ACCESS_ITERATIONS_SHIFT)) & ASRC_CTRL_IN_ACCESS_ITERATIONS_MASK) | ||
3953 | /*! @} */ | ||
3954 | |||
3955 | /* The count of ASRC_CTRL_IN_ACCESS */ | ||
3956 | #define ASRC_CTRL_IN_ACCESS_COUNT (4U) | ||
3957 | |||
3958 | /*! @name PROC_CTRL_SLOT0_R0 - ASRC Datapath Processor Control Slot0 Register0 */ | ||
3959 | /*! @{ */ | ||
3960 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_EN_MASK (0x1U) | ||
3961 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_EN_SHIFT (0U) | ||
3962 | /*! SLOT0_EN - SLOT0 Enable | ||
3963 | * 0b0..Context SLOT0 is disabled | ||
3964 | * 0b1..Context SLOT0 is enabled | ||
3965 | */ | ||
3966 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_EN(x) \ | ||
3967 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R0_SLOT0_EN_SHIFT)) & ASRC_PROC_CTRL_SLOT0_R0_SLOT0_EN_MASK) | ||
3968 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_CTX_NUM_MASK (0x6U) | ||
3969 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_CTX_NUM_SHIFT (1U) | ||
3970 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_CTX_NUM(x) \ | ||
3971 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R0_SLOT0_CTX_NUM_SHIFT)) & \ | ||
3972 | ASRC_PROC_CTRL_SLOT0_R0_SLOT0_CTX_NUM_MASK) | ||
3973 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH_MASK (0x1F00U) | ||
3974 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH_SHIFT (8U) | ||
3975 | /*! SLOT0_NUM_CH - SLOT0 Number of Channels | ||
3976 | * 0b00000..Context SLOT0 owns 1 of 8 channels | ||
3977 | * 0b00001..Context SLOT0 owns 2 of 8 channels | ||
3978 | * 0b00010..Context SLOT0 owns 3 of 8 channels | ||
3979 | * 0b00011-0b00111..Context SLOT0 owns N of 8 channels | ||
3980 | */ | ||
3981 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH(x) \ | ||
3982 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH_SHIFT)) & \ | ||
3983 | ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH_MASK) | ||
3984 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MIN_CH_MASK (0x1F0000U) | ||
3985 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MIN_CH_SHIFT (16U) | ||
3986 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MIN_CH(x) \ | ||
3987 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MIN_CH_SHIFT)) & \ | ||
3988 | ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MIN_CH_MASK) | ||
3989 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH_MASK (0x1F000000U) | ||
3990 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH_SHIFT (24U) | ||
3991 | #define ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH(x) \ | ||
3992 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH_SHIFT)) & \ | ||
3993 | ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH_MASK) | ||
3994 | /*! @} */ | ||
3995 | |||
3996 | /* The count of ASRC_PROC_CTRL_SLOT0_R0 */ | ||
3997 | #define ASRC_PROC_CTRL_SLOT0_R0_COUNT (4U) | ||
3998 | |||
3999 | /*! @name PROC_CTRL_SLOT0_R1 - ASRC Datapath Processor Control Slot0 Register1 */ | ||
4000 | /*! @{ */ | ||
4001 | #define ASRC_PROC_CTRL_SLOT0_R1_SLOT0_ST1_CHANxEXP_MASK (0x1FFFU) | ||
4002 | #define ASRC_PROC_CTRL_SLOT0_R1_SLOT0_ST1_CHANxEXP_SHIFT (0U) | ||
4003 | #define ASRC_PROC_CTRL_SLOT0_R1_SLOT0_ST1_CHANxEXP(x) \ | ||
4004 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R1_SLOT0_ST1_CHANxEXP_SHIFT)) & \ | ||
4005 | ASRC_PROC_CTRL_SLOT0_R1_SLOT0_ST1_CHANxEXP_MASK) | ||
4006 | /*! @} */ | ||
4007 | |||
4008 | /* The count of ASRC_PROC_CTRL_SLOT0_R1 */ | ||
4009 | #define ASRC_PROC_CTRL_SLOT0_R1_COUNT (4U) | ||
4010 | |||
4011 | /*! @name PROC_CTRL_SLOT0_R2 - ASRC Datapath Processor Control Slot0 Register2 */ | ||
4012 | /*! @{ */ | ||
4013 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_ST_ADDR_MASK (0x1FFFU) | ||
4014 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_ST_ADDR_SHIFT (0U) | ||
4015 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_ST_ADDR(x) \ | ||
4016 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_ST_ADDR_SHIFT)) & \ | ||
4017 | ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_ST_ADDR_MASK) | ||
4018 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_MEM_ALLOC_MASK (0x1FFF0000U) | ||
4019 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_MEM_ALLOC_SHIFT (16U) | ||
4020 | #define ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_MEM_ALLOC(x) \ | ||
4021 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_MEM_ALLOC_SHIFT)) & \ | ||
4022 | ASRC_PROC_CTRL_SLOT0_R2_SLOT0_ST1_MEM_ALLOC_MASK) | ||
4023 | /*! @} */ | ||
4024 | |||
4025 | /* The count of ASRC_PROC_CTRL_SLOT0_R2 */ | ||
4026 | #define ASRC_PROC_CTRL_SLOT0_R2_COUNT (4U) | ||
4027 | |||
4028 | /*! @name PROC_CTRL_SLOT0_R3 - ASRC Datapath Processor Control Slot0 Register3 */ | ||
4029 | /*! @{ */ | ||
4030 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_ST_ADDR_MASK (0x1FFFU) | ||
4031 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_ST_ADDR_SHIFT (0U) | ||
4032 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_ST_ADDR(x) \ | ||
4033 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_ST_ADDR_SHIFT)) & \ | ||
4034 | ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_ST_ADDR_MASK) | ||
4035 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_MEM_ALLOC_MASK (0x1FFF0000U) | ||
4036 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_MEM_ALLOC_SHIFT (16U) | ||
4037 | #define ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_MEM_ALLOC(x) \ | ||
4038 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_MEM_ALLOC_SHIFT)) & \ | ||
4039 | ASRC_PROC_CTRL_SLOT0_R3_SLOT0_ST2_MEM_ALLOC_MASK) | ||
4040 | /*! @} */ | ||
4041 | |||
4042 | /* The count of ASRC_PROC_CTRL_SLOT0_R3 */ | ||
4043 | #define ASRC_PROC_CTRL_SLOT0_R3_COUNT (4U) | ||
4044 | |||
4045 | /*! @name PROC_CTRL_SLOT1_R0 - ASRC Datapath Processor Control Slot1 Register0 */ | ||
4046 | /*! @{ */ | ||
4047 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_EN_MASK (0x1U) | ||
4048 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_EN_SHIFT (0U) | ||
4049 | /*! SLOT1_EN - SLOT1 Enable | ||
4050 | * 0b0..Context SLOT1 is disabled | ||
4051 | * 0b1..Context SLOT1 is enabled | ||
4052 | */ | ||
4053 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_EN(x) \ | ||
4054 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R0_SLOT1_EN_SHIFT)) & ASRC_PROC_CTRL_SLOT1_R0_SLOT1_EN_MASK) | ||
4055 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_CTX_NUM_MASK (0x6U) | ||
4056 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_CTX_NUM_SHIFT (1U) | ||
4057 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_CTX_NUM(x) \ | ||
4058 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R0_SLOT1_CTX_NUM_SHIFT)) & \ | ||
4059 | ASRC_PROC_CTRL_SLOT1_R0_SLOT1_CTX_NUM_MASK) | ||
4060 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH_MASK (0x1F00U) | ||
4061 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH_SHIFT (8U) | ||
4062 | /*! SLOT1_NUM_CH - SLOT1 Number of Channels | ||
4063 | * 0b00000..Context SLOT1 owns 1 of 8 channels | ||
4064 | * 0b00001..Context SLOT1 owns 2 of 8 channels | ||
4065 | * 0b00010..Context SLOT1 owns 3 of 8 channels | ||
4066 | * 0b00011-0b00111..Context SLOT1 owns N of 8 channels | ||
4067 | */ | ||
4068 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH(x) \ | ||
4069 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH_SHIFT)) & \ | ||
4070 | ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH_MASK) | ||
4071 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MIN_CH_MASK (0x1F0000U) | ||
4072 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MIN_CH_SHIFT (16U) | ||
4073 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MIN_CH(x) \ | ||
4074 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MIN_CH_SHIFT)) & \ | ||
4075 | ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MIN_CH_MASK) | ||
4076 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH_MASK (0x1F000000U) | ||
4077 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH_SHIFT (24U) | ||
4078 | #define ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH(x) \ | ||
4079 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH_SHIFT)) & \ | ||
4080 | ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH_MASK) | ||
4081 | /*! @} */ | ||
4082 | |||
4083 | /* The count of ASRC_PROC_CTRL_SLOT1_R0 */ | ||
4084 | #define ASRC_PROC_CTRL_SLOT1_R0_COUNT (4U) | ||
4085 | |||
4086 | /*! @name PROC_CTRL_SLOT1_R1 - ASRC Datapath Processor Control SLOT1 Register1 */ | ||
4087 | /*! @{ */ | ||
4088 | #define ASRC_PROC_CTRL_SLOT1_R1_SLOT1_ST1_CHANxEXP_MASK (0x1FFFU) | ||
4089 | #define ASRC_PROC_CTRL_SLOT1_R1_SLOT1_ST1_CHANxEXP_SHIFT (0U) | ||
4090 | #define ASRC_PROC_CTRL_SLOT1_R1_SLOT1_ST1_CHANxEXP(x) \ | ||
4091 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R1_SLOT1_ST1_CHANxEXP_SHIFT)) & \ | ||
4092 | ASRC_PROC_CTRL_SLOT1_R1_SLOT1_ST1_CHANxEXP_MASK) | ||
4093 | /*! @} */ | ||
4094 | |||
4095 | /* The count of ASRC_PROC_CTRL_SLOT1_R1 */ | ||
4096 | #define ASRC_PROC_CTRL_SLOT1_R1_COUNT (4U) | ||
4097 | |||
4098 | /*! @name PROC_CTRL_SLOT1_R2 - ASRC Datapath Processor Control SLOT1 Register2 */ | ||
4099 | /*! @{ */ | ||
4100 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_ST_ADDR_MASK (0x1FFFU) | ||
4101 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_ST_ADDR_SHIFT (0U) | ||
4102 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_ST_ADDR(x) \ | ||
4103 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_ST_ADDR_SHIFT)) & \ | ||
4104 | ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_ST_ADDR_MASK) | ||
4105 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_MEM_ALLOC_MASK (0x1FFF0000U) | ||
4106 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_MEM_ALLOC_SHIFT (16U) | ||
4107 | #define ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_MEM_ALLOC(x) \ | ||
4108 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_MEM_ALLOC_SHIFT)) & \ | ||
4109 | ASRC_PROC_CTRL_SLOT1_R2_SLOT1_ST1_MEM_ALLOC_MASK) | ||
4110 | /*! @} */ | ||
4111 | |||
4112 | /* The count of ASRC_PROC_CTRL_SLOT1_R2 */ | ||
4113 | #define ASRC_PROC_CTRL_SLOT1_R2_COUNT (4U) | ||
4114 | |||
4115 | /*! @name PROC_CTRL_SLOT1_R3 - ASRC Datapath Processor Control SLOT1 Register3 */ | ||
4116 | /*! @{ */ | ||
4117 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_ST_ADDR_MASK (0x1FFFU) | ||
4118 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_ST_ADDR_SHIFT (0U) | ||
4119 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_ST_ADDR(x) \ | ||
4120 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_ST_ADDR_SHIFT)) & \ | ||
4121 | ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_ST_ADDR_MASK) | ||
4122 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_MEM_ALLOC_MASK (0x1FFF0000U) | ||
4123 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_MEM_ALLOC_SHIFT (16U) | ||
4124 | #define ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_MEM_ALLOC(x) \ | ||
4125 | (((uint32_t)(((uint32_t)(x)) << ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_MEM_ALLOC_SHIFT)) & \ | ||
4126 | ASRC_PROC_CTRL_SLOT1_R3_SLOT1_ST2_MEM_ALLOC_MASK) | ||
4127 | /*! @} */ | ||
4128 | |||
4129 | /* The count of ASRC_PROC_CTRL_SLOT1_R3 */ | ||
4130 | #define ASRC_PROC_CTRL_SLOT1_R3_COUNT (4U) | ||
4131 | |||
4132 | /*! @name CTX_OUT_CTRL - ASRC Context Output Control */ | ||
4133 | /*! @{ */ | ||
4134 | #define ASRC_CTX_OUT_CTRL_DITHER_EN_MASK (0x1U) | ||
4135 | #define ASRC_CTX_OUT_CTRL_DITHER_EN_SHIFT (0U) | ||
4136 | #define ASRC_CTX_OUT_CTRL_DITHER_EN(x) \ | ||
4137 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_DITHER_EN_SHIFT)) & ASRC_CTX_OUT_CTRL_DITHER_EN_MASK) | ||
4138 | #define ASRC_CTX_OUT_CTRL_IEC_EN_MASK (0x2U) | ||
4139 | #define ASRC_CTX_OUT_CTRL_IEC_EN_SHIFT (1U) | ||
4140 | /*! IEC_EN - IEC60958 Bit-Field Insertion Enable | ||
4141 | * 0b0..No Data Insertion Enabled. | ||
4142 | * 0b1..IEC60958 Bit-Field Insertion Enabled. | ||
4143 | */ | ||
4144 | #define ASRC_CTX_OUT_CTRL_IEC_EN(x) \ | ||
4145 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_IEC_EN_SHIFT)) & ASRC_CTX_OUT_CTRL_IEC_EN_MASK) | ||
4146 | #define ASRC_CTX_OUT_CTRL_IEC_V_DATA_MASK (0x4U) | ||
4147 | #define ASRC_CTX_OUT_CTRL_IEC_V_DATA_SHIFT (2U) | ||
4148 | #define ASRC_CTX_OUT_CTRL_IEC_V_DATA(x) \ | ||
4149 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_IEC_V_DATA_SHIFT)) & ASRC_CTX_OUT_CTRL_IEC_V_DATA_MASK) | ||
4150 | #define ASRC_CTX_OUT_CTRL_SIGN_OUT_MASK (0x40U) | ||
4151 | #define ASRC_CTX_OUT_CTRL_SIGN_OUT_SHIFT (6U) | ||
4152 | /*! SIGN_OUT - Output Data Sign | ||
4153 | * 0b0..Signed Format | ||
4154 | * 0b1..Convert to Unsigned | ||
4155 | */ | ||
4156 | #define ASRC_CTX_OUT_CTRL_SIGN_OUT(x) \ | ||
4157 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_SIGN_OUT_SHIFT)) & ASRC_CTX_OUT_CTRL_SIGN_OUT_MASK) | ||
4158 | #define ASRC_CTX_OUT_CTRL_FLOAT_FMT_MASK (0x80U) | ||
4159 | #define ASRC_CTX_OUT_CTRL_FLOAT_FMT_SHIFT (7U) | ||
4160 | /*! FLOAT_FMT - Context Output Floating Point Format | ||
4161 | * 0b0..Integer Format | ||
4162 | * 0b1..Single Precision Floating Point Format | ||
4163 | */ | ||
4164 | #define ASRC_CTX_OUT_CTRL_FLOAT_FMT(x) \ | ||
4165 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_FLOAT_FMT_SHIFT)) & ASRC_CTX_OUT_CTRL_FLOAT_FMT_MASK) | ||
4166 | #define ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE_MASK (0x300U) | ||
4167 | #define ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE_SHIFT (8U) | ||
4168 | /*! BITS_PER_SAMPLE - Number of Bits Per Audio Sample | ||
4169 | * 0b00..16-bits Per Sample | ||
4170 | * 0b01..20-bits Per Sample | ||
4171 | * 0b10..24-bits Per Sample | ||
4172 | * 0b11..32-bits Per Sample | ||
4173 | */ | ||
4174 | #define ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE(x) \ | ||
4175 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE_SHIFT)) & ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE_MASK) | ||
4176 | #define ASRC_CTX_OUT_CTRL_BIT_REV_MASK (0x400U) | ||
4177 | #define ASRC_CTX_OUT_CTRL_BIT_REV_SHIFT (10U) | ||
4178 | /*! BIT_REV - Sample Bit-Reversal | ||
4179 | * 0b0..No change. | ||
4180 | * 0b1..Bit-reverse sample data. | ||
4181 | */ | ||
4182 | #define ASRC_CTX_OUT_CTRL_BIT_REV(x) \ | ||
4183 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_BIT_REV_SHIFT)) & ASRC_CTX_OUT_CTRL_BIT_REV_MASK) | ||
4184 | #define ASRC_CTX_OUT_CTRL_SAMPLE_POSITION_MASK (0xF800U) | ||
4185 | #define ASRC_CTX_OUT_CTRL_SAMPLE_POSITION_SHIFT (11U) | ||
4186 | #define ASRC_CTX_OUT_CTRL_SAMPLE_POSITION(x) \ | ||
4187 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_SAMPLE_POSITION_SHIFT)) & ASRC_CTX_OUT_CTRL_SAMPLE_POSITION_MASK) | ||
4188 | #define ASRC_CTX_OUT_CTRL_FIFO_WTMK_MASK (0x7F0000U) | ||
4189 | #define ASRC_CTX_OUT_CTRL_FIFO_WTMK_SHIFT (16U) | ||
4190 | #define ASRC_CTX_OUT_CTRL_FIFO_WTMK(x) \ | ||
4191 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_FIFO_WTMK_SHIFT)) & ASRC_CTX_OUT_CTRL_FIFO_WTMK_MASK) | ||
4192 | #define ASRC_CTX_OUT_CTRL_FWMDE_MASK (0x10000000U) | ||
4193 | #define ASRC_CTX_OUT_CTRL_FWMDE_SHIFT (28U) | ||
4194 | /*! FWMDE - Output FIFO Watermark DMA Enable | ||
4195 | * 0b0..Output DMA Requests Not Enabled for This Context | ||
4196 | * 0b1..Output DMA Requests Enabled for This Context | ||
4197 | */ | ||
4198 | #define ASRC_CTX_OUT_CTRL_FWMDE(x) \ | ||
4199 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_OUT_CTRL_FWMDE_SHIFT)) & ASRC_CTX_OUT_CTRL_FWMDE_MASK) | ||
4200 | /*! @} */ | ||
4201 | |||
4202 | /* The count of ASRC_CTX_OUT_CTRL */ | ||
4203 | #define ASRC_CTX_OUT_CTRL_COUNT (4U) | ||
4204 | |||
4205 | /*! @name CTRL_OUT_ACCESS - ASRC Control Output Access */ | ||
4206 | /*! @{ */ | ||
4207 | #define ASRC_CTRL_OUT_ACCESS_ACCESS_LENGTH_MASK (0x3FU) | ||
4208 | #define ASRC_CTRL_OUT_ACCESS_ACCESS_LENGTH_SHIFT (0U) | ||
4209 | #define ASRC_CTRL_OUT_ACCESS_ACCESS_LENGTH(x) \ | ||
4210 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_OUT_ACCESS_ACCESS_LENGTH_SHIFT)) & \ | ||
4211 | ASRC_CTRL_OUT_ACCESS_ACCESS_LENGTH_MASK) | ||
4212 | #define ASRC_CTRL_OUT_ACCESS_GROUP_LENGTH_MASK (0x3F00U) | ||
4213 | #define ASRC_CTRL_OUT_ACCESS_GROUP_LENGTH_SHIFT (8U) | ||
4214 | #define ASRC_CTRL_OUT_ACCESS_GROUP_LENGTH(x) \ | ||
4215 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_OUT_ACCESS_GROUP_LENGTH_SHIFT)) & ASRC_CTRL_OUT_ACCESS_GROUP_LENGTH_MASK) | ||
4216 | #define ASRC_CTRL_OUT_ACCESS_ITERATIONS_MASK (0x3F0000U) | ||
4217 | #define ASRC_CTRL_OUT_ACCESS_ITERATIONS_SHIFT (16U) | ||
4218 | #define ASRC_CTRL_OUT_ACCESS_ITERATIONS(x) \ | ||
4219 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTRL_OUT_ACCESS_ITERATIONS_SHIFT)) & ASRC_CTRL_OUT_ACCESS_ITERATIONS_MASK) | ||
4220 | /*! @} */ | ||
4221 | |||
4222 | /* The count of ASRC_CTRL_OUT_ACCESS */ | ||
4223 | #define ASRC_CTRL_OUT_ACCESS_COUNT (4U) | ||
4224 | |||
4225 | /*! @name SAMPLE_FIFO_STATUS - ASRC Sample FIFO Status */ | ||
4226 | /*! @{ */ | ||
4227 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_OUT_MASK (0x7FU) | ||
4228 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_OUT_SHIFT (0U) | ||
4229 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_OUT(x) \ | ||
4230 | (((uint32_t)(((uint32_t)(x)) << ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_OUT_SHIFT)) & \ | ||
4231 | ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_OUT_MASK) | ||
4232 | #define ASRC_SAMPLE_FIFO_STATUS_OUTFIFO_WTMK_MASK (0x80U) | ||
4233 | #define ASRC_SAMPLE_FIFO_STATUS_OUTFIFO_WTMK_SHIFT (7U) | ||
4234 | #define ASRC_SAMPLE_FIFO_STATUS_OUTFIFO_WTMK(x) \ | ||
4235 | (((uint32_t)(((uint32_t)(x)) << ASRC_SAMPLE_FIFO_STATUS_OUTFIFO_WTMK_SHIFT)) & \ | ||
4236 | ASRC_SAMPLE_FIFO_STATUS_OUTFIFO_WTMK_MASK) | ||
4237 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_IN_MASK (0x7F0000U) | ||
4238 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_IN_SHIFT (16U) | ||
4239 | #define ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_IN(x) \ | ||
4240 | (((uint32_t)(((uint32_t)(x)) << ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_IN_SHIFT)) & \ | ||
4241 | ASRC_SAMPLE_FIFO_STATUS_NUM_SAMPLE_GROUPS_IN_MASK) | ||
4242 | #define ASRC_SAMPLE_FIFO_STATUS_INFIFO_WTMK_MASK (0x800000U) | ||
4243 | #define ASRC_SAMPLE_FIFO_STATUS_INFIFO_WTMK_SHIFT (23U) | ||
4244 | #define ASRC_SAMPLE_FIFO_STATUS_INFIFO_WTMK(x) \ | ||
4245 | (((uint32_t)(((uint32_t)(x)) << ASRC_SAMPLE_FIFO_STATUS_INFIFO_WTMK_SHIFT)) & \ | ||
4246 | ASRC_SAMPLE_FIFO_STATUS_INFIFO_WTMK_MASK) | ||
4247 | /*! @} */ | ||
4248 | |||
4249 | /* The count of ASRC_SAMPLE_FIFO_STATUS */ | ||
4250 | #define ASRC_SAMPLE_FIFO_STATUS_COUNT (4U) | ||
4251 | |||
4252 | /*! @name RS_RATIO_LOW - ASRC Resampling Ratio Low */ | ||
4253 | /*! @{ */ | ||
4254 | #define ASRC_RS_RATIO_LOW_RS_RATIO_LOW_MASK (0xFFFFFFFFU) | ||
4255 | #define ASRC_RS_RATIO_LOW_RS_RATIO_LOW_SHIFT (0U) | ||
4256 | #define ASRC_RS_RATIO_LOW_RS_RATIO_LOW(x) \ | ||
4257 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_RATIO_LOW_RS_RATIO_LOW_SHIFT)) & ASRC_RS_RATIO_LOW_RS_RATIO_LOW_MASK) | ||
4258 | /*! @} */ | ||
4259 | |||
4260 | /* The count of ASRC_RS_RATIO_LOW */ | ||
4261 | #define ASRC_RS_RATIO_LOW_COUNT (4U) | ||
4262 | |||
4263 | /*! @name RS_RATIO_HIGH - ASRC Resampling Ratio High */ | ||
4264 | /*! @{ */ | ||
4265 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_HIGH_MASK (0xFFFU) | ||
4266 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_HIGH_SHIFT (0U) | ||
4267 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_HIGH(x) \ | ||
4268 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_RATIO_HIGH_RS_RATIO_HIGH_SHIFT)) & ASRC_RS_RATIO_HIGH_RS_RATIO_HIGH_MASK) | ||
4269 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_VLD_MASK (0x80000000U) | ||
4270 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_VLD_SHIFT (31U) | ||
4271 | #define ASRC_RS_RATIO_HIGH_RS_RATIO_VLD(x) \ | ||
4272 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_RATIO_HIGH_RS_RATIO_VLD_SHIFT)) & ASRC_RS_RATIO_HIGH_RS_RATIO_VLD_MASK) | ||
4273 | /*! @} */ | ||
4274 | |||
4275 | /* The count of ASRC_RS_RATIO_HIGH */ | ||
4276 | #define ASRC_RS_RATIO_HIGH_COUNT (4U) | ||
4277 | |||
4278 | /*! @name RS_UPDATE_CTRL - ASRC Resampling Ratio Update Control */ | ||
4279 | /*! @{ */ | ||
4280 | #define ASRC_RS_UPDATE_CTRL_RS_RATIO_MOD_MASK (0xFFFFFFFFU) | ||
4281 | #define ASRC_RS_UPDATE_CTRL_RS_RATIO_MOD_SHIFT (0U) | ||
4282 | #define ASRC_RS_UPDATE_CTRL_RS_RATIO_MOD(x) \ | ||
4283 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_UPDATE_CTRL_RS_RATIO_MOD_SHIFT)) & ASRC_RS_UPDATE_CTRL_RS_RATIO_MOD_MASK) | ||
4284 | /*! @} */ | ||
4285 | |||
4286 | /* The count of ASRC_RS_UPDATE_CTRL */ | ||
4287 | #define ASRC_RS_UPDATE_CTRL_COUNT (4U) | ||
4288 | |||
4289 | /*! @name RS_UPDATE_RATE - ASRC Resampling Ratio Update Rate */ | ||
4290 | /*! @{ */ | ||
4291 | #define ASRC_RS_UPDATE_RATE_RS_RATIO_RAMP_RATE_MASK (0x7FFFFFFFU) | ||
4292 | #define ASRC_RS_UPDATE_RATE_RS_RATIO_RAMP_RATE_SHIFT (0U) | ||
4293 | #define ASRC_RS_UPDATE_RATE_RS_RATIO_RAMP_RATE(x) \ | ||
4294 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_UPDATE_RATE_RS_RATIO_RAMP_RATE_SHIFT)) & \ | ||
4295 | ASRC_RS_UPDATE_RATE_RS_RATIO_RAMP_RATE_MASK) | ||
4296 | /*! @} */ | ||
4297 | |||
4298 | /* The count of ASRC_RS_UPDATE_RATE */ | ||
4299 | #define ASRC_RS_UPDATE_RATE_COUNT (4U) | ||
4300 | |||
4301 | /*! @name RS_CT_LOW - ASRC Resampling Center Tap Coefficient Low */ | ||
4302 | /*! @{ */ | ||
4303 | #define ASRC_RS_CT_LOW_RS_CT_LOW_MASK (0xFFFFFFFFU) | ||
4304 | #define ASRC_RS_CT_LOW_RS_CT_LOW_SHIFT (0U) | ||
4305 | #define ASRC_RS_CT_LOW_RS_CT_LOW(x) \ | ||
4306 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_CT_LOW_RS_CT_LOW_SHIFT)) & ASRC_RS_CT_LOW_RS_CT_LOW_MASK) | ||
4307 | /*! @} */ | ||
4308 | |||
4309 | /*! @name RS_CT_HIGH - ASRC Resampling Center Tap Coefficient High */ | ||
4310 | /*! @{ */ | ||
4311 | #define ASRC_RS_CT_HIGH_RS_CT_HIGH_MASK (0xFFFFFFFFU) | ||
4312 | #define ASRC_RS_CT_HIGH_RS_CT_HIGH_SHIFT (0U) | ||
4313 | #define ASRC_RS_CT_HIGH_RS_CT_HIGH(x) \ | ||
4314 | (((uint32_t)(((uint32_t)(x)) << ASRC_RS_CT_HIGH_RS_CT_HIGH_SHIFT)) & ASRC_RS_CT_HIGH_RS_CT_HIGH_MASK) | ||
4315 | /*! @} */ | ||
4316 | |||
4317 | /*! @name PRE_COEFF_FIFO - ASRC Prefilter Coefficient FIFO */ | ||
4318 | /*! @{ */ | ||
4319 | #define ASRC_PRE_COEFF_FIFO_COEFF_DATA_MASK (0xFFFFFFFFU) | ||
4320 | #define ASRC_PRE_COEFF_FIFO_COEFF_DATA_SHIFT (0U) | ||
4321 | #define ASRC_PRE_COEFF_FIFO_COEFF_DATA(x) \ | ||
4322 | (((uint32_t)(((uint32_t)(x)) << ASRC_PRE_COEFF_FIFO_COEFF_DATA_SHIFT)) & ASRC_PRE_COEFF_FIFO_COEFF_DATA_MASK) | ||
4323 | /*! @} */ | ||
4324 | |||
4325 | /* The count of ASRC_PRE_COEFF_FIFO */ | ||
4326 | #define ASRC_PRE_COEFF_FIFO_COUNT (4U) | ||
4327 | |||
4328 | /*! @name CTX_RS_COEFF_MEM - ASRC Context Resampling Coefficient Memory */ | ||
4329 | /*! @{ */ | ||
4330 | #define ASRC_CTX_RS_COEFF_MEM_RS_COEFF_WDATA_MASK (0xFFFFFFFFU) | ||
4331 | #define ASRC_CTX_RS_COEFF_MEM_RS_COEFF_WDATA_SHIFT (0U) | ||
4332 | #define ASRC_CTX_RS_COEFF_MEM_RS_COEFF_WDATA(x) \ | ||
4333 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_RS_COEFF_MEM_RS_COEFF_WDATA_SHIFT)) & \ | ||
4334 | ASRC_CTX_RS_COEFF_MEM_RS_COEFF_WDATA_MASK) | ||
4335 | /*! @} */ | ||
4336 | |||
4337 | /*! @name CTX_RS_COEFF_CTRL - ASRC Context Resampling Coefficient Control */ | ||
4338 | /*! @{ */ | ||
4339 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_PTR_RST_MASK (0x1U) | ||
4340 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_PTR_RST_SHIFT (0U) | ||
4341 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_PTR_RST(x) \ | ||
4342 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_PTR_RST_SHIFT)) & \ | ||
4343 | ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_PTR_RST_MASK) | ||
4344 | #define ASRC_CTX_RS_COEFF_CTRL_NUM_RES_TAPS_MASK (0x6U) | ||
4345 | #define ASRC_CTX_RS_COEFF_CTRL_NUM_RES_TAPS_SHIFT (1U) | ||
4346 | /*! NUM_RES_TAPS - Number of Resampling Coefficient Taps | ||
4347 | * 0b00..32-Tap Resampling Filter | ||
4348 | * 0b01..64-Tap Resampling Filter | ||
4349 | * 0b10..128-Tap Resampling Filter | ||
4350 | * 0b11..N/A | ||
4351 | */ | ||
4352 | #define ASRC_CTX_RS_COEFF_CTRL_NUM_RES_TAPS(x) \ | ||
4353 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_RS_COEFF_CTRL_NUM_RES_TAPS_SHIFT)) & \ | ||
4354 | ASRC_CTX_RS_COEFF_CTRL_NUM_RES_TAPS_MASK) | ||
4355 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_ADDR_MASK (0x7FF0000U) | ||
4356 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_ADDR_SHIFT (16U) | ||
4357 | #define ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_ADDR(x) \ | ||
4358 | (((uint32_t)(((uint32_t)(x)) << ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_ADDR_SHIFT)) & \ | ||
4359 | ASRC_CTX_RS_COEFF_CTRL_RS_COEFF_ADDR_MASK) | ||
4360 | /*! @} */ | ||
4361 | |||
4362 | /*! @name IRQ_CTRL - ASRC Interrupt Control */ | ||
4363 | /*! @{ */ | ||
4364 | #define ASRC_IRQ_CTRL_INFIFO_OVF_MASK_MASK (0xFU) | ||
4365 | #define ASRC_IRQ_CTRL_INFIFO_OVF_MASK_SHIFT (0U) | ||
4366 | /*! INFIFO_OVF_MASK - ASRC Input FIFO Overflow Mask | ||
4367 | * 0b0000..The INFIFO_OVF interrupt is enabled for Context 0 to 3. | ||
4368 | * 0b0001..The INFIFO_OVF interrupt is disabled for Context 0 and enabled for Context 1 to 3. | ||
4369 | * 0b0010..The INFIFO_OVF interrupt is disabled for Context 1 and enabled for Context 0, 2, and 3. | ||
4370 | * 0b0011-0b1110..The INFIFO_OVF interrupt is enabled for any context with a 1'b0 bit field. | ||
4371 | * 0b1111..The INFIFO_OVF interrupt is disabled for Context 0 to 3. | ||
4372 | */ | ||
4373 | #define ASRC_IRQ_CTRL_INFIFO_OVF_MASK(x) \ | ||
4374 | (((uint32_t)(((uint32_t)(x)) << ASRC_IRQ_CTRL_INFIFO_OVF_MASK_SHIFT)) & ASRC_IRQ_CTRL_INFIFO_OVF_MASK_MASK) | ||
4375 | #define ASRC_IRQ_CTRL_OUTFIFO_EMPTY_RD_MASK_MASK (0xF0U) | ||
4376 | #define ASRC_IRQ_CTRL_OUTFIFO_EMPTY_RD_MASK_SHIFT (4U) | ||
4377 | /*! OUTFIFO_EMPTY_RD_MASK - ASRC Output FIFO Empty Read Mask | ||
4378 | * 0b0000..The OUTFIFO_EMPTY_RD interrupt is enabled for Context 0 to 3. | ||
4379 | * 0b0001..The OUTFIFO_EMPTY_RD interrupt is disabled for Context 0 and enabled for Context 1 to 3. | ||
4380 | * 0b0010..The OUTFIFO_EMPTY_RD interrupt is disabled for Context 1 and enabled for Context 0, 2, and 3. | ||
4381 | * 0b0011-0b1110..The OUTFIFO_EMPTY_RD interrupt is enabled for any context with a 1'b0 bit field. | ||
4382 | * 0b1111..The OUTFIFO_EMPTY_RD interrupt is disabled for Context 0 to 3. | ||
4383 | */ | ||
4384 | #define ASRC_IRQ_CTRL_OUTFIFO_EMPTY_RD_MASK(x) \ | ||
4385 | (((uint32_t)(((uint32_t)(x)) << ASRC_IRQ_CTRL_OUTFIFO_EMPTY_RD_MASK_SHIFT)) & \ | ||
4386 | ASRC_IRQ_CTRL_OUTFIFO_EMPTY_RD_MASK_MASK) | ||
4387 | #define ASRC_IRQ_CTRL_RUN_STOP_DONE_MASK_MASK (0xF00U) | ||
4388 | #define ASRC_IRQ_CTRL_RUN_STOP_DONE_MASK_SHIFT (8U) | ||
4389 | /*! RUN_STOP_DONE_MASK - ASRC RUN STOP DONE MASK | ||
4390 | * 0b0000..The RUN_STOP_DONE interrupt is enabled for Context 0 to 3. | ||
4391 | * 0b0001..The RUN_STOP_DONE interrupt is disabled for Context 0 and enabled for Context 1 to 3. | ||
4392 | * 0b0010..The RUN_STOP_DONE interrupt is disabled for Context 1 and enabled for Context 0, 2, and 3. | ||
4393 | * 0b0011-0b1110..The RUN_STOP_DONE interrupt is enabled for any context with a 1'b0 bit field. | ||
4394 | * 0b1111..The RUN_STOP_DONE interrupt is disabled for Context 0 to 3. | ||
4395 | */ | ||
4396 | #define ASRC_IRQ_CTRL_RUN_STOP_DONE_MASK(x) \ | ||
4397 | (((uint32_t)(((uint32_t)(x)) << ASRC_IRQ_CTRL_RUN_STOP_DONE_MASK_SHIFT)) & ASRC_IRQ_CTRL_RUN_STOP_DONE_MASK_MASK) | ||
4398 | /*! @} */ | ||
4399 | |||
4400 | /*! @name IRQ_FLAGS - ASRC Interrupt Status Flags */ | ||
4401 | /*! @{ */ | ||
4402 | #define ASRC_IRQ_FLAGS_INFIFO_OVF_MASK (0xFU) | ||
4403 | #define ASRC_IRQ_FLAGS_INFIFO_OVF_SHIFT (0U) | ||
4404 | /*! INFIFO_OVF - ASRC Input FIFO Overflow Flag | ||
4405 | * 0b0000..No INFIFO_OVF errors have been recorded. | ||
4406 | * 0b0001..The ASRC_WRFIFO0 has overflown. | ||
4407 | * 0b0010..The ASRC_WRFIFO1 has overflown. | ||
4408 | * 0b0011-0b1110..The ASRC_WRFIFOn has overflown. Where n = any bit position set to 0b1. | ||