aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h65947
1 files changed, 65947 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h
new file mode 100644
index 000000000..24dbadb16
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM5/MIMX8MM5_cm4.h
@@ -0,0 +1,65947 @@
1/*
2** ###################################################################
3** Processors: MIMX8MM5CVTKZ
4** MIMX8MM5DVTLZ
5**
6** Compilers: GNU C Compiler
7** IAR ANSI C/C++ Compiler for ARM
8** Keil ARM C/C++ Compiler
9**
10** Reference manual: MX8MMRM, Rev. 0, 02/2019
11** Version: rev. 4.0, 2019-02-18
12** Build: b190228
13**
14** Abstract:
15** CMSIS Peripheral Access Layer for MIMX8MM5_cm4
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 (2018-03-26)
28** Initial version.
29** - rev. 2.0 (2018-07-20)
30** Rev.A Header EAR
31** - rev. 3.0 (2018-10-24)
32** Rev.B Header PRC
33** - rev. 4.0 (2019-02-18)
34** Rev.0 Header RFP
35**
36** ###################################################################
37*/
38
39/*!
40 * @file MIMX8MM5_cm4.h
41 * @version 4.0
42 * @date 2019-02-18
43 * @brief CMSIS Peripheral Access Layer for MIMX8MM5_cm4
44 *
45 * CMSIS Peripheral Access Layer for MIMX8MM5_cm4
46 */
47
48#ifndef _MIMX8MM5_CM4_H_
49#define _MIMX8MM5_CM4_H_ /**< Symbol preventing repeated inclusion */
50
51/** Memory map major version (memory maps with equal major version number are
52 * compatible) */
53#define MCU_MEM_MAP_VERSION 0x0400U
54/** Memory map minor version */
55#define MCU_MEM_MAP_VERSION_MINOR 0x0000U
56
57
58/* ----------------------------------------------------------------------------
59 -- Interrupt vector numbers
60 ---------------------------------------------------------------------------- */
61
62/*!
63 * @addtogroup Interrupt_vector_numbers Interrupt vector numbers
64 * @{
65 */
66
67/** Interrupt Number Definitions */
68#define NUMBER_OF_INT_VECTORS 144 /**< Number of interrupts in the Vector table */
69
70typedef enum IRQn {
71 /* Auxiliary constants */
72 NotAvail_IRQn = -128, /**< Not available device specific interrupt */
73
74 /* Core interrupts */
75 NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */
76 HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */
77 MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */
78 BusFault_IRQn = -11, /**< Cortex-M4 Bus Fault Interrupt */
79 UsageFault_IRQn = -10, /**< Cortex-M4 Usage Fault Interrupt */
80 SVCall_IRQn = -5, /**< Cortex-M4 SV Call Interrupt */
81 DebugMonitor_IRQn = -4, /**< Cortex-M4 Debug Monitor Interrupt */
82 PendSV_IRQn = -2, /**< Cortex-M4 Pend SV Interrupt */
83 SysTick_IRQn = -1, /**< Cortex-M4 System Tick Interrupt */
84
85 /* Device specific interrupts */
86 GPR_IRQ_IRQn = 0, /**< GPR Interrupt. Used to notify cores on exception condition while boot. */
87 DAP_IRQn = 1, /**< DAP Interrupt */
88 SDMA1_IRQn = 2, /**< AND of all 48 SDMA1 interrupts (events) from all the channels */
89 GPU3D_IRQn = 3, /**< GPU3D Interrupt */
90 SNVS_IRQn = 4, /**< ON-OFF button press shorter than 5 seconds (pulse event) */
91 LCDIF_IRQn = 5, /**< LCDIF Interrupt */
92 SPDIF1_IRQn = 6, /**< SPDIF1 RZX/TX Interrupt */
93 VPU_G1_IRQn = 7, /**< VPU G1 Decoder Interrupt */
94 VPU_G2_IRQn = 8, /**< VPU G2 Decoder Interrupt */
95 QOS_IRQn = 9, /**< QOS interrupt */
96 WDOG3_IRQn = 10, /**< Watchdog Timer reset */
97 HS_CP1_IRQn = 11, /**< HS Interrupt Request */
98 APBHDMA_IRQn = 12, /**< GPMI operation channel 0-3 description complete interrupt */
99 Reserved29_IRQn = 13, /**< Reserved */
100 BCH_IRQn = 14, /**< BCH operation complete interrupt */
101 GPMI_IRQn = 15, /**< GPMI operation TIMEOUT ERROR interrupt */
102 CSI1_IRQn = 16, /**< CSI Interrupt */
103 MIPI_CSI1_IRQn = 17, /**< MIPI CSI Interrupt */
104 MIPI_DSI_IRQn = 18, /**< MIPI DSI Interrupt */
105 SNVS_Consolidated_IRQn = 19, /**< SRTC Consolidated Interrupt. Non TZ. */
106 SNVS_Security_IRQn = 20, /**< SRTC Security Interrupt. TZ. */
107 CSU_IRQn = 21, /**< CSU Interrupt Request. Indicates to the processor that one or more alarm inputs were asserted. */
108 USDHC1_IRQn = 22, /**< uSDHC1 Enhanced SDHC Interrupt Request */
109 USDHC2_IRQn = 23, /**< uSDHC2 Enhanced SDHC Interrupt Request */
110 USDHC3_IRQn = 24, /**< uSDHC3 Enhanced SDHC Interrupt Request */
111 GPU2D_IRQn = 25, /**< GPU2D Interrupt */
112 UART1_IRQn = 26, /**< UART-1 ORed interrupt */
113 UART2_IRQn = 27, /**< UART-2 ORed interrupt */
114 UART3_IRQn = 28, /**< UART-3 ORed interrupt */
115 UART4_IRQn = 29, /**< UART-4 ORed interrupt */
116 VPU_H1_IRQn = 30, /**< VPU H1 Encoder Interrupt */
117 ECSPI1_IRQn = 31, /**< ECSPI1 interrupt request line to the core. */
118 ECSPI2_IRQn = 32, /**< ECSPI2 interrupt request line to the core. */
119 ECSPI3_IRQn = 33, /**< ECSPI3 interrupt request line to the core. */
120 SDMA3_IRQn = 34, /**< AND of all 48 SDMA3 interrupts (events) from all the channels */
121 I2C1_IRQn = 35, /**< I2C-1 Interrupt */
122 I2C2_IRQn = 36, /**< I2C-2 Interrupt */
123 I2C3_IRQn = 37, /**< I2C-3 Interrupt */
124 I2C4_IRQn = 38, /**< I2C-4 Interrupt */
125 RDC_IRQn = 39, /**< RDC interrupt */
126 USB1_IRQn = 40, /**< USB1 Interrupt */
127 USB2_IRQn = 41, /**< USB1 Interrupt */
128 Reserved58_IRQn = 42, /**< Reserved interrupt */
129 Reserved59_IRQn = 43, /**< Reserved interrupt */
130 PDM_HWVAD_EVENT_IRQn = 44, /**< Digital Microphone interface voice activity detector event interrupt */
131 PDM_HWVAD_ERROR_IRQn = 45, /**< Digital Microphone interface voice activity detector error interrupt */
132 GPT6_IRQn = 46, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
133 SCTR_IRQ0_IRQn = 47, /**< System Counter Interrupt 0 */
134 SCTR_IRQ1_IRQn = 48, /**< System Counter Interrupt 1 */
135 TEMPMON_LOW_IRQn = 49, /**< TempSensor (Temperature low alarm). */
136 I2S3_IRQn = 50, /**< SAI3 Receive / Transmit Interrupt */
137 GPT5_IRQn = 51, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
138 GPT4_IRQn = 52, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
139 GPT3_IRQn = 53, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
140 GPT2_IRQn = 54, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
141 GPT1_IRQn = 55, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */
142 GPIO1_INT7_IRQn = 56, /**< Active HIGH Interrupt from INT7 from GPIO */
143 GPIO1_INT6_IRQn = 57, /**< Active HIGH Interrupt from INT6 from GPIO */
144 GPIO1_INT5_IRQn = 58, /**< Active HIGH Interrupt from INT5 from GPIO */
145 GPIO1_INT4_IRQn = 59, /**< Active HIGH Interrupt from INT4 from GPIO */
146 GPIO1_INT3_IRQn = 60, /**< Active HIGH Interrupt from INT3 from GPIO */
147 GPIO1_INT2_IRQn = 61, /**< Active HIGH Interrupt from INT2 from GPIO */
148 GPIO1_INT1_IRQn = 62, /**< Active HIGH Interrupt from INT1 from GPIO */
149 GPIO1_INT0_IRQn = 63, /**< Active HIGH Interrupt from INT0 from GPIO */
150 GPIO1_Combined_0_15_IRQn = 64, /**< Combined interrupt indication for GPIO1 signal 0 throughout 15 */
151 GPIO1_Combined_16_31_IRQn = 65, /**< Combined interrupt indication for GPIO1 signal 16 throughout 31 */
152 GPIO2_Combined_0_15_IRQn = 66, /**< Combined interrupt indication for GPIO2 signal 0 throughout 15 */
153 GPIO2_Combined_16_31_IRQn = 67, /**< Combined interrupt indication for GPIO2 signal 16 throughout 31 */
154 GPIO3_Combined_0_15_IRQn = 68, /**< Combined interrupt indication for GPIO3 signal 0 throughout 15 */
155 GPIO3_Combined_16_31_IRQn = 69, /**< Combined interrupt indication for GPIO3 signal 16 throughout 31 */
156 GPIO4_Combined_0_15_IRQn = 70, /**< Combined interrupt indication for GPIO4 signal 0 throughout 15 */
157 GPIO4_Combined_16_31_IRQn = 71, /**< Combined interrupt indication for GPIO4 signal 16 throughout 31 */
158 GPIO5_Combined_0_15_IRQn = 72, /**< Combined interrupt indication for GPIO5 signal 0 throughout 15 */
159 GPIO5_Combined_16_31_IRQn = 73, /**< Combined interrupt indication for GPIO5 signal 16 throughout 31 */
160 Reserved90_IRQn = 74, /**< Reserved interrupt */
161 Reserved91_IRQn = 75, /**< Reserved interrupt */
162 Reserved92_IRQn = 76, /**< Reserved interrupt */
163 Reserved93_IRQn = 77, /**< Reserved interrupt */
164 WDOG1_IRQn = 78, /**< Watchdog Timer reset */
165 WDOG2_IRQn = 79, /**< Watchdog Timer reset */
166 Reserved96_IRQn = 80, /**< Reserved interrupt */
167 PWM1_IRQn = 81, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */
168 PWM2_IRQn = 82, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */
169 PWM3_IRQn = 83, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */
170 PWM4_IRQn = 84, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */
171 CCM_IRQ1_IRQn = 85, /**< CCM Interrupt Request 1 */
172 CCM_IRQ2_IRQn = 86, /**< CCM Interrupt Request 2 */
173 GPC_IRQn = 87, /**< GPC Interrupt Request 1 */
174 MU_A53_IRQn = 88, /**< Interrupt to A53 */
175 SRC_IRQn = 89, /**< SRC interrupt request */
176 I2S56_IRQn = 90, /**< SAI5/6 Receive / Transmit Interrupt */
177 RTIC_IRQn = 91, /**< RTIC Interrupt */
178 CPU_PerformanceUnit_IRQn = 92, /**< Performance Unit Interrupts from Cheetah (interrnally: PMUIRQ[n] */
179 CPU_CTI_Trigger_IRQn = 93, /**< CTI trigger outputs (internal: nCTIIRQ[n] */
180 SRC_Combined_IRQn = 94, /**< Combined CPU wdog interrupts (4x) out of SRC. */
181 I2S1_IRQn = 95, /**< SAI1 Receive / Transmit Interrupt */
182 I2S2_IRQn = 96, /**< SAI2 Receive / Transmit Interrupt */
183 MU_M4_IRQn = 97, /**< Interrupt to M4 */
184 DDR_PerformanceMonitor_IRQn = 98, /**< ddr Interrupt for performance monitor */
185 DDR_IRQn = 99, /**< ddr Interrupt */
186 Reserved116_IRQn = 100, /**< Reserved interrupt */
187 CPU_Error_AXI_IRQn = 101, /**< CPU Error indicator for AXI transaction with a write response error condition */
188 CPU_Error_L2RAM_IRQn = 102, /**< CPU Error indicator for L2 RAM double-bit ECC error */
189 SDMA2_IRQn = 103, /**< AND of all 48 SDMA2 interrupts (events) from all the channels */
190 SJC_IRQn = 104, /**< Interrupt triggered by SJC register */
191 CAAM_IRQ0_IRQn = 105, /**< CAAM interrupt queue for JQ */
192 CAAM_IRQ1_IRQn = 106, /**< CAAM interrupt queue for JQ */
193 QSPI_IRQn = 107, /**< QSPI Interrupt */
194 TZASC_IRQn = 108, /**< TZASC (PL380) interrupt */
195 PDM_EVENT_IRQn = 109, /**< Digital Microphone interface interrupt */
196 PDM_ERROR_IRQn = 110, /**< Digital Microphone interface error interrupt */
197 Reserved127_IRQn = 111, /**< Reserved interrupt */
198 PERFMON1_IRQn = 112, /**< General Interrupt */
199 PERFMON2_IRQn = 113, /**< General Interrupt */
200 CAAM_IRQ2_IRQn = 114, /**< CAAM interrupt queue for JQ */
201 CAAM_ERROR_IRQn = 115, /**< Recoverable error interrupt */
202 HS_CP0_IRQn = 116, /**< HS Interrupt Request */
203 Reserved133_IRQn = 117, /**< Reserved interrupt */
204 ENET_MAC0_Rx_Tx_Done1_IRQn = 118, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */
205 ENET_MAC0_Rx_Tx_Done2_IRQn = 119, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */
206 ENET_IRQn = 120, /**< MAC 0 IRQ */
207 ENET_1588_IRQn = 121, /**< MAC 0 1588 Timer Interrupt - synchronous */
208 PCIE_CTRL1_IRQ0_IRQn = 122, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
209 PCIE_CTRL1_IRQ1_IRQn = 123, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
210 PCIE_CTRL1_IRQ2_IRQn = 124, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
211 PCIE_CTRL1_IRQ3_IRQn = 125, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
212 Reserved142_IRQn = 126, /**< Reserved */
213 PCIE_CTRL1_IRQn = 127 /**< Channels [63:32] interrupts requests */
214} IRQn_Type;
215
216/*!
217 * @}
218 */ /* end of group Interrupt_vector_numbers */
219
220
221/* ----------------------------------------------------------------------------
222 -- Cortex M4 Core Configuration
223 ---------------------------------------------------------------------------- */
224
225/*!
226 * @addtogroup Cortex_Core_Configuration Cortex M4 Core Configuration
227 * @{
228 */
229
230#define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */
231#define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */
232#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */
233#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
234
235#include "core_cm4.h" /* Core Peripheral Access Layer */
236#include "system_MIMX8MM5_cm4.h" /* Device specific configuration file */
237
238/*!
239 * @}
240 */ /* end of group Cortex_Core_Configuration */
241
242
243/* ----------------------------------------------------------------------------
244 -- Mapping Information
245 ---------------------------------------------------------------------------- */
246
247/*!
248 * @addtogroup Mapping_Information Mapping Information
249 * @{
250 */
251
252/** Mapping Information */
253/*!
254 * @addtogroup iomuxc_pads
255 * @{ */
256
257/*******************************************************************************
258 * Definitions
259*******************************************************************************/
260
261/*!
262 * @brief Enumeration for the IOMUXC SW_MUX_CTL_PAD
263 *
264 * Defines the enumeration for the IOMUXC SW_MUX_CTL_PAD collections.
265 */
266typedef enum _iomuxc_sw_mux_ctl_pad
267{
268 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO00 = 0U, /**< IOMUXC SW_MUX_CTL_PAD index */
269 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO01 = 1U, /**< IOMUXC SW_MUX_CTL_PAD index */
270 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO02 = 2U, /**< IOMUXC SW_MUX_CTL_PAD index */
271 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO03 = 3U, /**< IOMUXC SW_MUX_CTL_PAD index */
272 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO04 = 4U, /**< IOMUXC SW_MUX_CTL_PAD index */
273 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO05 = 5U, /**< IOMUXC SW_MUX_CTL_PAD index */
274 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO06 = 6U, /**< IOMUXC SW_MUX_CTL_PAD index */
275 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO07 = 7U, /**< IOMUXC SW_MUX_CTL_PAD index */
276 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO08 = 8U, /**< IOMUXC SW_MUX_CTL_PAD index */
277 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO09 = 9U, /**< IOMUXC SW_MUX_CTL_PAD index */
278 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO10 = 10U, /**< IOMUXC SW_MUX_CTL_PAD index */
279 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO11 = 11U, /**< IOMUXC SW_MUX_CTL_PAD index */
280 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO12 = 12U, /**< IOMUXC SW_MUX_CTL_PAD index */
281 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO13 = 13U, /**< IOMUXC SW_MUX_CTL_PAD index */
282 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO14 = 14U, /**< IOMUXC SW_MUX_CTL_PAD index */
283 kIOMUXC_SW_MUX_CTL_PAD_GPIO1_IO15 = 15U, /**< IOMUXC SW_MUX_CTL_PAD index */
284 kIOMUXC_SW_MUX_CTL_PAD_ENET_MDC = 16U, /**< IOMUXC SW_MUX_CTL_PAD index */
285 kIOMUXC_SW_MUX_CTL_PAD_ENET_MDIO = 17U, /**< IOMUXC SW_MUX_CTL_PAD index */
286 kIOMUXC_SW_MUX_CTL_PAD_ENET_TD3 = 18U, /**< IOMUXC SW_MUX_CTL_PAD index */
287 kIOMUXC_SW_MUX_CTL_PAD_ENET_TD2 = 19U, /**< IOMUXC SW_MUX_CTL_PAD index */
288 kIOMUXC_SW_MUX_CTL_PAD_ENET_TD1 = 20U, /**< IOMUXC SW_MUX_CTL_PAD index */
289 kIOMUXC_SW_MUX_CTL_PAD_ENET_TD0 = 21U, /**< IOMUXC SW_MUX_CTL_PAD index */
290 kIOMUXC_SW_MUX_CTL_PAD_ENET_TX_CTL = 22U, /**< IOMUXC SW_MUX_CTL_PAD index */
291 kIOMUXC_SW_MUX_CTL_PAD_ENET_TXC = 23U, /**< IOMUXC SW_MUX_CTL_PAD index */
292 kIOMUXC_SW_MUX_CTL_PAD_ENET_RX_CTL = 24U, /**< IOMUXC SW_MUX_CTL_PAD index */
293 kIOMUXC_SW_MUX_CTL_PAD_ENET_RXC = 25U, /**< IOMUXC SW_MUX_CTL_PAD index */
294 kIOMUXC_SW_MUX_CTL_PAD_ENET_RD0 = 26U, /**< IOMUXC SW_MUX_CTL_PAD index */
295 kIOMUXC_SW_MUX_CTL_PAD_ENET_RD1 = 27U, /**< IOMUXC SW_MUX_CTL_PAD index */
296 kIOMUXC_SW_MUX_CTL_PAD_ENET_RD2 = 28U, /**< IOMUXC SW_MUX_CTL_PAD index */
297 kIOMUXC_SW_MUX_CTL_PAD_ENET_RD3 = 29U, /**< IOMUXC SW_MUX_CTL_PAD index */
298 kIOMUXC_SW_MUX_CTL_PAD_SD1_CLK = 30U, /**< IOMUXC SW_MUX_CTL_PAD index */
299 kIOMUXC_SW_MUX_CTL_PAD_SD1_CMD = 31U, /**< IOMUXC SW_MUX_CTL_PAD index */
300 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA0 = 32U, /**< IOMUXC SW_MUX_CTL_PAD index */
301 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA1 = 33U, /**< IOMUXC SW_MUX_CTL_PAD index */
302 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA2 = 34U, /**< IOMUXC SW_MUX_CTL_PAD index */
303 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA3 = 35U, /**< IOMUXC SW_MUX_CTL_PAD index */
304 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA4 = 36U, /**< IOMUXC SW_MUX_CTL_PAD index */
305 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA5 = 37U, /**< IOMUXC SW_MUX_CTL_PAD index */
306 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA6 = 38U, /**< IOMUXC SW_MUX_CTL_PAD index */
307 kIOMUXC_SW_MUX_CTL_PAD_SD1_DATA7 = 39U, /**< IOMUXC SW_MUX_CTL_PAD index */
308 kIOMUXC_SW_MUX_CTL_PAD_SD1_RESET_B = 40U, /**< IOMUXC SW_MUX_CTL_PAD index */
309 kIOMUXC_SW_MUX_CTL_PAD_SD1_STROBE = 41U, /**< IOMUXC SW_MUX_CTL_PAD index */
310 kIOMUXC_SW_MUX_CTL_PAD_SD2_CD_B = 42U, /**< IOMUXC SW_MUX_CTL_PAD index */
311 kIOMUXC_SW_MUX_CTL_PAD_SD2_CLK = 43U, /**< IOMUXC SW_MUX_CTL_PAD index */
312 kIOMUXC_SW_MUX_CTL_PAD_SD2_CMD = 44U, /**< IOMUXC SW_MUX_CTL_PAD index */
313 kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA0 = 45U, /**< IOMUXC SW_MUX_CTL_PAD index */
314 kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA1 = 46U, /**< IOMUXC SW_MUX_CTL_PAD index */
315 kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA2 = 47U, /**< IOMUXC SW_MUX_CTL_PAD index */
316 kIOMUXC_SW_MUX_CTL_PAD_SD2_DATA3 = 48U, /**< IOMUXC SW_MUX_CTL_PAD index */
317 kIOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B = 49U, /**< IOMUXC SW_MUX_CTL_PAD index */
318 kIOMUXC_SW_MUX_CTL_PAD_SD2_WP = 50U, /**< IOMUXC SW_MUX_CTL_PAD index */
319 kIOMUXC_SW_MUX_CTL_PAD_NAND_ALE = 51U, /**< IOMUXC SW_MUX_CTL_PAD index */
320 kIOMUXC_SW_MUX_CTL_PAD_NAND_CE0_B = 52U, /**< IOMUXC SW_MUX_CTL_PAD index */
321 kIOMUXC_SW_MUX_CTL_PAD_NAND_CE1_B = 53U, /**< IOMUXC SW_MUX_CTL_PAD index */
322 kIOMUXC_SW_MUX_CTL_PAD_NAND_CE2_B = 54U, /**< IOMUXC SW_MUX_CTL_PAD index */
323 kIOMUXC_SW_MUX_CTL_PAD_NAND_CE3_B = 55U, /**< IOMUXC SW_MUX_CTL_PAD index */
324 kIOMUXC_SW_MUX_CTL_PAD_NAND_CLE = 56U, /**< IOMUXC SW_MUX_CTL_PAD index */
325 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA00 = 57U, /**< IOMUXC SW_MUX_CTL_PAD index */
326 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA01 = 58U, /**< IOMUXC SW_MUX_CTL_PAD index */
327 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA02 = 59U, /**< IOMUXC SW_MUX_CTL_PAD index */
328 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA03 = 60U, /**< IOMUXC SW_MUX_CTL_PAD index */
329 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA04 = 61U, /**< IOMUXC SW_MUX_CTL_PAD index */
330 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA05 = 62U, /**< IOMUXC SW_MUX_CTL_PAD index */
331 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA06 = 63U, /**< IOMUXC SW_MUX_CTL_PAD index */
332 kIOMUXC_SW_MUX_CTL_PAD_NAND_DATA07 = 64U, /**< IOMUXC SW_MUX_CTL_PAD index */
333 kIOMUXC_SW_MUX_CTL_PAD_NAND_DQS = 65U, /**< IOMUXC SW_MUX_CTL_PAD index */
334 kIOMUXC_SW_MUX_CTL_PAD_NAND_RE_B = 66U, /**< IOMUXC SW_MUX_CTL_PAD index */
335 kIOMUXC_SW_MUX_CTL_PAD_NAND_READY_B = 67U, /**< IOMUXC SW_MUX_CTL_PAD index */
336 kIOMUXC_SW_MUX_CTL_PAD_NAND_WE_B = 68U, /**< IOMUXC SW_MUX_CTL_PAD index */
337 kIOMUXC_SW_MUX_CTL_PAD_NAND_WP_B = 69U, /**< IOMUXC SW_MUX_CTL_PAD index */
338 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXFS = 70U, /**< IOMUXC SW_MUX_CTL_PAD index */
339 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXC = 71U, /**< IOMUXC SW_MUX_CTL_PAD index */
340 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD0 = 72U, /**< IOMUXC SW_MUX_CTL_PAD index */
341 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD1 = 73U, /**< IOMUXC SW_MUX_CTL_PAD index */
342 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD2 = 74U, /**< IOMUXC SW_MUX_CTL_PAD index */
343 kIOMUXC_SW_MUX_CTL_PAD_SAI5_RXD3 = 75U, /**< IOMUXC SW_MUX_CTL_PAD index */
344 kIOMUXC_SW_MUX_CTL_PAD_SAI5_MCLK = 76U, /**< IOMUXC SW_MUX_CTL_PAD index */
345 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXFS = 77U, /**< IOMUXC SW_MUX_CTL_PAD index */
346 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXC = 78U, /**< IOMUXC SW_MUX_CTL_PAD index */
347 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD0 = 79U, /**< IOMUXC SW_MUX_CTL_PAD index */
348 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD1 = 80U, /**< IOMUXC SW_MUX_CTL_PAD index */
349 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD2 = 81U, /**< IOMUXC SW_MUX_CTL_PAD index */
350 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD3 = 82U, /**< IOMUXC SW_MUX_CTL_PAD index */
351 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD4 = 83U, /**< IOMUXC SW_MUX_CTL_PAD index */
352 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD5 = 84U, /**< IOMUXC SW_MUX_CTL_PAD index */
353 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD6 = 85U, /**< IOMUXC SW_MUX_CTL_PAD index */
354 kIOMUXC_SW_MUX_CTL_PAD_SAI1_RXD7 = 86U, /**< IOMUXC SW_MUX_CTL_PAD index */
355 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXFS = 87U, /**< IOMUXC SW_MUX_CTL_PAD index */
356 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXC = 88U, /**< IOMUXC SW_MUX_CTL_PAD index */
357 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD0 = 89U, /**< IOMUXC SW_MUX_CTL_PAD index */
358 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD1 = 90U, /**< IOMUXC SW_MUX_CTL_PAD index */
359 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD2 = 91U, /**< IOMUXC SW_MUX_CTL_PAD index */
360 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD3 = 92U, /**< IOMUXC SW_MUX_CTL_PAD index */
361 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD4 = 93U, /**< IOMUXC SW_MUX_CTL_PAD index */
362 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD5 = 94U, /**< IOMUXC SW_MUX_CTL_PAD index */
363 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD6 = 95U, /**< IOMUXC SW_MUX_CTL_PAD index */
364 kIOMUXC_SW_MUX_CTL_PAD_SAI1_TXD7 = 96U, /**< IOMUXC SW_MUX_CTL_PAD index */
365 kIOMUXC_SW_MUX_CTL_PAD_SAI1_MCLK = 97U, /**< IOMUXC SW_MUX_CTL_PAD index */
366 kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXFS = 98U, /**< IOMUXC SW_MUX_CTL_PAD index */
367 kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXC = 99U, /**< IOMUXC SW_MUX_CTL_PAD index */
368 kIOMUXC_SW_MUX_CTL_PAD_SAI2_RXD0 = 100U, /**< IOMUXC SW_MUX_CTL_PAD index */
369 kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXFS = 101U, /**< IOMUXC SW_MUX_CTL_PAD index */
370 kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXC = 102U, /**< IOMUXC SW_MUX_CTL_PAD index */
371 kIOMUXC_SW_MUX_CTL_PAD_SAI2_TXD0 = 103U, /**< IOMUXC SW_MUX_CTL_PAD index */
372 kIOMUXC_SW_MUX_CTL_PAD_SAI2_MCLK = 104U, /**< IOMUXC SW_MUX_CTL_PAD index */
373 kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXFS = 105U, /**< IOMUXC SW_MUX_CTL_PAD index */
374 kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXC = 106U, /**< IOMUXC SW_MUX_CTL_PAD index */
375 kIOMUXC_SW_MUX_CTL_PAD_SAI3_RXD = 107U, /**< IOMUXC SW_MUX_CTL_PAD index */
376 kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXFS = 108U, /**< IOMUXC SW_MUX_CTL_PAD index */
377 kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXC = 109U, /**< IOMUXC SW_MUX_CTL_PAD index */
378 kIOMUXC_SW_MUX_CTL_PAD_SAI3_TXD = 110U, /**< IOMUXC SW_MUX_CTL_PAD index */
379 kIOMUXC_SW_MUX_CTL_PAD_SAI3_MCLK = 111U, /**< IOMUXC SW_MUX_CTL_PAD index */
380 kIOMUXC_SW_MUX_CTL_PAD_SPDIF_TX = 112U, /**< IOMUXC SW_MUX_CTL_PAD index */
381 kIOMUXC_SW_MUX_CTL_PAD_SPDIF_RX = 113U, /**< IOMUXC SW_MUX_CTL_PAD index */
382 kIOMUXC_SW_MUX_CTL_PAD_SPDIF_EXT_CLK = 114U, /**< IOMUXC SW_MUX_CTL_PAD index */
383 kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_SCLK = 115U, /**< IOMUXC SW_MUX_CTL_PAD index */
384 kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_MOSI = 116U, /**< IOMUXC SW_MUX_CTL_PAD index */
385 kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_MISO = 117U, /**< IOMUXC SW_MUX_CTL_PAD index */
386 kIOMUXC_SW_MUX_CTL_PAD_ECSPI1_SS0 = 118U, /**< IOMUXC SW_MUX_CTL_PAD index */
387 kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_SCLK = 119U, /**< IOMUXC SW_MUX_CTL_PAD index */
388 kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_MOSI = 120U, /**< IOMUXC SW_MUX_CTL_PAD index */
389 kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_MISO = 121U, /**< IOMUXC SW_MUX_CTL_PAD index */
390 kIOMUXC_SW_MUX_CTL_PAD_ECSPI2_SS0 = 122U, /**< IOMUXC SW_MUX_CTL_PAD index */
391 kIOMUXC_SW_MUX_CTL_PAD_I2C1_SCL = 123U, /**< IOMUXC SW_MUX_CTL_PAD index */
392 kIOMUXC_SW_MUX_CTL_PAD_I2C1_SDA = 124U, /**< IOMUXC SW_MUX_CTL_PAD index */
393 kIOMUXC_SW_MUX_CTL_PAD_I2C2_SCL = 125U, /**< IOMUXC SW_MUX_CTL_PAD index */
394 kIOMUXC_SW_MUX_CTL_PAD_I2C2_SDA = 126U, /**< IOMUXC SW_MUX_CTL_PAD index */
395 kIOMUXC_SW_MUX_CTL_PAD_I2C3_SCL = 127U, /**< IOMUXC SW_MUX_CTL_PAD index */
396 kIOMUXC_SW_MUX_CTL_PAD_I2C3_SDA = 128U, /**< IOMUXC SW_MUX_CTL_PAD index */
397 kIOMUXC_SW_MUX_CTL_PAD_I2C4_SCL = 129U, /**< IOMUXC SW_MUX_CTL_PAD index */
398 kIOMUXC_SW_MUX_CTL_PAD_I2C4_SDA = 130U, /**< IOMUXC SW_MUX_CTL_PAD index */
399 kIOMUXC_SW_MUX_CTL_PAD_UART1_RXD = 131U, /**< IOMUXC SW_MUX_CTL_PAD index */
400 kIOMUXC_SW_MUX_CTL_PAD_UART1_TXD = 132U, /**< IOMUXC SW_MUX_CTL_PAD index */
401 kIOMUXC_SW_MUX_CTL_PAD_UART2_RXD = 133U, /**< IOMUXC SW_MUX_CTL_PAD index */
402 kIOMUXC_SW_MUX_CTL_PAD_UART2_TXD = 134U, /**< IOMUXC SW_MUX_CTL_PAD index */
403 kIOMUXC_SW_MUX_CTL_PAD_UART3_RXD = 135U, /**< IOMUXC SW_MUX_CTL_PAD index */
404 kIOMUXC_SW_MUX_CTL_PAD_UART3_TXD = 136U, /**< IOMUXC SW_MUX_CTL_PAD index */
405 kIOMUXC_SW_MUX_CTL_PAD_UART4_RXD = 137U, /**< IOMUXC SW_MUX_CTL_PAD index */
406 kIOMUXC_SW_MUX_CTL_PAD_UART4_TXD = 138U, /**< IOMUXC SW_MUX_CTL_PAD index */
407} iomuxc_sw_mux_ctl_pad_t;
408
409/*!
410 * @addtogroup iomuxc_pads
411 * @{ */
412
413/*******************************************************************************
414 * Definitions
415*******************************************************************************/
416
417/*!
418 * @brief Enumeration for the IOMUXC SW_PAD_CTL_PAD
419 *
420 * Defines the enumeration for the IOMUXC SW_PAD_CTL_PAD collections.
421 */
422typedef enum _iomuxc_sw_pad_ctl_pad
423{
424 kIOMUXC_SW_PAD_CTL_PAD_TEST_MODE = 0U, /**< IOMUXC SW_PAD_CTL_PAD index */
425 kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE0 = 1U, /**< IOMUXC SW_PAD_CTL_PAD index */
426 kIOMUXC_SW_PAD_CTL_PAD_BOOT_MODE1 = 2U, /**< IOMUXC SW_PAD_CTL_PAD index */
427 kIOMUXC_SW_PAD_CTL_PAD_JTAG_MOD = 3U, /**< IOMUXC SW_PAD_CTL_PAD index */
428 kIOMUXC_SW_PAD_CTL_PAD_JTAG_TRST_B = 4U, /**< IOMUXC SW_PAD_CTL_PAD index */
429 kIOMUXC_SW_PAD_CTL_PAD_JTAG_TDI = 5U, /**< IOMUXC SW_PAD_CTL_PAD index */
430 kIOMUXC_SW_PAD_CTL_PAD_JTAG_TMS = 6U, /**< IOMUXC SW_PAD_CTL_PAD index */
431 kIOMUXC_SW_PAD_CTL_PAD_JTAG_TCK = 7U, /**< IOMUXC SW_PAD_CTL_PAD index */
432 kIOMUXC_SW_PAD_CTL_PAD_JTAG_TDO = 8U, /**< IOMUXC SW_PAD_CTL_PAD index */
433 kIOMUXC_SW_PAD_CTL_PAD_RTC = 9U, /**< IOMUXC SW_PAD_CTL_PAD index */
434 kIOMUXC_SW_PAD_CTL_PAD_PMIC_STBY_REQ = 10U, /**< IOMUXC SW_PAD_CTL_PAD index */
435 kIOMUXC_SW_PAD_CTL_PAD_PMIC_ON_REQ = 11U, /**< IOMUXC SW_PAD_CTL_PAD index */
436 kIOMUXC_SW_PAD_CTL_PAD_ONOFF = 12U, /**< IOMUXC SW_PAD_CTL_PAD index */
437 kIOMUXC_SW_PAD_CTL_PAD_POR_B = 13U, /**< IOMUXC SW_PAD_CTL_PAD index */
438 kIOMUXC_SW_PAD_CTL_PAD_RTC_RESET_B = 14U, /**< IOMUXC SW_PAD_CTL_PAD index */
439 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO00 = 15U, /**< IOMUXC SW_PAD_CTL_PAD index */
440 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO01 = 16U, /**< IOMUXC SW_PAD_CTL_PAD index */
441 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO02 = 17U, /**< IOMUXC SW_PAD_CTL_PAD index */
442 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO03 = 18U, /**< IOMUXC SW_PAD_CTL_PAD index */
443 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO04 = 19U, /**< IOMUXC SW_PAD_CTL_PAD index */
444 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO05 = 20U, /**< IOMUXC SW_PAD_CTL_PAD index */
445 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO06 = 21U, /**< IOMUXC SW_PAD_CTL_PAD index */
446 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO07 = 22U, /**< IOMUXC SW_PAD_CTL_PAD index */
447 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO08 = 23U, /**< IOMUXC SW_PAD_CTL_PAD index */
448 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO09 = 24U, /**< IOMUXC SW_PAD_CTL_PAD index */
449 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO10 = 25U, /**< IOMUXC SW_PAD_CTL_PAD index */
450 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO11 = 26U, /**< IOMUXC SW_PAD_CTL_PAD index */
451 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO12 = 27U, /**< IOMUXC SW_PAD_CTL_PAD index */
452 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO13 = 28U, /**< IOMUXC SW_PAD_CTL_PAD index */
453 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO14 = 29U, /**< IOMUXC SW_PAD_CTL_PAD index */
454 kIOMUXC_SW_PAD_CTL_PAD_GPIO1_IO15 = 30U, /**< IOMUXC SW_PAD_CTL_PAD index */
455 kIOMUXC_SW_PAD_CTL_PAD_ENET_MDC = 31U, /**< IOMUXC SW_PAD_CTL_PAD index */
456 kIOMUXC_SW_PAD_CTL_PAD_ENET_MDIO = 32U, /**< IOMUXC SW_PAD_CTL_PAD index */
457 kIOMUXC_SW_PAD_CTL_PAD_ENET_TD3 = 33U, /**< IOMUXC SW_PAD_CTL_PAD index */
458 kIOMUXC_SW_PAD_CTL_PAD_ENET_TD2 = 34U, /**< IOMUXC SW_PAD_CTL_PAD index */
459 kIOMUXC_SW_PAD_CTL_PAD_ENET_TD1 = 35U, /**< IOMUXC SW_PAD_CTL_PAD index */
460 kIOMUXC_SW_PAD_CTL_PAD_ENET_TD0 = 36U, /**< IOMUXC SW_PAD_CTL_PAD index */
461 kIOMUXC_SW_PAD_CTL_PAD_ENET_TX_CTL = 37U, /**< IOMUXC SW_PAD_CTL_PAD index */
462 kIOMUXC_SW_PAD_CTL_PAD_ENET_TXC = 38U, /**< IOMUXC SW_PAD_CTL_PAD index */
463 kIOMUXC_SW_PAD_CTL_PAD_ENET_RX_CTL = 39U, /**< IOMUXC SW_PAD_CTL_PAD index */
464 kIOMUXC_SW_PAD_CTL_PAD_ENET_RXC = 40U, /**< IOMUXC SW_PAD_CTL_PAD index */
465 kIOMUXC_SW_PAD_CTL_PAD_ENET_RD0 = 41U, /**< IOMUXC SW_PAD_CTL_PAD index */
466 kIOMUXC_SW_PAD_CTL_PAD_ENET_RD1 = 42U, /**< IOMUXC SW_PAD_CTL_PAD index */
467 kIOMUXC_SW_PAD_CTL_PAD_ENET_RD2 = 43U, /**< IOMUXC SW_PAD_CTL_PAD index */
468 kIOMUXC_SW_PAD_CTL_PAD_ENET_RD3 = 44U, /**< IOMUXC SW_PAD_CTL_PAD index */
469 kIOMUXC_SW_PAD_CTL_PAD_SD1_CLK = 45U, /**< IOMUXC SW_PAD_CTL_PAD index */
470 kIOMUXC_SW_PAD_CTL_PAD_SD1_CMD = 46U, /**< IOMUXC SW_PAD_CTL_PAD index */
471 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA0 = 47U, /**< IOMUXC SW_PAD_CTL_PAD index */
472 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA1 = 48U, /**< IOMUXC SW_PAD_CTL_PAD index */
473 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA2 = 49U, /**< IOMUXC SW_PAD_CTL_PAD index */
474 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA3 = 50U, /**< IOMUXC SW_PAD_CTL_PAD index */
475 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA4 = 51U, /**< IOMUXC SW_PAD_CTL_PAD index */
476 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA5 = 52U, /**< IOMUXC SW_PAD_CTL_PAD index */
477 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA6 = 53U, /**< IOMUXC SW_PAD_CTL_PAD index */
478 kIOMUXC_SW_PAD_CTL_PAD_SD1_DATA7 = 54U, /**< IOMUXC SW_PAD_CTL_PAD index */
479 kIOMUXC_SW_PAD_CTL_PAD_SD1_RESET_B = 55U, /**< IOMUXC SW_PAD_CTL_PAD index */
480 kIOMUXC_SW_PAD_CTL_PAD_SD1_STROBE = 56U, /**< IOMUXC SW_PAD_CTL_PAD index */
481 kIOMUXC_SW_PAD_CTL_PAD_SD2_CD_B = 57U, /**< IOMUXC SW_PAD_CTL_PAD index */
482 kIOMUXC_SW_PAD_CTL_PAD_SD2_CLK = 58U, /**< IOMUXC SW_PAD_CTL_PAD index */
483 kIOMUXC_SW_PAD_CTL_PAD_SD2_CMD = 59U, /**< IOMUXC SW_PAD_CTL_PAD index */
484 kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA0 = 60U, /**< IOMUXC SW_PAD_CTL_PAD index */
485 kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA1 = 61U, /**< IOMUXC SW_PAD_CTL_PAD index */
486 kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA2 = 62U, /**< IOMUXC SW_PAD_CTL_PAD index */
487 kIOMUXC_SW_PAD_CTL_PAD_SD2_DATA3 = 63U, /**< IOMUXC SW_PAD_CTL_PAD index */
488 kIOMUXC_SW_PAD_CTL_PAD_SD2_RESET_B = 64U, /**< IOMUXC SW_PAD_CTL_PAD index */
489 kIOMUXC_SW_PAD_CTL_PAD_SD2_WP = 65U, /**< IOMUXC SW_PAD_CTL_PAD index */
490 kIOMUXC_SW_PAD_CTL_PAD_NAND_ALE = 66U, /**< IOMUXC SW_PAD_CTL_PAD index */
491 kIOMUXC_SW_PAD_CTL_PAD_NAND_CE0_B = 67U, /**< IOMUXC SW_PAD_CTL_PAD index */
492 kIOMUXC_SW_PAD_CTL_PAD_NAND_CE1_B = 68U, /**< IOMUXC SW_PAD_CTL_PAD index */
493 kIOMUXC_SW_PAD_CTL_PAD_NAND_CE2_B = 69U, /**< IOMUXC SW_PAD_CTL_PAD index */
494 kIOMUXC_SW_PAD_CTL_PAD_NAND_CE3_B = 70U, /**< IOMUXC SW_PAD_CTL_PAD index */
495 kIOMUXC_SW_PAD_CTL_PAD_NAND_CLE = 71U, /**< IOMUXC SW_PAD_CTL_PAD index */
496 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA00 = 72U, /**< IOMUXC SW_PAD_CTL_PAD index */
497 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA01 = 73U, /**< IOMUXC SW_PAD_CTL_PAD index */
498 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA02 = 74U, /**< IOMUXC SW_PAD_CTL_PAD index */
499 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA03 = 75U, /**< IOMUXC SW_PAD_CTL_PAD index */
500 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA04 = 76U, /**< IOMUXC SW_PAD_CTL_PAD index */
501 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA05 = 77U, /**< IOMUXC SW_PAD_CTL_PAD index */
502 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA06 = 78U, /**< IOMUXC SW_PAD_CTL_PAD index */
503 kIOMUXC_SW_PAD_CTL_PAD_NAND_DATA07 = 79U, /**< IOMUXC SW_PAD_CTL_PAD index */
504 kIOMUXC_SW_PAD_CTL_PAD_NAND_DQS = 80U, /**< IOMUXC SW_PAD_CTL_PAD index */
505 kIOMUXC_SW_PAD_CTL_PAD_NAND_RE_B = 81U, /**< IOMUXC SW_PAD_CTL_PAD index */
506 kIOMUXC_SW_PAD_CTL_PAD_NAND_READY_B = 82U, /**< IOMUXC SW_PAD_CTL_PAD index */
507 kIOMUXC_SW_PAD_CTL_PAD_NAND_WE_B = 83U, /**< IOMUXC SW_PAD_CTL_PAD index */
508 kIOMUXC_SW_PAD_CTL_PAD_NAND_WP_B = 84U, /**< IOMUXC SW_PAD_CTL_PAD index */
509 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXFS = 85U, /**< IOMUXC SW_PAD_CTL_PAD index */
510 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXC = 86U, /**< IOMUXC SW_PAD_CTL_PAD index */
511 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD0 = 87U, /**< IOMUXC SW_PAD_CTL_PAD index */
512 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD1 = 88U, /**< IOMUXC SW_PAD_CTL_PAD index */
513 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD2 = 89U, /**< IOMUXC SW_PAD_CTL_PAD index */
514 kIOMUXC_SW_PAD_CTL_PAD_SAI5_RXD3 = 90U, /**< IOMUXC SW_PAD_CTL_PAD index */
515 kIOMUXC_SW_PAD_CTL_PAD_SAI5_MCLK = 91U, /**< IOMUXC SW_PAD_CTL_PAD index */
516 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXFS = 92U, /**< IOMUXC SW_PAD_CTL_PAD index */
517 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXC = 93U, /**< IOMUXC SW_PAD_CTL_PAD index */
518 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD0 = 94U, /**< IOMUXC SW_PAD_CTL_PAD index */
519 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD1 = 95U, /**< IOMUXC SW_PAD_CTL_PAD index */
520 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD2 = 96U, /**< IOMUXC SW_PAD_CTL_PAD index */
521 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD3 = 97U, /**< IOMUXC SW_PAD_CTL_PAD index */
522 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD4 = 98U, /**< IOMUXC SW_PAD_CTL_PAD index */
523 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD5 = 99U, /**< IOMUXC SW_PAD_CTL_PAD index */
524 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD6 = 100U, /**< IOMUXC SW_PAD_CTL_PAD index */
525 kIOMUXC_SW_PAD_CTL_PAD_SAI1_RXD7 = 101U, /**< IOMUXC SW_PAD_CTL_PAD index */
526 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXFS = 102U, /**< IOMUXC SW_PAD_CTL_PAD index */
527 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXC = 103U, /**< IOMUXC SW_PAD_CTL_PAD index */
528 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD0 = 104U, /**< IOMUXC SW_PAD_CTL_PAD index */
529 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD1 = 105U, /**< IOMUXC SW_PAD_CTL_PAD index */
530 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD2 = 106U, /**< IOMUXC SW_PAD_CTL_PAD index */
531 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD3 = 107U, /**< IOMUXC SW_PAD_CTL_PAD index */
532 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD4 = 108U, /**< IOMUXC SW_PAD_CTL_PAD index */
533 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD5 = 109U, /**< IOMUXC SW_PAD_CTL_PAD index */
534 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD6 = 110U, /**< IOMUXC SW_PAD_CTL_PAD index */
535 kIOMUXC_SW_PAD_CTL_PAD_SAI1_TXD7 = 111U, /**< IOMUXC SW_PAD_CTL_PAD index */
536 kIOMUXC_SW_PAD_CTL_PAD_SAI1_MCLK = 112U, /**< IOMUXC SW_PAD_CTL_PAD index */
537 kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXFS = 113U, /**< IOMUXC SW_PAD_CTL_PAD index */
538 kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXC = 114U, /**< IOMUXC SW_PAD_CTL_PAD index */
539 kIOMUXC_SW_PAD_CTL_PAD_SAI2_RXD0 = 115U, /**< IOMUXC SW_PAD_CTL_PAD index */
540 kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXFS = 116U, /**< IOMUXC SW_PAD_CTL_PAD index */
541 kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXC = 117U, /**< IOMUXC SW_PAD_CTL_PAD index */
542 kIOMUXC_SW_PAD_CTL_PAD_SAI2_TXD0 = 118U, /**< IOMUXC SW_PAD_CTL_PAD index */
543 kIOMUXC_SW_PAD_CTL_PAD_SAI2_MCLK = 119U, /**< IOMUXC SW_PAD_CTL_PAD index */
544 kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXFS = 120U, /**< IOMUXC SW_PAD_CTL_PAD index */
545 kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXC = 121U, /**< IOMUXC SW_PAD_CTL_PAD index */
546 kIOMUXC_SW_PAD_CTL_PAD_SAI3_RXD = 122U, /**< IOMUXC SW_PAD_CTL_PAD index */
547 kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXFS = 123U, /**< IOMUXC SW_PAD_CTL_PAD index */
548 kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXC = 124U, /**< IOMUXC SW_PAD_CTL_PAD index */
549 kIOMUXC_SW_PAD_CTL_PAD_SAI3_TXD = 125U, /**< IOMUXC SW_PAD_CTL_PAD index */
550 kIOMUXC_SW_PAD_CTL_PAD_SAI3_MCLK = 126U, /**< IOMUXC SW_PAD_CTL_PAD index */
551 kIOMUXC_SW_PAD_CTL_PAD_SPDIF_TX = 127U, /**< IOMUXC SW_PAD_CTL_PAD index */
552 kIOMUXC_SW_PAD_CTL_PAD_SPDIF_RX = 128U, /**< IOMUXC SW_PAD_CTL_PAD index */
553 kIOMUXC_SW_PAD_CTL_PAD_SPDIF_EXT_CLK = 129U, /**< IOMUXC SW_PAD_CTL_PAD index */
554 kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_SCLK = 130U, /**< IOMUXC SW_PAD_CTL_PAD index */
555 kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_MOSI = 131U, /**< IOMUXC SW_PAD_CTL_PAD index */
556 kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_MISO = 132U, /**< IOMUXC SW_PAD_CTL_PAD index */
557 kIOMUXC_SW_PAD_CTL_PAD_ECSPI1_SS0 = 133U, /**< IOMUXC SW_PAD_CTL_PAD index */
558 kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_SCLK = 134U, /**< IOMUXC SW_PAD_CTL_PAD index */
559 kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_MOSI = 135U, /**< IOMUXC SW_PAD_CTL_PAD index */
560 kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_MISO = 136U, /**< IOMUXC SW_PAD_CTL_PAD index */
561 kIOMUXC_SW_PAD_CTL_PAD_ECSPI2_SS0 = 137U, /**< IOMUXC SW_PAD_CTL_PAD index */
562 kIOMUXC_SW_PAD_CTL_PAD_I2C1_SCL = 138U, /**< IOMUXC SW_PAD_CTL_PAD index */
563 kIOMUXC_SW_PAD_CTL_PAD_I2C1_SDA = 139U, /**< IOMUXC SW_PAD_CTL_PAD index */
564 kIOMUXC_SW_PAD_CTL_PAD_I2C2_SCL = 140U, /**< IOMUXC SW_PAD_CTL_PAD index */
565 kIOMUXC_SW_PAD_CTL_PAD_I2C2_SDA = 141U, /**< IOMUXC SW_PAD_CTL_PAD index */
566 kIOMUXC_SW_PAD_CTL_PAD_I2C3_SCL = 142U, /**< IOMUXC SW_PAD_CTL_PAD index */
567 kIOMUXC_SW_PAD_CTL_PAD_I2C3_SDA = 143U, /**< IOMUXC SW_PAD_CTL_PAD index */
568 kIOMUXC_SW_PAD_CTL_PAD_I2C4_SCL = 144U, /**< IOMUXC SW_PAD_CTL_PAD index */
569 kIOMUXC_SW_PAD_CTL_PAD_I2C4_SDA = 145U, /**< IOMUXC SW_PAD_CTL_PAD index */
570 kIOMUXC_SW_PAD_CTL_PAD_UART1_RXD = 146U, /**< IOMUXC SW_PAD_CTL_PAD index */
571 kIOMUXC_SW_PAD_CTL_PAD_UART1_TXD = 147U, /**< IOMUXC SW_PAD_CTL_PAD index */
572 kIOMUXC_SW_PAD_CTL_PAD_UART2_RXD = 148U, /**< IOMUXC SW_PAD_CTL_PAD index */
573 kIOMUXC_SW_PAD_CTL_PAD_UART2_TXD = 149U, /**< IOMUXC SW_PAD_CTL_PAD index */
574 kIOMUXC_SW_PAD_CTL_PAD_UART3_RXD = 150U, /**< IOMUXC SW_PAD_CTL_PAD index */
575 kIOMUXC_SW_PAD_CTL_PAD_UART3_TXD = 151U, /**< IOMUXC SW_PAD_CTL_PAD index */
576 kIOMUXC_SW_PAD_CTL_PAD_UART4_RXD = 152U, /**< IOMUXC SW_PAD_CTL_PAD index */
577 kIOMUXC_SW_PAD_CTL_PAD_UART4_TXD = 153U, /**< IOMUXC SW_PAD_CTL_PAD index */
578} iomuxc_sw_pad_ctl_pad_t;
579
580/* @} */
581
582/*!
583 * @brief Enumeration for the IOMUXC select input
584 *
585 * Defines the enumeration for the IOMUXC select input collections.
586 */
587typedef enum _iomuxc_select_input
588{
589 kIOMUXC_CCM_PMIC_READY_SELECT_INPUT = 0U, /**< IOMUXC select input index */
590 kIOMUXC_ENET1_MDIO_SELECT_INPUT = 1U, /**< IOMUXC select input index */
591 kIOMUXC_SAI1_RX_SYNC_SELECT_INPUT = 2U, /**< IOMUXC select input index */
592 kIOMUXC_SAI1_TX_BCLK_SELECT_INPUT = 3U, /**< IOMUXC select input index */
593 kIOMUXC_SAI1_TX_SYNC_SELECT_INPUT = 4U, /**< IOMUXC select input index */
594 kIOMUXC_SAI5_RX_BCLK_SELECT_INPUT = 5U, /**< IOMUXC select input index */
595 kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_0 = 6U, /**< IOMUXC select input index */
596 kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_1 = 7U, /**< IOMUXC select input index */
597 kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_2 = 8U, /**< IOMUXC select input index */
598 kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_3 = 9U, /**< IOMUXC select input index */
599 kIOMUXC_SAI5_RX_SYNC_SELECT_INPUT = 10U, /**< IOMUXC select input index */
600 kIOMUXC_SAI5_TX_BCLK_SELECT_INPUT = 11U, /**< IOMUXC select input index */
601 kIOMUXC_SAI5_TX_SYNC_SELECT_INPUT = 12U, /**< IOMUXC select input index */
602 kIOMUXC_UART1_RTS_B_SELECT_INPUT = 13U, /**< IOMUXC select input index */
603 kIOMUXC_UART1_RXD_SELECT_INPUT = 14U, /**< IOMUXC select input index */
604 kIOMUXC_UART2_RTS_B_SELECT_INPUT = 15U, /**< IOMUXC select input index */
605 kIOMUXC_UART2_RXD_SELECT_INPUT = 16U, /**< IOMUXC select input index */
606 kIOMUXC_UART3_RTS_B_SELECT_INPUT = 17U, /**< IOMUXC select input index */
607 kIOMUXC_UART3_RXD_SELECT_INPUT = 18U, /**< IOMUXC select input index */
608 kIOMUXC_UART4_RTS_B_SELECT_INPUT = 19U, /**< IOMUXC select input index */
609 kIOMUXC_UART4_RXD_SELECT_INPUT = 20U, /**< IOMUXC select input index */
610 kIOMUXC_SAI6_RX_BCLK_SELECT_INPUT = 21U, /**< IOMUXC select input index */
611 kIOMUXC_SAI6_RX_DATA_SELECT_INPUT_0 = 22U, /**< IOMUXC select input index */
612 kIOMUXC_SAI6_RX_SYNC_SELECT_INPUT = 23U, /**< IOMUXC select input index */
613 kIOMUXC_SAI6_TX_BCLK_SELECT_INPUT = 24U, /**< IOMUXC select input index */
614 kIOMUXC_SAI6_TX_SYNC_SELECT_INPUT = 25U, /**< IOMUXC select input index */
615 kIOMUXC_PCIE1_CLKREQ_B_SELECT_INPUT = 26U, /**< IOMUXC select input index */
616 kIOMUXC_SAI5_MCLK_SELECT_INPUT = 28U, /**< IOMUXC select input index */
617 kIOMUXC_SAI6_MCLK_SELECT_INPUT = 29U, /**< IOMUXC select input index */
618 kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_0 = 30U, /**< IOMUXC select input index */
619 kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_1 = 31U, /**< IOMUXC select input index */
620 kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_2 = 32U, /**< IOMUXC select input index */
621 kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_3 = 33U, /**< IOMUXC select input index */
622 kIOMUXC_USDHC3_CD_B_SELECT_INPUT = 34U, /**< IOMUXC select input index */
623 kIOMUXC_USDHC3_WP_SELECT_INPUT = 35U, /**< IOMUXC select input index */
624} iomuxc_select_input_t;
625
626/*!
627 * @addtogroup rdc_mapping
628 * @{
629 */
630
631/*******************************************************************************
632 * Definitions
633 ******************************************************************************/
634
635/*!
636 * @brief Structure for the RDC mapping
637 *
638 * Defines the structure for the RDC resource collections.
639 */
640
641typedef enum _rdc_master
642{
643 kRDC_Master_A53 = 0U, /**< ARM Cortex-A53 RDC Master */
644 kRDC_Master_M4 = 1U, /**< ARM Cortex-M4 RDC Master */
645 kRDC_Master_PCIE_CTRL1 = 2U, /**< PCIE CTRL1 RDC Master */
646 kRDC_Master_SDMA3_PERIPH = 3U, /**< SDMA3 PERIPHERAL RDC Master */
647 kRDC_Master_VPU = 4U, /**< VPU RDC Master */
648 kRDC_Master_LCDIF = 5U, /**< LCDIF RDC Master */
649 kRDC_Master_CSI = 6U, /**< CSI PORT RDC Master */
650 kRDC_Master_SDMA3_BURST = 7U, /**< SDMA3 BURST RDC Master */
651 kRDC_Master_Coresight = 8U, /**< CORESIGHT RDC Master */
652 kRDC_Master_DAP = 9U, /**< DAP RDC Master */
653 kRDC_Master_CAAM = 10U, /**< CAAM RDC Master */
654 kRDC_Master_SDMA1_PERIPH = 11U, /**< SDMA1 PERIPHERAL RDC Master */
655 kRDC_Master_SDMA1_BURST = 12U, /**< SDMA1 BURST RDC Master */
656 kRDC_Master_APBHDMA = 13U, /**< APBH DMA RDC Master */
657 kRDC_Master_RAWNAND = 14U, /**< RAW NAND RDC Master */
658 kRDC_Master_USDHC1 = 15U, /**< USDHC1 RDC Master */
659 kRDC_Master_USDHC2 = 16U, /**< USDHC2 RDC Master */
660 kRDC_Master_USDHC3 = 17U, /**< USDHC3 RDC Master */
661 kRDC_Master_GPU = 18U, /**< GPU RDC Master */
662 kRDC_Master_USB1 = 19U, /**< USB1 RDC Master */
663 kRDC_Master_USB2 = 20U, /**< USB2 RDC Master */
664 kRDC_Master_TESTPORT = 21U, /**< TESTPORT RDC Master */
665 kRDC_Master_ENET1TX = 22U, /**< ENET1 TX RDC Master */
666 kRDC_Master_ENET1RX = 23U, /**< ENET1 RX RDC Master */
667 kRDC_Master_SDMA2_PERIPH = 24U, /**< SDMA2 PERIPH RDC Master */
668 kRDC_Master_SDMA2_BURST = 24U, /**< SDMA2 BURST RDC Master */
669 kRDC_Master_SDMA2_SPBA2 = 24U, /**< SDMA2 to SPBA2 RDC Master */
670 kRDC_Master_SDMA3_SPBA2 = 25U, /**< SDMA3 to SPBA2 RDC Master */
671 kRDC_Master_SDMA1_SPBA1 = 26U, /**< SDMA1 to SPBA1 RDC Master */
672} rdc_master_t;
673
674typedef enum _rdc_mem
675{
676 kRDC_Mem_MRC0_0 = 0U, /**< MMDC/DRAM. Region resolution 4KB. */
677 kRDC_Mem_MRC0_1 = 1U,
678 kRDC_Mem_MRC0_2 = 2U,
679 kRDC_Mem_MRC0_3 = 3U,
680 kRDC_Mem_MRC0_4 = 4U,
681 kRDC_Mem_MRC0_5 = 5U,
682 kRDC_Mem_MRC0_6 = 6U,
683 kRDC_Mem_MRC0_7 = 7U,
684 kRDC_Mem_MRC1_0 = 8U, /**< QSPI. Region resolution 4KB. */
685 kRDC_Mem_MRC1_1 = 9U,
686 kRDC_Mem_MRC1_2 = 10U,
687 kRDC_Mem_MRC1_3 = 11U,
688 kRDC_Mem_MRC1_4 = 12U,
689 kRDC_Mem_MRC1_5 = 13U,
690 kRDC_Mem_MRC1_6 = 14U,
691 kRDC_Mem_MRC1_7 = 15U,
692 kRDC_Mem_MRC2_0 = 16U, /**< PCIE1. Region resolution 4KB. */
693 kRDC_Mem_MRC2_1 = 17U,
694 kRDC_Mem_MRC2_2 = 18U,
695 kRDC_Mem_MRC2_3 = 19U,
696 kRDC_Mem_MRC2_4 = 20U,
697 kRDC_Mem_MRC2_5 = 21U,
698 kRDC_Mem_MRC2_6 = 22U,
699 kRDC_Mem_MRC2_7 = 23U,
700 kRDC_Mem_MRC3_0 = 24U, /**< OCRAM. Region resolution 128B. */
701 kRDC_Mem_MRC3_1 = 25U,
702 kRDC_Mem_MRC3_2 = 26U,
703 kRDC_Mem_MRC3_3 = 27U,
704 kRDC_Mem_MRC3_4 = 28U,
705 kRDC_Mem_MRC4_0 = 29U, /**< OCRAM_S. Region resolution 128B. */
706 kRDC_Mem_MRC4_1 = 30U,
707 kRDC_Mem_MRC4_2 = 31U,
708 kRDC_Mem_MRC4_3 = 32U,
709 kRDC_Mem_MRC4_4 = 33U,
710 kRDC_Mem_MRC5_0 = 34U, /**< TCM. Region resolution 128B. */
711 kRDC_Mem_MRC5_1 = 35U,
712 kRDC_Mem_MRC5_2 = 36U,
713 kRDC_Mem_MRC5_3 = 37U,
714 kRDC_Mem_MRC5_4 = 38U,
715 kRDC_Mem_MRC6_0 = 39U, /**< GIC. Region resolution 4KB. */
716 kRDC_Mem_MRC6_1 = 40U,
717 kRDC_Mem_MRC6_2 = 41U,
718 kRDC_Mem_MRC6_3 = 42U,
719 kRDC_Mem_MRC7_0 = 43U, /**< GPU. Region resolution 4KB. */
720 kRDC_Mem_MRC7_1 = 44U,
721 kRDC_Mem_MRC7_2 = 45U,
722 kRDC_Mem_MRC7_3 = 46U,
723 kRDC_Mem_MRC8_4 = 47U,
724 kRDC_Mem_MRC8_5 = 48U,
725 kRDC_Mem_MRC8_6 = 49U,
726 kRDC_Mem_MRC8_7 = 50U,
727 kRDC_Mem_MRC9_0 = 51U, /**< VPU(Decoder). Region resolution 4KB. */
728 kRDC_Mem_MRC9_1 = 52U,
729 kRDC_Mem_MRC9_2 = 53U,
730 kRDC_Mem_MRC9_3 = 54U,
731 kRDC_Mem_MRC10_0 = 55U, /**< DEBUG(DAP). Region resolution 4KB. */
732 kRDC_Mem_MRC10_1 = 56U,
733 kRDC_Mem_MRC10_2 = 57U,
734 kRDC_Mem_MRC10_3 = 58U,
735 kRDC_Mem_MRC11_0 = 59U, /**< DDRC(REG). Region resolution 4KB. */
736 kRDC_Mem_MRC11_1 = 60U,
737 kRDC_Mem_MRC11_2 = 61U,
738 kRDC_Mem_MRC11_3 = 62U,
739 kRDC_Mem_MRC11_4 = 63U,
740} rdc_mem_t;
741
742typedef enum _rdc_periph
743{
744 kRDC_Periph_GPIO1 = 0U, /**< GPIO1 RDC Peripheral */
745 kRDC_Periph_GPIO2 = 1U, /**< GPIO2 RDC Peripheral */
746 kRDC_Periph_GPIO3 = 2U, /**< GPIO3 RDC Peripheral */
747 kRDC_Periph_GPIO4 = 3U, /**< GPIO4 RDC Peripheral */
748 kRDC_Periph_GPIO5 = 4U, /**< GPIO5 RDC Peripheral */
749 kRDC_Periph_ANA_TSENSOR = 6U, /**< ANA_TSENSOR RDC Peripheral */
750 kRDC_Periph_ANA_OSC = 7U, /**< ANA_OSC RDC Peripheral */
751 kRDC_Periph_WDOG1 = 8U, /**< WDOG1 RDC Peripheral */
752 kRDC_Periph_WDOG2 = 9U, /**< WDOG2 RDC Peripheral */
753 kRDC_Periph_WDOG3 = 10U, /**< WDOG3 RDC Peripheral */
754 kRDC_Periph_SDMA3 = 11U, /**< SDMA3 RDC Peripheral */
755 kRDC_Periph_SDMA2 = 12U, /**< SDMA2 RDC Peripheral */
756 kRDC_Periph_GPT1 = 13U, /**< GPT1 RDC Peripheral */
757 kRDC_Periph_GPT2 = 14U, /**< GPT2 RDC Peripheral */
758 kRDC_Periph_GPT3 = 15U, /**< GPT3 RDC Peripheral */
759 kRDC_Periph_ROMCP = 17U, /**< ROMCP RDC Peripheral */
760 kRDC_Periph_IOMUXC = 19U, /**< IOMUXC RDC Peripheral */
761 kRDC_Periph_IOMUXC_GPR = 20U, /**< IOMUXC_GPR RDC Peripheral */
762 kRDC_Periph_OCOTP_CTRL = 21U, /**< OCOTP_CTRL RDC Peripheral */
763 kRDC_Periph_ANA_PLL = 22U, /**< ANA_PLL RDC Peripheral */
764 kRDC_Periph_SNVS_HP = 23U, /**< SNVS_HP GPR RDC Peripheral */
765 kRDC_Periph_CCM = 24U, /**< CCM RDC Peripheral */
766 kRDC_Periph_SRC = 25U, /**< SRC RDC Peripheral */
767 kRDC_Periph_GPC = 26U, /**< GPC RDC Peripheral */
768 kRDC_Periph_SEMAPHORE1 = 27U, /**< SEMAPHORE1 RDC Peripheral */
769 kRDC_Periph_SEMAPHORE2 = 28U, /**< SEMAPHORE2 RDC Peripheral */
770 kRDC_Periph_RDC = 29U, /**< RDC RDC Peripheral */
771 kRDC_Periph_CSU = 30U, /**< CSU RDC Peripheral */
772 kRDC_Periph_LCDIF = 32U, /**< LCDIF RDC Peripheral */
773 kRDC_Periph_MIPI_DSI = 33U, /**< MIPI_DSI RDC Peripheral */
774 kRDC_Periph_CSI = 34U, /**< CSI RDC Peripheral */
775 kRDC_Periph_MIPI_CSI = 35U, /**< MIPI_CSI RDC Peripheral */
776 kRDC_Periph_USB1 = 36U, /**< USB1 RDC Peripheral */
777 kRDC_Periph_PWM1 = 38U, /**< PWM1 RDC Peripheral */
778 kRDC_Periph_PWM2 = 39U, /**< PWM2 RDC Peripheral */
779 kRDC_Periph_PWM3 = 40U, /**< PWM3 RDC Peripheral */
780 kRDC_Periph_PWM4 = 41U, /**< PWM4 RDC Peripheral */
781 kRDC_Periph_SYS_COUNTER_RD = 42U, /**< System counter read RDC Peripheral */
782 kRDC_Periph_SYS_COUNTER_CMP = 43U, /**< System counter compare RDC Peripheral */
783 kRDC_Periph_SYS_COUNTER_CTRL = 44U, /**< System counter control RDC Peripheral */
784 kRDC_Periph_GPT6 = 46U, /**< GPT6 RDC Peripheral */
785 kRDC_Periph_GPT5 = 47U, /**< GPT5 RDC Peripheral */
786 kRDC_Periph_GPT4 = 48U, /**< GPT4 RDC Peripheral */
787 kRDC_Periph_TZASC = 56U, /**< TZASC RDC Peripheral */
788 kRDC_Periph_USB2 = 59U, /**< USB2 RDC Peripheral */
789 kRDC_Periph_PERFMON1 = 60U, /**< PERFMON1 RDC Peripheral */
790 kRDC_Periph_PERFMON2 = 61U, /**< PERFMON2 RDC Peripheral */
791 kRDC_Periph_PLATFORM_CTRL = 62U, /**< PLATFORM_CTRL RDC Peripheral */
792 kRDC_Periph_QOSC = 63U, /**< QOSC RDC Peripheral */
793 kRDC_Periph_I2C1 = 66U, /**< I2C1 RDC Peripheral */
794 kRDC_Periph_I2C2 = 67U, /**< I2C2 RDC Peripheral */
795 kRDC_Periph_I2C3 = 68U, /**< I2C3 RDC Peripheral */
796 kRDC_Periph_I2C4 = 69U, /**< I2C4 RDC Peripheral */
797 kRDC_Periph_UART4 = 70U, /**< UART4 RDC Peripheral */
798 kRDC_Periph_MU_A = 74U, /**< MU_A RDC Peripheral */
799 kRDC_Periph_MU_B = 75U, /**< MU_B RDC Peripheral */
800 kRDC_Periph_SEMAPHORE_HS = 76U, /**< SEMAPHORE_HS RDC Peripheral */
801 kRDC_Periph_SAI1 = 78U, /**< SAI1 RDC Peripheral */
802 kRDC_Periph_SAI2_ACCESS = 79U, /**< SAI2 RDC Peripheral Access Control */
803 kRDC_Periph_SAI3_ACCESS = 80U, /**< SAI3 RDC Peripheral Access Control */
804 kRDC_Periph_SAI6_LPM = 80U, /**< SAI6 RDC Low Power Mode Control */
805 kRDC_Periph_SAI5_LPM = 81U, /**< SAI5 RDC Low Power Mode Control */
806 kRDC_Periph_SAI5_ACCESS = 82U, /**< SAI5 RDC Peripheral Access Control */
807 kRDC_Periph_SAI6_ACCESS = 83U, /**< SAI6 RDC Peripheral Access Control */
808 kRDC_Periph_USDHC1 = 84U, /**< USDHC1 RDC Peripheral */
809 kRDC_Periph_USDHC2 = 85U, /**< USDHC2 RDC Peripheral */
810 kRDC_Periph_USDHC3 = 86U, /**< USDHC3 RDC Peripheral */
811 kRDC_Periph_PCIE_PHY1 = 88U, /**< PCIE_PHY1 RDC Peripheral */
812 kRDC_Periph_SPBA2 = 90U, /**< SPBA2 RDC Peripheral */
813 kRDC_Periph_QSPI = 91U, /**< QSPI RDC Peripheral */
814 kRDC_Periph_SDMA1 = 93U, /**< SDMA1 RDC Peripheral */
815 kRDC_Periph_ENET1 = 94U, /**< ENET1 RDC Peripheral */
816 kRDC_Periph_SPDIF1 = 97U, /**< SPDIF1 RDC Peripheral */
817 kRDC_Periph_ECSPI1 = 98U, /**< ECSPI1 RDC Peripheral */
818 kRDC_Periph_ECSPI2 = 99U, /**< ECSPI2 RDC Peripheral */
819 kRDC_Periph_ECSPI3 = 100U, /**< ECSPI3 RDC Peripheral */
820 kRDC_Periph_MICFIL = 101U, /**< MICFIL RDC Peripheral */
821 kRDC_Periph_UART1 = 102U, /**< UART1 RDC Peripheral */
822 kRDC_Periph_UART3 = 104U, /**< UART3 RDC Peripheral */
823 kRDC_Periph_UART2 = 105U, /**< UART2 RDC Peripheral */
824 kRDC_Periph_SPDIF2 = 106U, /**< SPDIF2 RDC Peripheral */
825 kRDC_Periph_SAI2_LPM = 107U, /**< SAI2 RDC Low Power Mode Control */
826 kRDC_Periph_SAI3_LPM = 108U, /**< SAI3 RDC Low Power Mode Control */
827 kRDC_Periph_SPBA1 = 111U, /**< SPBA1 RDC Peripheral */
828 kRDC_Periph_CAAM = 114U, /**< CAAM RDC Peripheral */
829} rdc_periph_t;
830
831/* @} */
832
833
834/*!
835 * @}
836 */ /* end of group Mapping_Information */
837
838
839/* ----------------------------------------------------------------------------
840 -- Device Peripheral Access Layer
841 ---------------------------------------------------------------------------- */
842
843/*!
844 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer
845 * @{
846 */
847
848
849/*
850** Start of section using anonymous unions
851*/
852
853#if defined(__ARMCC_VERSION)
854 #if (__ARMCC_VERSION >= 6010050)
855 #pragma clang diagnostic push
856 #else
857 #pragma push
858 #pragma anon_unions
859 #endif
860#elif defined(__GNUC__)
861 /* anonymous unions are enabled by default */
862#elif defined(__IAR_SYSTEMS_ICC__)
863 #pragma language=extended
864#else
865 #error Not supported compiler type
866#endif
867
868/* ----------------------------------------------------------------------------
869 -- AIPSTZ Peripheral Access Layer
870 ---------------------------------------------------------------------------- */
871
872/*!
873 * @addtogroup AIPSTZ_Peripheral_Access_Layer AIPSTZ Peripheral Access Layer
874 * @{
875 */
876
877/** AIPSTZ - Register Layout Typedef */
878typedef struct {
879 __IO uint32_t MPR; /**< Master Priviledge Registers, offset: 0x0 */
880 uint8_t RESERVED_0[60];
881 __IO uint32_t OPACR; /**< Off-Platform Peripheral Access Control Registers, offset: 0x40 */
882 __IO uint32_t OPACR1; /**< Off-Platform Peripheral Access Control Registers, offset: 0x44 */
883 __IO uint32_t OPACR2; /**< Off-Platform Peripheral Access Control Registers, offset: 0x48 */
884 __IO uint32_t OPACR3; /**< Off-Platform Peripheral Access Control Registers, offset: 0x4C */
885 __IO uint32_t OPACR4; /**< Off-Platform Peripheral Access Control Registers, offset: 0x50 */
886} AIPSTZ_Type;
887
888/* ----------------------------------------------------------------------------
889 -- AIPSTZ Register Masks
890 ---------------------------------------------------------------------------- */
891
892/*!
893 * @addtogroup AIPSTZ_Register_Masks AIPSTZ Register Masks
894 * @{
895 */
896
897/*! @name MPR - Master Priviledge Registers */
898/*! @{ */
899#define AIPSTZ_MPR_MPROT5_MASK (0xF00U)
900#define AIPSTZ_MPR_MPROT5_SHIFT (8U)
901/*! MPROT5
902 * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute.
903 * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access.
904 * 0bxx0x..This master is not trusted for write accesses.
905 * 0bxx1x..This master is trusted for write accesses.
906 * 0bx0xx..This master is not trusted for read accesses.
907 * 0bx1xx..This master is trusted for read accesses.
908 * 0b1xxx..Write accesses from this master are allowed to be buffered
909 */
910#define AIPSTZ_MPR_MPROT5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT5_SHIFT)) & AIPSTZ_MPR_MPROT5_MASK)
911#define AIPSTZ_MPR_MPROT3_MASK (0xF0000U)
912#define AIPSTZ_MPR_MPROT3_SHIFT (16U)
913/*! MPROT3
914 * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute.
915 * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access.
916 * 0bxx0x..This master is not trusted for write accesses.
917 * 0bxx1x..This master is trusted for write accesses.
918 * 0bx0xx..This master is not trusted for read accesses.
919 * 0bx1xx..This master is trusted for read accesses.
920 * 0b1xxx..Write accesses from this master are allowed to be buffered
921 */
922#define AIPSTZ_MPR_MPROT3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT3_SHIFT)) & AIPSTZ_MPR_MPROT3_MASK)
923#define AIPSTZ_MPR_MPROT2_MASK (0xF00000U)
924#define AIPSTZ_MPR_MPROT2_SHIFT (20U)
925/*! MPROT2
926 * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute.
927 * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access.
928 * 0bxx0x..This master is not trusted for write accesses.
929 * 0bxx1x..This master is trusted for write accesses.
930 * 0bx0xx..This master is not trusted for read accesses.
931 * 0bx1xx..This master is trusted for read accesses.
932 * 0b1xxx..Write accesses from this master are allowed to be buffered
933 */
934#define AIPSTZ_MPR_MPROT2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT2_SHIFT)) & AIPSTZ_MPR_MPROT2_MASK)
935#define AIPSTZ_MPR_MPROT1_MASK (0xF000000U)
936#define AIPSTZ_MPR_MPROT1_SHIFT (24U)
937/*! MPROT1
938 * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute.
939 * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access.
940 * 0bxx0x..This master is not trusted for write accesses.
941 * 0bxx1x..This master is trusted for write accesses.
942 * 0bx0xx..This master is not trusted for read accesses.
943 * 0bx1xx..This master is trusted for read accesses.
944 * 0b1xxx..Write accesses from this master are allowed to be buffered
945 */
946#define AIPSTZ_MPR_MPROT1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT1_SHIFT)) & AIPSTZ_MPR_MPROT1_MASK)
947#define AIPSTZ_MPR_MPROT0_MASK (0xF0000000U)
948#define AIPSTZ_MPR_MPROT0_SHIFT (28U)
949/*! MPROT0
950 * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute.
951 * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access.
952 * 0bxx0x..This master is not trusted for write accesses.
953 * 0bxx1x..This master is trusted for write accesses.
954 * 0bx0xx..This master is not trusted for read accesses.
955 * 0bx1xx..This master is trusted for read accesses.
956 * 0b1xxx..Write accesses from this master are allowed to be buffered
957 */
958#define AIPSTZ_MPR_MPROT0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT0_SHIFT)) & AIPSTZ_MPR_MPROT0_MASK)
959/*! @} */
960
961/*! @name OPACR - Off-Platform Peripheral Access Control Registers */
962/*! @{ */
963#define AIPSTZ_OPACR_OPAC7_MASK (0xFU)
964#define AIPSTZ_OPACR_OPAC7_SHIFT (0U)
965/*! OPAC7
966 * 0bxxx0..Accesses from an untrusted master are allowed.
967 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
968 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
969 * 0bxx0x..This peripheral allows write accesses.
970 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
971 * error response and no peripheral access is initiated on the IPS bus.
972 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
973 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
974 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
975 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
976 * on the IPS bus.
977 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
978 */
979#define AIPSTZ_OPACR_OPAC7(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC7_SHIFT)) & AIPSTZ_OPACR_OPAC7_MASK)
980#define AIPSTZ_OPACR_OPAC6_MASK (0xF0U)
981#define AIPSTZ_OPACR_OPAC6_SHIFT (4U)
982/*! OPAC6
983 * 0bxxx0..Accesses from an untrusted master are allowed.
984 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
985 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
986 * 0bxx0x..This peripheral allows write accesses.
987 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
988 * error response and no peripheral access is initiated on the IPS bus.
989 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
990 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
991 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
992 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
993 * on the IPS bus.
994 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
995 */
996#define AIPSTZ_OPACR_OPAC6(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC6_SHIFT)) & AIPSTZ_OPACR_OPAC6_MASK)
997#define AIPSTZ_OPACR_OPAC5_MASK (0xF00U)
998#define AIPSTZ_OPACR_OPAC5_SHIFT (8U)
999/*! OPAC5
1000 * 0bxxx0..Accesses from an untrusted master are allowed.
1001 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1002 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1003 * 0bxx0x..This peripheral allows write accesses.
1004 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1005 * error response and no peripheral access is initiated on the IPS bus.
1006 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1007 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1008 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1009 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1010 * on the IPS bus.
1011 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1012 */
1013#define AIPSTZ_OPACR_OPAC5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC5_SHIFT)) & AIPSTZ_OPACR_OPAC5_MASK)
1014#define AIPSTZ_OPACR_OPAC4_MASK (0xF000U)
1015#define AIPSTZ_OPACR_OPAC4_SHIFT (12U)
1016/*! OPAC4
1017 * 0bxxx0..Accesses from an untrusted master are allowed.
1018 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1019 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1020 * 0bxx0x..This peripheral allows write accesses.
1021 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1022 * error response and no peripheral access is initiated on the IPS bus.
1023 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1024 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1025 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1026 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1027 * on the IPS bus.
1028 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1029 */
1030#define AIPSTZ_OPACR_OPAC4(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC4_SHIFT)) & AIPSTZ_OPACR_OPAC4_MASK)
1031#define AIPSTZ_OPACR_OPAC3_MASK (0xF0000U)
1032#define AIPSTZ_OPACR_OPAC3_SHIFT (16U)
1033/*! OPAC3
1034 * 0bxxx0..Accesses from an untrusted master are allowed.
1035 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1036 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1037 * 0bxx0x..This peripheral allows write accesses.
1038 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1039 * error response and no peripheral access is initiated on the IPS bus.
1040 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1041 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1042 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1043 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1044 * on the IPS bus.
1045 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1046 */
1047#define AIPSTZ_OPACR_OPAC3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC3_SHIFT)) & AIPSTZ_OPACR_OPAC3_MASK)
1048#define AIPSTZ_OPACR_OPAC2_MASK (0xF00000U)
1049#define AIPSTZ_OPACR_OPAC2_SHIFT (20U)
1050/*! OPAC2
1051 * 0bxxx0..Accesses from an untrusted master are allowed.
1052 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1053 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1054 * 0bxx0x..This peripheral allows write accesses.
1055 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1056 * error response and no peripheral access is initiated on the IPS bus.
1057 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1058 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1059 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1060 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1061 * on the IPS bus.
1062 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1063 */
1064#define AIPSTZ_OPACR_OPAC2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC2_SHIFT)) & AIPSTZ_OPACR_OPAC2_MASK)
1065#define AIPSTZ_OPACR_OPAC1_MASK (0xF000000U)
1066#define AIPSTZ_OPACR_OPAC1_SHIFT (24U)
1067/*! OPAC1
1068 * 0bxxx0..Accesses from an untrusted master are allowed.
1069 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1070 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1071 * 0bxx0x..This peripheral allows write accesses.
1072 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1073 * error response and no peripheral access is initiated on the IPS bus.
1074 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1075 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1076 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1077 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1078 * on the IPS bus.
1079 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1080 */
1081#define AIPSTZ_OPACR_OPAC1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC1_SHIFT)) & AIPSTZ_OPACR_OPAC1_MASK)
1082#define AIPSTZ_OPACR_OPAC0_MASK (0xF0000000U)
1083#define AIPSTZ_OPACR_OPAC0_SHIFT (28U)
1084/*! OPAC0
1085 * 0bxxx0..Accesses from an untrusted master are allowed.
1086 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1087 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1088 * 0bxx0x..This peripheral allows write accesses.
1089 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1090 * error response and no peripheral access is initiated on the IPS bus.
1091 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1092 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1093 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1094 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1095 * on the IPS bus.
1096 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1097 */
1098#define AIPSTZ_OPACR_OPAC0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC0_SHIFT)) & AIPSTZ_OPACR_OPAC0_MASK)
1099/*! @} */
1100
1101/*! @name OPACR1 - Off-Platform Peripheral Access Control Registers */
1102/*! @{ */
1103#define AIPSTZ_OPACR1_OPAC15_MASK (0xFU)
1104#define AIPSTZ_OPACR1_OPAC15_SHIFT (0U)
1105/*! OPAC15
1106 * 0bxxx0..Accesses from an untrusted master are allowed.
1107 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1108 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1109 * 0bxx0x..This peripheral allows write accesses.
1110 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1111 * error response and no peripheral access is initiated on the IPS bus.
1112 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1113 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1114 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1115 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1116 * on the IPS bus.
1117 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1118 */
1119#define AIPSTZ_OPACR1_OPAC15(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC15_SHIFT)) & AIPSTZ_OPACR1_OPAC15_MASK)
1120#define AIPSTZ_OPACR1_OPAC14_MASK (0xF0U)
1121#define AIPSTZ_OPACR1_OPAC14_SHIFT (4U)
1122/*! OPAC14
1123 * 0bxxx0..Accesses from an untrusted master are allowed.
1124 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1125 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1126 * 0bxx0x..This peripheral allows write accesses.
1127 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1128 * error response and no peripheral access is initiated on the IPS bus.
1129 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1130 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1131 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1132 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1133 * on the IPS bus.
1134 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1135 */
1136#define AIPSTZ_OPACR1_OPAC14(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC14_SHIFT)) & AIPSTZ_OPACR1_OPAC14_MASK)
1137#define AIPSTZ_OPACR1_OPAC13_MASK (0xF00U)
1138#define AIPSTZ_OPACR1_OPAC13_SHIFT (8U)
1139/*! OPAC13
1140 * 0bxxx0..Accesses from an untrusted master are allowed.
1141 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1142 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1143 * 0bxx0x..This peripheral allows write accesses.
1144 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1145 * error response and no peripheral access is initiated on the IPS bus.
1146 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1147 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1148 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1149 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1150 * on the IPS bus.
1151 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1152 */
1153#define AIPSTZ_OPACR1_OPAC13(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC13_SHIFT)) & AIPSTZ_OPACR1_OPAC13_MASK)
1154#define AIPSTZ_OPACR1_OPAC12_MASK (0xF000U)
1155#define AIPSTZ_OPACR1_OPAC12_SHIFT (12U)
1156/*! OPAC12
1157 * 0bxxx0..Accesses from an untrusted master are allowed.
1158 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1159 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1160 * 0bxx0x..This peripheral allows write accesses.
1161 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1162 * error response and no peripheral access is initiated on the IPS bus.
1163 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1164 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1165 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1166 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1167 * on the IPS bus.
1168 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1169 */
1170#define AIPSTZ_OPACR1_OPAC12(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC12_SHIFT)) & AIPSTZ_OPACR1_OPAC12_MASK)
1171#define AIPSTZ_OPACR1_OPAC11_MASK (0xF0000U)
1172#define AIPSTZ_OPACR1_OPAC11_SHIFT (16U)
1173/*! OPAC11
1174 * 0bxxx0..Accesses from an untrusted master are allowed.
1175 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1176 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1177 * 0bxx0x..This peripheral allows write accesses.
1178 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1179 * error response and no peripheral access is initiated on the IPS bus.
1180 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1181 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1182 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1183 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1184 * on the IPS bus.
1185 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1186 */
1187#define AIPSTZ_OPACR1_OPAC11(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC11_SHIFT)) & AIPSTZ_OPACR1_OPAC11_MASK)
1188#define AIPSTZ_OPACR1_OPAC10_MASK (0xF00000U)
1189#define AIPSTZ_OPACR1_OPAC10_SHIFT (20U)
1190/*! OPAC10
1191 * 0bxxx0..Accesses from an untrusted master are allowed.
1192 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1193 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1194 * 0bxx0x..This peripheral allows write accesses.
1195 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1196 * error response and no peripheral access is initiated on the IPS bus.
1197 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1198 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1199 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1200 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1201 * on the IPS bus.
1202 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1203 */
1204#define AIPSTZ_OPACR1_OPAC10(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC10_SHIFT)) & AIPSTZ_OPACR1_OPAC10_MASK)
1205#define AIPSTZ_OPACR1_OPAC9_MASK (0xF000000U)
1206#define AIPSTZ_OPACR1_OPAC9_SHIFT (24U)
1207/*! OPAC9
1208 * 0bxxx0..Accesses from an untrusted master are allowed.
1209 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1210 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1211 * 0bxx0x..This peripheral allows write accesses.
1212 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1213 * error response and no peripheral access is initiated on the IPS bus.
1214 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1215 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1216 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1217 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1218 * on the IPS bus.
1219 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1220 */
1221#define AIPSTZ_OPACR1_OPAC9(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC9_SHIFT)) & AIPSTZ_OPACR1_OPAC9_MASK)
1222#define AIPSTZ_OPACR1_OPAC8_MASK (0xF0000000U)
1223#define AIPSTZ_OPACR1_OPAC8_SHIFT (28U)
1224/*! OPAC8
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_OPACR1_OPAC8(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC8_SHIFT)) & AIPSTZ_OPACR1_OPAC8_MASK)
1239/*! @} */
1240
1241/*! @name OPACR2 - Off-Platform Peripheral Access Control Registers */
1242/*! @{ */
1243#define AIPSTZ_OPACR2_OPAC23_MASK (0xFU)
1244#define AIPSTZ_OPACR2_OPAC23_SHIFT (0U)
1245/*! OPAC23
1246 * 0bxxx0..Accesses from an untrusted master are allowed.
1247 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1248 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1249 * 0bxx0x..This peripheral allows write accesses.
1250 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1251 * error response and no peripheral access is initiated on the IPS bus.
1252 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1253 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1254 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1255 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1256 * on the IPS bus.
1257 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1258 */
1259#define AIPSTZ_OPACR2_OPAC23(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC23_SHIFT)) & AIPSTZ_OPACR2_OPAC23_MASK)
1260#define AIPSTZ_OPACR2_OPAC22_MASK (0xF0U)
1261#define AIPSTZ_OPACR2_OPAC22_SHIFT (4U)
1262/*! OPAC22
1263 * 0bxxx0..Accesses from an untrusted master are allowed.
1264 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1265 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1266 * 0bxx0x..This peripheral allows write accesses.
1267 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1268 * error response and no peripheral access is initiated on the IPS bus.
1269 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1270 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1271 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1272 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1273 * on the IPS bus.
1274 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1275 */
1276#define AIPSTZ_OPACR2_OPAC22(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC22_SHIFT)) & AIPSTZ_OPACR2_OPAC22_MASK)
1277#define AIPSTZ_OPACR2_OPAC21_MASK (0xF00U)
1278#define AIPSTZ_OPACR2_OPAC21_SHIFT (8U)
1279/*! OPAC21
1280 * 0bxxx0..Accesses from an untrusted master are allowed.
1281 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1282 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1283 * 0bxx0x..This peripheral allows write accesses.
1284 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1285 * error response and no peripheral access is initiated on the IPS bus.
1286 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1287 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1288 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1289 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1290 * on the IPS bus.
1291 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1292 */
1293#define AIPSTZ_OPACR2_OPAC21(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC21_SHIFT)) & AIPSTZ_OPACR2_OPAC21_MASK)
1294#define AIPSTZ_OPACR2_OPAC20_MASK (0xF000U)
1295#define AIPSTZ_OPACR2_OPAC20_SHIFT (12U)
1296/*! OPAC20
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_OPAC20(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC20_SHIFT)) & AIPSTZ_OPACR2_OPAC20_MASK)
1311#define AIPSTZ_OPACR2_OPAC19_MASK (0xF0000U)
1312#define AIPSTZ_OPACR2_OPAC19_SHIFT (16U)
1313/*! OPAC19
1314 * 0bxxx0..Accesses from an untrusted master are allowed.
1315 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1316 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1317 * 0bxx0x..This peripheral allows write accesses.
1318 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1319 * error response and no peripheral access is initiated on the IPS bus.
1320 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1321 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1322 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1323 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1324 * on the IPS bus.
1325 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1326 */
1327#define AIPSTZ_OPACR2_OPAC19(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC19_SHIFT)) & AIPSTZ_OPACR2_OPAC19_MASK)
1328#define AIPSTZ_OPACR2_OPAC18_MASK (0xF00000U)
1329#define AIPSTZ_OPACR2_OPAC18_SHIFT (20U)
1330/*! OPAC18
1331 * 0bxxx0..Accesses from an untrusted master are allowed.
1332 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1333 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1334 * 0bxx0x..This peripheral allows write accesses.
1335 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1336 * error response and no peripheral access is initiated on the IPS bus.
1337 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1338 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1339 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1340 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1341 * on the IPS bus.
1342 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1343 */
1344#define AIPSTZ_OPACR2_OPAC18(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC18_SHIFT)) & AIPSTZ_OPACR2_OPAC18_MASK)
1345#define AIPSTZ_OPACR2_OPAC17_MASK (0xF000000U)
1346#define AIPSTZ_OPACR2_OPAC17_SHIFT (24U)
1347/*! OPAC17
1348 * 0bxxx0..Accesses from an untrusted master are allowed.
1349 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1350 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1351 * 0bxx0x..This peripheral allows write accesses.
1352 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1353 * error response and no peripheral access is initiated on the IPS bus.
1354 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1355 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1356 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1357 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1358 * on the IPS bus.
1359 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1360 */
1361#define AIPSTZ_OPACR2_OPAC17(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC17_SHIFT)) & AIPSTZ_OPACR2_OPAC17_MASK)
1362#define AIPSTZ_OPACR2_OPAC16_MASK (0xF0000000U)
1363#define AIPSTZ_OPACR2_OPAC16_SHIFT (28U)
1364/*! OPAC16
1365 * 0bxxx0..Accesses from an untrusted master are allowed.
1366 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1367 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1368 * 0bxx0x..This peripheral allows write accesses.
1369 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1370 * error response and no peripheral access is initiated on the IPS bus.
1371 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1372 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1373 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1374 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1375 * on the IPS bus.
1376 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1377 */
1378#define AIPSTZ_OPACR2_OPAC16(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC16_SHIFT)) & AIPSTZ_OPACR2_OPAC16_MASK)
1379/*! @} */
1380
1381/*! @name OPACR3 - Off-Platform Peripheral Access Control Registers */
1382/*! @{ */
1383#define AIPSTZ_OPACR3_OPAC31_MASK (0xFU)
1384#define AIPSTZ_OPACR3_OPAC31_SHIFT (0U)
1385/*! OPAC31
1386 * 0bxxx0..Accesses from an untrusted master are allowed.
1387 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1388 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1389 * 0bxx0x..This peripheral allows write accesses.
1390 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1391 * error response and no peripheral access is initiated on the IPS bus.
1392 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1393 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1394 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1395 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1396 * on the IPS bus.
1397 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1398 */
1399#define AIPSTZ_OPACR3_OPAC31(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC31_SHIFT)) & AIPSTZ_OPACR3_OPAC31_MASK)
1400#define AIPSTZ_OPACR3_OPAC30_MASK (0xF0U)
1401#define AIPSTZ_OPACR3_OPAC30_SHIFT (4U)
1402/*! OPAC30
1403 * 0bxxx0..Accesses from an untrusted master are allowed.
1404 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1405 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1406 * 0bxx0x..This peripheral allows write accesses.
1407 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1408 * error response and no peripheral access is initiated on the IPS bus.
1409 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1410 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1411 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1412 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1413 * on the IPS bus.
1414 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1415 */
1416#define AIPSTZ_OPACR3_OPAC30(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC30_SHIFT)) & AIPSTZ_OPACR3_OPAC30_MASK)
1417#define AIPSTZ_OPACR3_OPAC29_MASK (0xF00U)
1418#define AIPSTZ_OPACR3_OPAC29_SHIFT (8U)
1419/*! OPAC29
1420 * 0bxxx0..Accesses from an untrusted master are allowed.
1421 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1422 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1423 * 0bxx0x..This peripheral allows write accesses.
1424 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1425 * error response and no peripheral access is initiated on the IPS bus.
1426 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1427 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1428 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1429 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1430 * on the IPS bus.
1431 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1432 */
1433#define AIPSTZ_OPACR3_OPAC29(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC29_SHIFT)) & AIPSTZ_OPACR3_OPAC29_MASK)
1434#define AIPSTZ_OPACR3_OPAC28_MASK (0xF000U)
1435#define AIPSTZ_OPACR3_OPAC28_SHIFT (12U)
1436/*! OPAC28
1437 * 0bxxx0..Accesses from an untrusted master are allowed.
1438 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1439 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1440 * 0bxx0x..This peripheral allows write accesses.
1441 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1442 * error response and no peripheral access is initiated on the IPS bus.
1443 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1444 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1445 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1446 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1447 * on the IPS bus.
1448 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1449 */
1450#define AIPSTZ_OPACR3_OPAC28(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC28_SHIFT)) & AIPSTZ_OPACR3_OPAC28_MASK)
1451#define AIPSTZ_OPACR3_OPAC27_MASK (0xF0000U)
1452#define AIPSTZ_OPACR3_OPAC27_SHIFT (16U)
1453/*! OPAC27
1454 * 0bxxx0..Accesses from an untrusted master are allowed.
1455 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1456 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1457 * 0bxx0x..This peripheral allows write accesses.
1458 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1459 * error response and no peripheral access is initiated on the IPS bus.
1460 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1461 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1462 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1463 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1464 * on the IPS bus.
1465 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1466 */
1467#define AIPSTZ_OPACR3_OPAC27(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC27_SHIFT)) & AIPSTZ_OPACR3_OPAC27_MASK)
1468#define AIPSTZ_OPACR3_OPAC26_MASK (0xF00000U)
1469#define AIPSTZ_OPACR3_OPAC26_SHIFT (20U)
1470/*! OPAC26
1471 * 0bxxx0..Accesses from an untrusted master are allowed.
1472 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1473 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1474 * 0bxx0x..This peripheral allows write accesses.
1475 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1476 * error response and no peripheral access is initiated on the IPS bus.
1477 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1478 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1479 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1480 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1481 * on the IPS bus.
1482 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1483 */
1484#define AIPSTZ_OPACR3_OPAC26(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC26_SHIFT)) & AIPSTZ_OPACR3_OPAC26_MASK)
1485#define AIPSTZ_OPACR3_OPAC25_MASK (0xF000000U)
1486#define AIPSTZ_OPACR3_OPAC25_SHIFT (24U)
1487/*! OPAC25
1488 * 0bxxx0..Accesses from an untrusted master are allowed.
1489 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1490 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1491 * 0bxx0x..This peripheral allows write accesses.
1492 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1493 * error response and no peripheral access is initiated on the IPS bus.
1494 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1495 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1496 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1497 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1498 * on the IPS bus.
1499 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1500 */
1501#define AIPSTZ_OPACR3_OPAC25(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC25_SHIFT)) & AIPSTZ_OPACR3_OPAC25_MASK)
1502#define AIPSTZ_OPACR3_OPAC24_MASK (0xF0000000U)
1503#define AIPSTZ_OPACR3_OPAC24_SHIFT (28U)
1504/*! OPAC24
1505 * 0bxxx0..Accesses from an untrusted master are allowed.
1506 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1507 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1508 * 0bxx0x..This peripheral allows write accesses.
1509 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1510 * error response and no peripheral access is initiated on the IPS bus.
1511 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1512 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1513 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1514 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1515 * on the IPS bus.
1516 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1517 */
1518#define AIPSTZ_OPACR3_OPAC24(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC24_SHIFT)) & AIPSTZ_OPACR3_OPAC24_MASK)
1519/*! @} */
1520
1521/*! @name OPACR4 - Off-Platform Peripheral Access Control Registers */
1522/*! @{ */
1523#define AIPSTZ_OPACR4_OPAC33_MASK (0xF000000U)
1524#define AIPSTZ_OPACR4_OPAC33_SHIFT (24U)
1525/*! OPAC33
1526 * 0bxxx0..Accesses from an untrusted master are allowed.
1527 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1528 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1529 * 0bxx0x..This peripheral allows write accesses.
1530 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1531 * error response and no peripheral access is initiated on the IPS bus.
1532 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1533 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1534 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1535 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1536 * on the IPS bus.
1537 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1538 */
1539#define AIPSTZ_OPACR4_OPAC33(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC33_SHIFT)) & AIPSTZ_OPACR4_OPAC33_MASK)
1540#define AIPSTZ_OPACR4_OPAC32_MASK (0xF0000000U)
1541#define AIPSTZ_OPACR4_OPAC32_SHIFT (28U)
1542/*! OPAC32
1543 * 0bxxx0..Accesses from an untrusted master are allowed.
1544 * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master,
1545 * the access is terminated with an error response and no peripheral access is initiated on the IPS bus.
1546 * 0bxx0x..This peripheral allows write accesses.
1547 * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an
1548 * error response and no peripheral access is initiated on the IPS bus.
1549 * 0bx0xx..This peripheral does not require supervisor privilege level for accesses.
1550 * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must
1551 * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must
1552 * be set. If not, the access is terminated with an error response and no peripheral access is initiated
1553 * on the IPS bus.
1554 * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ.
1555 */
1556#define AIPSTZ_OPACR4_OPAC32(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC32_SHIFT)) & AIPSTZ_OPACR4_OPAC32_MASK)
1557/*! @} */
1558
1559
1560/*!
1561 * @}
1562 */ /* end of group AIPSTZ_Register_Masks */
1563
1564
1565/* AIPSTZ - Peripheral instance base addresses */
1566/** Peripheral AIPSTZ base address */
1567#define AIPSTZ_BASE (0x30000000u)
1568/** Peripheral AIPSTZ base pointer */
1569#define AIPSTZ ((AIPSTZ_Type *)AIPSTZ_BASE)
1570/** Array initializer of AIPSTZ peripheral base addresses */
1571#define AIPSTZ_BASE_ADDRS { AIPSTZ_BASE }
1572/** Array initializer of AIPSTZ peripheral base pointers */
1573#define AIPSTZ_BASE_PTRS { AIPSTZ }
1574
1575/*!
1576 * @}
1577 */ /* end of group AIPSTZ_Peripheral_Access_Layer */
1578
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 */
1590typedef struct {
1591 __IO uint32_t CTRL0; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x0 */
1592 __IO uint32_t CTRL0_SET; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x4 */
1593 __IO uint32_t CTRL0_CLR; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x8 */
1594 __IO uint32_t CTRL0_TOG; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0xC */
1595 __IO uint32_t CTRL1; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x10 */
1596 __IO uint32_t CTRL1_SET; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x14 */
1597 __IO uint32_t CTRL1_CLR; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x18 */
1598 __IO uint32_t CTRL1_TOG; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x1C */
1599 __IO uint32_t CTRL2; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x20 */
1600 __IO uint32_t CTRL2_SET; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x24 */
1601 __IO uint32_t CTRL2_CLR; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x28 */
1602 __IO uint32_t CTRL2_TOG; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x2C */
1603 __IO uint32_t CHANNEL_CTRL; /**< AHB to APBH Bridge Channel Register, offset: 0x30 */
1604 __IO uint32_t CHANNEL_CTRL_SET; /**< AHB to APBH Bridge Channel Register, offset: 0x34 */
1605 __IO uint32_t CHANNEL_CTRL_CLR; /**< AHB to APBH Bridge Channel Register, offset: 0x38 */
1606 __IO uint32_t CHANNEL_CTRL_TOG; /**< AHB to APBH Bridge Channel Register, offset: 0x3C */
1607 uint32_t DEVSEL; /**< AHB to APBH DMA Device Assignment Register, offset: 0x40 */
1608 uint8_t RESERVED_0[12];
1609 __IO uint32_t DMA_BURST_SIZE; /**< AHB to APBH DMA burst size, offset: 0x50 */
1610 uint8_t RESERVED_1[12];
1611 __IO uint32_t DEBUGr; /**< AHB to APBH DMA Debug Register, offset: 0x60 */
1612 uint8_t RESERVED_2[156];
1613 struct { /* offset: 0x100, array step: 0x70 */
1614 __I uint32_t CH_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, array offset: 0x100, array step: 0x70 */
1615 uint8_t RESERVED_0[12];
1616 __IO uint32_t CH_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, array offset: 0x110, array step: 0x70 */
1617 uint8_t RESERVED_1[12];
1618 __I uint32_t CH_CMD; /**< APBH DMA Channel n Command Register, array offset: 0x120, array step: 0x70 */
1619 uint8_t RESERVED_2[12];
1620 __I uint32_t CH_BAR; /**< APBH DMA Channel n Buffer Address Register, array offset: 0x130, array step: 0x70 */
1621 uint8_t RESERVED_3[12];
1622 __IO uint32_t CH_SEMA; /**< APBH DMA Channel n Semaphore Register, array offset: 0x140, array step: 0x70 */
1623 uint8_t RESERVED_4[12];
1624 __I uint32_t CH_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x150, array step: 0x70 */
1625 uint8_t RESERVED_5[12];
1626 __I uint32_t CH_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x160, array step: 0x70 */
1627 uint8_t RESERVED_6[12];
1628 } CH_CFGn[16];
1629 __I uint32_t VERSION; /**< APBH Bridge Version Register, offset: 0x800 */
1630} APBH_Type;
1631
1632/* ----------------------------------------------------------------------------
1633 -- APBH Register Masks
1634 ---------------------------------------------------------------------------- */
1635
1636/*!
1637 * @addtogroup APBH_Register_Masks APBH Register Masks
1638 * @{
1639 */
1640
1641/*! @name CTRL0 - AHB to APBH Bridge Control and Status Register 0 */
1642/*! @{ */
1643#define APBH_CTRL0_CLKGATE_CHANNEL_MASK (0xFFFFU)
1644#define APBH_CTRL0_CLKGATE_CHANNEL_SHIFT (0U)
1645/*! CLKGATE_CHANNEL
1646 * 0b0000000000000001..NAND0
1647 * 0b0000000000000010..NAND1
1648 * 0b0000000000000100..NAND2
1649 * 0b0000000000001000..NAND3
1650 * 0b0000000000010000..NAND4
1651 * 0b0000000000100000..NAND5
1652 * 0b0000000001000000..NAND6
1653 * 0b0000000010000000..NAND7
1654 * 0b0000000100000000..SSP
1655 */
1656#define APBH_CTRL0_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLKGATE_CHANNEL_MASK)
1657#define APBH_CTRL0_RSVD0_MASK (0xFFF0000U)
1658#define APBH_CTRL0_RSVD0_SHIFT (16U)
1659#define APBH_CTRL0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_RSVD0_SHIFT)) & APBH_CTRL0_RSVD0_MASK)
1660#define APBH_CTRL0_APB_BURST_EN_MASK (0x10000000U)
1661#define APBH_CTRL0_APB_BURST_EN_SHIFT (28U)
1662#define APBH_CTRL0_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_APB_BURST_EN_SHIFT)) & APBH_CTRL0_APB_BURST_EN_MASK)
1663#define APBH_CTRL0_AHB_BURST8_EN_MASK (0x20000000U)
1664#define APBH_CTRL0_AHB_BURST8_EN_SHIFT (29U)
1665#define APBH_CTRL0_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_AHB_BURST8_EN_MASK)
1666#define APBH_CTRL0_CLKGATE_MASK (0x40000000U)
1667#define APBH_CTRL0_CLKGATE_SHIFT (30U)
1668#define APBH_CTRL0_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_SHIFT)) & APBH_CTRL0_CLKGATE_MASK)
1669#define APBH_CTRL0_SFTRST_MASK (0x80000000U)
1670#define APBH_CTRL0_SFTRST_SHIFT (31U)
1671#define APBH_CTRL0_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SFTRST_SHIFT)) & APBH_CTRL0_SFTRST_MASK)
1672/*! @} */
1673
1674/*! @name CTRL0_SET - AHB to APBH Bridge Control and Status Register 0 */
1675/*! @{ */
1676#define APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK (0xFFFFU)
1677#define APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT (0U)
1678/*! CLKGATE_CHANNEL
1679 * 0b0000000000000001..NAND0
1680 * 0b0000000000000010..NAND1
1681 * 0b0000000000000100..NAND2
1682 * 0b0000000000001000..NAND3
1683 * 0b0000000000010000..NAND4
1684 * 0b0000000000100000..NAND5
1685 * 0b0000000001000000..NAND6
1686 * 0b0000000010000000..NAND7
1687 * 0b0000000100000000..SSP
1688 */
1689#define APBH_CTRL0_SET_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK)
1690#define APBH_CTRL0_SET_RSVD0_MASK (0xFFF0000U)
1691#define APBH_CTRL0_SET_RSVD0_SHIFT (16U)
1692#define APBH_CTRL0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_RSVD0_SHIFT)) & APBH_CTRL0_SET_RSVD0_MASK)
1693#define APBH_CTRL0_SET_APB_BURST_EN_MASK (0x10000000U)
1694#define APBH_CTRL0_SET_APB_BURST_EN_SHIFT (28U)
1695#define APBH_CTRL0_SET_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_APB_BURST_EN_SHIFT)) & APBH_CTRL0_SET_APB_BURST_EN_MASK)
1696#define APBH_CTRL0_SET_AHB_BURST8_EN_MASK (0x20000000U)
1697#define APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT (29U)
1698#define APBH_CTRL0_SET_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_SET_AHB_BURST8_EN_MASK)
1699#define APBH_CTRL0_SET_CLKGATE_MASK (0x40000000U)
1700#define APBH_CTRL0_SET_CLKGATE_SHIFT (30U)
1701#define APBH_CTRL0_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_SHIFT)) & APBH_CTRL0_SET_CLKGATE_MASK)
1702#define APBH_CTRL0_SET_SFTRST_MASK (0x80000000U)
1703#define APBH_CTRL0_SET_SFTRST_SHIFT (31U)
1704#define APBH_CTRL0_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_SFTRST_SHIFT)) & APBH_CTRL0_SET_SFTRST_MASK)
1705/*! @} */
1706
1707/*! @name CTRL0_CLR - AHB to APBH Bridge Control and Status Register 0 */
1708/*! @{ */
1709#define APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK (0xFFFFU)
1710#define APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT (0U)
1711/*! CLKGATE_CHANNEL
1712 * 0b0000000000000001..NAND0
1713 * 0b0000000000000010..NAND1
1714 * 0b0000000000000100..NAND2
1715 * 0b0000000000001000..NAND3
1716 * 0b0000000000010000..NAND4
1717 * 0b0000000000100000..NAND5
1718 * 0b0000000001000000..NAND6
1719 * 0b0000000010000000..NAND7
1720 * 0b0000000100000000..SSP
1721 */
1722#define APBH_CTRL0_CLR_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK)
1723#define APBH_CTRL0_CLR_RSVD0_MASK (0xFFF0000U)
1724#define APBH_CTRL0_CLR_RSVD0_SHIFT (16U)
1725#define APBH_CTRL0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_RSVD0_SHIFT)) & APBH_CTRL0_CLR_RSVD0_MASK)
1726#define APBH_CTRL0_CLR_APB_BURST_EN_MASK (0x10000000U)
1727#define APBH_CTRL0_CLR_APB_BURST_EN_SHIFT (28U)
1728#define APBH_CTRL0_CLR_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_APB_BURST_EN_SHIFT)) & APBH_CTRL0_CLR_APB_BURST_EN_MASK)
1729#define APBH_CTRL0_CLR_AHB_BURST8_EN_MASK (0x20000000U)
1730#define APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT (29U)
1731#define APBH_CTRL0_CLR_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_CLR_AHB_BURST8_EN_MASK)
1732#define APBH_CTRL0_CLR_CLKGATE_MASK (0x40000000U)
1733#define APBH_CTRL0_CLR_CLKGATE_SHIFT (30U)
1734#define APBH_CTRL0_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_MASK)
1735#define APBH_CTRL0_CLR_SFTRST_MASK (0x80000000U)
1736#define APBH_CTRL0_CLR_SFTRST_SHIFT (31U)
1737#define APBH_CTRL0_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_SFTRST_SHIFT)) & APBH_CTRL0_CLR_SFTRST_MASK)
1738/*! @} */
1739
1740/*! @name CTRL0_TOG - AHB to APBH Bridge Control and Status Register 0 */
1741/*! @{ */
1742#define APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK (0xFFFFU)
1743#define APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT (0U)
1744/*! CLKGATE_CHANNEL
1745 * 0b0000000000000001..NAND0
1746 * 0b0000000000000010..NAND1
1747 * 0b0000000000000100..NAND2
1748 * 0b0000000000001000..NAND3
1749 * 0b0000000000010000..NAND4
1750 * 0b0000000000100000..NAND5
1751 * 0b0000000001000000..NAND6
1752 * 0b0000000010000000..NAND7
1753 * 0b0000000100000000..SSP
1754 */
1755#define APBH_CTRL0_TOG_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK)
1756#define APBH_CTRL0_TOG_RSVD0_MASK (0xFFF0000U)
1757#define APBH_CTRL0_TOG_RSVD0_SHIFT (16U)
1758#define APBH_CTRL0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_RSVD0_SHIFT)) & APBH_CTRL0_TOG_RSVD0_MASK)
1759#define APBH_CTRL0_TOG_APB_BURST_EN_MASK (0x10000000U)
1760#define APBH_CTRL0_TOG_APB_BURST_EN_SHIFT (28U)
1761#define APBH_CTRL0_TOG_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_APB_BURST_EN_SHIFT)) & APBH_CTRL0_TOG_APB_BURST_EN_MASK)
1762#define APBH_CTRL0_TOG_AHB_BURST8_EN_MASK (0x20000000U)
1763#define APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT (29U)
1764#define APBH_CTRL0_TOG_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_TOG_AHB_BURST8_EN_MASK)
1765#define APBH_CTRL0_TOG_CLKGATE_MASK (0x40000000U)
1766#define APBH_CTRL0_TOG_CLKGATE_SHIFT (30U)
1767#define APBH_CTRL0_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_MASK)
1768#define APBH_CTRL0_TOG_SFTRST_MASK (0x80000000U)
1769#define APBH_CTRL0_TOG_SFTRST_SHIFT (31U)
1770#define APBH_CTRL0_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_SFTRST_SHIFT)) & APBH_CTRL0_TOG_SFTRST_MASK)
1771/*! @} */
1772
1773/*! @name CTRL1 - AHB to APBH Bridge Control and Status Register 1 */
1774/*! @{ */
1775#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1776#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1777#define APBH_CTRL1_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK)
1778#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1779#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1780#define APBH_CTRL1_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK)
1781#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1782#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1783#define APBH_CTRL1_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK)
1784#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1785#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1786#define APBH_CTRL1_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK)
1787#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1788#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1789#define APBH_CTRL1_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK)
1790#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1791#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1792#define APBH_CTRL1_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK)
1793#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1794#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1795#define APBH_CTRL1_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK)
1796#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1797#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1798#define APBH_CTRL1_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK)
1799#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1800#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1801#define APBH_CTRL1_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK)
1802#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1803#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1804#define APBH_CTRL1_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK)
1805#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1806#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1807#define APBH_CTRL1_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK)
1808#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1809#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1810#define APBH_CTRL1_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK)
1811#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1812#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1813#define APBH_CTRL1_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK)
1814#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1815#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1816#define APBH_CTRL1_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK)
1817#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1818#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1819#define APBH_CTRL1_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK)
1820#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1821#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1822#define APBH_CTRL1_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK)
1823#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1824#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1825#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK)
1826#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1827#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1828#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK)
1829#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1830#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1831#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK)
1832#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1833#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1834#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK)
1835#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1836#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1837#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK)
1838#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1839#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1840#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK)
1841#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1842#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1843#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK)
1844#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1845#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1846#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK)
1847#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1848#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1849#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK)
1850#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1851#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1852#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK)
1853#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1854#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1855#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK)
1856#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1857#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1858#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK)
1859#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1860#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1861#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK)
1862#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1863#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1864#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK)
1865#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1866#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1867#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK)
1868#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1869#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1870#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK)
1871/*! @} */
1872
1873/*! @name CTRL1_SET - AHB to APBH Bridge Control and Status Register 1 */
1874/*! @{ */
1875#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1876#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1877#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK)
1878#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1879#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1880#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK)
1881#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1882#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1883#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK)
1884#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1885#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1886#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK)
1887#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1888#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1889#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK)
1890#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1891#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1892#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK)
1893#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1894#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1895#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK)
1896#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1897#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1898#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK)
1899#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1900#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1901#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK)
1902#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1903#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1904#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK)
1905#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1906#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1907#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK)
1908#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1909#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1910#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK)
1911#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1912#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1913#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK)
1914#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1915#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1916#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK)
1917#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1918#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1919#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK)
1920#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1921#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1922#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK)
1923#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1924#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1925#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK)
1926#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1927#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1928#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK)
1929#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1930#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1931#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK)
1932#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1933#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1934#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK)
1935#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1936#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1937#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK)
1938#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1939#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1940#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK)
1941#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1942#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1943#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK)
1944#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1945#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1946#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK)
1947#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1948#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1949#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK)
1950#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1951#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1952#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK)
1953#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1954#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1955#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK)
1956#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1957#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1958#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK)
1959#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1960#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1961#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK)
1962#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1963#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1964#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK)
1965#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1966#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1967#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK)
1968#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1969#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1970#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK)
1971/*! @} */
1972
1973/*! @name CTRL1_CLR - AHB to APBH Bridge Control and Status Register 1 */
1974/*! @{ */
1975#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1976#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1977#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK)
1978#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1979#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1980#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK)
1981#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1982#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1983#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK)
1984#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1985#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1986#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK)
1987#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1988#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1989#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK)
1990#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1991#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1992#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK)
1993#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1994#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1995#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK)
1996#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1997#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1998#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK)
1999#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK (0x100U)
2000#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT (8U)
2001#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK)
2002#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK (0x200U)
2003#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT (9U)
2004#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK)
2005#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK (0x400U)
2006#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT (10U)
2007#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK)
2008#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK (0x800U)
2009#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT (11U)
2010#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK)
2011#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
2012#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT (12U)
2013#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK)
2014#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
2015#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT (13U)
2016#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK)
2017#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
2018#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT (14U)
2019#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK)
2020#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
2021#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT (15U)
2022#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK)
2023#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
2024#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
2025#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK)
2026#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
2027#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
2028#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK)
2029#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
2030#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
2031#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK)
2032#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
2033#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
2034#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK)
2035#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
2036#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
2037#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK)
2038#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
2039#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
2040#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK)
2041#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
2042#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
2043#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK)
2044#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
2045#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
2046#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK)
2047#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
2048#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
2049#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK)
2050#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
2051#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
2052#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK)
2053#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
2054#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
2055#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK)
2056#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
2057#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
2058#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK)
2059#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
2060#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
2061#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK)
2062#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
2063#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
2064#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK)
2065#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
2066#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
2067#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK)
2068#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
2069#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
2070#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK)
2071/*! @} */
2072
2073/*! @name CTRL1_TOG - AHB to APBH Bridge Control and Status Register 1 */
2074/*! @{ */
2075#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK (0x1U)
2076#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT (0U)
2077#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK)
2078#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK (0x2U)
2079#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT (1U)
2080#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK)
2081#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK (0x4U)
2082#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT (2U)
2083#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK)
2084#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK (0x8U)
2085#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT (3U)
2086#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK)
2087#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK (0x10U)
2088#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT (4U)
2089#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK)
2090#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK (0x20U)
2091#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT (5U)
2092#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK)
2093#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK (0x40U)
2094#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT (6U)
2095#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK)
2096#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK (0x80U)
2097#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT (7U)
2098#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK)
2099#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK (0x100U)
2100#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT (8U)
2101#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK)
2102#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK (0x200U)
2103#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT (9U)
2104#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK)
2105#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK (0x400U)
2106#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT (10U)
2107#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK)
2108#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK (0x800U)
2109#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT (11U)
2110#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK)
2111#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
2112#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT (12U)
2113#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK)
2114#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
2115#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT (13U)
2116#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK)
2117#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
2118#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT (14U)
2119#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK)
2120#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
2121#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT (15U)
2122#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK)
2123#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
2124#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
2125#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK)
2126#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
2127#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
2128#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK)
2129#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
2130#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
2131#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK)
2132#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
2133#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
2134#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK)
2135#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
2136#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
2137#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK)
2138#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
2139#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
2140#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK)
2141#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
2142#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
2143#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK)
2144#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
2145#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
2146#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK)
2147#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
2148#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
2149#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK)
2150#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
2151#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
2152#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK)
2153#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
2154#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
2155#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK)
2156#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
2157#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
2158#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK)
2159#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
2160#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
2161#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK)
2162#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
2163#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
2164#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK)
2165#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
2166#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
2167#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK)
2168#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
2169#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
2170#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK)
2171/*! @} */
2172
2173/*! @name CTRL2 - AHB to APBH Bridge Control and Status Register 2 */
2174/*! @{ */
2175#define APBH_CTRL2_CH0_ERROR_IRQ_MASK (0x1U)
2176#define APBH_CTRL2_CH0_ERROR_IRQ_SHIFT (0U)
2177#define APBH_CTRL2_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH0_ERROR_IRQ_MASK)
2178#define APBH_CTRL2_CH1_ERROR_IRQ_MASK (0x2U)
2179#define APBH_CTRL2_CH1_ERROR_IRQ_SHIFT (1U)
2180#define APBH_CTRL2_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH1_ERROR_IRQ_MASK)
2181#define APBH_CTRL2_CH2_ERROR_IRQ_MASK (0x4U)
2182#define APBH_CTRL2_CH2_ERROR_IRQ_SHIFT (2U)
2183#define APBH_CTRL2_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH2_ERROR_IRQ_MASK)
2184#define APBH_CTRL2_CH3_ERROR_IRQ_MASK (0x8U)
2185#define APBH_CTRL2_CH3_ERROR_IRQ_SHIFT (3U)
2186#define APBH_CTRL2_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH3_ERROR_IRQ_MASK)
2187#define APBH_CTRL2_CH4_ERROR_IRQ_MASK (0x10U)
2188#define APBH_CTRL2_CH4_ERROR_IRQ_SHIFT (4U)
2189#define APBH_CTRL2_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH4_ERROR_IRQ_MASK)
2190#define APBH_CTRL2_CH5_ERROR_IRQ_MASK (0x20U)
2191#define APBH_CTRL2_CH5_ERROR_IRQ_SHIFT (5U)
2192#define APBH_CTRL2_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH5_ERROR_IRQ_MASK)
2193#define APBH_CTRL2_CH6_ERROR_IRQ_MASK (0x40U)
2194#define APBH_CTRL2_CH6_ERROR_IRQ_SHIFT (6U)
2195#define APBH_CTRL2_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH6_ERROR_IRQ_MASK)
2196#define APBH_CTRL2_CH7_ERROR_IRQ_MASK (0x80U)
2197#define APBH_CTRL2_CH7_ERROR_IRQ_SHIFT (7U)
2198#define APBH_CTRL2_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH7_ERROR_IRQ_MASK)
2199#define APBH_CTRL2_CH8_ERROR_IRQ_MASK (0x100U)
2200#define APBH_CTRL2_CH8_ERROR_IRQ_SHIFT (8U)
2201#define APBH_CTRL2_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH8_ERROR_IRQ_MASK)
2202#define APBH_CTRL2_CH9_ERROR_IRQ_MASK (0x200U)
2203#define APBH_CTRL2_CH9_ERROR_IRQ_SHIFT (9U)
2204#define APBH_CTRL2_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH9_ERROR_IRQ_MASK)
2205#define APBH_CTRL2_CH10_ERROR_IRQ_MASK (0x400U)
2206#define APBH_CTRL2_CH10_ERROR_IRQ_SHIFT (10U)
2207#define APBH_CTRL2_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH10_ERROR_IRQ_MASK)
2208#define APBH_CTRL2_CH11_ERROR_IRQ_MASK (0x800U)
2209#define APBH_CTRL2_CH11_ERROR_IRQ_SHIFT (11U)
2210#define APBH_CTRL2_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH11_ERROR_IRQ_MASK)
2211#define APBH_CTRL2_CH12_ERROR_IRQ_MASK (0x1000U)
2212#define APBH_CTRL2_CH12_ERROR_IRQ_SHIFT (12U)
2213#define APBH_CTRL2_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH12_ERROR_IRQ_MASK)
2214#define APBH_CTRL2_CH13_ERROR_IRQ_MASK (0x2000U)
2215#define APBH_CTRL2_CH13_ERROR_IRQ_SHIFT (13U)
2216#define APBH_CTRL2_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH13_ERROR_IRQ_MASK)
2217#define APBH_CTRL2_CH14_ERROR_IRQ_MASK (0x4000U)
2218#define APBH_CTRL2_CH14_ERROR_IRQ_SHIFT (14U)
2219#define APBH_CTRL2_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH14_ERROR_IRQ_MASK)
2220#define APBH_CTRL2_CH15_ERROR_IRQ_MASK (0x8000U)
2221#define APBH_CTRL2_CH15_ERROR_IRQ_SHIFT (15U)
2222#define APBH_CTRL2_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH15_ERROR_IRQ_MASK)
2223#define APBH_CTRL2_CH0_ERROR_STATUS_MASK (0x10000U)
2224#define APBH_CTRL2_CH0_ERROR_STATUS_SHIFT (16U)
2225/*! CH0_ERROR_STATUS
2226 * 0b0..An early termination from the device causes error IRQ.
2227 * 0b1..An AHB bus error causes error IRQ.
2228 */
2229#define APBH_CTRL2_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH0_ERROR_STATUS_MASK)
2230#define APBH_CTRL2_CH1_ERROR_STATUS_MASK (0x20000U)
2231#define APBH_CTRL2_CH1_ERROR_STATUS_SHIFT (17U)
2232/*! CH1_ERROR_STATUS
2233 * 0b0..An early termination from the device causes error IRQ.
2234 * 0b1..An AHB bus error causes error IRQ.
2235 */
2236#define APBH_CTRL2_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH1_ERROR_STATUS_MASK)
2237#define APBH_CTRL2_CH2_ERROR_STATUS_MASK (0x40000U)
2238#define APBH_CTRL2_CH2_ERROR_STATUS_SHIFT (18U)
2239/*! CH2_ERROR_STATUS
2240 * 0b0..An early termination from the device causes error IRQ.
2241 * 0b1..An AHB bus error causes error IRQ.
2242 */
2243#define APBH_CTRL2_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH2_ERROR_STATUS_MASK)
2244#define APBH_CTRL2_CH3_ERROR_STATUS_MASK (0x80000U)
2245#define APBH_CTRL2_CH3_ERROR_STATUS_SHIFT (19U)
2246/*! CH3_ERROR_STATUS
2247 * 0b0..An early termination from the device causes error IRQ.
2248 * 0b1..An AHB bus error causes error IRQ.
2249 */
2250#define APBH_CTRL2_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH3_ERROR_STATUS_MASK)
2251#define APBH_CTRL2_CH4_ERROR_STATUS_MASK (0x100000U)
2252#define APBH_CTRL2_CH4_ERROR_STATUS_SHIFT (20U)
2253/*! CH4_ERROR_STATUS
2254 * 0b0..An early termination from the device causes error IRQ.
2255 * 0b1..An AHB bus error causes error IRQ.
2256 */
2257#define APBH_CTRL2_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH4_ERROR_STATUS_MASK)
2258#define APBH_CTRL2_CH5_ERROR_STATUS_MASK (0x200000U)
2259#define APBH_CTRL2_CH5_ERROR_STATUS_SHIFT (21U)
2260/*! CH5_ERROR_STATUS
2261 * 0b0..An early termination from the device causes error IRQ.
2262 * 0b1..An AHB bus error causes error IRQ.
2263 */
2264#define APBH_CTRL2_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH5_ERROR_STATUS_MASK)
2265#define APBH_CTRL2_CH6_ERROR_STATUS_MASK (0x400000U)
2266#define APBH_CTRL2_CH6_ERROR_STATUS_SHIFT (22U)
2267/*! CH6_ERROR_STATUS
2268 * 0b0..An early termination from the device causes error IRQ.
2269 * 0b1..An AHB bus error causes error IRQ.
2270 */
2271#define APBH_CTRL2_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH6_ERROR_STATUS_MASK)
2272#define APBH_CTRL2_CH7_ERROR_STATUS_MASK (0x800000U)
2273#define APBH_CTRL2_CH7_ERROR_STATUS_SHIFT (23U)
2274/*! CH7_ERROR_STATUS
2275 * 0b0..An early termination from the device causes error IRQ.
2276 * 0b1..An AHB bus error causes error IRQ.
2277 */
2278#define APBH_CTRL2_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH7_ERROR_STATUS_MASK)
2279#define APBH_CTRL2_CH8_ERROR_STATUS_MASK (0x1000000U)
2280#define APBH_CTRL2_CH8_ERROR_STATUS_SHIFT (24U)
2281/*! CH8_ERROR_STATUS
2282 * 0b0..An early termination from the device causes error IRQ.
2283 * 0b1..An AHB bus error causes error IRQ.
2284 */
2285#define APBH_CTRL2_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH8_ERROR_STATUS_MASK)
2286#define APBH_CTRL2_CH9_ERROR_STATUS_MASK (0x2000000U)
2287#define APBH_CTRL2_CH9_ERROR_STATUS_SHIFT (25U)
2288/*! CH9_ERROR_STATUS
2289 * 0b0..An early termination from the device causes error IRQ.
2290 * 0b1..An AHB bus error causes error IRQ.
2291 */
2292#define APBH_CTRL2_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH9_ERROR_STATUS_MASK)
2293#define APBH_CTRL2_CH10_ERROR_STATUS_MASK (0x4000000U)
2294#define APBH_CTRL2_CH10_ERROR_STATUS_SHIFT (26U)
2295/*! CH10_ERROR_STATUS
2296 * 0b0..An early termination from the device causes error IRQ.
2297 * 0b1..An AHB bus error causes error IRQ.
2298 */
2299#define APBH_CTRL2_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH10_ERROR_STATUS_MASK)
2300#define APBH_CTRL2_CH11_ERROR_STATUS_MASK (0x8000000U)
2301#define APBH_CTRL2_CH11_ERROR_STATUS_SHIFT (27U)
2302/*! CH11_ERROR_STATUS
2303 * 0b0..An early termination from the device causes error IRQ.
2304 * 0b1..An AHB bus error causes error IRQ.
2305 */
2306#define APBH_CTRL2_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH11_ERROR_STATUS_MASK)
2307#define APBH_CTRL2_CH12_ERROR_STATUS_MASK (0x10000000U)
2308#define APBH_CTRL2_CH12_ERROR_STATUS_SHIFT (28U)
2309/*! CH12_ERROR_STATUS
2310 * 0b0..An early termination from the device causes error IRQ.
2311 * 0b1..An AHB bus error causes error IRQ.
2312 */
2313#define APBH_CTRL2_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH12_ERROR_STATUS_MASK)
2314#define APBH_CTRL2_CH13_ERROR_STATUS_MASK (0x20000000U)
2315#define APBH_CTRL2_CH13_ERROR_STATUS_SHIFT (29U)
2316/*! CH13_ERROR_STATUS
2317 * 0b0..An early termination from the device causes error IRQ.
2318 * 0b1..An AHB bus error causes error IRQ.
2319 */
2320#define APBH_CTRL2_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH13_ERROR_STATUS_MASK)
2321#define APBH_CTRL2_CH14_ERROR_STATUS_MASK (0x40000000U)
2322#define APBH_CTRL2_CH14_ERROR_STATUS_SHIFT (30U)
2323/*! CH14_ERROR_STATUS
2324 * 0b0..An early termination from the device causes error IRQ.
2325 * 0b1..An AHB bus error causes error IRQ.
2326 */
2327#define APBH_CTRL2_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH14_ERROR_STATUS_MASK)
2328#define APBH_CTRL2_CH15_ERROR_STATUS_MASK (0x80000000U)
2329#define APBH_CTRL2_CH15_ERROR_STATUS_SHIFT (31U)
2330/*! CH15_ERROR_STATUS
2331 * 0b0..An early termination from the device causes error IRQ.
2332 * 0b1..An AHB bus error causes error IRQ.
2333 */
2334#define APBH_CTRL2_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH15_ERROR_STATUS_MASK)
2335/*! @} */
2336
2337/*! @name CTRL2_SET - AHB to APBH Bridge Control and Status Register 2 */
2338/*! @{ */
2339#define APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK (0x1U)
2340#define APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT (0U)
2341#define APBH_CTRL2_SET_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK)
2342#define APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK (0x2U)
2343#define APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT (1U)
2344#define APBH_CTRL2_SET_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK)
2345#define APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK (0x4U)
2346#define APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT (2U)
2347#define APBH_CTRL2_SET_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK)
2348#define APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK (0x8U)
2349#define APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT (3U)
2350#define APBH_CTRL2_SET_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK)
2351#define APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK (0x10U)
2352#define APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT (4U)
2353#define APBH_CTRL2_SET_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK)
2354#define APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK (0x20U)
2355#define APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT (5U)
2356#define APBH_CTRL2_SET_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK)
2357#define APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK (0x40U)
2358#define APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT (6U)
2359#define APBH_CTRL2_SET_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK)
2360#define APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK (0x80U)
2361#define APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT (7U)
2362#define APBH_CTRL2_SET_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK)
2363#define APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK (0x100U)
2364#define APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT (8U)
2365#define APBH_CTRL2_SET_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK)
2366#define APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK (0x200U)
2367#define APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT (9U)
2368#define APBH_CTRL2_SET_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK)
2369#define APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK (0x400U)
2370#define APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT (10U)
2371#define APBH_CTRL2_SET_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK)
2372#define APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK (0x800U)
2373#define APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT (11U)
2374#define APBH_CTRL2_SET_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK)
2375#define APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK (0x1000U)
2376#define APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT (12U)
2377#define APBH_CTRL2_SET_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK)
2378#define APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK (0x2000U)
2379#define APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT (13U)
2380#define APBH_CTRL2_SET_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK)
2381#define APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK (0x4000U)
2382#define APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT (14U)
2383#define APBH_CTRL2_SET_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK)
2384#define APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK (0x8000U)
2385#define APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT (15U)
2386#define APBH_CTRL2_SET_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK)
2387#define APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK (0x10000U)
2388#define APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT (16U)
2389/*! CH0_ERROR_STATUS
2390 * 0b0..An early termination from the device causes error IRQ.
2391 * 0b1..An AHB bus error causes error IRQ.
2392 */
2393#define APBH_CTRL2_SET_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK)
2394#define APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK (0x20000U)
2395#define APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT (17U)
2396/*! CH1_ERROR_STATUS
2397 * 0b0..An early termination from the device causes error IRQ.
2398 * 0b1..An AHB bus error causes error IRQ.
2399 */
2400#define APBH_CTRL2_SET_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK)
2401#define APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK (0x40000U)
2402#define APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT (18U)
2403/*! CH2_ERROR_STATUS
2404 * 0b0..An early termination from the device causes error IRQ.
2405 * 0b1..An AHB bus error causes error IRQ.
2406 */
2407#define APBH_CTRL2_SET_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK)
2408#define APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK (0x80000U)
2409#define APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT (19U)
2410/*! CH3_ERROR_STATUS
2411 * 0b0..An early termination from the device causes error IRQ.
2412 * 0b1..An AHB bus error causes error IRQ.
2413 */
2414#define APBH_CTRL2_SET_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK)
2415#define APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK (0x100000U)
2416#define APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT (20U)
2417/*! CH4_ERROR_STATUS
2418 * 0b0..An early termination from the device causes error IRQ.
2419 * 0b1..An AHB bus error causes error IRQ.
2420 */
2421#define APBH_CTRL2_SET_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK)
2422#define APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK (0x200000U)
2423#define APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT (21U)
2424/*! CH5_ERROR_STATUS
2425 * 0b0..An early termination from the device causes error IRQ.
2426 * 0b1..An AHB bus error causes error IRQ.
2427 */
2428#define APBH_CTRL2_SET_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK)
2429#define APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK (0x400000U)
2430#define APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT (22U)
2431/*! CH6_ERROR_STATUS
2432 * 0b0..An early termination from the device causes error IRQ.
2433 * 0b1..An AHB bus error causes error IRQ.
2434 */
2435#define APBH_CTRL2_SET_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK)
2436#define APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK (0x800000U)
2437#define APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT (23U)
2438/*! CH7_ERROR_STATUS
2439 * 0b0..An early termination from the device causes error IRQ.
2440 * 0b1..An AHB bus error causes error IRQ.
2441 */
2442#define APBH_CTRL2_SET_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK)
2443#define APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK (0x1000000U)
2444#define APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT (24U)
2445/*! CH8_ERROR_STATUS
2446 * 0b0..An early termination from the device causes error IRQ.
2447 * 0b1..An AHB bus error causes error IRQ.
2448 */
2449#define APBH_CTRL2_SET_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK)
2450#define APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK (0x2000000U)
2451#define APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT (25U)
2452/*! CH9_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_SET_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK)
2457#define APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK (0x4000000U)
2458#define APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT (26U)
2459/*! CH10_ERROR_STATUS
2460 * 0b0..An early termination from the device causes error IRQ.
2461 * 0b1..An AHB bus error causes error IRQ.
2462 */
2463#define APBH_CTRL2_SET_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK)
2464#define APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK (0x8000000U)
2465#define APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT (27U)
2466/*! CH11_ERROR_STATUS
2467 * 0b0..An early termination from the device causes error IRQ.
2468 * 0b1..An AHB bus error causes error IRQ.
2469 */
2470#define APBH_CTRL2_SET_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK)
2471#define APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK (0x10000000U)
2472#define APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT (28U)
2473/*! CH12_ERROR_STATUS
2474 * 0b0..An early termination from the device causes error IRQ.
2475 * 0b1..An AHB bus error causes error IRQ.
2476 */
2477#define APBH_CTRL2_SET_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK)
2478#define APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK (0x20000000U)
2479#define APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT (29U)
2480/*! CH13_ERROR_STATUS
2481 * 0b0..An early termination from the device causes error IRQ.
2482 * 0b1..An AHB bus error causes error IRQ.
2483 */
2484#define APBH_CTRL2_SET_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK)
2485#define APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK (0x40000000U)
2486#define APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT (30U)
2487/*! CH14_ERROR_STATUS
2488 * 0b0..An early termination from the device causes error IRQ.
2489 * 0b1..An AHB bus error causes error IRQ.
2490 */
2491#define APBH_CTRL2_SET_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK)
2492#define APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK (0x80000000U)
2493#define APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT (31U)
2494/*! CH15_ERROR_STATUS
2495 * 0b0..An early termination from the device causes error IRQ.
2496 * 0b1..An AHB bus error causes error IRQ.
2497 */
2498#define APBH_CTRL2_SET_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK)
2499/*! @} */
2500
2501/*! @name CTRL2_CLR - AHB to APBH Bridge Control and Status Register 2 */
2502/*! @{ */
2503#define APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK (0x1U)
2504#define APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT (0U)
2505#define APBH_CTRL2_CLR_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK)
2506#define APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK (0x2U)
2507#define APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT (1U)
2508#define APBH_CTRL2_CLR_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK)
2509#define APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK (0x4U)
2510#define APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT (2U)
2511#define APBH_CTRL2_CLR_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK)
2512#define APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK (0x8U)
2513#define APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT (3U)
2514#define APBH_CTRL2_CLR_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK)
2515#define APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK (0x10U)
2516#define APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT (4U)
2517#define APBH_CTRL2_CLR_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK)
2518#define APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK (0x20U)
2519#define APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT (5U)
2520#define APBH_CTRL2_CLR_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK)
2521#define APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK (0x40U)
2522#define APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT (6U)
2523#define APBH_CTRL2_CLR_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK)
2524#define APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK (0x80U)
2525#define APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT (7U)
2526#define APBH_CTRL2_CLR_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK)
2527#define APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK (0x100U)
2528#define APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT (8U)
2529#define APBH_CTRL2_CLR_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK)
2530#define APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK (0x200U)
2531#define APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT (9U)
2532#define APBH_CTRL2_CLR_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK)
2533#define APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK (0x400U)
2534#define APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT (10U)
2535#define APBH_CTRL2_CLR_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK)
2536#define APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK (0x800U)
2537#define APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT (11U)
2538#define APBH_CTRL2_CLR_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK)
2539#define APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK (0x1000U)
2540#define APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT (12U)
2541#define APBH_CTRL2_CLR_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK)
2542#define APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK (0x2000U)
2543#define APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT (13U)
2544#define APBH_CTRL2_CLR_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK)
2545#define APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK (0x4000U)
2546#define APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT (14U)
2547#define APBH_CTRL2_CLR_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK)
2548#define APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK (0x8000U)
2549#define APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT (15U)
2550#define APBH_CTRL2_CLR_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK)
2551#define APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK (0x10000U)
2552#define APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT (16U)
2553/*! CH0_ERROR_STATUS
2554 * 0b0..An early termination from the device causes error IRQ.
2555 * 0b1..An AHB bus error causes error IRQ.
2556 */
2557#define APBH_CTRL2_CLR_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK)
2558#define APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK (0x20000U)
2559#define APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT (17U)
2560/*! CH1_ERROR_STATUS
2561 * 0b0..An early termination from the device causes error IRQ.
2562 * 0b1..An AHB bus error causes error IRQ.
2563 */
2564#define APBH_CTRL2_CLR_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK)
2565#define APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK (0x40000U)
2566#define APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT (18U)
2567/*! CH2_ERROR_STATUS
2568 * 0b0..An early termination from the device causes error IRQ.
2569 * 0b1..An AHB bus error causes error IRQ.
2570 */
2571#define APBH_CTRL2_CLR_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK)
2572#define APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK (0x80000U)
2573#define APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT (19U)
2574/*! CH3_ERROR_STATUS
2575 * 0b0..An early termination from the device causes error IRQ.
2576 * 0b1..An AHB bus error causes error IRQ.
2577 */
2578#define APBH_CTRL2_CLR_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK)
2579#define APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK (0x100000U)
2580#define APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT (20U)
2581/*! CH4_ERROR_STATUS
2582 * 0b0..An early termination from the device causes error IRQ.
2583 * 0b1..An AHB bus error causes error IRQ.
2584 */
2585#define APBH_CTRL2_CLR_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK)
2586#define APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK (0x200000U)
2587#define APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT (21U)
2588/*! CH5_ERROR_STATUS
2589 * 0b0..An early termination from the device causes error IRQ.
2590 * 0b1..An AHB bus error causes error IRQ.
2591 */
2592#define APBH_CTRL2_CLR_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK)
2593#define APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK (0x400000U)
2594#define APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT (22U)
2595/*! CH6_ERROR_STATUS
2596 * 0b0..An early termination from the device causes error IRQ.
2597 * 0b1..An AHB bus error causes error IRQ.
2598 */
2599#define APBH_CTRL2_CLR_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK)
2600#define APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK (0x800000U)
2601#define APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT (23U)
2602/*! CH7_ERROR_STATUS
2603 * 0b0..An early termination from the device causes error IRQ.
2604 * 0b1..An AHB bus error causes error IRQ.
2605 */
2606#define APBH_CTRL2_CLR_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK)
2607#define APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK (0x1000000U)
2608#define APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT (24U)
2609/*! CH8_ERROR_STATUS
2610 * 0b0..An early termination from the device causes error IRQ.
2611 * 0b1..An AHB bus error causes error IRQ.
2612 */
2613#define APBH_CTRL2_CLR_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK)
2614#define APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK (0x2000000U)
2615#define APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT (25U)
2616/*! CH9_ERROR_STATUS
2617 * 0b0..An early termination from the device causes error IRQ.
2618 * 0b1..An AHB bus error causes error IRQ.
2619 */
2620#define APBH_CTRL2_CLR_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK)
2621#define APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK (0x4000000U)
2622#define APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT (26U)
2623/*! CH10_ERROR_STATUS
2624 * 0b0..An early termination from the device causes error IRQ.
2625 * 0b1..An AHB bus error causes error IRQ.
2626 */
2627#define APBH_CTRL2_CLR_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK)
2628#define APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK (0x8000000U)
2629#define APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT (27U)
2630/*! CH11_ERROR_STATUS
2631 * 0b0..An early termination from the device causes error IRQ.
2632 * 0b1..An AHB bus error causes error IRQ.
2633 */
2634#define APBH_CTRL2_CLR_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK)
2635#define APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK (0x10000000U)
2636#define APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT (28U)
2637/*! CH12_ERROR_STATUS
2638 * 0b0..An early termination from the device causes error IRQ.
2639 * 0b1..An AHB bus error causes error IRQ.
2640 */
2641#define APBH_CTRL2_CLR_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK)
2642#define APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK (0x20000000U)
2643#define APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT (29U)
2644/*! CH13_ERROR_STATUS
2645 * 0b0..An early termination from the device causes error IRQ.
2646 * 0b1..An AHB bus error causes error IRQ.
2647 */
2648#define APBH_CTRL2_CLR_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK)
2649#define APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK (0x40000000U)
2650#define APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT (30U)
2651/*! CH14_ERROR_STATUS
2652 * 0b0..An early termination from the device causes error IRQ.
2653 * 0b1..An AHB bus error causes error IRQ.
2654 */
2655#define APBH_CTRL2_CLR_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK)
2656#define APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK (0x80000000U)
2657#define APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT (31U)
2658/*! CH15_ERROR_STATUS
2659 * 0b0..An early termination from the device causes error IRQ.
2660 * 0b1..An AHB bus error causes error IRQ.
2661 */
2662#define APBH_CTRL2_CLR_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK)
2663/*! @} */
2664
2665/*! @name CTRL2_TOG - AHB to APBH Bridge Control and Status Register 2 */
2666/*! @{ */
2667#define APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK (0x1U)
2668#define APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT (0U)
2669#define APBH_CTRL2_TOG_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK)
2670#define APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK (0x2U)
2671#define APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT (1U)
2672#define APBH_CTRL2_TOG_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK)
2673#define APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK (0x4U)
2674#define APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT (2U)
2675#define APBH_CTRL2_TOG_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK)
2676#define APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK (0x8U)
2677#define APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT (3U)
2678#define APBH_CTRL2_TOG_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK)
2679#define APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK (0x10U)
2680#define APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT (4U)
2681#define APBH_CTRL2_TOG_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK)
2682#define APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK (0x20U)
2683#define APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT (5U)
2684#define APBH_CTRL2_TOG_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK)
2685#define APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK (0x40U)
2686#define APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT (6U)
2687#define APBH_CTRL2_TOG_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK)
2688#define APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK (0x80U)
2689#define APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT (7U)
2690#define APBH_CTRL2_TOG_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK)
2691#define APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK (0x100U)
2692#define APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT (8U)
2693#define APBH_CTRL2_TOG_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK)
2694#define APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK (0x200U)
2695#define APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT (9U)
2696#define APBH_CTRL2_TOG_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK)
2697#define APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK (0x400U)
2698#define APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT (10U)
2699#define APBH_CTRL2_TOG_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK)
2700#define APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK (0x800U)
2701#define APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT (11U)
2702#define APBH_CTRL2_TOG_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK)
2703#define APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK (0x1000U)
2704#define APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT (12U)
2705#define APBH_CTRL2_TOG_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK)
2706#define APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK (0x2000U)
2707#define APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT (13U)
2708#define APBH_CTRL2_TOG_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK)
2709#define APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK (0x4000U)
2710#define APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT (14U)
2711#define APBH_CTRL2_TOG_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK)
2712#define APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK (0x8000U)
2713#define APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT (15U)
2714#define APBH_CTRL2_TOG_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK)
2715#define APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK (0x10000U)
2716#define APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT (16U)
2717/*! CH0_ERROR_STATUS
2718 * 0b0..An early termination from the device causes error IRQ.
2719 * 0b1..An AHB bus error causes error IRQ.
2720 */
2721#define APBH_CTRL2_TOG_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK)
2722#define APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK (0x20000U)
2723#define APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT (17U)
2724/*! CH1_ERROR_STATUS
2725 * 0b0..An early termination from the device causes error IRQ.
2726 * 0b1..An AHB bus error causes error IRQ.
2727 */
2728#define APBH_CTRL2_TOG_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK)
2729#define APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK (0x40000U)
2730#define APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT (18U)
2731/*! CH2_ERROR_STATUS
2732 * 0b0..An early termination from the device causes error IRQ.
2733 * 0b1..An AHB bus error causes error IRQ.
2734 */
2735#define APBH_CTRL2_TOG_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK)
2736#define APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK (0x80000U)
2737#define APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT (19U)
2738/*! CH3_ERROR_STATUS
2739 * 0b0..An early termination from the device causes error IRQ.
2740 * 0b1..An AHB bus error causes error IRQ.
2741 */
2742#define APBH_CTRL2_TOG_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK)
2743#define APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK (0x100000U)
2744#define APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT (20U)
2745/*! CH4_ERROR_STATUS
2746 * 0b0..An early termination from the device causes error IRQ.
2747 * 0b1..An AHB bus error causes error IRQ.
2748 */
2749#define APBH_CTRL2_TOG_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK)
2750#define APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK (0x200000U)
2751#define APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT (21U)
2752/*! CH5_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_TOG_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK)
2757#define APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK (0x400000U)
2758#define APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT (22U)
2759/*! CH6_ERROR_STATUS
2760 * 0b0..An early termination from the device causes error IRQ.
2761 * 0b1..An AHB bus error causes error IRQ.
2762 */
2763#define APBH_CTRL2_TOG_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK)
2764#define APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK (0x800000U)
2765#define APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT (23U)
2766/*! CH7_ERROR_STATUS
2767 * 0b0..An early termination from the device causes error IRQ.
2768 * 0b1..An AHB bus error causes error IRQ.
2769 */
2770#define APBH_CTRL2_TOG_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK)
2771#define APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK (0x1000000U)
2772#define APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT (24U)
2773/*! CH8_ERROR_STATUS
2774 * 0b0..An early termination from the device causes error IRQ.
2775 * 0b1..An AHB bus error causes error IRQ.
2776 */
2777#define APBH_CTRL2_TOG_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK)
2778#define APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK (0x2000000U)
2779#define APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT (25U)
2780/*! CH9_ERROR_STATUS
2781 * 0b0..An early termination from the device causes error IRQ.
2782 * 0b1..An AHB bus error causes error IRQ.
2783 */
2784#define APBH_CTRL2_TOG_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK)
2785#define APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK (0x4000000U)
2786#define APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT (26U)
2787/*! CH10_ERROR_STATUS
2788 * 0b0..An early termination from the device causes error IRQ.
2789 * 0b1..An AHB bus error causes error IRQ.
2790 */
2791#define APBH_CTRL2_TOG_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK)
2792#define APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK (0x8000000U)
2793#define APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT (27U)
2794/*! CH11_ERROR_STATUS
2795 * 0b0..An early termination from the device causes error IRQ.
2796 * 0b1..An AHB bus error causes error IRQ.
2797 */
2798#define APBH_CTRL2_TOG_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK)
2799#define APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK (0x10000000U)
2800#define APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT (28U)
2801/*! CH12_ERROR_STATUS
2802 * 0b0..An early termination from the device causes error IRQ.
2803 * 0b1..An AHB bus error causes error IRQ.
2804 */
2805#define APBH_CTRL2_TOG_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK)
2806#define APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK (0x20000000U)
2807#define APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT (29U)
2808/*! CH13_ERROR_STATUS
2809 * 0b0..An early termination from the device causes error IRQ.
2810 * 0b1..An AHB bus error causes error IRQ.
2811 */
2812#define APBH_CTRL2_TOG_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK)
2813#define APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK (0x40000000U)
2814#define APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT (30U)
2815/*! CH14_ERROR_STATUS
2816 * 0b0..An early termination from the device causes error IRQ.
2817 * 0b1..An AHB bus error causes error IRQ.
2818 */
2819#define APBH_CTRL2_TOG_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK)
2820#define APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK (0x80000000U)
2821#define APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT (31U)
2822/*! CH15_ERROR_STATUS
2823 * 0b0..An early termination from the device causes error IRQ.
2824 * 0b1..An AHB bus error causes error IRQ.
2825 */
2826#define APBH_CTRL2_TOG_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK)
2827/*! @} */
2828
2829/*! @name CHANNEL_CTRL - AHB to APBH Bridge Channel Register */
2830/*! @{ */
2831#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK (0xFFFFU)
2832#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT (0U)
2833/*! FREEZE_CHANNEL
2834 * 0b0000000000000001..NAND0
2835 * 0b0000000000000010..NAND1
2836 * 0b0000000000000100..NAND2
2837 * 0b0000000000001000..NAND3
2838 * 0b0000000000010000..NAND4
2839 * 0b0000000000100000..NAND5
2840 * 0b0000000001000000..NAND6
2841 * 0b0000000010000000..NAND7
2842 * 0b0000000100000000..SSP
2843 */
2844#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK)
2845#define APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK (0xFFFF0000U)
2846#define APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT (16U)
2847/*! RESET_CHANNEL
2848 * 0b0000000000000001..NAND0
2849 * 0b0000000000000010..NAND1
2850 * 0b0000000000000100..NAND2
2851 * 0b0000000000001000..NAND3
2852 * 0b0000000000010000..NAND4
2853 * 0b0000000000100000..NAND5
2854 * 0b0000000001000000..NAND6
2855 * 0b0000000010000000..NAND7
2856 * 0b0000000100000000..SSP
2857 */
2858#define APBH_CHANNEL_CTRL_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK)
2859/*! @} */
2860
2861/*! @name CHANNEL_CTRL_SET - AHB to APBH Bridge Channel Register */
2862/*! @{ */
2863#define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK (0xFFFFU)
2864#define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT (0U)
2865/*! FREEZE_CHANNEL
2866 * 0b0000000000000001..NAND0
2867 * 0b0000000000000010..NAND1
2868 * 0b0000000000000100..NAND2
2869 * 0b0000000000001000..NAND3
2870 * 0b0000000000010000..NAND4
2871 * 0b0000000000100000..NAND5
2872 * 0b0000000001000000..NAND6
2873 * 0b0000000010000000..NAND7
2874 * 0b0000000100000000..SSP
2875 */
2876#define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK)
2877#define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK (0xFFFF0000U)
2878#define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT (16U)
2879/*! RESET_CHANNEL
2880 * 0b0000000000000001..NAND0
2881 * 0b0000000000000010..NAND1
2882 * 0b0000000000000100..NAND2
2883 * 0b0000000000001000..NAND3
2884 * 0b0000000000010000..NAND4
2885 * 0b0000000000100000..NAND5
2886 * 0b0000000001000000..NAND6
2887 * 0b0000000010000000..NAND7
2888 * 0b0000000100000000..SSP
2889 */
2890#define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK)
2891/*! @} */
2892
2893/*! @name CHANNEL_CTRL_CLR - AHB to APBH Bridge Channel Register */
2894/*! @{ */
2895#define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK (0xFFFFU)
2896#define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT (0U)
2897/*! FREEZE_CHANNEL
2898 * 0b0000000000000001..NAND0
2899 * 0b0000000000000010..NAND1
2900 * 0b0000000000000100..NAND2
2901 * 0b0000000000001000..NAND3
2902 * 0b0000000000010000..NAND4
2903 * 0b0000000000100000..NAND5
2904 * 0b0000000001000000..NAND6
2905 * 0b0000000010000000..NAND7
2906 * 0b0000000100000000..SSP
2907 */
2908#define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK)
2909#define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK (0xFFFF0000U)
2910#define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT (16U)
2911/*! RESET_CHANNEL
2912 * 0b0000000000000001..NAND0
2913 * 0b0000000000000010..NAND1
2914 * 0b0000000000000100..NAND2
2915 * 0b0000000000001000..NAND3
2916 * 0b0000000000010000..NAND4
2917 * 0b0000000000100000..NAND5
2918 * 0b0000000001000000..NAND6
2919 * 0b0000000010000000..NAND7
2920 * 0b0000000100000000..SSP
2921 */
2922#define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK)
2923/*! @} */
2924
2925/*! @name CHANNEL_CTRL_TOG - AHB to APBH Bridge Channel Register */
2926/*! @{ */
2927#define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK (0xFFFFU)
2928#define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT (0U)
2929/*! FREEZE_CHANNEL
2930 * 0b0000000000000001..NAND0
2931 * 0b0000000000000010..NAND1
2932 * 0b0000000000000100..NAND2
2933 * 0b0000000000001000..NAND3
2934 * 0b0000000000010000..NAND4
2935 * 0b0000000000100000..NAND5
2936 * 0b0000000001000000..NAND6
2937 * 0b0000000010000000..NAND7
2938 * 0b0000000100000000..SSP
2939 */
2940#define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK)
2941#define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK (0xFFFF0000U)
2942#define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT (16U)
2943/*! RESET_CHANNEL
2944 * 0b0000000000000001..NAND0
2945 * 0b0000000000000010..NAND1
2946 * 0b0000000000000100..NAND2
2947 * 0b0000000000001000..NAND3
2948 * 0b0000000000010000..NAND4
2949 * 0b0000000000100000..NAND5
2950 * 0b0000000001000000..NAND6
2951 * 0b0000000010000000..NAND7
2952 * 0b0000000100000000..SSP
2953 */
2954#define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK)
2955/*! @} */
2956
2957/*! @name DMA_BURST_SIZE - AHB to APBH DMA burst size */
2958/*! @{ */
2959#define APBH_DMA_BURST_SIZE_CH0_MASK (0x3U)
2960#define APBH_DMA_BURST_SIZE_CH0_SHIFT (0U)
2961#define APBH_DMA_BURST_SIZE_CH0(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH0_SHIFT)) & APBH_DMA_BURST_SIZE_CH0_MASK)
2962#define APBH_DMA_BURST_SIZE_CH1_MASK (0xCU)
2963#define APBH_DMA_BURST_SIZE_CH1_SHIFT (2U)
2964#define APBH_DMA_BURST_SIZE_CH1(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH1_SHIFT)) & APBH_DMA_BURST_SIZE_CH1_MASK)
2965#define APBH_DMA_BURST_SIZE_CH2_MASK (0x30U)
2966#define APBH_DMA_BURST_SIZE_CH2_SHIFT (4U)
2967#define APBH_DMA_BURST_SIZE_CH2(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH2_SHIFT)) & APBH_DMA_BURST_SIZE_CH2_MASK)
2968#define APBH_DMA_BURST_SIZE_CH3_MASK (0xC0U)
2969#define APBH_DMA_BURST_SIZE_CH3_SHIFT (6U)
2970#define APBH_DMA_BURST_SIZE_CH3(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH3_SHIFT)) & APBH_DMA_BURST_SIZE_CH3_MASK)
2971#define APBH_DMA_BURST_SIZE_CH4_MASK (0x300U)
2972#define APBH_DMA_BURST_SIZE_CH4_SHIFT (8U)
2973#define APBH_DMA_BURST_SIZE_CH4(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH4_SHIFT)) & APBH_DMA_BURST_SIZE_CH4_MASK)
2974#define APBH_DMA_BURST_SIZE_CH5_MASK (0xC00U)
2975#define APBH_DMA_BURST_SIZE_CH5_SHIFT (10U)
2976#define APBH_DMA_BURST_SIZE_CH5(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH5_SHIFT)) & APBH_DMA_BURST_SIZE_CH5_MASK)
2977#define APBH_DMA_BURST_SIZE_CH6_MASK (0x3000U)
2978#define APBH_DMA_BURST_SIZE_CH6_SHIFT (12U)
2979#define APBH_DMA_BURST_SIZE_CH6(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH6_SHIFT)) & APBH_DMA_BURST_SIZE_CH6_MASK)
2980#define APBH_DMA_BURST_SIZE_CH7_MASK (0xC000U)
2981#define APBH_DMA_BURST_SIZE_CH7_SHIFT (14U)
2982#define APBH_DMA_BURST_SIZE_CH7(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH7_SHIFT)) & APBH_DMA_BURST_SIZE_CH7_MASK)
2983#define APBH_DMA_BURST_SIZE_CH8_MASK (0x30000U)
2984#define APBH_DMA_BURST_SIZE_CH8_SHIFT (16U)
2985/*! CH8
2986 * 0b00..BURST0
2987 * 0b01..BURST4
2988 * 0b10..BURST8
2989 */
2990#define APBH_DMA_BURST_SIZE_CH8(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH8_SHIFT)) & APBH_DMA_BURST_SIZE_CH8_MASK)
2991/*! @} */
2992
2993/*! @name DEBUG - AHB to APBH DMA Debug Register */
2994/*! @{ */
2995#define APBH_DEBUG_GPMI_ONE_FIFO_MASK (0x1U)
2996#define APBH_DEBUG_GPMI_ONE_FIFO_SHIFT (0U)
2997#define APBH_DEBUG_GPMI_ONE_FIFO(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEBUG_GPMI_ONE_FIFO_SHIFT)) & APBH_DEBUG_GPMI_ONE_FIFO_MASK)
2998/*! @} */
2999
3000/*! @name CH_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3001/*! @{ */
3002#define APBH_CH_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3003#define APBH_CH_CURCMDAR_CMD_ADDR_SHIFT (0U)
3004#define APBH_CH_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_CURCMDAR_CMD_ADDR_MASK)
3005/*! @} */
3006
3007/* The count of APBH_CH_CURCMDAR */
3008#define APBH_CH_CURCMDAR_COUNT (16U)
3009
3010/*! @name CH_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3011/*! @{ */
3012#define APBH_CH_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3013#define APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3014#define APBH_CH_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_NXTCMDAR_CMD_ADDR_MASK)
3015/*! @} */
3016
3017/* The count of APBH_CH_NXTCMDAR */
3018#define APBH_CH_NXTCMDAR_COUNT (16U)
3019
3020/*! @name CH_CMD - APBH DMA Channel n Command Register */
3021/*! @{ */
3022#define APBH_CH_CMD_COMMAND_MASK (0x3U)
3023#define APBH_CH_CMD_COMMAND_SHIFT (0U)
3024/*! COMMAND
3025 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3026 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3027 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3028 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained
3029 * device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain
3030 * pointer if the peripheral sense line is false.
3031 */
3032#define APBH_CH_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_COMMAND_SHIFT)) & APBH_CH_CMD_COMMAND_MASK)
3033#define APBH_CH_CMD_CHAIN_MASK (0x4U)
3034#define APBH_CH_CMD_CHAIN_SHIFT (2U)
3035#define APBH_CH_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CHAIN_SHIFT)) & APBH_CH_CMD_CHAIN_MASK)
3036#define APBH_CH_CMD_IRQONCMPLT_MASK (0x8U)
3037#define APBH_CH_CMD_IRQONCMPLT_SHIFT (3U)
3038#define APBH_CH_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_IRQONCMPLT_SHIFT)) & APBH_CH_CMD_IRQONCMPLT_MASK)
3039#define APBH_CH_CMD_NANDLOCK_MASK (0x10U)
3040#define APBH_CH_CMD_NANDLOCK_SHIFT (4U)
3041#define APBH_CH_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDLOCK_SHIFT)) & APBH_CH_CMD_NANDLOCK_MASK)
3042#define APBH_CH_CMD_NANDWAIT4READY_MASK (0x20U)
3043#define APBH_CH_CMD_NANDWAIT4READY_SHIFT (5U)
3044#define APBH_CH_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH_CMD_NANDWAIT4READY_MASK)
3045#define APBH_CH_CMD_SEMAPHORE_MASK (0x40U)
3046#define APBH_CH_CMD_SEMAPHORE_SHIFT (6U)
3047#define APBH_CH_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_SEMAPHORE_SHIFT)) & APBH_CH_CMD_SEMAPHORE_MASK)
3048#define APBH_CH_CMD_WAIT4ENDCMD_MASK (0x80U)
3049#define APBH_CH_CMD_WAIT4ENDCMD_SHIFT (7U)
3050#define APBH_CH_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH_CMD_WAIT4ENDCMD_MASK)
3051#define APBH_CH_CMD_HALTONTERMINATE_MASK (0x100U)
3052#define APBH_CH_CMD_HALTONTERMINATE_SHIFT (8U)
3053#define APBH_CH_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH_CMD_HALTONTERMINATE_MASK)
3054#define APBH_CH_CMD_CMDWORDS_MASK (0xF000U)
3055#define APBH_CH_CMD_CMDWORDS_SHIFT (12U)
3056#define APBH_CH_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CMDWORDS_SHIFT)) & APBH_CH_CMD_CMDWORDS_MASK)
3057#define APBH_CH_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3058#define APBH_CH_CMD_XFER_COUNT_SHIFT (16U)
3059#define APBH_CH_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_XFER_COUNT_SHIFT)) & APBH_CH_CMD_XFER_COUNT_MASK)
3060/*! @} */
3061
3062/* The count of APBH_CH_CMD */
3063#define APBH_CH_CMD_COUNT (16U)
3064
3065/*! @name CH_BAR - APBH DMA Channel n Buffer Address Register */
3066/*! @{ */
3067#define APBH_CH_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3068#define APBH_CH_BAR_ADDRESS_SHIFT (0U)
3069#define APBH_CH_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_BAR_ADDRESS_SHIFT)) & APBH_CH_BAR_ADDRESS_MASK)
3070/*! @} */
3071
3072/* The count of APBH_CH_BAR */
3073#define APBH_CH_BAR_COUNT (16U)
3074
3075/*! @name CH_SEMA - APBH DMA Channel n Semaphore Register */
3076/*! @{ */
3077#define APBH_CH_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3078#define APBH_CH_SEMA_INCREMENT_SEMA_SHIFT (0U)
3079#define APBH_CH_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH_SEMA_INCREMENT_SEMA_MASK)
3080#define APBH_CH_SEMA_PHORE_MASK (0xFF0000U)
3081#define APBH_CH_SEMA_PHORE_SHIFT (16U)
3082#define APBH_CH_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_PHORE_SHIFT)) & APBH_CH_SEMA_PHORE_MASK)
3083/*! @} */
3084
3085/* The count of APBH_CH_SEMA */
3086#define APBH_CH_SEMA_COUNT (16U)
3087
3088/*! @name CH_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3089/*! @{ */
3090#define APBH_CH_DEBUG1_STATEMACHINE_MASK (0x1FU)
3091#define APBH_CH_DEBUG1_STATEMACHINE_SHIFT (0U)
3092/*! STATEMACHINE
3093 * 0b00000..This is the idle state of the DMA state machine.
3094 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3095 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3096 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3097 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3098 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3099 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the
3100 * PIO words when PIO count is greater than 1.
3101 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3102 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3103 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3104 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3105 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3106 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3107 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3108 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3109 * 0b10101..When the Wait for Command End bit is set, the state machine enters this state until the DMA device indicates that the command is complete.
3110 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3111 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and
3112 * effectively halts. A channel reset is required to exit this state
3113 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3114 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device
3115 * indicates that the external device is ready.
3116 */
3117#define APBH_CH_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH_DEBUG1_STATEMACHINE_MASK)
3118#define APBH_CH_DEBUG1_RSVD1_MASK (0xFFFE0U)
3119#define APBH_CH_DEBUG1_RSVD1_SHIFT (5U)
3120#define APBH_CH_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RSVD1_SHIFT)) & APBH_CH_DEBUG1_RSVD1_MASK)
3121#define APBH_CH_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3122#define APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3123#define APBH_CH_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_FULL_MASK)
3124#define APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3125#define APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3126#define APBH_CH_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK)
3127#define APBH_CH_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3128#define APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3129#define APBH_CH_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_FULL_MASK)
3130#define APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3131#define APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3132#define APBH_CH_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK)
3133#define APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3134#define APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3135#define APBH_CH_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK)
3136#define APBH_CH_DEBUG1_LOCK_MASK (0x2000000U)
3137#define APBH_CH_DEBUG1_LOCK_SHIFT (25U)
3138#define APBH_CH_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_LOCK_SHIFT)) & APBH_CH_DEBUG1_LOCK_MASK)
3139#define APBH_CH_DEBUG1_READY_MASK (0x4000000U)
3140#define APBH_CH_DEBUG1_READY_SHIFT (26U)
3141#define APBH_CH_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_READY_SHIFT)) & APBH_CH_DEBUG1_READY_MASK)
3142#define APBH_CH_DEBUG1_SENSE_MASK (0x8000000U)
3143#define APBH_CH_DEBUG1_SENSE_SHIFT (27U)
3144#define APBH_CH_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_SENSE_SHIFT)) & APBH_CH_DEBUG1_SENSE_MASK)
3145#define APBH_CH_DEBUG1_END_MASK (0x10000000U)
3146#define APBH_CH_DEBUG1_END_SHIFT (28U)
3147#define APBH_CH_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_END_SHIFT)) & APBH_CH_DEBUG1_END_MASK)
3148#define APBH_CH_DEBUG1_KICK_MASK (0x20000000U)
3149#define APBH_CH_DEBUG1_KICK_SHIFT (29U)
3150#define APBH_CH_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_KICK_SHIFT)) & APBH_CH_DEBUG1_KICK_MASK)
3151#define APBH_CH_DEBUG1_BURST_MASK (0x40000000U)
3152#define APBH_CH_DEBUG1_BURST_SHIFT (30U)
3153#define APBH_CH_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_BURST_SHIFT)) & APBH_CH_DEBUG1_BURST_MASK)
3154#define APBH_CH_DEBUG1_REQ_MASK (0x80000000U)
3155#define APBH_CH_DEBUG1_REQ_SHIFT (31U)
3156#define APBH_CH_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_REQ_SHIFT)) & APBH_CH_DEBUG1_REQ_MASK)
3157/*! @} */
3158
3159/* The count of APBH_CH_DEBUG1 */
3160#define APBH_CH_DEBUG1_COUNT (16U)
3161
3162/*! @name CH_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3163/*! @{ */
3164#define APBH_CH_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3165#define APBH_CH_DEBUG2_AHB_BYTES_SHIFT (0U)
3166#define APBH_CH_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH_DEBUG2_AHB_BYTES_MASK)
3167#define APBH_CH_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3168#define APBH_CH_DEBUG2_APB_BYTES_SHIFT (16U)
3169#define APBH_CH_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH_DEBUG2_APB_BYTES_MASK)
3170/*! @} */
3171
3172/* The count of APBH_CH_DEBUG2 */
3173#define APBH_CH_DEBUG2_COUNT (16U)
3174
3175/*! @name VERSION - APBH Bridge Version Register */
3176/*! @{ */
3177#define APBH_VERSION_STEP_MASK (0xFFFFU)
3178#define APBH_VERSION_STEP_SHIFT (0U)
3179#define APBH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_STEP_SHIFT)) & APBH_VERSION_STEP_MASK)
3180#define APBH_VERSION_MINOR_MASK (0xFF0000U)
3181#define APBH_VERSION_MINOR_SHIFT (16U)
3182#define APBH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MINOR_SHIFT)) & APBH_VERSION_MINOR_MASK)
3183#define APBH_VERSION_MAJOR_MASK (0xFF000000U)
3184#define APBH_VERSION_MAJOR_SHIFT (24U)
3185#define APBH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MAJOR_SHIFT)) & APBH_VERSION_MAJOR_MASK)
3186/*! @} */
3187
3188
3189/*!
3190 * @}
3191 */ /* end of group APBH_Register_Masks */
3192
3193
3194/* APBH - Peripheral instance base addresses */
3195/** Peripheral APBH base address */
3196#define APBH_BASE (0x33000000u)
3197/** Peripheral APBH base pointer */
3198#define APBH ((APBH_Type *)APBH_BASE)
3199/** Array initializer of APBH peripheral base addresses */
3200#define APBH_BASE_ADDRS { APBH_BASE }
3201/** Array initializer of APBH peripheral base pointers */
3202#define APBH_BASE_PTRS { APBH }
3203/** Interrupt vectors for the APBH peripheral type */
3204#define APBH_IRQS { APBHDMA_IRQn }
3205
3206/*!
3207 * @}
3208 */ /* end of group APBH_Peripheral_Access_Layer */
3209
3210
3211/* ----------------------------------------------------------------------------
3212 -- BCH Peripheral Access Layer
3213 ---------------------------------------------------------------------------- */
3214
3215/*!
3216 * @addtogroup BCH_Peripheral_Access_Layer BCH Peripheral Access Layer
3217 * @{
3218 */
3219
3220/** BCH - Register Layout Typedef */
3221typedef struct {
3222 __IO uint32_t CTRL; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x0 */
3223 __IO uint32_t CTRL_SET; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x4 */
3224 __IO uint32_t CTRL_CLR; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x8 */
3225 __IO uint32_t CTRL_TOG; /**< Hardware BCH ECC Accelerator Control Register, offset: 0xC */
3226 __I uint32_t STATUS0; /**< Hardware ECC Accelerator Status Register 0, offset: 0x10 */
3227 uint8_t RESERVED_0[12];
3228 __IO uint32_t MODE; /**< Hardware ECC Accelerator Mode Register, offset: 0x20 */
3229 uint8_t RESERVED_1[12];
3230 __IO uint32_t ENCODEPTR; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x30 */
3231 uint8_t RESERVED_2[12];
3232 __IO uint32_t DATAPTR; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x40 */
3233 uint8_t RESERVED_3[12];
3234 __IO uint32_t METAPTR; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x50 */
3235 uint8_t RESERVED_4[28];
3236 __IO uint32_t LAYOUTSELECT; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x70 */
3237 uint8_t RESERVED_5[12];
3238 __IO uint32_t FLASH0LAYOUT0; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x80 */
3239 uint8_t RESERVED_6[12];
3240 __IO uint32_t FLASH0LAYOUT1; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x90 */
3241 uint8_t RESERVED_7[12];
3242 __IO uint32_t FLASH1LAYOUT0; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xA0 */
3243 uint8_t RESERVED_8[12];
3244 __IO uint32_t FLASH1LAYOUT1; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xB0 */
3245 uint8_t RESERVED_9[12];
3246 __IO uint32_t FLASH2LAYOUT0; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xC0 */
3247 uint8_t RESERVED_10[12];
3248 __IO uint32_t FLASH2LAYOUT1; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xD0 */
3249 uint8_t RESERVED_11[12];
3250 __IO uint32_t FLASH3LAYOUT0; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xE0 */
3251 uint8_t RESERVED_12[12];
3252 __IO uint32_t FLASH3LAYOUT1; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xF0 */
3253 uint8_t RESERVED_13[12];
3254 __IO uint32_t DEBUG0; /**< Hardware BCH ECC Debug Register0, offset: 0x100 */
3255 __IO uint32_t DEBUG0_SET; /**< Hardware BCH ECC Debug Register0, offset: 0x104 */
3256 __IO uint32_t DEBUG0_CLR; /**< Hardware BCH ECC Debug Register0, offset: 0x108 */
3257 __IO uint32_t DEBUG0_TOG; /**< Hardware BCH ECC Debug Register0, offset: 0x10C */
3258 __I uint32_t DBGKESREAD; /**< KES Debug Read Register, offset: 0x110 */
3259 uint8_t RESERVED_14[12];
3260 __I uint32_t DBGCSFEREAD; /**< Chien Search Debug Read Register, offset: 0x120 */
3261 uint8_t RESERVED_15[12];
3262 __I uint32_t DBGSYNDGENREAD; /**< Syndrome Generator Debug Read Register, offset: 0x130 */
3263 uint8_t RESERVED_16[12];
3264 __I uint32_t DBGAHBMREAD; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x140 */
3265 uint8_t RESERVED_17[12];
3266 __I uint32_t BLOCKNAME; /**< Block Name Register, offset: 0x150 */
3267 uint8_t RESERVED_18[12];
3268 __I uint32_t VERSION; /**< BCH Version Register, offset: 0x160 */
3269 uint8_t RESERVED_19[12];
3270 __IO uint32_t DEBUG1; /**< Hardware BCH ECC Debug Register 1, offset: 0x170 */
3271} BCH_Type;
3272
3273/* ----------------------------------------------------------------------------
3274 -- BCH Register Masks
3275 ---------------------------------------------------------------------------- */
3276
3277/*!
3278 * @addtogroup BCH_Register_Masks BCH Register Masks
3279 * @{
3280 */
3281
3282/*! @name CTRL - Hardware BCH ECC Accelerator Control Register */
3283/*! @{ */
3284#define BCH_CTRL_COMPLETE_IRQ_MASK (0x1U)
3285#define BCH_CTRL_COMPLETE_IRQ_SHIFT (0U)
3286#define BCH_CTRL_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_MASK)
3287#define BCH_CTRL_RSVD0_MASK (0x2U)
3288#define BCH_CTRL_RSVD0_SHIFT (1U)
3289#define BCH_CTRL_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD0_SHIFT)) & BCH_CTRL_RSVD0_MASK)
3290#define BCH_CTRL_DEBUG_STALL_IRQ_MASK (0x4U)
3291#define BCH_CTRL_DEBUG_STALL_IRQ_SHIFT (2U)
3292#define BCH_CTRL_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_DEBUG_STALL_IRQ_MASK)
3293#define BCH_CTRL_BM_ERROR_IRQ_MASK (0x8U)
3294#define BCH_CTRL_BM_ERROR_IRQ_SHIFT (3U)
3295#define BCH_CTRL_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_BM_ERROR_IRQ_MASK)
3296#define BCH_CTRL_RSVD1_MASK (0xF0U)
3297#define BCH_CTRL_RSVD1_SHIFT (4U)
3298#define BCH_CTRL_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD1_SHIFT)) & BCH_CTRL_RSVD1_MASK)
3299#define BCH_CTRL_COMPLETE_IRQ_EN_MASK (0x100U)
3300#define BCH_CTRL_COMPLETE_IRQ_EN_SHIFT (8U)
3301#define BCH_CTRL_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_EN_MASK)
3302#define BCH_CTRL_RSVD2_MASK (0x200U)
3303#define BCH_CTRL_RSVD2_SHIFT (9U)
3304#define BCH_CTRL_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD2_SHIFT)) & BCH_CTRL_RSVD2_MASK)
3305#define BCH_CTRL_DEBUG_STALL_IRQ_EN_MASK (0x400U)
3306#define BCH_CTRL_DEBUG_STALL_IRQ_EN_SHIFT (10U)
3307#define BCH_CTRL_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_DEBUG_STALL_IRQ_EN_MASK)
3308#define BCH_CTRL_RSVD3_MASK (0xF800U)
3309#define BCH_CTRL_RSVD3_SHIFT (11U)
3310#define BCH_CTRL_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD3_SHIFT)) & BCH_CTRL_RSVD3_MASK)
3311#define BCH_CTRL_M2M_ENABLE_MASK (0x10000U)
3312#define BCH_CTRL_M2M_ENABLE_SHIFT (16U)
3313#define BCH_CTRL_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENABLE_SHIFT)) & BCH_CTRL_M2M_ENABLE_MASK)
3314#define BCH_CTRL_M2M_ENCODE_MASK (0x20000U)
3315#define BCH_CTRL_M2M_ENCODE_SHIFT (17U)
3316#define BCH_CTRL_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENCODE_SHIFT)) & BCH_CTRL_M2M_ENCODE_MASK)
3317#define BCH_CTRL_M2M_LAYOUT_MASK (0xC0000U)
3318#define BCH_CTRL_M2M_LAYOUT_SHIFT (18U)
3319#define BCH_CTRL_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_LAYOUT_SHIFT)) & BCH_CTRL_M2M_LAYOUT_MASK)
3320#define BCH_CTRL_RSVD4_MASK (0x300000U)
3321#define BCH_CTRL_RSVD4_SHIFT (20U)
3322#define BCH_CTRL_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD4_SHIFT)) & BCH_CTRL_RSVD4_MASK)
3323#define BCH_CTRL_DEBUGSYNDROME_MASK (0x400000U)
3324#define BCH_CTRL_DEBUGSYNDROME_SHIFT (22U)
3325#define BCH_CTRL_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_DEBUGSYNDROME_MASK)
3326#define BCH_CTRL_RSVD5_MASK (0x3F800000U)
3327#define BCH_CTRL_RSVD5_SHIFT (23U)
3328#define BCH_CTRL_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD5_SHIFT)) & BCH_CTRL_RSVD5_MASK)
3329#define BCH_CTRL_CLKGATE_MASK (0x40000000U)
3330#define BCH_CTRL_CLKGATE_SHIFT (30U)
3331/*! CLKGATE
3332 * 0b0..Allow BCH to operate normally.
3333 * 0b1..Do not clock BCH gates in order to minimize power consumption.
3334 */
3335#define BCH_CTRL_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLKGATE_SHIFT)) & BCH_CTRL_CLKGATE_MASK)
3336#define BCH_CTRL_SFTRST_MASK (0x80000000U)
3337#define BCH_CTRL_SFTRST_SHIFT (31U)
3338/*! SFTRST
3339 * 0b0..Allow BCH to operate normally.
3340 * 0b1..Hold BCH in reset.
3341 */
3342#define BCH_CTRL_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SFTRST_SHIFT)) & BCH_CTRL_SFTRST_MASK)
3343/*! @} */
3344
3345/*! @name CTRL_SET - Hardware BCH ECC Accelerator Control Register */
3346/*! @{ */
3347#define BCH_CTRL_SET_COMPLETE_IRQ_MASK (0x1U)
3348#define BCH_CTRL_SET_COMPLETE_IRQ_SHIFT (0U)
3349#define BCH_CTRL_SET_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_SET_COMPLETE_IRQ_MASK)
3350#define BCH_CTRL_SET_RSVD0_MASK (0x2U)
3351#define BCH_CTRL_SET_RSVD0_SHIFT (1U)
3352#define BCH_CTRL_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD0_SHIFT)) & BCH_CTRL_SET_RSVD0_MASK)
3353#define BCH_CTRL_SET_DEBUG_STALL_IRQ_MASK (0x4U)
3354#define BCH_CTRL_SET_DEBUG_STALL_IRQ_SHIFT (2U)
3355#define BCH_CTRL_SET_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_SET_DEBUG_STALL_IRQ_MASK)
3356#define BCH_CTRL_SET_BM_ERROR_IRQ_MASK (0x8U)
3357#define BCH_CTRL_SET_BM_ERROR_IRQ_SHIFT (3U)
3358#define BCH_CTRL_SET_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_SET_BM_ERROR_IRQ_MASK)
3359#define BCH_CTRL_SET_RSVD1_MASK (0xF0U)
3360#define BCH_CTRL_SET_RSVD1_SHIFT (4U)
3361#define BCH_CTRL_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD1_SHIFT)) & BCH_CTRL_SET_RSVD1_MASK)
3362#define BCH_CTRL_SET_COMPLETE_IRQ_EN_MASK (0x100U)
3363#define BCH_CTRL_SET_COMPLETE_IRQ_EN_SHIFT (8U)
3364#define BCH_CTRL_SET_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_SET_COMPLETE_IRQ_EN_MASK)
3365#define BCH_CTRL_SET_RSVD2_MASK (0x200U)
3366#define BCH_CTRL_SET_RSVD2_SHIFT (9U)
3367#define BCH_CTRL_SET_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD2_SHIFT)) & BCH_CTRL_SET_RSVD2_MASK)
3368#define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_MASK (0x400U)
3369#define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_SHIFT (10U)
3370#define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_MASK)
3371#define BCH_CTRL_SET_RSVD3_MASK (0xF800U)
3372#define BCH_CTRL_SET_RSVD3_SHIFT (11U)
3373#define BCH_CTRL_SET_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD3_SHIFT)) & BCH_CTRL_SET_RSVD3_MASK)
3374#define BCH_CTRL_SET_M2M_ENABLE_MASK (0x10000U)
3375#define BCH_CTRL_SET_M2M_ENABLE_SHIFT (16U)
3376#define BCH_CTRL_SET_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENABLE_SHIFT)) & BCH_CTRL_SET_M2M_ENABLE_MASK)
3377#define BCH_CTRL_SET_M2M_ENCODE_MASK (0x20000U)
3378#define BCH_CTRL_SET_M2M_ENCODE_SHIFT (17U)
3379#define BCH_CTRL_SET_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENCODE_SHIFT)) & BCH_CTRL_SET_M2M_ENCODE_MASK)
3380#define BCH_CTRL_SET_M2M_LAYOUT_MASK (0xC0000U)
3381#define BCH_CTRL_SET_M2M_LAYOUT_SHIFT (18U)
3382#define BCH_CTRL_SET_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_LAYOUT_SHIFT)) & BCH_CTRL_SET_M2M_LAYOUT_MASK)
3383#define BCH_CTRL_SET_RSVD4_MASK (0x300000U)
3384#define BCH_CTRL_SET_RSVD4_SHIFT (20U)
3385#define BCH_CTRL_SET_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD4_SHIFT)) & BCH_CTRL_SET_RSVD4_MASK)
3386#define BCH_CTRL_SET_DEBUGSYNDROME_MASK (0x400000U)
3387#define BCH_CTRL_SET_DEBUGSYNDROME_SHIFT (22U)
3388#define BCH_CTRL_SET_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_SET_DEBUGSYNDROME_MASK)
3389#define BCH_CTRL_SET_RSVD5_MASK (0x3F800000U)
3390#define BCH_CTRL_SET_RSVD5_SHIFT (23U)
3391#define BCH_CTRL_SET_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD5_SHIFT)) & BCH_CTRL_SET_RSVD5_MASK)
3392#define BCH_CTRL_SET_CLKGATE_MASK (0x40000000U)
3393#define BCH_CTRL_SET_CLKGATE_SHIFT (30U)
3394/*! CLKGATE
3395 * 0b0..Allow BCH to operate normally.
3396 * 0b1..Do not clock BCH gates in order to minimize power consumption.
3397 */
3398#define BCH_CTRL_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_CLKGATE_SHIFT)) & BCH_CTRL_SET_CLKGATE_MASK)
3399#define BCH_CTRL_SET_SFTRST_MASK (0x80000000U)
3400#define BCH_CTRL_SET_SFTRST_SHIFT (31U)
3401/*! SFTRST
3402 * 0b0..Allow BCH to operate normally.
3403 * 0b1..Hold BCH in reset.
3404 */
3405#define BCH_CTRL_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_SFTRST_SHIFT)) & BCH_CTRL_SET_SFTRST_MASK)
3406/*! @} */
3407
3408/*! @name CTRL_CLR - Hardware BCH ECC Accelerator Control Register */
3409/*! @{ */
3410#define BCH_CTRL_CLR_COMPLETE_IRQ_MASK (0x1U)
3411#define BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT (0U)
3412#define BCH_CTRL_CLR_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_CLR_COMPLETE_IRQ_MASK)
3413#define BCH_CTRL_CLR_RSVD0_MASK (0x2U)
3414#define BCH_CTRL_CLR_RSVD0_SHIFT (1U)
3415#define BCH_CTRL_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD0_SHIFT)) & BCH_CTRL_CLR_RSVD0_MASK)
3416#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_MASK (0x4U)
3417#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_SHIFT (2U)
3418#define BCH_CTRL_CLR_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_CLR_DEBUG_STALL_IRQ_MASK)
3419#define BCH_CTRL_CLR_BM_ERROR_IRQ_MASK (0x8U)
3420#define BCH_CTRL_CLR_BM_ERROR_IRQ_SHIFT (3U)
3421#define BCH_CTRL_CLR_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_CLR_BM_ERROR_IRQ_MASK)
3422#define BCH_CTRL_CLR_RSVD1_MASK (0xF0U)
3423#define BCH_CTRL_CLR_RSVD1_SHIFT (4U)
3424#define BCH_CTRL_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD1_SHIFT)) & BCH_CTRL_CLR_RSVD1_MASK)
3425#define BCH_CTRL_CLR_COMPLETE_IRQ_EN_MASK (0x100U)
3426#define BCH_CTRL_CLR_COMPLETE_IRQ_EN_SHIFT (8U)
3427#define BCH_CTRL_CLR_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_CLR_COMPLETE_IRQ_EN_MASK)
3428#define BCH_CTRL_CLR_RSVD2_MASK (0x200U)
3429#define BCH_CTRL_CLR_RSVD2_SHIFT (9U)
3430#define BCH_CTRL_CLR_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD2_SHIFT)) & BCH_CTRL_CLR_RSVD2_MASK)
3431#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_MASK (0x400U)
3432#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_SHIFT (10U)
3433#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_MASK)
3434#define BCH_CTRL_CLR_RSVD3_MASK (0xF800U)
3435#define BCH_CTRL_CLR_RSVD3_SHIFT (11U)
3436#define BCH_CTRL_CLR_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD3_SHIFT)) & BCH_CTRL_CLR_RSVD3_MASK)
3437#define BCH_CTRL_CLR_M2M_ENABLE_MASK (0x10000U)
3438#define BCH_CTRL_CLR_M2M_ENABLE_SHIFT (16U)
3439#define BCH_CTRL_CLR_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENABLE_SHIFT)) & BCH_CTRL_CLR_M2M_ENABLE_MASK)
3440#define BCH_CTRL_CLR_M2M_ENCODE_MASK (0x20000U)
3441#define BCH_CTRL_CLR_M2M_ENCODE_SHIFT (17U)
3442#define BCH_CTRL_CLR_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENCODE_SHIFT)) & BCH_CTRL_CLR_M2M_ENCODE_MASK)
3443#define BCH_CTRL_CLR_M2M_LAYOUT_MASK (0xC0000U)
3444#define BCH_CTRL_CLR_M2M_LAYOUT_SHIFT (18U)
3445#define BCH_CTRL_CLR_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_LAYOUT_SHIFT)) & BCH_CTRL_CLR_M2M_LAYOUT_MASK)
3446#define BCH_CTRL_CLR_RSVD4_MASK (0x300000U)
3447#define BCH_CTRL_CLR_RSVD4_SHIFT (20U)
3448#define BCH_CTRL_CLR_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD4_SHIFT)) & BCH_CTRL_CLR_RSVD4_MASK)
3449#define BCH_CTRL_CLR_DEBUGSYNDROME_MASK (0x400000U)
3450#define BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT (22U)
3451#define BCH_CTRL_CLR_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_CLR_DEBUGSYNDROME_MASK)
3452#define BCH_CTRL_CLR_RSVD5_MASK (0x3F800000U)
3453#define BCH_CTRL_CLR_RSVD5_SHIFT (23U)
3454#define BCH_CTRL_CLR_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD5_SHIFT)) & BCH_CTRL_CLR_RSVD5_MASK)
3455#define BCH_CTRL_CLR_CLKGATE_MASK (0x40000000U)
3456#define BCH_CTRL_CLR_CLKGATE_SHIFT (30U)
3457/*! CLKGATE
3458 * 0b0..Allow BCH to operate normally.
3459 * 0b1..Do not clock BCH gates in order to minimize power consumption.
3460 */
3461#define BCH_CTRL_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_CLKGATE_SHIFT)) & BCH_CTRL_CLR_CLKGATE_MASK)
3462#define BCH_CTRL_CLR_SFTRST_MASK (0x80000000U)
3463#define BCH_CTRL_CLR_SFTRST_SHIFT (31U)
3464/*! SFTRST
3465 * 0b0..Allow BCH to operate normally.
3466 * 0b1..Hold BCH in reset.
3467 */
3468#define BCH_CTRL_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_SFTRST_SHIFT)) & BCH_CTRL_CLR_SFTRST_MASK)
3469/*! @} */
3470
3471/*! @name CTRL_TOG - Hardware BCH ECC Accelerator Control Register */
3472/*! @{ */
3473#define BCH_CTRL_TOG_COMPLETE_IRQ_MASK (0x1U)
3474#define BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT (0U)
3475#define BCH_CTRL_TOG_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_TOG_COMPLETE_IRQ_MASK)
3476#define BCH_CTRL_TOG_RSVD0_MASK (0x2U)
3477#define BCH_CTRL_TOG_RSVD0_SHIFT (1U)
3478#define BCH_CTRL_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD0_SHIFT)) & BCH_CTRL_TOG_RSVD0_MASK)
3479#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_MASK (0x4U)
3480#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_SHIFT (2U)
3481#define BCH_CTRL_TOG_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_TOG_DEBUG_STALL_IRQ_MASK)
3482#define BCH_CTRL_TOG_BM_ERROR_IRQ_MASK (0x8U)
3483#define BCH_CTRL_TOG_BM_ERROR_IRQ_SHIFT (3U)
3484#define BCH_CTRL_TOG_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_TOG_BM_ERROR_IRQ_MASK)
3485#define BCH_CTRL_TOG_RSVD1_MASK (0xF0U)
3486#define BCH_CTRL_TOG_RSVD1_SHIFT (4U)
3487#define BCH_CTRL_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD1_SHIFT)) & BCH_CTRL_TOG_RSVD1_MASK)
3488#define BCH_CTRL_TOG_COMPLETE_IRQ_EN_MASK (0x100U)
3489#define BCH_CTRL_TOG_COMPLETE_IRQ_EN_SHIFT (8U)
3490#define BCH_CTRL_TOG_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_TOG_COMPLETE_IRQ_EN_MASK)
3491#define BCH_CTRL_TOG_RSVD2_MASK (0x200U)
3492#define BCH_CTRL_TOG_RSVD2_SHIFT (9U)
3493#define BCH_CTRL_TOG_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD2_SHIFT)) & BCH_CTRL_TOG_RSVD2_MASK)
3494#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_MASK (0x400U)
3495#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_SHIFT (10U)
3496#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_MASK)
3497#define BCH_CTRL_TOG_RSVD3_MASK (0xF800U)
3498#define BCH_CTRL_TOG_RSVD3_SHIFT (11U)
3499#define BCH_CTRL_TOG_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD3_SHIFT)) & BCH_CTRL_TOG_RSVD3_MASK)
3500#define BCH_CTRL_TOG_M2M_ENABLE_MASK (0x10000U)
3501#define BCH_CTRL_TOG_M2M_ENABLE_SHIFT (16U)
3502#define BCH_CTRL_TOG_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENABLE_SHIFT)) & BCH_CTRL_TOG_M2M_ENABLE_MASK)
3503#define BCH_CTRL_TOG_M2M_ENCODE_MASK (0x20000U)
3504#define BCH_CTRL_TOG_M2M_ENCODE_SHIFT (17U)
3505#define BCH_CTRL_TOG_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENCODE_SHIFT)) & BCH_CTRL_TOG_M2M_ENCODE_MASK)
3506#define BCH_CTRL_TOG_M2M_LAYOUT_MASK (0xC0000U)
3507#define BCH_CTRL_TOG_M2M_LAYOUT_SHIFT (18U)
3508#define BCH_CTRL_TOG_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_LAYOUT_SHIFT)) & BCH_CTRL_TOG_M2M_LAYOUT_MASK)
3509#define BCH_CTRL_TOG_RSVD4_MASK (0x300000U)
3510#define BCH_CTRL_TOG_RSVD4_SHIFT (20U)
3511#define BCH_CTRL_TOG_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD4_SHIFT)) & BCH_CTRL_TOG_RSVD4_MASK)
3512#define BCH_CTRL_TOG_DEBUGSYNDROME_MASK (0x400000U)
3513#define BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT (22U)
3514#define BCH_CTRL_TOG_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_TOG_DEBUGSYNDROME_MASK)
3515#define BCH_CTRL_TOG_RSVD5_MASK (0x3F800000U)
3516#define BCH_CTRL_TOG_RSVD5_SHIFT (23U)
3517#define BCH_CTRL_TOG_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD5_SHIFT)) & BCH_CTRL_TOG_RSVD5_MASK)
3518#define BCH_CTRL_TOG_CLKGATE_MASK (0x40000000U)
3519#define BCH_CTRL_TOG_CLKGATE_SHIFT (30U)
3520/*! CLKGATE
3521 * 0b0..Allow BCH to operate normally.
3522 * 0b1..Do not clock BCH gates in order to minimize power consumption.
3523 */
3524#define BCH_CTRL_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_CLKGATE_SHIFT)) & BCH_CTRL_TOG_CLKGATE_MASK)
3525#define BCH_CTRL_TOG_SFTRST_MASK (0x80000000U)
3526#define BCH_CTRL_TOG_SFTRST_SHIFT (31U)
3527/*! SFTRST
3528 * 0b0..Allow BCH to operate normally.
3529 * 0b1..Hold BCH in reset.
3530 */
3531#define BCH_CTRL_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_SFTRST_SHIFT)) & BCH_CTRL_TOG_SFTRST_MASK)
3532/*! @} */
3533
3534/*! @name STATUS0 - Hardware ECC Accelerator Status Register 0 */
3535/*! @{ */
3536#define BCH_STATUS0_RSVD0_MASK (0x3U)
3537#define BCH_STATUS0_RSVD0_SHIFT (0U)
3538#define BCH_STATUS0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD0_SHIFT)) & BCH_STATUS0_RSVD0_MASK)
3539#define BCH_STATUS0_UNCORRECTABLE_MASK (0x4U)
3540#define BCH_STATUS0_UNCORRECTABLE_SHIFT (2U)
3541#define BCH_STATUS0_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_UNCORRECTABLE_MASK)
3542#define BCH_STATUS0_CORRECTED_MASK (0x8U)
3543#define BCH_STATUS0_CORRECTED_SHIFT (3U)
3544#define BCH_STATUS0_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CORRECTED_SHIFT)) & BCH_STATUS0_CORRECTED_MASK)
3545#define BCH_STATUS0_ALLONES_MASK (0x10U)
3546#define BCH_STATUS0_ALLONES_SHIFT (4U)
3547#define BCH_STATUS0_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_ALLONES_SHIFT)) & BCH_STATUS0_ALLONES_MASK)
3548#define BCH_STATUS0_RSVD1_MASK (0xE0U)
3549#define BCH_STATUS0_RSVD1_SHIFT (5U)
3550#define BCH_STATUS0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD1_SHIFT)) & BCH_STATUS0_RSVD1_MASK)
3551#define BCH_STATUS0_STATUS_BLK0_MASK (0xFF00U)
3552#define BCH_STATUS0_STATUS_BLK0_SHIFT (8U)
3553/*! STATUS_BLK0
3554 * 0b00000000..No errors found on block.
3555 * 0b00000001..One error found on block.
3556 * 0b00000010..One errors found on block.
3557 * 0b00000011..One errors found on block.
3558 * 0b00000100..One errors found on block.
3559 * 0b11111110..Block exhibited uncorrectable errors.
3560 * 0b11111111..Page is erased.
3561 */
3562#define BCH_STATUS0_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_STATUS_BLK0_SHIFT)) & BCH_STATUS0_STATUS_BLK0_MASK)
3563#define BCH_STATUS0_COMPLETED_CE_MASK (0xF0000U)
3564#define BCH_STATUS0_COMPLETED_CE_SHIFT (16U)
3565#define BCH_STATUS0_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_COMPLETED_CE_SHIFT)) & BCH_STATUS0_COMPLETED_CE_MASK)
3566#define BCH_STATUS0_HANDLE_MASK (0xFFF00000U)
3567#define BCH_STATUS0_HANDLE_SHIFT (20U)
3568#define BCH_STATUS0_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_HANDLE_SHIFT)) & BCH_STATUS0_HANDLE_MASK)
3569/*! @} */
3570
3571/*! @name MODE - Hardware ECC Accelerator Mode Register */
3572/*! @{ */
3573#define BCH_MODE_ERASE_THRESHOLD_MASK (0xFFU)
3574#define BCH_MODE_ERASE_THRESHOLD_SHIFT (0U)
3575#define BCH_MODE_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_ERASE_THRESHOLD_MASK)
3576#define BCH_MODE_RSVD_MASK (0xFFFFFF00U)
3577#define BCH_MODE_RSVD_SHIFT (8U)
3578#define BCH_MODE_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_RSVD_SHIFT)) & BCH_MODE_RSVD_MASK)
3579/*! @} */
3580
3581/*! @name ENCODEPTR - Hardware BCH ECC Loopback Encode Buffer Register */
3582/*! @{ */
3583#define BCH_ENCODEPTR_ADDR_MASK (0xFFFFFFFFU)
3584#define BCH_ENCODEPTR_ADDR_SHIFT (0U)
3585#define BCH_ENCODEPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_ADDR_SHIFT)) & BCH_ENCODEPTR_ADDR_MASK)
3586/*! @} */
3587
3588/*! @name DATAPTR - Hardware BCH ECC Loopback Data Buffer Register */
3589/*! @{ */
3590#define BCH_DATAPTR_ADDR_MASK (0xFFFFFFFFU)
3591#define BCH_DATAPTR_ADDR_SHIFT (0U)
3592#define BCH_DATAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_ADDR_SHIFT)) & BCH_DATAPTR_ADDR_MASK)
3593/*! @} */
3594
3595/*! @name METAPTR - Hardware BCH ECC Loopback Metadata Buffer Register */
3596/*! @{ */
3597#define BCH_METAPTR_ADDR_MASK (0xFFFFFFFFU)
3598#define BCH_METAPTR_ADDR_SHIFT (0U)
3599#define BCH_METAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_ADDR_SHIFT)) & BCH_METAPTR_ADDR_MASK)
3600/*! @} */
3601
3602/*! @name LAYOUTSELECT - Hardware ECC Accelerator Layout Select Register */
3603/*! @{ */
3604#define BCH_LAYOUTSELECT_CS0_SELECT_MASK (0x3U)
3605#define BCH_LAYOUTSELECT_CS0_SELECT_SHIFT (0U)
3606#define BCH_LAYOUTSELECT_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS0_SELECT_MASK)
3607#define BCH_LAYOUTSELECT_CS1_SELECT_MASK (0xCU)
3608#define BCH_LAYOUTSELECT_CS1_SELECT_SHIFT (2U)
3609#define BCH_LAYOUTSELECT_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS1_SELECT_MASK)
3610#define BCH_LAYOUTSELECT_CS2_SELECT_MASK (0x30U)
3611#define BCH_LAYOUTSELECT_CS2_SELECT_SHIFT (4U)
3612#define BCH_LAYOUTSELECT_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS2_SELECT_MASK)
3613#define BCH_LAYOUTSELECT_CS3_SELECT_MASK (0xC0U)
3614#define BCH_LAYOUTSELECT_CS3_SELECT_SHIFT (6U)
3615#define BCH_LAYOUTSELECT_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS3_SELECT_MASK)
3616#define BCH_LAYOUTSELECT_CS4_SELECT_MASK (0x300U)
3617#define BCH_LAYOUTSELECT_CS4_SELECT_SHIFT (8U)
3618#define BCH_LAYOUTSELECT_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS4_SELECT_MASK)
3619#define BCH_LAYOUTSELECT_CS5_SELECT_MASK (0xC00U)
3620#define BCH_LAYOUTSELECT_CS5_SELECT_SHIFT (10U)
3621#define BCH_LAYOUTSELECT_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS5_SELECT_MASK)
3622#define BCH_LAYOUTSELECT_CS6_SELECT_MASK (0x3000U)
3623#define BCH_LAYOUTSELECT_CS6_SELECT_SHIFT (12U)
3624#define BCH_LAYOUTSELECT_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS6_SELECT_MASK)
3625#define BCH_LAYOUTSELECT_CS7_SELECT_MASK (0xC000U)
3626#define BCH_LAYOUTSELECT_CS7_SELECT_SHIFT (14U)
3627#define BCH_LAYOUTSELECT_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS7_SELECT_MASK)
3628#define BCH_LAYOUTSELECT_CS8_SELECT_MASK (0x30000U)
3629#define BCH_LAYOUTSELECT_CS8_SELECT_SHIFT (16U)
3630#define BCH_LAYOUTSELECT_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS8_SELECT_MASK)
3631#define BCH_LAYOUTSELECT_CS9_SELECT_MASK (0xC0000U)
3632#define BCH_LAYOUTSELECT_CS9_SELECT_SHIFT (18U)
3633#define BCH_LAYOUTSELECT_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS9_SELECT_MASK)
3634#define BCH_LAYOUTSELECT_CS10_SELECT_MASK (0x300000U)
3635#define BCH_LAYOUTSELECT_CS10_SELECT_SHIFT (20U)
3636#define BCH_LAYOUTSELECT_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS10_SELECT_MASK)
3637#define BCH_LAYOUTSELECT_CS11_SELECT_MASK (0xC00000U)
3638#define BCH_LAYOUTSELECT_CS11_SELECT_SHIFT (22U)
3639#define BCH_LAYOUTSELECT_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS11_SELECT_MASK)
3640#define BCH_LAYOUTSELECT_CS12_SELECT_MASK (0x3000000U)
3641#define BCH_LAYOUTSELECT_CS12_SELECT_SHIFT (24U)
3642#define BCH_LAYOUTSELECT_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS12_SELECT_MASK)
3643#define BCH_LAYOUTSELECT_CS13_SELECT_MASK (0xC000000U)
3644#define BCH_LAYOUTSELECT_CS13_SELECT_SHIFT (26U)
3645#define BCH_LAYOUTSELECT_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS13_SELECT_MASK)
3646#define BCH_LAYOUTSELECT_CS14_SELECT_MASK (0x30000000U)
3647#define BCH_LAYOUTSELECT_CS14_SELECT_SHIFT (28U)
3648#define BCH_LAYOUTSELECT_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS14_SELECT_MASK)
3649#define BCH_LAYOUTSELECT_CS15_SELECT_MASK (0xC0000000U)
3650#define BCH_LAYOUTSELECT_CS15_SELECT_SHIFT (30U)
3651#define BCH_LAYOUTSELECT_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS15_SELECT_MASK)
3652/*! @} */
3653
3654/*! @name FLASH0LAYOUT0 - Hardware BCH ECC Flash 0 Layout 0 Register */
3655/*! @{ */
3656#define BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
3657#define BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT (0U)
3658#define BCH_FLASH0LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK)
3659#define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
3660#define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
3661#define BCH_FLASH0LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT0_GF13_0_GF14_1_MASK)
3662#define BCH_FLASH0LAYOUT0_ECC0_MASK (0xF800U)
3663#define BCH_FLASH0LAYOUT0_ECC0_SHIFT (11U)
3664/*! ECC0
3665 * 0b00000..No ECC to be performed
3666 * 0b00001..ECC 2 to be performed
3667 * 0b00010..ECC 4 to be performed
3668 * 0b11110..ECC 60 to be performed
3669 * 0b11111..ECC 62 to be performed
3670 */
3671#define BCH_FLASH0LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_ECC0_MASK)
3672#define BCH_FLASH0LAYOUT0_META_SIZE_MASK (0xFF0000U)
3673#define BCH_FLASH0LAYOUT0_META_SIZE_SHIFT (16U)
3674#define BCH_FLASH0LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_META_SIZE_MASK)
3675#define BCH_FLASH0LAYOUT0_NBLOCKS_MASK (0xFF000000U)
3676#define BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT (24U)
3677#define BCH_FLASH0LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_NBLOCKS_MASK)
3678/*! @} */
3679
3680/*! @name FLASH0LAYOUT1 - Hardware BCH ECC Flash 0 Layout 1 Register */
3681/*! @{ */
3682#define BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
3683#define BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT (0U)
3684#define BCH_FLASH0LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK)
3685#define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
3686#define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
3687#define BCH_FLASH0LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT1_GF13_0_GF14_1_MASK)
3688#define BCH_FLASH0LAYOUT1_ECCN_MASK (0xF800U)
3689#define BCH_FLASH0LAYOUT1_ECCN_SHIFT (11U)
3690/*! ECCN
3691 * 0b00000..No ECC to be performed
3692 * 0b00001..ECC 2 to be performed
3693 * 0b00010..ECC 4 to be performed
3694 * 0b11110..ECC 60 to be performed
3695 * 0b11111..ECC 62 to be performed
3696 */
3697#define BCH_FLASH0LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_ECCN_MASK)
3698#define BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
3699#define BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT (16U)
3700#define BCH_FLASH0LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK)
3701/*! @} */
3702
3703/*! @name FLASH1LAYOUT0 - Hardware BCH ECC Flash 1 Layout 0 Register */
3704/*! @{ */
3705#define BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
3706#define BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT (0U)
3707#define BCH_FLASH1LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK)
3708#define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
3709#define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
3710#define BCH_FLASH1LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT0_GF13_0_GF14_1_MASK)
3711#define BCH_FLASH1LAYOUT0_ECC0_MASK (0xF800U)
3712#define BCH_FLASH1LAYOUT0_ECC0_SHIFT (11U)
3713/*! ECC0
3714 * 0b00000..No ECC to be performed
3715 * 0b00001..ECC 2 to be performed
3716 * 0b00010..ECC 4 to be performed
3717 * 0b11110..ECC 60 to be performed
3718 * 0b11111..ECC 62 to be performed
3719 */
3720#define BCH_FLASH1LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_ECC0_MASK)
3721#define BCH_FLASH1LAYOUT0_META_SIZE_MASK (0xFF0000U)
3722#define BCH_FLASH1LAYOUT0_META_SIZE_SHIFT (16U)
3723#define BCH_FLASH1LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_META_SIZE_MASK)
3724#define BCH_FLASH1LAYOUT0_NBLOCKS_MASK (0xFF000000U)
3725#define BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT (24U)
3726#define BCH_FLASH1LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_NBLOCKS_MASK)
3727/*! @} */
3728
3729/*! @name FLASH1LAYOUT1 - Hardware BCH ECC Flash 1 Layout 1 Register */
3730/*! @{ */
3731#define BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
3732#define BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT (0U)
3733#define BCH_FLASH1LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK)
3734#define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
3735#define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
3736#define BCH_FLASH1LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT1_GF13_0_GF14_1_MASK)
3737#define BCH_FLASH1LAYOUT1_ECCN_MASK (0xF800U)
3738#define BCH_FLASH1LAYOUT1_ECCN_SHIFT (11U)
3739/*! ECCN
3740 * 0b00000..No ECC to be performed
3741 * 0b00001..ECC 2 to be performed
3742 * 0b00010..ECC 4 to be performed
3743 * 0b11110..ECC 60 to be performed
3744 * 0b11111..ECC 62 to be performed
3745 */
3746#define BCH_FLASH1LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_ECCN_MASK)
3747#define BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
3748#define BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT (16U)
3749#define BCH_FLASH1LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK)
3750/*! @} */
3751
3752/*! @name FLASH2LAYOUT0 - Hardware BCH ECC Flash 2 Layout 0 Register */
3753/*! @{ */
3754#define BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
3755#define BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT (0U)
3756#define BCH_FLASH2LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK)
3757#define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
3758#define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
3759#define BCH_FLASH2LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT0_GF13_0_GF14_1_MASK)
3760#define BCH_FLASH2LAYOUT0_ECC0_MASK (0xF800U)
3761#define BCH_FLASH2LAYOUT0_ECC0_SHIFT (11U)
3762/*! ECC0
3763 * 0b00000..No ECC to be performed
3764 * 0b00001..ECC 2 to be performed
3765 * 0b00010..ECC 4 to be performed
3766 * 0b11110..ECC 60 to be performed
3767 * 0b11111..ECC 62 to be performed
3768 */
3769#define BCH_FLASH2LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_ECC0_MASK)
3770#define BCH_FLASH2LAYOUT0_META_SIZE_MASK (0xFF0000U)
3771#define BCH_FLASH2LAYOUT0_META_SIZE_SHIFT (16U)
3772#define BCH_FLASH2LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_META_SIZE_MASK)
3773#define BCH_FLASH2LAYOUT0_NBLOCKS_MASK (0xFF000000U)
3774#define BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT (24U)
3775#define BCH_FLASH2LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_NBLOCKS_MASK)
3776/*! @} */
3777
3778/*! @name FLASH2LAYOUT1 - Hardware BCH ECC Flash 2 Layout 1 Register */
3779/*! @{ */
3780#define BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
3781#define BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT (0U)
3782#define BCH_FLASH2LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK)
3783#define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
3784#define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
3785#define BCH_FLASH2LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT1_GF13_0_GF14_1_MASK)
3786#define BCH_FLASH2LAYOUT1_ECCN_MASK (0xF800U)
3787#define BCH_FLASH2LAYOUT1_ECCN_SHIFT (11U)
3788/*! ECCN
3789 * 0b00000..No ECC to be performed
3790 * 0b00001..ECC 2 to be performed
3791 * 0b00010..ECC 4 to be performed
3792 * 0b11110..ECC 60 to be performed
3793 * 0b11111..ECC 62 to be performed
3794 */
3795#define BCH_FLASH2LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_ECCN_MASK)
3796#define BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
3797#define BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT (16U)
3798#define BCH_FLASH2LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK)
3799/*! @} */
3800
3801/*! @name FLASH3LAYOUT0 - Hardware BCH ECC Flash 3 Layout 0 Register */
3802/*! @{ */
3803#define BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
3804#define BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT (0U)
3805#define BCH_FLASH3LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK)
3806#define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
3807#define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
3808#define BCH_FLASH3LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT0_GF13_0_GF14_1_MASK)
3809#define BCH_FLASH3LAYOUT0_ECC0_MASK (0xF800U)
3810#define BCH_FLASH3LAYOUT0_ECC0_SHIFT (11U)
3811/*! ECC0
3812 * 0b00000..No ECC to be performed
3813 * 0b00001..ECC 2 to be performed
3814 * 0b00010..ECC 4 to be performed
3815 * 0b11110..ECC 60 to be performed
3816 * 0b11111..ECC 62 to be performed
3817 */
3818#define BCH_FLASH3LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_ECC0_MASK)
3819#define BCH_FLASH3LAYOUT0_META_SIZE_MASK (0xFF0000U)
3820#define BCH_FLASH3LAYOUT0_META_SIZE_SHIFT (16U)
3821#define BCH_FLASH3LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_META_SIZE_MASK)
3822#define BCH_FLASH3LAYOUT0_NBLOCKS_MASK (0xFF000000U)
3823#define BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT (24U)
3824#define BCH_FLASH3LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_NBLOCKS_MASK)
3825/*! @} */
3826
3827/*! @name FLASH3LAYOUT1 - Hardware BCH ECC Flash 3 Layout 1 Register */
3828/*! @{ */
3829#define BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
3830#define BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT (0U)
3831#define BCH_FLASH3LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK)
3832#define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
3833#define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
3834#define BCH_FLASH3LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT1_GF13_0_GF14_1_MASK)
3835#define BCH_FLASH3LAYOUT1_ECCN_MASK (0xF800U)
3836#define BCH_FLASH3LAYOUT1_ECCN_SHIFT (11U)
3837/*! ECCN
3838 * 0b00000..No ECC to be performed
3839 * 0b00001..ECC 2 to be performed
3840 * 0b00010..ECC 4 to be performed
3841 * 0b11110..ECC 60 to be performed
3842 * 0b11111..ECC 62 to be performed
3843 */
3844#define BCH_FLASH3LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_ECCN_MASK)
3845#define BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
3846#define BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT (16U)
3847#define BCH_FLASH3LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK)
3848/*! @} */
3849
3850/*! @name DEBUG0 - Hardware BCH ECC Debug Register0 */
3851/*! @{ */
3852#define BCH_DEBUG0_DEBUG_REG_SELECT_MASK (0x3FU)
3853#define BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT (0U)
3854#define BCH_DEBUG0_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_DEBUG_REG_SELECT_MASK)
3855#define BCH_DEBUG0_RSVD0_MASK (0xC0U)
3856#define BCH_DEBUG0_RSVD0_SHIFT (6U)
3857#define BCH_DEBUG0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD0_SHIFT)) & BCH_DEBUG0_RSVD0_MASK)
3858#define BCH_DEBUG0_BM_KES_TEST_BYPASS_MASK (0x100U)
3859#define BCH_DEBUG0_BM_KES_TEST_BYPASS_SHIFT (8U)
3860/*! BM_KES_TEST_BYPASS
3861 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
3862 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
3863 */
3864#define BCH_DEBUG0_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_BM_KES_TEST_BYPASS_MASK)
3865#define BCH_DEBUG0_KES_DEBUG_STALL_MASK (0x200U)
3866#define BCH_DEBUG0_KES_DEBUG_STALL_SHIFT (9U)
3867/*! KES_DEBUG_STALL
3868 * 0b0..KES FSM proceeds to next block supplied by bus master.
3869 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
3870 */
3871#define BCH_DEBUG0_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STALL_MASK)
3872#define BCH_DEBUG0_KES_DEBUG_STEP_MASK (0x400U)
3873#define BCH_DEBUG0_KES_DEBUG_STEP_SHIFT (10U)
3874#define BCH_DEBUG0_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STEP_MASK)
3875#define BCH_DEBUG0_KES_STANDALONE_MASK (0x800U)
3876#define BCH_DEBUG0_KES_STANDALONE_SHIFT (11U)
3877/*! KES_STANDALONE
3878 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
3879 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
3880 */
3881#define BCH_DEBUG0_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_KES_STANDALONE_MASK)
3882#define BCH_DEBUG0_KES_DEBUG_KICK_MASK (0x1000U)
3883#define BCH_DEBUG0_KES_DEBUG_KICK_SHIFT (12U)
3884#define BCH_DEBUG0_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_KES_DEBUG_KICK_MASK)
3885#define BCH_DEBUG0_KES_DEBUG_MODE4K_MASK (0x2000U)
3886#define BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT (13U)
3887/*! KES_DEBUG_MODE4K
3888 * 0b1..Mode is set for 4K NAND pages.
3889 * 0b1..Mode is set for 2K NAND pages.
3890 */
3891#define BCH_DEBUG0_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_KES_DEBUG_MODE4K_MASK)
3892#define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
3893#define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
3894/*! KES_DEBUG_PAYLOAD_FLAG
3895 * 0b1..Payload is set for 512 bytes data block.
3896 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
3897 */
3898#define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_MASK)
3899#define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
3900#define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
3901#define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_MASK)
3902#define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
3903#define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
3904/*! KES_DEBUG_SYNDROME_SYMBOL
3905 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
3906 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
3907 */
3908#define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_MASK)
3909#define BCH_DEBUG0_RSVD1_MASK (0xFE000000U)
3910#define BCH_DEBUG0_RSVD1_SHIFT (25U)
3911#define BCH_DEBUG0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD1_SHIFT)) & BCH_DEBUG0_RSVD1_MASK)
3912/*! @} */
3913
3914/*! @name DEBUG0_SET - Hardware BCH ECC Debug Register0 */
3915/*! @{ */
3916#define BCH_DEBUG0_SET_DEBUG_REG_SELECT_MASK (0x3FU)
3917#define BCH_DEBUG0_SET_DEBUG_REG_SELECT_SHIFT (0U)
3918#define BCH_DEBUG0_SET_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_SET_DEBUG_REG_SELECT_MASK)
3919#define BCH_DEBUG0_SET_RSVD0_MASK (0xC0U)
3920#define BCH_DEBUG0_SET_RSVD0_SHIFT (6U)
3921#define BCH_DEBUG0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD0_SHIFT)) & BCH_DEBUG0_SET_RSVD0_MASK)
3922#define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_MASK (0x100U)
3923#define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_SHIFT (8U)
3924/*! BM_KES_TEST_BYPASS
3925 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
3926 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
3927 */
3928#define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_MASK)
3929#define BCH_DEBUG0_SET_KES_DEBUG_STALL_MASK (0x200U)
3930#define BCH_DEBUG0_SET_KES_DEBUG_STALL_SHIFT (9U)
3931/*! KES_DEBUG_STALL
3932 * 0b0..KES FSM proceeds to next block supplied by bus master.
3933 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
3934 */
3935#define BCH_DEBUG0_SET_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_STALL_MASK)
3936#define BCH_DEBUG0_SET_KES_DEBUG_STEP_MASK (0x400U)
3937#define BCH_DEBUG0_SET_KES_DEBUG_STEP_SHIFT (10U)
3938#define BCH_DEBUG0_SET_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_STEP_MASK)
3939#define BCH_DEBUG0_SET_KES_STANDALONE_MASK (0x800U)
3940#define BCH_DEBUG0_SET_KES_STANDALONE_SHIFT (11U)
3941/*! KES_STANDALONE
3942 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
3943 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
3944 */
3945#define BCH_DEBUG0_SET_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_SET_KES_STANDALONE_MASK)
3946#define BCH_DEBUG0_SET_KES_DEBUG_KICK_MASK (0x1000U)
3947#define BCH_DEBUG0_SET_KES_DEBUG_KICK_SHIFT (12U)
3948#define BCH_DEBUG0_SET_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_KICK_MASK)
3949#define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_MASK (0x2000U)
3950#define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_SHIFT (13U)
3951/*! KES_DEBUG_MODE4K
3952 * 0b1..Mode is set for 4K NAND pages.
3953 * 0b1..Mode is set for 2K NAND pages.
3954 */
3955#define BCH_DEBUG0_SET_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_MODE4K_MASK)
3956#define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
3957#define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
3958/*! KES_DEBUG_PAYLOAD_FLAG
3959 * 0b1..Payload is set for 512 bytes data block.
3960 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
3961 */
3962#define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_MASK)
3963#define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
3964#define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
3965#define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_MASK)
3966#define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
3967#define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
3968/*! KES_DEBUG_SYNDROME_SYMBOL
3969 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
3970 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
3971 */
3972#define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_MASK)
3973#define BCH_DEBUG0_SET_RSVD1_MASK (0xFE000000U)
3974#define BCH_DEBUG0_SET_RSVD1_SHIFT (25U)
3975#define BCH_DEBUG0_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD1_SHIFT)) & BCH_DEBUG0_SET_RSVD1_MASK)
3976/*! @} */
3977
3978/*! @name DEBUG0_CLR - Hardware BCH ECC Debug Register0 */
3979/*! @{ */
3980#define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_MASK (0x3FU)
3981#define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_SHIFT (0U)
3982#define BCH_DEBUG0_CLR_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_CLR_DEBUG_REG_SELECT_MASK)
3983#define BCH_DEBUG0_CLR_RSVD0_MASK (0xC0U)
3984#define BCH_DEBUG0_CLR_RSVD0_SHIFT (6U)
3985#define BCH_DEBUG0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD0_SHIFT)) & BCH_DEBUG0_CLR_RSVD0_MASK)
3986#define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_MASK (0x100U)
3987#define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_SHIFT (8U)
3988/*! BM_KES_TEST_BYPASS
3989 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
3990 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
3991 */
3992#define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_MASK)
3993#define BCH_DEBUG0_CLR_KES_DEBUG_STALL_MASK (0x200U)
3994#define BCH_DEBUG0_CLR_KES_DEBUG_STALL_SHIFT (9U)
3995/*! KES_DEBUG_STALL
3996 * 0b0..KES FSM proceeds to next block supplied by bus master.
3997 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
3998 */
3999#define BCH_DEBUG0_CLR_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_STALL_MASK)
4000#define BCH_DEBUG0_CLR_KES_DEBUG_STEP_MASK (0x400U)
4001#define BCH_DEBUG0_CLR_KES_DEBUG_STEP_SHIFT (10U)
4002#define BCH_DEBUG0_CLR_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_STEP_MASK)
4003#define BCH_DEBUG0_CLR_KES_STANDALONE_MASK (0x800U)
4004#define BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT (11U)
4005/*! KES_STANDALONE
4006 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
4007 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
4008 */
4009#define BCH_DEBUG0_CLR_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_CLR_KES_STANDALONE_MASK)
4010#define BCH_DEBUG0_CLR_KES_DEBUG_KICK_MASK (0x1000U)
4011#define BCH_DEBUG0_CLR_KES_DEBUG_KICK_SHIFT (12U)
4012#define BCH_DEBUG0_CLR_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_KICK_MASK)
4013#define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_MASK (0x2000U)
4014#define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_SHIFT (13U)
4015/*! KES_DEBUG_MODE4K
4016 * 0b1..Mode is set for 4K NAND pages.
4017 * 0b1..Mode is set for 2K NAND pages.
4018 */
4019#define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_MASK)
4020#define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
4021#define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
4022/*! KES_DEBUG_PAYLOAD_FLAG
4023 * 0b1..Payload is set for 512 bytes data block.
4024 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
4025 */
4026#define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_MASK)
4027#define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
4028#define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
4029#define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_MASK)
4030#define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
4031#define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
4032/*! KES_DEBUG_SYNDROME_SYMBOL
4033 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
4034 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
4035 */
4036#define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_MASK)
4037#define BCH_DEBUG0_CLR_RSVD1_MASK (0xFE000000U)
4038#define BCH_DEBUG0_CLR_RSVD1_SHIFT (25U)
4039#define BCH_DEBUG0_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD1_SHIFT)) & BCH_DEBUG0_CLR_RSVD1_MASK)
4040/*! @} */
4041
4042/*! @name DEBUG0_TOG - Hardware BCH ECC Debug Register0 */
4043/*! @{ */
4044#define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_MASK (0x3FU)
4045#define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_SHIFT (0U)
4046#define BCH_DEBUG0_TOG_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_TOG_DEBUG_REG_SELECT_MASK)
4047#define BCH_DEBUG0_TOG_RSVD0_MASK (0xC0U)
4048#define BCH_DEBUG0_TOG_RSVD0_SHIFT (6U)
4049#define BCH_DEBUG0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD0_SHIFT)) & BCH_DEBUG0_TOG_RSVD0_MASK)
4050#define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_MASK (0x100U)
4051#define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_SHIFT (8U)
4052/*! BM_KES_TEST_BYPASS
4053 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
4054 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
4055 */
4056#define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_MASK)
4057#define BCH_DEBUG0_TOG_KES_DEBUG_STALL_MASK (0x200U)
4058#define BCH_DEBUG0_TOG_KES_DEBUG_STALL_SHIFT (9U)
4059/*! KES_DEBUG_STALL
4060 * 0b0..KES FSM proceeds to next block supplied by bus master.
4061 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
4062 */
4063#define BCH_DEBUG0_TOG_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_STALL_MASK)
4064#define BCH_DEBUG0_TOG_KES_DEBUG_STEP_MASK (0x400U)
4065#define BCH_DEBUG0_TOG_KES_DEBUG_STEP_SHIFT (10U)
4066#define BCH_DEBUG0_TOG_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_STEP_MASK)
4067#define BCH_DEBUG0_TOG_KES_STANDALONE_MASK (0x800U)
4068#define BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT (11U)
4069/*! KES_STANDALONE
4070 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
4071 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
4072 */
4073#define BCH_DEBUG0_TOG_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_TOG_KES_STANDALONE_MASK)
4074#define BCH_DEBUG0_TOG_KES_DEBUG_KICK_MASK (0x1000U)
4075#define BCH_DEBUG0_TOG_KES_DEBUG_KICK_SHIFT (12U)
4076#define BCH_DEBUG0_TOG_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_KICK_MASK)
4077#define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_MASK (0x2000U)
4078#define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_SHIFT (13U)
4079/*! KES_DEBUG_MODE4K
4080 * 0b1..Mode is set for 4K NAND pages.
4081 * 0b1..Mode is set for 2K NAND pages.
4082 */
4083#define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_MASK)
4084#define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
4085#define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
4086/*! KES_DEBUG_PAYLOAD_FLAG
4087 * 0b1..Payload is set for 512 bytes data block.
4088 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
4089 */
4090#define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_MASK)
4091#define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
4092#define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
4093#define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_MASK)
4094#define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
4095#define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
4096/*! KES_DEBUG_SYNDROME_SYMBOL
4097 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
4098 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
4099 */
4100#define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_MASK)
4101#define BCH_DEBUG0_TOG_RSVD1_MASK (0xFE000000U)
4102#define BCH_DEBUG0_TOG_RSVD1_SHIFT (25U)
4103#define BCH_DEBUG0_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD1_SHIFT)) & BCH_DEBUG0_TOG_RSVD1_MASK)
4104/*! @} */
4105
4106/*! @name DBGKESREAD - KES Debug Read Register */
4107/*! @{ */
4108#define BCH_DBGKESREAD_VALUES_MASK (0xFFFFFFFFU)
4109#define BCH_DBGKESREAD_VALUES_SHIFT (0U)
4110#define BCH_DBGKESREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_VALUES_SHIFT)) & BCH_DBGKESREAD_VALUES_MASK)
4111/*! @} */
4112
4113/*! @name DBGCSFEREAD - Chien Search Debug Read Register */
4114/*! @{ */
4115#define BCH_DBGCSFEREAD_VALUES_MASK (0xFFFFFFFFU)
4116#define BCH_DBGCSFEREAD_VALUES_SHIFT (0U)
4117#define BCH_DBGCSFEREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_VALUES_SHIFT)) & BCH_DBGCSFEREAD_VALUES_MASK)
4118/*! @} */
4119
4120/*! @name DBGSYNDGENREAD - Syndrome Generator Debug Read Register */
4121/*! @{ */
4122#define BCH_DBGSYNDGENREAD_VALUES_MASK (0xFFFFFFFFU)
4123#define BCH_DBGSYNDGENREAD_VALUES_SHIFT (0U)
4124#define BCH_DBGSYNDGENREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_VALUES_MASK)
4125/*! @} */
4126
4127/*! @name DBGAHBMREAD - Bus Master and ECC Controller Debug Read Register */
4128/*! @{ */
4129#define BCH_DBGAHBMREAD_VALUES_MASK (0xFFFFFFFFU)
4130#define BCH_DBGAHBMREAD_VALUES_SHIFT (0U)
4131#define BCH_DBGAHBMREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_VALUES_SHIFT)) & BCH_DBGAHBMREAD_VALUES_MASK)
4132/*! @} */
4133
4134/*! @name BLOCKNAME - Block Name Register */
4135/*! @{ */
4136#define BCH_BLOCKNAME_NAME_MASK (0xFFFFFFFFU)
4137#define BCH_BLOCKNAME_NAME_SHIFT (0U)
4138#define BCH_BLOCKNAME_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_NAME_SHIFT)) & BCH_BLOCKNAME_NAME_MASK)
4139/*! @} */
4140
4141/*! @name VERSION - BCH Version Register */
4142/*! @{ */
4143#define BCH_VERSION_STEP_MASK (0xFFFFU)
4144#define BCH_VERSION_STEP_SHIFT (0U)
4145#define BCH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_STEP_SHIFT)) & BCH_VERSION_STEP_MASK)
4146#define BCH_VERSION_MINOR_MASK (0xFF0000U)
4147#define BCH_VERSION_MINOR_SHIFT (16U)
4148#define BCH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MINOR_SHIFT)) & BCH_VERSION_MINOR_MASK)
4149#define BCH_VERSION_MAJOR_MASK (0xFF000000U)
4150#define BCH_VERSION_MAJOR_SHIFT (24U)
4151#define BCH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MAJOR_SHIFT)) & BCH_VERSION_MAJOR_MASK)
4152/*! @} */
4153
4154/*! @name DEBUG1 - Hardware BCH ECC Debug Register 1 */
4155/*! @{ */
4156#define BCH_DEBUG1_ERASED_ZERO_COUNT_MASK (0x1FFU)
4157#define BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT (0U)
4158#define BCH_DEBUG1_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_ERASED_ZERO_COUNT_MASK)
4159#define BCH_DEBUG1_RSVD_MASK (0x7FFFFE00U)
4160#define BCH_DEBUG1_RSVD_SHIFT (9U)
4161#define BCH_DEBUG1_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_RSVD_SHIFT)) & BCH_DEBUG1_RSVD_MASK)
4162#define BCH_DEBUG1_DEBUG1_PREERASECHK_MASK (0x80000000U)
4163#define BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT (31U)
4164/*! DEBUG1_PREERASECHK
4165 * 0b0..Turn off pre-erase check
4166 * 0b1..Turn on pre-erase check
4167 */
4168#define BCH_DEBUG1_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_DEBUG1_PREERASECHK_MASK)
4169/*! @} */
4170
4171
4172/*!
4173 * @}
4174 */ /* end of group BCH_Register_Masks */
4175
4176
4177/* BCH - Peripheral instance base addresses */
4178/** Peripheral BCH base address */
4179#define BCH_BASE (0x33004000u)
4180/** Peripheral BCH base pointer */
4181#define BCH ((BCH_Type *)BCH_BASE)
4182/** Array initializer of BCH peripheral base addresses */
4183#define BCH_BASE_ADDRS { BCH_BASE }
4184/** Array initializer of BCH peripheral base pointers */
4185#define BCH_BASE_PTRS { BCH }
4186/** Interrupt vectors for the BCH peripheral type */
4187#define BCH_IRQS { BCH_IRQn }
4188
4189/*!
4190 * @}
4191 */ /* end of group BCH_Peripheral_Access_Layer */
4192
4193
4194/* ----------------------------------------------------------------------------
4195 -- CCM Peripheral Access Layer
4196 ---------------------------------------------------------------------------- */
4197
4198/*!
4199 * @addtogroup CCM_Peripheral_Access_Layer CCM Peripheral Access Layer
4200 * @{
4201 */
4202
4203/** CCM - Register Layout Typedef */
4204typedef struct {
4205 __IO uint32_t GPR0; /**< General Purpose Register, offset: 0x0 */
4206 __IO uint32_t GPR0_SET; /**< General Purpose Register, offset: 0x4 */
4207 __IO uint32_t GPR0_CLR; /**< General Purpose Register, offset: 0x8 */
4208 __IO uint32_t GPR0_TOG; /**< General Purpose Register, offset: 0xC */
4209 uint8_t RESERVED_0[2032];
4210 struct { /* offset: 0x800, array step: 0x10 */
4211 __IO uint32_t PLL_CTRL; /**< CCM PLL Control Register, array offset: 0x800, array step: 0x10 */
4212 __IO uint32_t PLL_CTRL_SET; /**< CCM PLL Control Register, array offset: 0x804, array step: 0x10 */
4213 __IO uint32_t PLL_CTRL_CLR; /**< CCM PLL Control Register, array offset: 0x808, array step: 0x10 */
4214 __IO uint32_t PLL_CTRL_TOG; /**< CCM PLL Control Register, array offset: 0x80C, array step: 0x10 */
4215 } PLL_CTRL[39];
4216 uint8_t RESERVED_1[13712];
4217 struct { /* offset: 0x4000, array step: 0x10 */
4218 __IO uint32_t CCGR; /**< CCM Clock Gating Register, array offset: 0x4000, array step: 0x10 */
4219 __IO uint32_t CCGR_SET; /**< CCM Clock Gating Register, array offset: 0x4004, array step: 0x10 */
4220 __IO uint32_t CCGR_CLR; /**< CCM Clock Gating Register, array offset: 0x4008, array step: 0x10 */
4221 __IO uint32_t CCGR_TOG; /**< CCM Clock Gating Register, array offset: 0x400C, array step: 0x10 */
4222 } CCGR[191];
4223 uint8_t RESERVED_2[13328];
4224 struct { /* offset: 0x8000, array step: 0x80 */
4225 __IO uint32_t TARGET_ROOT; /**< Target Register, array offset: 0x8000, array step: 0x80 */
4226 __IO uint32_t TARGET_ROOT_SET; /**< Target Register, array offset: 0x8004, array step: 0x80 */
4227 __IO uint32_t TARGET_ROOT_CLR; /**< Target Register, array offset: 0x8008, array step: 0x80 */
4228 __IO uint32_t TARGET_ROOT_TOG; /**< Target Register, array offset: 0x800C, array step: 0x80 */
4229 __IO uint32_t MISC; /**< Miscellaneous Register, array offset: 0x8010, array step: 0x80 */
4230 __IO uint32_t MISC_ROOT_SET; /**< Miscellaneous Register, array offset: 0x8014, array step: 0x80 */
4231 __IO uint32_t MISC_ROOT_CLR; /**< Miscellaneous Register, array offset: 0x8018, array step: 0x80 */
4232 __IO uint32_t MISC_ROOT_TOG; /**< Miscellaneous Register, array offset: 0x801C, array step: 0x80 */
4233 __IO uint32_t POST; /**< Post Divider Register, array offset: 0x8020, array step: 0x80 */
4234 __IO uint32_t POST_ROOT_SET; /**< Post Divider Register, array offset: 0x8024, array step: 0x80 */
4235 __IO uint32_t POST_ROOT_CLR; /**< Post Divider Register, array offset: 0x8028, array step: 0x80 */
4236 __IO uint32_t POST_ROOT_TOG; /**< Post Divider Register, array offset: 0x802C, array step: 0x80 */
4237 __IO uint32_t PRE; /**< Pre Divider Register, array offset: 0x8030, array step: 0x80 */
4238 __IO uint32_t PRE_ROOT_SET; /**< Pre Divider Register, array offset: 0x8034, array step: 0x80 */
4239 __IO uint32_t PRE_ROOT_CLR; /**< Pre Divider Register, array offset: 0x8038, array step: 0x80 */
4240 __IO uint32_t PRE_ROOT_TOG; /**< Pre Divider Register, array offset: 0x803C, array step: 0x80 */
4241 uint8_t RESERVED_0[48];
4242 __IO uint32_t ACCESS_CTRL; /**< Access Control Register, array offset: 0x8070, array step: 0x80 */
4243 __IO uint32_t ACCESS_CTRL_ROOT_SET; /**< Access Control Register, array offset: 0x8074, array step: 0x80 */
4244 __IO uint32_t ACCESS_CTRL_ROOT_CLR; /**< Access Control Register, array offset: 0x8078, array step: 0x80 */
4245 __IO uint32_t ACCESS_CTRL_ROOT_TOG; /**< Access Control Register, array offset: 0x807C, array step: 0x80 */
4246 } ROOT[142];
4247} CCM_Type;
4248
4249/* ----------------------------------------------------------------------------
4250 -- CCM Register Masks
4251 ---------------------------------------------------------------------------- */
4252
4253/*!
4254 * @addtogroup CCM_Register_Masks CCM Register Masks
4255 * @{
4256 */
4257
4258/*! @name GPR0 - General Purpose Register */
4259/*! @{ */
4260#define CCM_GPR0_GP0_MASK (0xFFFFFFFFU)
4261#define CCM_GPR0_GP0_SHIFT (0U)
4262#define CCM_GPR0_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_GP0_SHIFT)) & CCM_GPR0_GP0_MASK)
4263/*! @} */
4264
4265/*! @name GPR0_SET - General Purpose Register */
4266/*! @{ */
4267#define CCM_GPR0_SET_GP0_MASK (0xFFFFFFFFU)
4268#define CCM_GPR0_SET_GP0_SHIFT (0U)
4269#define CCM_GPR0_SET_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_SET_GP0_SHIFT)) & CCM_GPR0_SET_GP0_MASK)
4270/*! @} */
4271
4272/*! @name GPR0_CLR - General Purpose Register */
4273/*! @{ */
4274#define CCM_GPR0_CLR_GP0_MASK (0xFFFFFFFFU)
4275#define CCM_GPR0_CLR_GP0_SHIFT (0U)
4276#define CCM_GPR0_CLR_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_CLR_GP0_SHIFT)) & CCM_GPR0_CLR_GP0_MASK)
4277/*! @} */
4278
4279/*! @name GPR0_TOG - General Purpose Register */
4280/*! @{ */
4281#define CCM_GPR0_TOG_GP0_MASK (0xFFFFFFFFU)
4282#define CCM_GPR0_TOG_GP0_SHIFT (0U)
4283#define CCM_GPR0_TOG_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_TOG_GP0_SHIFT)) & CCM_GPR0_TOG_GP0_MASK)
4284/*! @} */
4285
4286/*! @name PLL_CTRL - CCM PLL Control Register */
4287/*! @{ */
4288#define CCM_PLL_CTRL_SETTING0_MASK (0x3U)
4289#define CCM_PLL_CTRL_SETTING0_SHIFT (0U)
4290/*! SETTING0
4291 * 0b00..Domain clocks not needed
4292 * 0b01..Domain clocks needed when in RUN
4293 * 0b10..Domain clocks needed when in RUN and WAIT
4294 * 0b11..Domain clocks needed all the time
4295 */
4296#define CCM_PLL_CTRL_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING0_SHIFT)) & CCM_PLL_CTRL_SETTING0_MASK)
4297#define CCM_PLL_CTRL_SETTING1_MASK (0x30U)
4298#define CCM_PLL_CTRL_SETTING1_SHIFT (4U)
4299/*! SETTING1
4300 * 0b00..Domain clocks not needed
4301 * 0b01..Domain clocks needed when in RUN
4302 * 0b10..Domain clocks needed when in RUN and WAIT
4303 * 0b11..Domain clocks needed all the time
4304 */
4305#define CCM_PLL_CTRL_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING1_SHIFT)) & CCM_PLL_CTRL_SETTING1_MASK)
4306#define CCM_PLL_CTRL_SETTING2_MASK (0x300U)
4307#define CCM_PLL_CTRL_SETTING2_SHIFT (8U)
4308/*! SETTING2
4309 * 0b00..Domain clocks not needed
4310 * 0b01..Domain clocks needed when in RUN
4311 * 0b10..Domain clocks needed when in RUN and WAIT
4312 * 0b11..Domain clocks needed all the time
4313 */
4314#define CCM_PLL_CTRL_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING2_SHIFT)) & CCM_PLL_CTRL_SETTING2_MASK)
4315#define CCM_PLL_CTRL_SETTING3_MASK (0x3000U)
4316#define CCM_PLL_CTRL_SETTING3_SHIFT (12U)
4317/*! SETTING3
4318 * 0b00..Domain clocks not needed
4319 * 0b01..Domain clocks needed when in RUN
4320 * 0b10..Domain clocks needed when in RUN and WAIT
4321 * 0b11..Domain clocks needed all the time
4322 */
4323#define CCM_PLL_CTRL_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING3_SHIFT)) & CCM_PLL_CTRL_SETTING3_MASK)
4324/*! @} */
4325
4326/* The count of CCM_PLL_CTRL */
4327#define CCM_PLL_CTRL_COUNT (39U)
4328
4329/*! @name PLL_CTRL_SET - CCM PLL Control Register */
4330/*! @{ */
4331#define CCM_PLL_CTRL_SET_SETTING0_MASK (0x3U)
4332#define CCM_PLL_CTRL_SET_SETTING0_SHIFT (0U)
4333/*! SETTING0
4334 * 0b00..Domain clocks not needed
4335 * 0b01..Domain clocks needed when in RUN
4336 * 0b10..Domain clocks needed when in RUN and WAIT
4337 * 0b11..Domain clocks needed all the time
4338 */
4339#define CCM_PLL_CTRL_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING0_SHIFT)) & CCM_PLL_CTRL_SET_SETTING0_MASK)
4340#define CCM_PLL_CTRL_SET_SETTING1_MASK (0x30U)
4341#define CCM_PLL_CTRL_SET_SETTING1_SHIFT (4U)
4342/*! SETTING1
4343 * 0b00..Domain clocks not needed
4344 * 0b01..Domain clocks needed when in RUN
4345 * 0b10..Domain clocks needed when in RUN and WAIT
4346 * 0b11..Domain clocks needed all the time
4347 */
4348#define CCM_PLL_CTRL_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING1_SHIFT)) & CCM_PLL_CTRL_SET_SETTING1_MASK)
4349#define CCM_PLL_CTRL_SET_SETTING2_MASK (0x300U)
4350#define CCM_PLL_CTRL_SET_SETTING2_SHIFT (8U)
4351/*! SETTING2
4352 * 0b00..Domain clocks not needed
4353 * 0b01..Domain clocks needed when in RUN
4354 * 0b10..Domain clocks needed when in RUN and WAIT
4355 * 0b11..Domain clocks needed all the time
4356 */
4357#define CCM_PLL_CTRL_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING2_SHIFT)) & CCM_PLL_CTRL_SET_SETTING2_MASK)
4358#define CCM_PLL_CTRL_SET_SETTING3_MASK (0x3000U)
4359#define CCM_PLL_CTRL_SET_SETTING3_SHIFT (12U)
4360/*! SETTING3
4361 * 0b00..Domain clocks not needed
4362 * 0b01..Domain clocks needed when in RUN
4363 * 0b10..Domain clocks needed when in RUN and WAIT
4364 * 0b11..Domain clocks needed all the time
4365 */
4366#define CCM_PLL_CTRL_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING3_SHIFT)) & CCM_PLL_CTRL_SET_SETTING3_MASK)
4367/*! @} */
4368
4369/* The count of CCM_PLL_CTRL_SET */
4370#define CCM_PLL_CTRL_SET_COUNT (39U)
4371
4372/*! @name PLL_CTRL_CLR - CCM PLL Control Register */
4373/*! @{ */
4374#define CCM_PLL_CTRL_CLR_SETTING0_MASK (0x3U)
4375#define CCM_PLL_CTRL_CLR_SETTING0_SHIFT (0U)
4376/*! SETTING0
4377 * 0b00..Domain clocks not needed
4378 * 0b01..Domain clocks needed when in RUN
4379 * 0b10..Domain clocks needed when in RUN and WAIT
4380 * 0b11..Domain clocks needed all the time
4381 */
4382#define CCM_PLL_CTRL_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING0_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING0_MASK)
4383#define CCM_PLL_CTRL_CLR_SETTING1_MASK (0x30U)
4384#define CCM_PLL_CTRL_CLR_SETTING1_SHIFT (4U)
4385/*! SETTING1
4386 * 0b00..Domain clocks not needed
4387 * 0b01..Domain clocks needed when in RUN
4388 * 0b10..Domain clocks needed when in RUN and WAIT
4389 * 0b11..Domain clocks needed all the time
4390 */
4391#define CCM_PLL_CTRL_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING1_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING1_MASK)
4392#define CCM_PLL_CTRL_CLR_SETTING2_MASK (0x300U)
4393#define CCM_PLL_CTRL_CLR_SETTING2_SHIFT (8U)
4394/*! SETTING2
4395 * 0b00..Domain clocks not needed
4396 * 0b01..Domain clocks needed when in RUN
4397 * 0b10..Domain clocks needed when in RUN and WAIT
4398 * 0b11..Domain clocks needed all the time
4399 */
4400#define CCM_PLL_CTRL_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING2_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING2_MASK)
4401#define CCM_PLL_CTRL_CLR_SETTING3_MASK (0x3000U)
4402#define CCM_PLL_CTRL_CLR_SETTING3_SHIFT (12U)
4403/*! SETTING3
4404 * 0b00..Domain clocks not needed
4405 * 0b01..Domain clocks needed when in RUN
4406 * 0b10..Domain clocks needed when in RUN and WAIT
4407 * 0b11..Domain clocks needed all the time
4408 */
4409#define CCM_PLL_CTRL_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING3_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING3_MASK)
4410/*! @} */
4411
4412/* The count of CCM_PLL_CTRL_CLR */
4413#define CCM_PLL_CTRL_CLR_COUNT (39U)
4414
4415/*! @name PLL_CTRL_TOG - CCM PLL Control Register */
4416/*! @{ */
4417#define CCM_PLL_CTRL_TOG_SETTING0_MASK (0x3U)
4418#define CCM_PLL_CTRL_TOG_SETTING0_SHIFT (0U)
4419/*! SETTING0
4420 * 0b00..Domain clocks not needed
4421 * 0b01..Domain clocks needed when in RUN
4422 * 0b10..Domain clocks needed when in RUN and WAIT
4423 * 0b11..Domain clocks needed all the time
4424 */
4425#define CCM_PLL_CTRL_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING0_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING0_MASK)
4426#define CCM_PLL_CTRL_TOG_SETTING1_MASK (0x30U)
4427#define CCM_PLL_CTRL_TOG_SETTING1_SHIFT (4U)
4428/*! SETTING1
4429 * 0b00..Domain clocks not needed
4430 * 0b01..Domain clocks needed when in RUN
4431 * 0b10..Domain clocks needed when in RUN and WAIT
4432 * 0b11..Domain clocks needed all the time
4433 */
4434#define CCM_PLL_CTRL_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING1_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING1_MASK)
4435#define CCM_PLL_CTRL_TOG_SETTING2_MASK (0x300U)
4436#define CCM_PLL_CTRL_TOG_SETTING2_SHIFT (8U)
4437/*! SETTING2
4438 * 0b00..Domain clocks not needed
4439 * 0b01..Domain clocks needed when in RUN
4440 * 0b10..Domain clocks needed when in RUN and WAIT
4441 * 0b11..Domain clocks needed all the time
4442 */
4443#define CCM_PLL_CTRL_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING2_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING2_MASK)
4444#define CCM_PLL_CTRL_TOG_SETTING3_MASK (0x3000U)
4445#define CCM_PLL_CTRL_TOG_SETTING3_SHIFT (12U)
4446/*! SETTING3
4447 * 0b00..Domain clocks not needed
4448 * 0b01..Domain clocks needed when in RUN
4449 * 0b10..Domain clocks needed when in RUN and WAIT
4450 * 0b11..Domain clocks needed all the time
4451 */
4452#define CCM_PLL_CTRL_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING3_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING3_MASK)
4453/*! @} */
4454
4455/* The count of CCM_PLL_CTRL_TOG */
4456#define CCM_PLL_CTRL_TOG_COUNT (39U)
4457
4458/*! @name CCGR - CCM Clock Gating Register */
4459/*! @{ */
4460#define CCM_CCGR_SETTING0_MASK (0x3U)
4461#define CCM_CCGR_SETTING0_SHIFT (0U)
4462/*! SETTING0
4463 * 0b00..Domain clocks not needed
4464 * 0b01..Domain clocks needed when in RUN
4465 * 0b10..Domain clocks needed when in RUN and WAIT
4466 * 0b11..Domain clocks needed all the time
4467 */
4468#define CCM_CCGR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING0_SHIFT)) & CCM_CCGR_SETTING0_MASK)
4469#define CCM_CCGR_SETTING1_MASK (0x30U)
4470#define CCM_CCGR_SETTING1_SHIFT (4U)
4471/*! SETTING1
4472 * 0b00..Domain clocks not needed
4473 * 0b01..Domain clocks needed when in RUN
4474 * 0b10..Domain clocks needed when in RUN and WAIT
4475 * 0b11..Domain clocks needed all the time
4476 */
4477#define CCM_CCGR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING1_SHIFT)) & CCM_CCGR_SETTING1_MASK)
4478#define CCM_CCGR_SETTING2_MASK (0x300U)
4479#define CCM_CCGR_SETTING2_SHIFT (8U)
4480/*! SETTING2
4481 * 0b00..Domain clocks not needed
4482 * 0b01..Domain clocks needed when in RUN
4483 * 0b10..Domain clocks needed when in RUN and WAIT
4484 * 0b11..Domain clocks needed all the time
4485 */
4486#define CCM_CCGR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING2_SHIFT)) & CCM_CCGR_SETTING2_MASK)
4487#define CCM_CCGR_SETTING3_MASK (0x3000U)
4488#define CCM_CCGR_SETTING3_SHIFT (12U)
4489/*! SETTING3
4490 * 0b00..Domain clocks not needed
4491 * 0b01..Domain clocks needed when in RUN
4492 * 0b10..Domain clocks needed when in RUN and WAIT
4493 * 0b11..Domain clocks needed all the time
4494 */
4495#define CCM_CCGR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING3_SHIFT)) & CCM_CCGR_SETTING3_MASK)
4496/*! @} */
4497
4498/* The count of CCM_CCGR */
4499#define CCM_CCGR_COUNT (191U)
4500
4501/*! @name CCGR_SET - CCM Clock Gating Register */
4502/*! @{ */
4503#define CCM_CCGR_SET_SETTING0_MASK (0x3U)
4504#define CCM_CCGR_SET_SETTING0_SHIFT (0U)
4505/*! SETTING0
4506 * 0b00..Domain clocks not needed
4507 * 0b01..Domain clocks needed when in RUN
4508 * 0b10..Domain clocks needed when in RUN and WAIT
4509 * 0b11..Domain clocks needed all the time
4510 */
4511#define CCM_CCGR_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING0_SHIFT)) & CCM_CCGR_SET_SETTING0_MASK)
4512#define CCM_CCGR_SET_SETTING1_MASK (0x30U)
4513#define CCM_CCGR_SET_SETTING1_SHIFT (4U)
4514/*! SETTING1
4515 * 0b00..Domain clocks not needed
4516 * 0b01..Domain clocks needed when in RUN
4517 * 0b10..Domain clocks needed when in RUN and WAIT
4518 * 0b11..Domain clocks needed all the time
4519 */
4520#define CCM_CCGR_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING1_SHIFT)) & CCM_CCGR_SET_SETTING1_MASK)
4521#define CCM_CCGR_SET_SETTING2_MASK (0x300U)
4522#define CCM_CCGR_SET_SETTING2_SHIFT (8U)
4523/*! SETTING2
4524 * 0b00..Domain clocks not needed
4525 * 0b01..Domain clocks needed when in RUN
4526 * 0b10..Domain clocks needed when in RUN and WAIT
4527 * 0b11..Domain clocks needed all the time
4528 */
4529#define CCM_CCGR_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING2_SHIFT)) & CCM_CCGR_SET_SETTING2_MASK)
4530#define CCM_CCGR_SET_SETTING3_MASK (0x3000U)
4531#define CCM_CCGR_SET_SETTING3_SHIFT (12U)
4532/*! SETTING3
4533 * 0b00..Domain clocks not needed
4534 * 0b01..Domain clocks needed when in RUN
4535 * 0b10..Domain clocks needed when in RUN and WAIT
4536 * 0b11..Domain clocks needed all the time
4537 */
4538#define CCM_CCGR_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING3_SHIFT)) & CCM_CCGR_SET_SETTING3_MASK)
4539/*! @} */
4540
4541/* The count of CCM_CCGR_SET */
4542#define CCM_CCGR_SET_COUNT (191U)
4543
4544/*! @name CCGR_CLR - CCM Clock Gating Register */
4545/*! @{ */
4546#define CCM_CCGR_CLR_SETTING0_MASK (0x3U)
4547#define CCM_CCGR_CLR_SETTING0_SHIFT (0U)
4548/*! SETTING0
4549 * 0b00..Domain clocks not needed
4550 * 0b01..Domain clocks needed when in RUN
4551 * 0b10..Domain clocks needed when in RUN and WAIT
4552 * 0b11..Domain clocks needed all the time
4553 */
4554#define CCM_CCGR_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING0_SHIFT)) & CCM_CCGR_CLR_SETTING0_MASK)
4555#define CCM_CCGR_CLR_SETTING1_MASK (0x30U)
4556#define CCM_CCGR_CLR_SETTING1_SHIFT (4U)
4557/*! SETTING1
4558 * 0b00..Domain clocks not needed
4559 * 0b01..Domain clocks needed when in RUN
4560 * 0b10..Domain clocks needed when in RUN and WAIT
4561 * 0b11..Domain clocks needed all the time
4562 */
4563#define CCM_CCGR_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING1_SHIFT)) & CCM_CCGR_CLR_SETTING1_MASK)
4564#define CCM_CCGR_CLR_SETTING2_MASK (0x300U)
4565#define CCM_CCGR_CLR_SETTING2_SHIFT (8U)
4566/*! SETTING2
4567 * 0b00..Domain clocks not needed
4568 * 0b01..Domain clocks needed when in RUN
4569 * 0b10..Domain clocks needed when in RUN and WAIT
4570 * 0b11..Domain clocks needed all the time
4571 */
4572#define CCM_CCGR_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING2_SHIFT)) & CCM_CCGR_CLR_SETTING2_MASK)
4573#define CCM_CCGR_CLR_SETTING3_MASK (0x3000U)
4574#define CCM_CCGR_CLR_SETTING3_SHIFT (12U)
4575/*! SETTING3
4576 * 0b00..Domain clocks not needed
4577 * 0b01..Domain clocks needed when in RUN
4578 * 0b10..Domain clocks needed when in RUN and WAIT
4579 * 0b11..Domain clocks needed all the time
4580 */
4581#define CCM_CCGR_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING3_SHIFT)) & CCM_CCGR_CLR_SETTING3_MASK)
4582/*! @} */
4583
4584/* The count of CCM_CCGR_CLR */
4585#define CCM_CCGR_CLR_COUNT (191U)
4586
4587/*! @name CCGR_TOG - CCM Clock Gating Register */
4588/*! @{ */
4589#define CCM_CCGR_TOG_SETTING0_MASK (0x3U)
4590#define CCM_CCGR_TOG_SETTING0_SHIFT (0U)
4591/*! SETTING0
4592 * 0b00..Domain clocks not needed
4593 * 0b01..Domain clocks needed when in RUN
4594 * 0b10..Domain clocks needed when in RUN and WAIT
4595 * 0b11..Domain clocks needed all the time
4596 */
4597#define CCM_CCGR_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING0_SHIFT)) & CCM_CCGR_TOG_SETTING0_MASK)
4598#define CCM_CCGR_TOG_SETTING1_MASK (0x30U)
4599#define CCM_CCGR_TOG_SETTING1_SHIFT (4U)
4600/*! SETTING1
4601 * 0b00..Domain clocks not needed
4602 * 0b01..Domain clocks needed when in RUN
4603 * 0b10..Domain clocks needed when in RUN and WAIT
4604 * 0b11..Domain clocks needed all the time
4605 */
4606#define CCM_CCGR_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING1_SHIFT)) & CCM_CCGR_TOG_SETTING1_MASK)
4607#define CCM_CCGR_TOG_SETTING2_MASK (0x300U)
4608#define CCM_CCGR_TOG_SETTING2_SHIFT (8U)
4609/*! SETTING2
4610 * 0b00..Domain clocks not needed
4611 * 0b01..Domain clocks needed when in RUN
4612 * 0b10..Domain clocks needed when in RUN and WAIT
4613 * 0b11..Domain clocks needed all the time
4614 */
4615#define CCM_CCGR_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING2_SHIFT)) & CCM_CCGR_TOG_SETTING2_MASK)
4616#define CCM_CCGR_TOG_SETTING3_MASK (0x3000U)
4617#define CCM_CCGR_TOG_SETTING3_SHIFT (12U)
4618/*! SETTING3
4619 * 0b00..Domain clocks not needed
4620 * 0b01..Domain clocks needed when in RUN
4621 * 0b10..Domain clocks needed when in RUN and WAIT
4622 * 0b11..Domain clocks needed all the time
4623 */
4624#define CCM_CCGR_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING3_SHIFT)) & CCM_CCGR_TOG_SETTING3_MASK)
4625/*! @} */
4626
4627/* The count of CCM_CCGR_TOG */
4628#define CCM_CCGR_TOG_COUNT (191U)
4629
4630/*! @name TARGET_ROOT - Target Register */
4631/*! @{ */
4632#define CCM_TARGET_ROOT_POST_PODF_MASK (0x3FU)
4633#define CCM_TARGET_ROOT_POST_PODF_SHIFT (0U)
4634/*! POST_PODF
4635 * 0b000000..Divide by 1
4636 * 0b000001..Divide by 2
4637 * 0b000010..Divide by 3
4638 * 0b000011..Divide by 4
4639 * 0b000100..Divide by 5
4640 * 0b000101..Divide by 6
4641 * 0b111111..Divide by 64
4642 */
4643#define CCM_TARGET_ROOT_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_POST_PODF_MASK)
4644#define CCM_TARGET_ROOT_PRE_PODF_MASK (0x70000U)
4645#define CCM_TARGET_ROOT_PRE_PODF_SHIFT (16U)
4646/*! PRE_PODF
4647 * 0b000..Divide by 1
4648 * 0b001..Divide by 2
4649 * 0b010..Divide by 3
4650 * 0b011..Divide by 4
4651 * 0b100..Divide by 5
4652 * 0b101..Divide by 6
4653 * 0b110..Divide by 7
4654 * 0b111..Divide by 8
4655 */
4656#define CCM_TARGET_ROOT_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_PRE_PODF_MASK)
4657#define CCM_TARGET_ROOT_MUX_MASK (0x7000000U)
4658#define CCM_TARGET_ROOT_MUX_SHIFT (24U)
4659#define CCM_TARGET_ROOT_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_MUX_SHIFT)) & CCM_TARGET_ROOT_MUX_MASK)
4660#define CCM_TARGET_ROOT_ENABLE_MASK (0x10000000U)
4661#define CCM_TARGET_ROOT_ENABLE_SHIFT (28U)
4662/*! ENABLE
4663 * 0b0..clock root is OFF
4664 * 0b1..clock root is ON
4665 */
4666#define CCM_TARGET_ROOT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_ENABLE_SHIFT)) & CCM_TARGET_ROOT_ENABLE_MASK)
4667/*! @} */
4668
4669/* The count of CCM_TARGET_ROOT */
4670#define CCM_TARGET_ROOT_COUNT (142U)
4671
4672/*! @name TARGET_ROOT_SET - Target Register */
4673/*! @{ */
4674#define CCM_TARGET_ROOT_SET_POST_PODF_MASK (0x3FU)
4675#define CCM_TARGET_ROOT_SET_POST_PODF_SHIFT (0U)
4676/*! POST_PODF
4677 * 0b000000..Divide by 1
4678 * 0b000001..Divide by 2
4679 * 0b000010..Divide by 3
4680 * 0b000011..Divide by 4
4681 * 0b000100..Divide by 5
4682 * 0b000101..Divide by 6
4683 * 0b111111..Divide by 64
4684 */
4685#define CCM_TARGET_ROOT_SET_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_SET_POST_PODF_MASK)
4686#define CCM_TARGET_ROOT_SET_PRE_PODF_MASK (0x70000U)
4687#define CCM_TARGET_ROOT_SET_PRE_PODF_SHIFT (16U)
4688/*! PRE_PODF
4689 * 0b000..Divide by 1
4690 * 0b001..Divide by 2
4691 * 0b010..Divide by 3
4692 * 0b011..Divide by 4
4693 * 0b100..Divide by 5
4694 * 0b101..Divide by 6
4695 * 0b110..Divide by 7
4696 * 0b111..Divide by 8
4697 */
4698#define CCM_TARGET_ROOT_SET_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_SET_PRE_PODF_MASK)
4699#define CCM_TARGET_ROOT_SET_MUX_MASK (0x7000000U)
4700#define CCM_TARGET_ROOT_SET_MUX_SHIFT (24U)
4701#define CCM_TARGET_ROOT_SET_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_MUX_SHIFT)) & CCM_TARGET_ROOT_SET_MUX_MASK)
4702#define CCM_TARGET_ROOT_SET_ENABLE_MASK (0x10000000U)
4703#define CCM_TARGET_ROOT_SET_ENABLE_SHIFT (28U)
4704/*! ENABLE
4705 * 0b0..clock root is OFF
4706 * 0b1..clock root is ON
4707 */
4708#define CCM_TARGET_ROOT_SET_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_ENABLE_SHIFT)) & CCM_TARGET_ROOT_SET_ENABLE_MASK)
4709/*! @} */
4710
4711/* The count of CCM_TARGET_ROOT_SET */
4712#define CCM_TARGET_ROOT_SET_COUNT (142U)
4713
4714/*! @name TARGET_ROOT_CLR - Target Register */
4715/*! @{ */
4716#define CCM_TARGET_ROOT_CLR_POST_PODF_MASK (0x3FU)
4717#define CCM_TARGET_ROOT_CLR_POST_PODF_SHIFT (0U)
4718/*! POST_PODF
4719 * 0b000000..Divide by 1
4720 * 0b000001..Divide by 2
4721 * 0b000010..Divide by 3
4722 * 0b000011..Divide by 4
4723 * 0b000100..Divide by 5
4724 * 0b000101..Divide by 6
4725 * 0b111111..Divide by 64
4726 */
4727#define CCM_TARGET_ROOT_CLR_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_CLR_POST_PODF_MASK)
4728#define CCM_TARGET_ROOT_CLR_PRE_PODF_MASK (0x70000U)
4729#define CCM_TARGET_ROOT_CLR_PRE_PODF_SHIFT (16U)
4730/*! PRE_PODF
4731 * 0b000..Divide by 1
4732 * 0b001..Divide by 2
4733 * 0b010..Divide by 3
4734 * 0b011..Divide by 4
4735 * 0b100..Divide by 5
4736 * 0b101..Divide by 6
4737 * 0b110..Divide by 7
4738 * 0b111..Divide by 8
4739 */
4740#define CCM_TARGET_ROOT_CLR_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_CLR_PRE_PODF_MASK)
4741#define CCM_TARGET_ROOT_CLR_MUX_MASK (0x7000000U)
4742#define CCM_TARGET_ROOT_CLR_MUX_SHIFT (24U)
4743#define CCM_TARGET_ROOT_CLR_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_MUX_SHIFT)) & CCM_TARGET_ROOT_CLR_MUX_MASK)
4744#define CCM_TARGET_ROOT_CLR_ENABLE_MASK (0x10000000U)
4745#define CCM_TARGET_ROOT_CLR_ENABLE_SHIFT (28U)
4746/*! ENABLE
4747 * 0b0..clock root is OFF
4748 * 0b1..clock root is ON
4749 */
4750#define CCM_TARGET_ROOT_CLR_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_ENABLE_SHIFT)) & CCM_TARGET_ROOT_CLR_ENABLE_MASK)
4751/*! @} */
4752
4753/* The count of CCM_TARGET_ROOT_CLR */
4754#define CCM_TARGET_ROOT_CLR_COUNT (142U)
4755
4756/*! @name TARGET_ROOT_TOG - Target Register */
4757/*! @{ */
4758#define CCM_TARGET_ROOT_TOG_POST_PODF_MASK (0x3FU)
4759#define CCM_TARGET_ROOT_TOG_POST_PODF_SHIFT (0U)
4760/*! POST_PODF
4761 * 0b000000..Divide by 1
4762 * 0b000001..Divide by 2
4763 * 0b000010..Divide by 3
4764 * 0b000011..Divide by 4
4765 * 0b000100..Divide by 5
4766 * 0b000101..Divide by 6
4767 * 0b111111..Divide by 64
4768 */
4769#define CCM_TARGET_ROOT_TOG_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_TOG_POST_PODF_MASK)
4770#define CCM_TARGET_ROOT_TOG_PRE_PODF_MASK (0x70000U)
4771#define CCM_TARGET_ROOT_TOG_PRE_PODF_SHIFT (16U)
4772/*! PRE_PODF
4773 * 0b000..Divide by 1
4774 * 0b001..Divide by 2
4775 * 0b010..Divide by 3
4776 * 0b011..Divide by 4
4777 * 0b100..Divide by 5
4778 * 0b101..Divide by 6
4779 * 0b110..Divide by 7
4780 * 0b111..Divide by 8
4781 */
4782#define CCM_TARGET_ROOT_TOG_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_TOG_PRE_PODF_MASK)
4783#define CCM_TARGET_ROOT_TOG_MUX_MASK (0x7000000U)
4784#define CCM_TARGET_ROOT_TOG_MUX_SHIFT (24U)
4785#define CCM_TARGET_ROOT_TOG_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_MUX_SHIFT)) & CCM_TARGET_ROOT_TOG_MUX_MASK)
4786#define CCM_TARGET_ROOT_TOG_ENABLE_MASK (0x10000000U)
4787#define CCM_TARGET_ROOT_TOG_ENABLE_SHIFT (28U)
4788/*! ENABLE
4789 * 0b0..clock root is OFF
4790 * 0b1..clock root is ON
4791 */
4792#define CCM_TARGET_ROOT_TOG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_ENABLE_SHIFT)) & CCM_TARGET_ROOT_TOG_ENABLE_MASK)
4793/*! @} */
4794
4795/* The count of CCM_TARGET_ROOT_TOG */
4796#define CCM_TARGET_ROOT_TOG_COUNT (142U)
4797
4798/*! @name MISC - Miscellaneous Register */
4799/*! @{ */
4800#define CCM_MISC_AUTHEN_FAIL_MASK (0x1U)
4801#define CCM_MISC_AUTHEN_FAIL_SHIFT (0U)
4802#define CCM_MISC_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_AUTHEN_FAIL_SHIFT)) & CCM_MISC_AUTHEN_FAIL_MASK)
4803#define CCM_MISC_TIMEOUT_MASK (0x10U)
4804#define CCM_MISC_TIMEOUT_SHIFT (4U)
4805#define CCM_MISC_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_TIMEOUT_SHIFT)) & CCM_MISC_TIMEOUT_MASK)
4806#define CCM_MISC_VIOLATE_MASK (0x100U)
4807#define CCM_MISC_VIOLATE_SHIFT (8U)
4808#define CCM_MISC_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_VIOLATE_SHIFT)) & CCM_MISC_VIOLATE_MASK)
4809/*! @} */
4810
4811/* The count of CCM_MISC */
4812#define CCM_MISC_COUNT (142U)
4813
4814/*! @name MISC_ROOT_SET - Miscellaneous Register */
4815/*! @{ */
4816#define CCM_MISC_ROOT_SET_AUTHEN_FAIL_MASK (0x1U)
4817#define CCM_MISC_ROOT_SET_AUTHEN_FAIL_SHIFT (0U)
4818#define CCM_MISC_ROOT_SET_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_SET_AUTHEN_FAIL_MASK)
4819#define CCM_MISC_ROOT_SET_TIMEOUT_MASK (0x10U)
4820#define CCM_MISC_ROOT_SET_TIMEOUT_SHIFT (4U)
4821#define CCM_MISC_ROOT_SET_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_SET_TIMEOUT_MASK)
4822#define CCM_MISC_ROOT_SET_VIOLATE_MASK (0x100U)
4823#define CCM_MISC_ROOT_SET_VIOLATE_SHIFT (8U)
4824#define CCM_MISC_ROOT_SET_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_VIOLATE_SHIFT)) & CCM_MISC_ROOT_SET_VIOLATE_MASK)
4825/*! @} */
4826
4827/* The count of CCM_MISC_ROOT_SET */
4828#define CCM_MISC_ROOT_SET_COUNT (142U)
4829
4830/*! @name MISC_ROOT_CLR - Miscellaneous Register */
4831/*! @{ */
4832#define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_MASK (0x1U)
4833#define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_SHIFT (0U)
4834#define CCM_MISC_ROOT_CLR_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_CLR_AUTHEN_FAIL_MASK)
4835#define CCM_MISC_ROOT_CLR_TIMEOUT_MASK (0x10U)
4836#define CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT (4U)
4837#define CCM_MISC_ROOT_CLR_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_CLR_TIMEOUT_MASK)
4838#define CCM_MISC_ROOT_CLR_VIOLATE_MASK (0x100U)
4839#define CCM_MISC_ROOT_CLR_VIOLATE_SHIFT (8U)
4840#define CCM_MISC_ROOT_CLR_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_VIOLATE_SHIFT)) & CCM_MISC_ROOT_CLR_VIOLATE_MASK)
4841/*! @} */
4842
4843/* The count of CCM_MISC_ROOT_CLR */
4844#define CCM_MISC_ROOT_CLR_COUNT (142U)
4845
4846/*! @name MISC_ROOT_TOG - Miscellaneous Register */
4847/*! @{ */
4848#define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_MASK (0x1U)
4849#define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_SHIFT (0U)
4850#define CCM_MISC_ROOT_TOG_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_TOG_AUTHEN_FAIL_MASK)
4851#define CCM_MISC_ROOT_TOG_TIMEOUT_MASK (0x10U)
4852#define CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT (4U)
4853#define CCM_MISC_ROOT_TOG_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_TOG_TIMEOUT_MASK)
4854#define CCM_MISC_ROOT_TOG_VIOLATE_MASK (0x100U)
4855#define CCM_MISC_ROOT_TOG_VIOLATE_SHIFT (8U)
4856#define CCM_MISC_ROOT_TOG_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_VIOLATE_SHIFT)) & CCM_MISC_ROOT_TOG_VIOLATE_MASK)
4857/*! @} */
4858
4859/* The count of CCM_MISC_ROOT_TOG */
4860#define CCM_MISC_ROOT_TOG_COUNT (142U)
4861
4862/*! @name POST - Post Divider Register */
4863/*! @{ */
4864#define CCM_POST_POST_PODF_MASK (0x3FU)
4865#define CCM_POST_POST_PODF_SHIFT (0U)
4866/*! POST_PODF
4867 * 0b000000..Divide by 1
4868 * 0b000001..Divide by 2
4869 * 0b000010..Divide by 3
4870 * 0b000011..Divide by 4
4871 * 0b000100..Divide by 5
4872 * 0b000101..Divide by 6
4873 * 0b111111..Divide by 64
4874 */
4875#define CCM_POST_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_POST_PODF_SHIFT)) & CCM_POST_POST_PODF_MASK)
4876#define CCM_POST_BUSY1_MASK (0x80U)
4877#define CCM_POST_BUSY1_SHIFT (7U)
4878#define CCM_POST_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY1_SHIFT)) & CCM_POST_BUSY1_MASK)
4879#define CCM_POST_SELECT_MASK (0x10000000U)
4880#define CCM_POST_SELECT_SHIFT (28U)
4881/*! SELECT
4882 * 0b0..select branch A
4883 * 0b1..select branch B
4884 */
4885#define CCM_POST_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_SELECT_SHIFT)) & CCM_POST_SELECT_MASK)
4886#define CCM_POST_BUSY2_MASK (0x80000000U)
4887#define CCM_POST_BUSY2_SHIFT (31U)
4888#define CCM_POST_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY2_SHIFT)) & CCM_POST_BUSY2_MASK)
4889/*! @} */
4890
4891/* The count of CCM_POST */
4892#define CCM_POST_COUNT (142U)
4893
4894/*! @name POST_ROOT_SET - Post Divider Register */
4895/*! @{ */
4896#define CCM_POST_ROOT_SET_POST_PODF_MASK (0x3FU)
4897#define CCM_POST_ROOT_SET_POST_PODF_SHIFT (0U)
4898/*! POST_PODF
4899 * 0b000000..Divide by 1
4900 * 0b000001..Divide by 2
4901 * 0b000010..Divide by 3
4902 * 0b000011..Divide by 4
4903 * 0b000100..Divide by 5
4904 * 0b000101..Divide by 6
4905 * 0b111111..Divide by 64
4906 */
4907#define CCM_POST_ROOT_SET_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_POST_PODF_SHIFT)) & CCM_POST_ROOT_SET_POST_PODF_MASK)
4908#define CCM_POST_ROOT_SET_BUSY1_MASK (0x80U)
4909#define CCM_POST_ROOT_SET_BUSY1_SHIFT (7U)
4910#define CCM_POST_ROOT_SET_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY1_SHIFT)) & CCM_POST_ROOT_SET_BUSY1_MASK)
4911#define CCM_POST_ROOT_SET_SELECT_MASK (0x10000000U)
4912#define CCM_POST_ROOT_SET_SELECT_SHIFT (28U)
4913/*! SELECT
4914 * 0b0..select branch A
4915 * 0b1..select branch B
4916 */
4917#define CCM_POST_ROOT_SET_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_SELECT_SHIFT)) & CCM_POST_ROOT_SET_SELECT_MASK)
4918#define CCM_POST_ROOT_SET_BUSY2_MASK (0x80000000U)
4919#define CCM_POST_ROOT_SET_BUSY2_SHIFT (31U)
4920#define CCM_POST_ROOT_SET_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY2_SHIFT)) & CCM_POST_ROOT_SET_BUSY2_MASK)
4921/*! @} */
4922
4923/* The count of CCM_POST_ROOT_SET */
4924#define CCM_POST_ROOT_SET_COUNT (142U)
4925
4926/*! @name POST_ROOT_CLR - Post Divider Register */
4927/*! @{ */
4928#define CCM_POST_ROOT_CLR_POST_PODF_MASK (0x3FU)
4929#define CCM_POST_ROOT_CLR_POST_PODF_SHIFT (0U)
4930/*! POST_PODF
4931 * 0b000000..Divide by 1
4932 * 0b000001..Divide by 2
4933 * 0b000010..Divide by 3
4934 * 0b000011..Divide by 4
4935 * 0b000100..Divide by 5
4936 * 0b000101..Divide by 6
4937 * 0b111111..Divide by 64
4938 */
4939#define CCM_POST_ROOT_CLR_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_POST_PODF_SHIFT)) & CCM_POST_ROOT_CLR_POST_PODF_MASK)
4940#define CCM_POST_ROOT_CLR_BUSY1_MASK (0x80U)
4941#define CCM_POST_ROOT_CLR_BUSY1_SHIFT (7U)
4942#define CCM_POST_ROOT_CLR_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY1_SHIFT)) & CCM_POST_ROOT_CLR_BUSY1_MASK)
4943#define CCM_POST_ROOT_CLR_SELECT_MASK (0x10000000U)
4944#define CCM_POST_ROOT_CLR_SELECT_SHIFT (28U)
4945/*! SELECT
4946 * 0b0..select branch A
4947 * 0b1..select branch B
4948 */
4949#define CCM_POST_ROOT_CLR_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_SELECT_SHIFT)) & CCM_POST_ROOT_CLR_SELECT_MASK)
4950#define CCM_POST_ROOT_CLR_BUSY2_MASK (0x80000000U)
4951#define CCM_POST_ROOT_CLR_BUSY2_SHIFT (31U)
4952#define CCM_POST_ROOT_CLR_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY2_SHIFT)) & CCM_POST_ROOT_CLR_BUSY2_MASK)
4953/*! @} */
4954
4955/* The count of CCM_POST_ROOT_CLR */
4956#define CCM_POST_ROOT_CLR_COUNT (142U)
4957
4958/*! @name POST_ROOT_TOG - Post Divider Register */
4959/*! @{ */
4960#define CCM_POST_ROOT_TOG_POST_PODF_MASK (0x3FU)
4961#define CCM_POST_ROOT_TOG_POST_PODF_SHIFT (0U)
4962/*! POST_PODF
4963 * 0b000000..Divide by 1
4964 * 0b000001..Divide by 2
4965 * 0b000010..Divide by 3
4966 * 0b000011..Divide by 4
4967 * 0b000100..Divide by 5
4968 * 0b000101..Divide by 6
4969 * 0b111111..Divide by 64
4970 */
4971#define CCM_POST_ROOT_TOG_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_POST_PODF_SHIFT)) & CCM_POST_ROOT_TOG_POST_PODF_MASK)
4972#define CCM_POST_ROOT_TOG_BUSY1_MASK (0x80U)
4973#define CCM_POST_ROOT_TOG_BUSY1_SHIFT (7U)
4974#define CCM_POST_ROOT_TOG_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY1_SHIFT)) & CCM_POST_ROOT_TOG_BUSY1_MASK)
4975#define CCM_POST_ROOT_TOG_SELECT_MASK (0x10000000U)
4976#define CCM_POST_ROOT_TOG_SELECT_SHIFT (28U)
4977/*! SELECT
4978 * 0b0..select branch A
4979 * 0b1..select branch B
4980 */
4981#define CCM_POST_ROOT_TOG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_SELECT_SHIFT)) & CCM_POST_ROOT_TOG_SELECT_MASK)
4982#define CCM_POST_ROOT_TOG_BUSY2_MASK (0x80000000U)
4983#define CCM_POST_ROOT_TOG_BUSY2_SHIFT (31U)
4984#define CCM_POST_ROOT_TOG_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY2_SHIFT)) & CCM_POST_ROOT_TOG_BUSY2_MASK)
4985/*! @} */
4986
4987/* The count of CCM_POST_ROOT_TOG */
4988#define CCM_POST_ROOT_TOG_COUNT (142U)
4989
4990/*! @name PRE - Pre Divider Register */
4991/*! @{ */
4992#define CCM_PRE_PRE_PODF_B_MASK (0x7U)
4993#define CCM_PRE_PRE_PODF_B_SHIFT (0U)
4994/*! PRE_PODF_B
4995 * 0b000..Divide by 1
4996 * 0b001..Divide by 2
4997 * 0b010..Divide by 3
4998 * 0b011..Divide by 4
4999 * 0b100..Divide by 5
5000 * 0b101..Divide by 6
5001 * 0b110..Divide by 7
5002 * 0b111..Divide by 8
5003 */
5004#define CCM_PRE_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_PRE_PODF_B_SHIFT)) & CCM_PRE_PRE_PODF_B_MASK)
5005#define CCM_PRE_BUSY0_MASK (0x8U)
5006#define CCM_PRE_BUSY0_SHIFT (3U)
5007#define CCM_PRE_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY0_SHIFT)) & CCM_PRE_BUSY0_MASK)
5008#define CCM_PRE_MUX_B_MASK (0x700U)
5009#define CCM_PRE_MUX_B_SHIFT (8U)
5010#define CCM_PRE_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_MUX_B_SHIFT)) & CCM_PRE_MUX_B_MASK)
5011#define CCM_PRE_EN_B_MASK (0x1000U)
5012#define CCM_PRE_EN_B_SHIFT (12U)
5013/*! EN_B
5014 * 0b0..Clock shutdown
5015 * 0b1..Clock ON
5016 */
5017#define CCM_PRE_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_EN_B_SHIFT)) & CCM_PRE_EN_B_MASK)
5018#define CCM_PRE_BUSY1_MASK (0x8000U)
5019#define CCM_PRE_BUSY1_SHIFT (15U)
5020#define CCM_PRE_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY1_SHIFT)) & CCM_PRE_BUSY1_MASK)
5021#define CCM_PRE_PRE_PODF_A_MASK (0x70000U)
5022#define CCM_PRE_PRE_PODF_A_SHIFT (16U)
5023/*! PRE_PODF_A
5024 * 0b000..Divide by 1
5025 * 0b001..Divide by 2
5026 * 0b010..Divide by 3
5027 * 0b011..Divide by 4
5028 * 0b100..Divide by 5
5029 * 0b101..Divide by 6
5030 * 0b110..Divide by 7
5031 * 0b111..Divide by 8
5032 */
5033#define CCM_PRE_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_PRE_PODF_A_SHIFT)) & CCM_PRE_PRE_PODF_A_MASK)
5034#define CCM_PRE_BUSY3_MASK (0x80000U)
5035#define CCM_PRE_BUSY3_SHIFT (19U)
5036#define CCM_PRE_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY3_SHIFT)) & CCM_PRE_BUSY3_MASK)
5037#define CCM_PRE_MUX_A_MASK (0x7000000U)
5038#define CCM_PRE_MUX_A_SHIFT (24U)
5039#define CCM_PRE_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_MUX_A_SHIFT)) & CCM_PRE_MUX_A_MASK)
5040#define CCM_PRE_EN_A_MASK (0x10000000U)
5041#define CCM_PRE_EN_A_SHIFT (28U)
5042/*! EN_A
5043 * 0b0..Clock shutdown
5044 * 0b1..clock ON
5045 */
5046#define CCM_PRE_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_EN_A_SHIFT)) & CCM_PRE_EN_A_MASK)
5047#define CCM_PRE_BUSY4_MASK (0x80000000U)
5048#define CCM_PRE_BUSY4_SHIFT (31U)
5049#define CCM_PRE_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY4_SHIFT)) & CCM_PRE_BUSY4_MASK)
5050/*! @} */
5051
5052/* The count of CCM_PRE */
5053#define CCM_PRE_COUNT (142U)
5054
5055/*! @name PRE_ROOT_SET - Pre Divider Register */
5056/*! @{ */
5057#define CCM_PRE_ROOT_SET_PRE_PODF_B_MASK (0x7U)
5058#define CCM_PRE_ROOT_SET_PRE_PODF_B_SHIFT (0U)
5059/*! PRE_PODF_B
5060 * 0b000..Divide by 1
5061 * 0b001..Divide by 2
5062 * 0b010..Divide by 3
5063 * 0b011..Divide by 4
5064 * 0b100..Divide by 5
5065 * 0b101..Divide by 6
5066 * 0b110..Divide by 7
5067 * 0b111..Divide by 8
5068 */
5069#define CCM_PRE_ROOT_SET_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_SET_PRE_PODF_B_MASK)
5070#define CCM_PRE_ROOT_SET_BUSY0_MASK (0x8U)
5071#define CCM_PRE_ROOT_SET_BUSY0_SHIFT (3U)
5072#define CCM_PRE_ROOT_SET_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY0_SHIFT)) & CCM_PRE_ROOT_SET_BUSY0_MASK)
5073#define CCM_PRE_ROOT_SET_MUX_B_MASK (0x700U)
5074#define CCM_PRE_ROOT_SET_MUX_B_SHIFT (8U)
5075#define CCM_PRE_ROOT_SET_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_MUX_B_SHIFT)) & CCM_PRE_ROOT_SET_MUX_B_MASK)
5076#define CCM_PRE_ROOT_SET_EN_B_MASK (0x1000U)
5077#define CCM_PRE_ROOT_SET_EN_B_SHIFT (12U)
5078/*! EN_B
5079 * 0b0..Clock shutdown
5080 * 0b1..Clock ON
5081 */
5082#define CCM_PRE_ROOT_SET_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_EN_B_SHIFT)) & CCM_PRE_ROOT_SET_EN_B_MASK)
5083#define CCM_PRE_ROOT_SET_BUSY1_MASK (0x8000U)
5084#define CCM_PRE_ROOT_SET_BUSY1_SHIFT (15U)
5085#define CCM_PRE_ROOT_SET_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY1_SHIFT)) & CCM_PRE_ROOT_SET_BUSY1_MASK)
5086#define CCM_PRE_ROOT_SET_PRE_PODF_A_MASK (0x70000U)
5087#define CCM_PRE_ROOT_SET_PRE_PODF_A_SHIFT (16U)
5088/*! PRE_PODF_A
5089 * 0b000..Divide by 1
5090 * 0b001..Divide by 2
5091 * 0b010..Divide by 3
5092 * 0b011..Divide by 4
5093 * 0b100..Divide by 5
5094 * 0b101..Divide by 6
5095 * 0b110..Divide by 7
5096 * 0b111..Divide by 8
5097 */
5098#define CCM_PRE_ROOT_SET_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_SET_PRE_PODF_A_MASK)
5099#define CCM_PRE_ROOT_SET_BUSY3_MASK (0x80000U)
5100#define CCM_PRE_ROOT_SET_BUSY3_SHIFT (19U)
5101#define CCM_PRE_ROOT_SET_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY3_SHIFT)) & CCM_PRE_ROOT_SET_BUSY3_MASK)
5102#define CCM_PRE_ROOT_SET_MUX_A_MASK (0x7000000U)
5103#define CCM_PRE_ROOT_SET_MUX_A_SHIFT (24U)
5104#define CCM_PRE_ROOT_SET_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_MUX_A_SHIFT)) & CCM_PRE_ROOT_SET_MUX_A_MASK)
5105#define CCM_PRE_ROOT_SET_EN_A_MASK (0x10000000U)
5106#define CCM_PRE_ROOT_SET_EN_A_SHIFT (28U)
5107/*! EN_A
5108 * 0b0..Clock shutdown
5109 * 0b1..clock ON
5110 */
5111#define CCM_PRE_ROOT_SET_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_EN_A_SHIFT)) & CCM_PRE_ROOT_SET_EN_A_MASK)
5112#define CCM_PRE_ROOT_SET_BUSY4_MASK (0x80000000U)
5113#define CCM_PRE_ROOT_SET_BUSY4_SHIFT (31U)
5114#define CCM_PRE_ROOT_SET_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY4_SHIFT)) & CCM_PRE_ROOT_SET_BUSY4_MASK)
5115/*! @} */
5116
5117/* The count of CCM_PRE_ROOT_SET */
5118#define CCM_PRE_ROOT_SET_COUNT (142U)
5119
5120/*! @name PRE_ROOT_CLR - Pre Divider Register */
5121/*! @{ */
5122#define CCM_PRE_ROOT_CLR_PRE_PODF_B_MASK (0x7U)
5123#define CCM_PRE_ROOT_CLR_PRE_PODF_B_SHIFT (0U)
5124/*! PRE_PODF_B
5125 * 0b000..Divide by 1
5126 * 0b001..Divide by 2
5127 * 0b010..Divide by 3
5128 * 0b011..Divide by 4
5129 * 0b100..Divide by 5
5130 * 0b101..Divide by 6
5131 * 0b110..Divide by 7
5132 * 0b111..Divide by 8
5133 */
5134#define CCM_PRE_ROOT_CLR_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_CLR_PRE_PODF_B_MASK)
5135#define CCM_PRE_ROOT_CLR_BUSY0_MASK (0x8U)
5136#define CCM_PRE_ROOT_CLR_BUSY0_SHIFT (3U)
5137#define CCM_PRE_ROOT_CLR_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY0_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY0_MASK)
5138#define CCM_PRE_ROOT_CLR_MUX_B_MASK (0x700U)
5139#define CCM_PRE_ROOT_CLR_MUX_B_SHIFT (8U)
5140#define CCM_PRE_ROOT_CLR_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_MUX_B_SHIFT)) & CCM_PRE_ROOT_CLR_MUX_B_MASK)
5141#define CCM_PRE_ROOT_CLR_EN_B_MASK (0x1000U)
5142#define CCM_PRE_ROOT_CLR_EN_B_SHIFT (12U)
5143/*! EN_B
5144 * 0b0..Clock shutdown
5145 * 0b1..Clock ON
5146 */
5147#define CCM_PRE_ROOT_CLR_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_EN_B_SHIFT)) & CCM_PRE_ROOT_CLR_EN_B_MASK)
5148#define CCM_PRE_ROOT_CLR_BUSY1_MASK (0x8000U)
5149#define CCM_PRE_ROOT_CLR_BUSY1_SHIFT (15U)
5150#define CCM_PRE_ROOT_CLR_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY1_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY1_MASK)
5151#define CCM_PRE_ROOT_CLR_PRE_PODF_A_MASK (0x70000U)
5152#define CCM_PRE_ROOT_CLR_PRE_PODF_A_SHIFT (16U)
5153/*! PRE_PODF_A
5154 * 0b000..Divide by 1
5155 * 0b001..Divide by 2
5156 * 0b010..Divide by 3
5157 * 0b011..Divide by 4
5158 * 0b100..Divide by 5
5159 * 0b101..Divide by 6
5160 * 0b110..Divide by 7
5161 * 0b111..Divide by 8
5162 */
5163#define CCM_PRE_ROOT_CLR_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_CLR_PRE_PODF_A_MASK)
5164#define CCM_PRE_ROOT_CLR_BUSY3_MASK (0x80000U)
5165#define CCM_PRE_ROOT_CLR_BUSY3_SHIFT (19U)
5166#define CCM_PRE_ROOT_CLR_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY3_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY3_MASK)
5167#define CCM_PRE_ROOT_CLR_MUX_A_MASK (0x7000000U)
5168#define CCM_PRE_ROOT_CLR_MUX_A_SHIFT (24U)
5169#define CCM_PRE_ROOT_CLR_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_MUX_A_SHIFT)) & CCM_PRE_ROOT_CLR_MUX_A_MASK)
5170#define CCM_PRE_ROOT_CLR_EN_A_MASK (0x10000000U)
5171#define CCM_PRE_ROOT_CLR_EN_A_SHIFT (28U)
5172/*! EN_A
5173 * 0b0..Clock shutdown
5174 * 0b1..clock ON
5175 */
5176#define CCM_PRE_ROOT_CLR_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_EN_A_SHIFT)) & CCM_PRE_ROOT_CLR_EN_A_MASK)
5177#define CCM_PRE_ROOT_CLR_BUSY4_MASK (0x80000000U)
5178#define CCM_PRE_ROOT_CLR_BUSY4_SHIFT (31U)
5179#define CCM_PRE_ROOT_CLR_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY4_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY4_MASK)
5180/*! @} */
5181
5182/* The count of CCM_PRE_ROOT_CLR */
5183#define CCM_PRE_ROOT_CLR_COUNT (142U)
5184
5185/*! @name PRE_ROOT_TOG - Pre Divider Register */
5186/*! @{ */
5187#define CCM_PRE_ROOT_TOG_PRE_PODF_B_MASK (0x7U)
5188#define CCM_PRE_ROOT_TOG_PRE_PODF_B_SHIFT (0U)
5189/*! PRE_PODF_B
5190 * 0b000..Divide by 1
5191 * 0b001..Divide by 2
5192 * 0b010..Divide by 3
5193 * 0b011..Divide by 4
5194 * 0b100..Divide by 5
5195 * 0b101..Divide by 6
5196 * 0b110..Divide by 7
5197 * 0b111..Divide by 8
5198 */
5199#define CCM_PRE_ROOT_TOG_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_TOG_PRE_PODF_B_MASK)
5200#define CCM_PRE_ROOT_TOG_BUSY0_MASK (0x8U)
5201#define CCM_PRE_ROOT_TOG_BUSY0_SHIFT (3U)
5202#define CCM_PRE_ROOT_TOG_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY0_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY0_MASK)
5203#define CCM_PRE_ROOT_TOG_MUX_B_MASK (0x700U)
5204#define CCM_PRE_ROOT_TOG_MUX_B_SHIFT (8U)
5205#define CCM_PRE_ROOT_TOG_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_MUX_B_SHIFT)) & CCM_PRE_ROOT_TOG_MUX_B_MASK)
5206#define CCM_PRE_ROOT_TOG_EN_B_MASK (0x1000U)
5207#define CCM_PRE_ROOT_TOG_EN_B_SHIFT (12U)
5208/*! EN_B
5209 * 0b0..Clock shutdown
5210 * 0b1..Clock ON
5211 */
5212#define CCM_PRE_ROOT_TOG_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_EN_B_SHIFT)) & CCM_PRE_ROOT_TOG_EN_B_MASK)
5213#define CCM_PRE_ROOT_TOG_BUSY1_MASK (0x8000U)
5214#define CCM_PRE_ROOT_TOG_BUSY1_SHIFT (15U)
5215#define CCM_PRE_ROOT_TOG_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY1_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY1_MASK)
5216#define CCM_PRE_ROOT_TOG_PRE_PODF_A_MASK (0x70000U)
5217#define CCM_PRE_ROOT_TOG_PRE_PODF_A_SHIFT (16U)
5218/*! PRE_PODF_A
5219 * 0b000..Divide by 1
5220 * 0b001..Divide by 2
5221 * 0b010..Divide by 3
5222 * 0b011..Divide by 4
5223 * 0b100..Divide by 5
5224 * 0b101..Divide by 6
5225 * 0b110..Divide by 7
5226 * 0b111..Divide by 8
5227 */
5228#define CCM_PRE_ROOT_TOG_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_TOG_PRE_PODF_A_MASK)
5229#define CCM_PRE_ROOT_TOG_BUSY3_MASK (0x80000U)
5230#define CCM_PRE_ROOT_TOG_BUSY3_SHIFT (19U)
5231#define CCM_PRE_ROOT_TOG_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY3_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY3_MASK)
5232#define CCM_PRE_ROOT_TOG_MUX_A_MASK (0x7000000U)
5233#define CCM_PRE_ROOT_TOG_MUX_A_SHIFT (24U)
5234#define CCM_PRE_ROOT_TOG_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_MUX_A_SHIFT)) & CCM_PRE_ROOT_TOG_MUX_A_MASK)
5235#define CCM_PRE_ROOT_TOG_EN_A_MASK (0x10000000U)
5236#define CCM_PRE_ROOT_TOG_EN_A_SHIFT (28U)
5237/*! EN_A
5238 * 0b0..Clock shutdown
5239 * 0b1..clock ON
5240 */
5241#define CCM_PRE_ROOT_TOG_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_EN_A_SHIFT)) & CCM_PRE_ROOT_TOG_EN_A_MASK)
5242#define CCM_PRE_ROOT_TOG_BUSY4_MASK (0x80000000U)
5243#define CCM_PRE_ROOT_TOG_BUSY4_SHIFT (31U)
5244#define CCM_PRE_ROOT_TOG_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY4_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY4_MASK)
5245/*! @} */
5246
5247/* The count of CCM_PRE_ROOT_TOG */
5248#define CCM_PRE_ROOT_TOG_COUNT (142U)
5249
5250/*! @name ACCESS_CTRL - Access Control Register */
5251/*! @{ */
5252#define CCM_ACCESS_CTRL_DOMAIN0_INFO_MASK (0xFU)
5253#define CCM_ACCESS_CTRL_DOMAIN0_INFO_SHIFT (0U)
5254#define CCM_ACCESS_CTRL_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN0_INFO_MASK)
5255#define CCM_ACCESS_CTRL_DOMAIN1_INFO_MASK (0xF0U)
5256#define CCM_ACCESS_CTRL_DOMAIN1_INFO_SHIFT (4U)
5257#define CCM_ACCESS_CTRL_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN1_INFO_MASK)
5258#define CCM_ACCESS_CTRL_DOMAIN2_INFO_MASK (0xF00U)
5259#define CCM_ACCESS_CTRL_DOMAIN2_INFO_SHIFT (8U)
5260#define CCM_ACCESS_CTRL_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN2_INFO_MASK)
5261#define CCM_ACCESS_CTRL_DOMAIN3_INFO_MASK (0xF000U)
5262#define CCM_ACCESS_CTRL_DOMAIN3_INFO_SHIFT (12U)
5263#define CCM_ACCESS_CTRL_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN3_INFO_MASK)
5264#define CCM_ACCESS_CTRL_OWNER_ID_MASK (0x30000U)
5265#define CCM_ACCESS_CTRL_OWNER_ID_SHIFT (16U)
5266/*! OWNER_ID
5267 * 0b00..domaino
5268 * 0b01..domain1
5269 * 0b10..domain2
5270 * 0b11..domain3
5271 */
5272#define CCM_ACCESS_CTRL_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_OWNER_ID_MASK)
5273#define CCM_ACCESS_CTRL_MUTEX_MASK (0x100000U)
5274#define CCM_ACCESS_CTRL_MUTEX_SHIFT (20U)
5275/*! MUTEX
5276 * 0b0..Semaphore is free to take
5277 * 0b1..Semaphore is taken
5278 */
5279#define CCM_ACCESS_CTRL_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_MUTEX_MASK)
5280#define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_MASK (0x1000000U)
5281#define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_SHIFT (24U)
5282/*! DOMAIN0_WHITELIST
5283 * 0b0..Domain cannot change the setting
5284 * 0b1..Domain can change the setting
5285 */
5286#define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_MASK)
5287#define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_MASK (0x2000000U)
5288#define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_SHIFT (25U)
5289/*! DOMAIN1_WHITELIST
5290 * 0b0..Domain cannot change the setting
5291 * 0b1..Domain can change the setting
5292 */
5293#define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_MASK)
5294#define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_MASK (0x4000000U)
5295#define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_SHIFT (26U)
5296/*! DOMAIN2_WHITELIST
5297 * 0b0..Domain cannot change the setting
5298 * 0b1..Domain can change the setting
5299 */
5300#define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_MASK)
5301#define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_MASK (0x8000000U)
5302#define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_SHIFT (27U)
5303/*! DOMAIN3_WHITELIST
5304 * 0b0..Domain cannot change the setting
5305 * 0b1..Domain can change the setting
5306 */
5307#define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_MASK)
5308#define CCM_ACCESS_CTRL_SEMA_EN_MASK (0x10000000U)
5309#define CCM_ACCESS_CTRL_SEMA_EN_SHIFT (28U)
5310/*! SEMA_EN
5311 * 0b0..Disable
5312 * 0b1..Enable
5313 */
5314#define CCM_ACCESS_CTRL_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_SEMA_EN_MASK)
5315#define CCM_ACCESS_CTRL_LOCK_MASK (0x80000000U)
5316#define CCM_ACCESS_CTRL_LOCK_SHIFT (31U)
5317/*! LOCK
5318 * 0b0..Access control inactive
5319 * 0b1..Access control active
5320 */
5321#define CCM_ACCESS_CTRL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_LOCK_SHIFT)) & CCM_ACCESS_CTRL_LOCK_MASK)
5322/*! @} */
5323
5324/* The count of CCM_ACCESS_CTRL */
5325#define CCM_ACCESS_CTRL_COUNT (142U)
5326
5327/*! @name ACCESS_CTRL_ROOT_SET - Access Control Register */
5328/*! @{ */
5329#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_MASK (0xFU)
5330#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_SHIFT (0U)
5331#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_MASK)
5332#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_MASK (0xF0U)
5333#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_SHIFT (4U)
5334#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_MASK)
5335#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_MASK (0xF00U)
5336#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_SHIFT (8U)
5337#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_MASK)
5338#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_MASK (0xF000U)
5339#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_SHIFT (12U)
5340#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_MASK)
5341#define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_MASK (0x30000U)
5342#define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_SHIFT (16U)
5343/*! OWNER_ID
5344 * 0b00..domaino
5345 * 0b01..domain1
5346 * 0b10..domain2
5347 * 0b11..domain3
5348 */
5349#define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_MASK)
5350#define CCM_ACCESS_CTRL_ROOT_SET_MUTEX_MASK (0x100000U)
5351#define CCM_ACCESS_CTRL_ROOT_SET_MUTEX_SHIFT (20U)
5352/*! MUTEX
5353 * 0b0..Semaphore is free to take
5354 * 0b1..Semaphore is taken
5355 */
5356#define CCM_ACCESS_CTRL_ROOT_SET_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_MUTEX_MASK)
5357#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_MASK (0x1000000U)
5358#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_SHIFT (24U)
5359/*! DOMAIN0_WHITELIST
5360 * 0b0..Domain cannot change the setting
5361 * 0b1..Domain can change the setting
5362 */
5363#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_MASK)
5364#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_MASK (0x2000000U)
5365#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_SHIFT (25U)
5366/*! DOMAIN1_WHITELIST
5367 * 0b0..Domain cannot change the setting
5368 * 0b1..Domain can change the setting
5369 */
5370#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_MASK)
5371#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_MASK (0x4000000U)
5372#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_SHIFT (26U)
5373/*! DOMAIN2_WHITELIST
5374 * 0b0..Domain cannot change the setting
5375 * 0b1..Domain can change the setting
5376 */
5377#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_MASK)
5378#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_MASK (0x8000000U)
5379#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_SHIFT (27U)
5380/*! DOMAIN3_WHITELIST
5381 * 0b0..Domain cannot change the setting
5382 * 0b1..Domain can change the setting
5383 */
5384#define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_MASK)
5385#define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_MASK (0x10000000U)
5386#define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_SHIFT (28U)
5387/*! SEMA_EN
5388 * 0b0..Disable
5389 * 0b1..Enable
5390 */
5391#define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_MASK)
5392#define CCM_ACCESS_CTRL_ROOT_SET_LOCK_MASK (0x80000000U)
5393#define CCM_ACCESS_CTRL_ROOT_SET_LOCK_SHIFT (31U)
5394/*! LOCK
5395 * 0b0..Access control inactive
5396 * 0b1..Access control active
5397 */
5398#define CCM_ACCESS_CTRL_ROOT_SET_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_LOCK_MASK)
5399/*! @} */
5400
5401/* The count of CCM_ACCESS_CTRL_ROOT_SET */
5402#define CCM_ACCESS_CTRL_ROOT_SET_COUNT (142U)
5403
5404/*! @name ACCESS_CTRL_ROOT_CLR - Access Control Register */
5405/*! @{ */
5406#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_MASK (0xFU)
5407#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_SHIFT (0U)
5408#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_MASK)
5409#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_MASK (0xF0U)
5410#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_SHIFT (4U)
5411#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_MASK)
5412#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_MASK (0xF00U)
5413#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_SHIFT (8U)
5414#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_MASK)
5415#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_MASK (0xF000U)
5416#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_SHIFT (12U)
5417#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_MASK)
5418#define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_MASK (0x30000U)
5419#define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_SHIFT (16U)
5420/*! OWNER_ID
5421 * 0b00..domaino
5422 * 0b01..domain1
5423 * 0b10..domain2
5424 * 0b11..domain3
5425 */
5426#define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_MASK)
5427#define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_MASK (0x100000U)
5428#define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_SHIFT (20U)
5429/*! MUTEX
5430 * 0b0..Semaphore is free to take
5431 * 0b1..Semaphore is taken
5432 */
5433#define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_MASK)
5434#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_MASK (0x1000000U)
5435#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_SHIFT (24U)
5436/*! DOMAIN0_WHITELIST
5437 * 0b0..Domain cannot change the setting
5438 * 0b1..Domain can change the setting
5439 */
5440#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_MASK)
5441#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_MASK (0x2000000U)
5442#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_SHIFT (25U)
5443/*! DOMAIN1_WHITELIST
5444 * 0b0..Domain cannot change the setting
5445 * 0b1..Domain can change the setting
5446 */
5447#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_MASK)
5448#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_MASK (0x4000000U)
5449#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_SHIFT (26U)
5450/*! DOMAIN2_WHITELIST
5451 * 0b0..Domain cannot change the setting
5452 * 0b1..Domain can change the setting
5453 */
5454#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_MASK)
5455#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_MASK (0x8000000U)
5456#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_SHIFT (27U)
5457/*! DOMAIN3_WHITELIST
5458 * 0b0..Domain cannot change the setting
5459 * 0b1..Domain can change the setting
5460 */
5461#define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_MASK)
5462#define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_MASK (0x10000000U)
5463#define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_SHIFT (28U)
5464/*! SEMA_EN
5465 * 0b0..Disable
5466 * 0b1..Enable
5467 */
5468#define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_MASK)
5469#define CCM_ACCESS_CTRL_ROOT_CLR_LOCK_MASK (0x80000000U)
5470#define CCM_ACCESS_CTRL_ROOT_CLR_LOCK_SHIFT (31U)
5471/*! LOCK
5472 * 0b0..Access control inactive
5473 * 0b1..Access control active
5474 */
5475#define CCM_ACCESS_CTRL_ROOT_CLR_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_LOCK_MASK)
5476/*! @} */
5477
5478/* The count of CCM_ACCESS_CTRL_ROOT_CLR */
5479#define CCM_ACCESS_CTRL_ROOT_CLR_COUNT (142U)
5480
5481/*! @name ACCESS_CTRL_ROOT_TOG - Access Control Register */
5482/*! @{ */
5483#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_MASK (0xFU)
5484#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_SHIFT (0U)
5485#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_MASK)
5486#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_MASK (0xF0U)
5487#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_SHIFT (4U)
5488#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_MASK)
5489#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_MASK (0xF00U)
5490#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_SHIFT (8U)
5491#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_MASK)
5492#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_MASK (0xF000U)
5493#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_SHIFT (12U)
5494#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_MASK)
5495#define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_MASK (0x30000U)
5496#define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_SHIFT (16U)
5497/*! OWNER_ID
5498 * 0b00..domaino
5499 * 0b01..domain1
5500 * 0b10..domain2
5501 * 0b11..domain3
5502 */
5503#define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_MASK)
5504#define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_MASK (0x100000U)
5505#define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_SHIFT (20U)
5506/*! MUTEX
5507 * 0b0..Semaphore is free to take
5508 * 0b1..Semaphore is taken
5509 */
5510#define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_MASK)
5511#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_MASK (0x1000000U)
5512#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_SHIFT (24U)
5513/*! DOMAIN0_WHITELIST
5514 * 0b0..Domain cannot change the setting
5515 * 0b1..Domain can change the setting
5516 */
5517#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_MASK)
5518#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_MASK (0x2000000U)
5519#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_SHIFT (25U)
5520/*! DOMAIN1_WHITELIST
5521 * 0b0..Domain cannot change the setting
5522 * 0b1..Domain can change the setting
5523 */
5524#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_MASK)
5525#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_MASK (0x4000000U)
5526#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_SHIFT (26U)
5527/*! DOMAIN2_WHITELIST
5528 * 0b0..Domain cannot change the setting
5529 * 0b1..Domain can change the setting
5530 */
5531#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_MASK)
5532#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_MASK (0x8000000U)
5533#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_SHIFT (27U)
5534/*! DOMAIN3_WHITELIST
5535 * 0b0..Domain cannot change the setting
5536 * 0b1..Domain can change the setting
5537 */
5538#define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_MASK)
5539#define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_MASK (0x10000000U)
5540#define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_SHIFT (28U)
5541/*! SEMA_EN
5542 * 0b0..Disable
5543 * 0b1..Enable
5544 */
5545#define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_MASK)
5546#define CCM_ACCESS_CTRL_ROOT_TOG_LOCK_MASK (0x80000000U)
5547#define CCM_ACCESS_CTRL_ROOT_TOG_LOCK_SHIFT (31U)
5548/*! LOCK
5549 * 0b0..Access control inactive
5550 * 0b1..Access control active
5551 */
5552#define CCM_ACCESS_CTRL_ROOT_TOG_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_LOCK_MASK)
5553/*! @} */
5554
5555/* The count of CCM_ACCESS_CTRL_ROOT_TOG */
5556#define CCM_ACCESS_CTRL_ROOT_TOG_COUNT (142U)
5557
5558
5559/*!
5560 * @}
5561 */ /* end of group CCM_Register_Masks */
5562
5563
5564/* CCM - Peripheral instance base addresses */
5565/** Peripheral CCM base address */
5566#define CCM_BASE (0x30380000u)
5567/** Peripheral CCM base pointer */
5568#define CCM ((CCM_Type *)CCM_BASE)
5569/** Array initializer of CCM peripheral base addresses */
5570#define CCM_BASE_ADDRS { CCM_BASE }
5571/** Array initializer of CCM peripheral base pointers */
5572#define CCM_BASE_PTRS { CCM }
5573/** Interrupt vectors for the CCM peripheral type */
5574#define CCM_IRQS { CCM_IRQ1_IRQn, CCM_IRQ2_IRQn }
5575
5576/*!
5577 * @}
5578 */ /* end of group CCM_Peripheral_Access_Layer */
5579
5580
5581/* ----------------------------------------------------------------------------
5582 -- CCM_ANALOG Peripheral Access Layer
5583 ---------------------------------------------------------------------------- */
5584
5585/*!
5586 * @addtogroup CCM_ANALOG_Peripheral_Access_Layer CCM_ANALOG Peripheral Access Layer
5587 * @{
5588 */
5589
5590/** CCM_ANALOG - Register Layout Typedef */
5591typedef struct {
5592 __IO uint32_t AUDIO_PLL1_GEN_CTRL; /**< AUDIO PLL1 General Function Control Register, offset: 0x0 */
5593 __IO uint32_t AUDIO_PLL1_FDIV_CTL0; /**< AUDIO PLL1 Divide and Fraction Data Control 0 Register, offset: 0x4 */
5594 __IO uint32_t AUDIO_PLL1_FDIV_CTL1; /**< AUDIO PLL1 Divide and Fraction Data Control 1 Register, offset: 0x8 */
5595 __IO uint32_t AUDIO_PLL1_SSCG_CTRL; /**< AUDIO PLL1 PLL SSCG Control Register, offset: 0xC */
5596 __IO uint32_t AUDIO_PLL1_MNIT_CTRL; /**< AUDIO PLL1 PLL Monitoring Control Register, offset: 0x10 */
5597 __IO uint32_t AUDIO_PLL2_GEN_CTRL; /**< AUDIO PLL2 General Function Control Register, offset: 0x14 */
5598 __IO uint32_t AUDIO_PLL2_FDIV_CTL0; /**< AUDIO PLL2 Divide and Fraction Data Control 0 Register, offset: 0x18 */
5599 __IO uint32_t AUDIO_PLL2_FDIV_CTL1; /**< AUDIO PLL2 Divide and Fraction Data Control 1 Register, offset: 0x1C */
5600 __IO uint32_t AUDIO_PLL2_SSCG_CTRL; /**< AUDIO PLL2 PLL SSCG Control Register, offset: 0x20 */
5601 __IO uint32_t AUDIO_PLL2_MNIT_CTRL; /**< AUDIO PLL2 PLL Monitoring Control Register, offset: 0x24 */
5602 __IO uint32_t VIDEO_PLL1_GEN_CTRL; /**< VIDEO PLL1 General Function Control Register, offset: 0x28 */
5603 __IO uint32_t VIDEO_PLL1_FDIV_CTL0; /**< VIDEO PLL1 Divide and Fraction Data Control 0 Register, offset: 0x2C */
5604 __IO uint32_t VIDEO_PLL1_FDIV_CTL1; /**< VIDEO PLL1 Divide and Fraction Data Control 1 Register, offset: 0x30 */
5605 __IO uint32_t VIDEO_PLL1_SSCG_CTRL; /**< VIDEO PLL1 PLL SSCG Control Register, offset: 0x34 */
5606 __IO uint32_t VIDEO_PLL1_MNIT_CTRL; /**< VIDEO PLL1 PLL Monitoring Control Register, offset: 0x38 */
5607 uint8_t RESERVED_0[20];
5608 __IO uint32_t DRAM_PLL_GEN_CTRL; /**< DRAM PLL General Function Control Register, offset: 0x50 */
5609 __IO uint32_t DRAM_PLL_FDIV_CTL0; /**< DRAM PLL Divide and Fraction Data Control 0 Register, offset: 0x54 */
5610 __IO uint32_t DRAM_PLL_FDIV_CTL1; /**< DRAM PLL Divide and Fraction Data Control 1 Register, offset: 0x58 */
5611 __IO uint32_t DRAM_PLL_SSCG_CTRL; /**< DRAM PLL PLL SSCG Control Register, offset: 0x5C */
5612 __IO uint32_t DRAM_PLL_MNIT_CTRL; /**< DRAM PLL PLL Monitoring Control Register, offset: 0x60 */
5613 __IO uint32_t GPU_PLL_GEN_CTRL; /**< GPU PLL General Function Control Register, offset: 0x64 */
5614 __IO uint32_t GPU_PLL_FDIV_CTL0; /**< GPU PLL Divide and Fraction Data Control 0 Register, offset: 0x68 */
5615 __IO uint32_t GPU_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x6C */
5616 __IO uint32_t GPU_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x70 */
5617 __IO uint32_t VPU_PLL_GEN_CTRL; /**< VPU PLL General Function Control Register, offset: 0x74 */
5618 __IO uint32_t VPU_PLL_FDIV_CTL0; /**< VPU PLL Divide and Fraction Data Control 0 Register, offset: 0x78 */
5619 __IO uint32_t VPU_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x7C */
5620 __IO uint32_t VPU_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x80 */
5621 __IO uint32_t ARM_PLL_GEN_CTRL; /**< ARM PLL General Function Control Register, offset: 0x84 */
5622 __IO uint32_t ARM_PLL_FDIV_CTL0; /**< ARM PLL Divide and Fraction Data Control 0 Register, offset: 0x88 */
5623 __IO uint32_t ARM_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x8C */
5624 __IO uint32_t ARM_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x90 */
5625 __IO uint32_t SYS_PLL1_GEN_CTRL; /**< SYS PLL1 General Function Control Register, offset: 0x94 */
5626 __IO uint32_t SYS_PLL1_FDIV_CTL0; /**< SYS PLL1 Divide and Fraction Data Control 0 Register, offset: 0x98 */
5627 __IO uint32_t SYS_PLL1_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x9C */
5628 uint8_t RESERVED_1[96];
5629 __IO uint32_t SYS_PLL1_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x100 */
5630 __IO uint32_t SYS_PLL2_GEN_CTRL; /**< SYS PLL2 General Function Control Register, offset: 0x104 */
5631 __IO uint32_t SYS_PLL2_FDIV_CTL0; /**< SYS PLL2 Divide and Fraction Data Control 0 Register, offset: 0x108 */
5632 __IO uint32_t SYS_PLL2_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x10C */
5633 __IO uint32_t SYS_PLL2_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x110 */
5634 __IO uint32_t SYS_PLL3_GEN_CTRL; /**< SYS PLL3 General Function Control Register, offset: 0x114 */
5635 __IO uint32_t SYS_PLL3_FDIV_CTL0; /**< SYS PLL3 Divide and Fraction Data Control 0 Register, offset: 0x118 */
5636 __IO uint32_t SYS_PLL3_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x11C */
5637 __IO uint32_t SYS_PLL3_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x120 */
5638 __IO uint32_t OSC_MISC_CFG; /**< Osc Misc Configuration Register, offset: 0x124 */
5639 __IO uint32_t ANAMIX_PLL_MNIT_CTL; /**< PLL Clock Output for Test Enable and Select Register, offset: 0x128 */
5640 uint8_t RESERVED_2[1748];
5641 __I uint32_t DIGPROG; /**< DIGPROG Register, offset: 0x800 */
5642} CCM_ANALOG_Type;
5643
5644/* ----------------------------------------------------------------------------
5645 -- CCM_ANALOG Register Masks
5646 ---------------------------------------------------------------------------- */
5647
5648/*!
5649 * @addtogroup CCM_ANALOG_Register_Masks CCM_ANALOG Register Masks
5650 * @{
5651 */
5652
5653/*! @name AUDIO_PLL1_GEN_CTRL - AUDIO PLL1 General Function Control Register */
5654/*! @{ */
5655#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U)
5656#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U)
5657/*! PLL_REF_CLK_SEL
5658 * 0b00..SYS_XTAL
5659 * 0b01..PAD_CLK
5660 * 0b10..Reserved
5661 * 0b11..Reserved
5662 */
5663#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK)
5664#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU)
5665#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U)
5666/*! PAD_CLK_SEL
5667 * 0b00..CLKIN1 XOR CLKIN2
5668 * 0b01..CLKIN2
5669 * 0b10..CLKIN1
5670 * 0b11..Reserved
5671 */
5672#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK)
5673#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_MASK (0x10U)
5674#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT (4U)
5675#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_MASK)
5676#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U)
5677#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U)
5678#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK)
5679#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_MASK (0x200U)
5680#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_SHIFT (9U)
5681#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_MASK)
5682#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U)
5683#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U)
5684#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK)
5685#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_MASK (0x2000U)
5686#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT (13U)
5687#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_MASK)
5688#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U)
5689#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U)
5690#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK)
5691#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_MASK (0x80000000U)
5692#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT (31U)
5693#define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_MASK)
5694/*! @} */
5695
5696/*! @name AUDIO_PLL1_FDIV_CTL0 - AUDIO PLL1 Divide and Fraction Data Control 0 Register */
5697/*! @{ */
5698#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U)
5699#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U)
5700#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK)
5701#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U)
5702#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U)
5703#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK)
5704#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U)
5705#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U)
5706#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK)
5707/*! @} */
5708
5709/*! @name AUDIO_PLL1_FDIV_CTL1 - AUDIO PLL1 Divide and Fraction Data Control 1 Register */
5710/*! @{ */
5711#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU)
5712#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT (0U)
5713#define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_MASK)
5714/*! @} */
5715
5716/*! @name AUDIO_PLL1_SSCG_CTRL - AUDIO PLL1 PLL SSCG Control Register */
5717/*! @{ */
5718#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_MASK (0x3U)
5719#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_SHIFT (0U)
5720/*! SEL_PF
5721 * 0b00..Down spread
5722 * 0b01..Up spread
5723 * 0b1x..Center spread
5724 */
5725#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_MASK)
5726#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U)
5727#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U)
5728#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK)
5729#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U)
5730#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U)
5731#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK)
5732#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_MASK (0x80000000U)
5733#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT (31U)
5734#define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_MASK)
5735/*! @} */
5736
5737/*! @name AUDIO_PLL1_MNIT_CTRL - AUDIO PLL1 PLL Monitoring Control Register */
5738/*! @{ */
5739#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_MASK (0x7U)
5740#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_SHIFT (0U)
5741#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_MASK)
5742#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_MASK (0x8U)
5743#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_SHIFT (3U)
5744#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_MASK)
5745#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_MASK (0x1F0U)
5746#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_SHIFT (4U)
5747#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_MASK)
5748#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_MASK (0x4000U)
5749#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_SHIFT (14U)
5750#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_MASK)
5751#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_MASK (0x8000U)
5752#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_SHIFT (15U)
5753/*! FSEL
5754 * 0b0..FEED_OUT = FREF
5755 * 0b1..FEED_OUT = FEED
5756 */
5757#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_MASK)
5758#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK (0x20000U)
5759#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT (17U)
5760/*! AFCINIT_SEL
5761 * 0b0..nominal delay
5762 * 0b1..nominal delay * 2
5763 */
5764#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK)
5765#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x40000U)
5766#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (18U)
5767#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK)
5768#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK (0x80000U)
5769#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT (19U)
5770/*! PBIAS_CTRL
5771 * 0b0..0.50*VDD
5772 * 0b1..0.67*VDD
5773 */
5774#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK)
5775#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_MASK (0x100000U)
5776#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT (20U)
5777#define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_MASK)
5778/*! @} */
5779
5780/*! @name AUDIO_PLL2_GEN_CTRL - AUDIO PLL2 General Function Control Register */
5781/*! @{ */
5782#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U)
5783#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U)
5784/*! PLL_REF_CLK_SEL
5785 * 0b00..SYS_XTAL
5786 * 0b01..PAD_CLK
5787 * 0b10..Reserved
5788 * 0b11..Reserved
5789 */
5790#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK)
5791#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU)
5792#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U)
5793/*! PAD_CLK_SEL
5794 * 0b00..CLKIN1 XOR CLKIN2
5795 * 0b01..CLKIN2
5796 * 0b10..CLKIN1
5797 * 0b11..Reserved
5798 */
5799#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK)
5800#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_MASK (0x10U)
5801#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT (4U)
5802#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_MASK)
5803#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U)
5804#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U)
5805#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK)
5806#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_MASK (0x200U)
5807#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_SHIFT (9U)
5808#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_MASK)
5809#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U)
5810#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U)
5811#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK)
5812#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_MASK (0x2000U)
5813#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_SHIFT (13U)
5814#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_MASK)
5815#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U)
5816#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U)
5817#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK)
5818#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_MASK (0x80000000U)
5819#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_SHIFT (31U)
5820#define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_MASK)
5821/*! @} */
5822
5823/*! @name AUDIO_PLL2_FDIV_CTL0 - AUDIO PLL2 Divide and Fraction Data Control 0 Register */
5824/*! @{ */
5825#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U)
5826#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U)
5827#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK)
5828#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U)
5829#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U)
5830#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK)
5831#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U)
5832#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U)
5833#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK)
5834/*! @} */
5835
5836/*! @name AUDIO_PLL2_FDIV_CTL1 - AUDIO PLL2 Divide and Fraction Data Control 1 Register */
5837/*! @{ */
5838#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU)
5839#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_SHIFT (0U)
5840#define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_MASK)
5841/*! @} */
5842
5843/*! @name AUDIO_PLL2_SSCG_CTRL - AUDIO PLL2 PLL SSCG Control Register */
5844/*! @{ */
5845#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_MASK (0x3U)
5846#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_SHIFT (0U)
5847/*! SEL_PF
5848 * 0b00..Down spread
5849 * 0b01..Up spread
5850 * 0b1x..Center spread
5851 */
5852#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_MASK)
5853#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U)
5854#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U)
5855#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_MASK)
5856#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U)
5857#define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U)