aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/MIMX8MQ6_cm4.h47688
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/MIMX8MQ6_cm4_features.h388
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/all_lib_device_MIMX8MQ6.cmake61
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/arm/MIMX8MQx_QSPI_8M_SEC.FLM0
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/device_CMSIS.cmake15
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/device_startup.cmake15
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/device_system.cmake16
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/drivers/driver_clock.cmake16
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/drivers/driver_reset.cmake14
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/drivers/fsl_clock.c967
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/drivers/fsl_clock.h1349
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/drivers/fsl_iomuxc.h606
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/fsl_device_registers.h38
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/gcc/MIMX8MQ6xxxHZ_cm4_ddr_ram.ld226
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/gcc/MIMX8MQ6xxxHZ_cm4_ram.ld225
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/gcc/MIMX8MQ6xxxJZ_cm4_ddr_ram.ld226
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/gcc/MIMX8MQ6xxxJZ_cm4_ram.ld225
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/gcc/startup_MIMX8MQ6_cm4.S754
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/mcuxpresso/startup_MIMX8MQ6_cm4.c822
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/mcuxpresso/startup_MIMX8MQ6_cm4.cpp821
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.c179
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h46
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/clock_config.c145
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/clock_config.h27
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/peripherals.c23
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/peripherals.h23
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/pin_mux.c57
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/pin_mux.h54
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/system_MIMX8MQ6_cm4.c269
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/system_MIMX8MQ6_cm4.h119
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/template/RTE_Device.h48
31 files changed, 55462 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/MIMX8MQ6_cm4.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/MIMX8MQ6_cm4.h
new file mode 100644
index 000000000..c580eaec6
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/MIMX8MQ6_cm4.h
@@ -0,0 +1,47688 @@
1/*
2** ###################################################################
3** Processors: MIMX8MQ6CVAHZ
4** MIMX8MQ6DVAJZ
5**
6** Compilers: Keil ARM C/C++ Compiler
7** GNU C Compiler
8** IAR ANSI C/C++ Compiler for ARM
9**
10** Reference manual: IMX8MDQLQRM, Rev. 0, Jan. 2018
11** Version: rev. 4.0, 2018-01-26
12** Build: b180903
13**
14** Abstract:
15** CMSIS Peripheral Access Layer for MIMX8MQ6_cm4
16**
17** Copyright 1997-2016 Freescale Semiconductor, Inc.
18** Copyright 2016-2018 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 (2017-01-10)
28** Initial version.
29** - rev. 2.0 (2017-04-27)
30** Rev.B Header EAR1
31** - rev. 3.0 (2017-07-19)
32** Rev.C Header EAR2
33** - rev. 4.0 (2018-01-26)
34** Rev.D Header RFP
35**
36** ###################################################################
37*/
38
39/*!
40 * @file MIMX8MQ6_cm4.h
41 * @version 4.0
42 * @date 2018-01-26
43 * @brief CMSIS Peripheral Access Layer for MIMX8MQ6_cm4
44 *
45 * CMSIS Peripheral Access Layer for MIMX8MQ6_cm4
46 */
47
48#ifndef _MIMX8MQ6_CM4_H_
49#define _MIMX8MQ6_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 SDMA interrupts (events) from all the channels */
89 GPU_IRQn = 3, /**< GPU Interrupt */
90 SNVS_IRQn = 4, /**< ON-OFF button press shorter than 5 seconds (pulse event) */
91 LCDIF_IRQn = 5, /**< LCDIF Sync Interrupt */
92 SPDIF1_IRQn = 6, /**< SPDIF1 Interrupt */
93 H264_IRQn = 7, /**< h264 Decoder Interrupt */
94 VPUDMA_IRQn = 8, /**< VPU DMA 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 SPDIF2_IRQn = 13, /**< SPDIF2 Interrupt */
100 BCH_IRQn = 14, /**< BCH operation complete interrupt */
101 GPMI_IRQn = 15, /**< GPMI operation TIMEOUT ERROR interrupt */
102 HDMI_IRQ0_IRQn = 16, /**< HDMI Interrupt 0 */
103 HDMI_IRQ1_IRQn = 17, /**< HDMI Interrupt 1 */
104 HDMI_IRQ2_IRQn = 18, /**< HDMI Interrupt 2 */
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 DDC_IRQn = 24, /**< DC8000 Display Controller IRQ */
111 DTRC_IRQn = 25, /**< DTRC 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 VP9_IRQn = 30, /**< VP9 Decoder 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 MIPI_DSI_IRQn = 34, /**< DSI Interrupt */
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 CSI1_IRQn = 42, /**< CSI1 interrupt */
129 CSI2_IRQn = 43, /**< CSI2 interrupt */
130 MIPI_CSI1_IRQn = 44, /**< MIPI-CSI-1 Interrupt */
131 MIPI_CSI2_IRQn = 45, /**< MIPI-CSI-2 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, /**< ISO7816IP Interrupt 0 */
134 SCTR_IRQ1_IRQn = 48, /**< ISO7816IP Interrupt 1 */
135 TEMPMON_IRQn = 49, /**< TempSensor (Temperature 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 PCIE_CTRL2_IRQ0_IRQn = 74, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
161 PCIE_CTRL2_IRQ1_IRQn = 75, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
162 PCIE_CTRL2_IRQ2_IRQn = 76, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
163 PCIE_CTRL2_IRQ3_IRQn = 77, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */
164 WDOG1_IRQn = 78, /**< Watchdog Timer reset */
165 WDOG2_IRQn = 79, /**< Watchdog Timer reset */
166 PCIE_CTRL2_IRQn = 80, /**< Channels [63:32] interrupts requests */
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 I2S4_IRQn = 100, /**< SAI4 Receive / Transmit 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 SDMA interrupts (events) from all the channels */
190 Reserved120_IRQn = 104, /**< Reserved */
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 Reserved125_IRQn = 109, /**< Reserved */
196 Reserved126_IRQn = 110, /**< Reserved */
197 Reserved127_IRQn = 111, /**< Reserved */
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 HEVC_IRQn = 117, /**< HEVC 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_MIMX8MQ6_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_RXD0_SELECT_INPUT = 6U, /**< IOMUXC select input index */
596 kIOMUXC_SAI5_RXD1_SELECT_INPUT = 7U, /**< IOMUXC select input index */
597 kIOMUXC_SAI5_RXD2_SELECT_INPUT = 8U, /**< IOMUXC select input index */
598 kIOMUXC_SAI5_RXD3_SELECT_INPUT = 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_RXD0_SELECT_INPUT = 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_PCIE2_CLKREQ_B_SELECT_INPUT = 27U, /**< IOMUXC select input index */
617 kIOMUXC_SAI5_MCLK_SELECT_INPUT = 28U, /**< IOMUXC select input index */
618 kIOMUXC_SAI6_MCLK_SELECT_INPUT = 29U, /**< IOMUXC select input index */
619} iomuxc_select_input_t;
620
621/*!
622 * @addtogroup rdc_mapping
623 * @{
624 */
625
626/*******************************************************************************
627 * Definitions
628 ******************************************************************************/
629
630/*!
631 * @brief Structure for the RDC mapping
632 *
633 * Defines the structure for the RDC resource collections.
634 */
635
636typedef enum _rdc_master
637{
638 kRDC_Master_A53 = 0U, /**< ARM Cortex-A53 RDC Master */
639 kRDC_Master_M4 = 1U, /**< ARM Cortex-M4 RDC Master */
640 kRDC_Master_PCIE1 = 2U, /**< PCIE1 RDC Master */
641 kRDC_Master_PCIE2 = 3U, /**< PCIE2 RDC Master */
642 kRDC_Master_VPU = 4U, /**< VPU RDC Master */
643 kRDC_Master_LCDIF = 5U, /**< LCDIF RDC Master */
644 kRDC_Master_CSI1 = 6U, /**< CSI1 PORT RDC Master */
645 kRDC_Master_CSI2 = 7U, /**< CSI2 RDC Master */
646 kRDC_Master_Coresight = 8U, /**< CORESIGHT RDC Master */
647 kRDC_Master_DAP = 9U, /**< DAP RDC Master */
648 kRDC_Master_CAAM = 10U, /**< CAAM RDC Master */
649 kRDC_Master_SDMA1_PERIPH = 11U, /**< SDMA1 PERIPHERAL RDC Master */
650 kRDC_Master_SDMA1_BURST = 12U, /**< SDMA1 BURST RDC Master */
651 kRDC_Master_APBHDMA = 13U, /**< APBH DMA RDC Master */
652 kRDC_Master_RAWNAND = 14U, /**< RAW NAND RDC Master */
653 kRDC_Master_USDHC1 = 15U, /**< USDHC1 RDC Master */
654 kRDC_Master_USDHC2 = 16U, /**< USDHC2 RDC Master */
655 kRDC_Master_DP = 17U, /**< DP RDC Master */
656 kRDC_Master_GPU = 18U, /**< GPU RDC Master */
657 kRDC_Master_USB1 = 19U, /**< USB1 RDC Master */
658 kRDC_Master_USB2 = 20U, /**< USB2 RDC Master */
659 kRDC_Master_TESTPORT = 21U, /**< TESTPORT RDC Master */
660 kRDC_Master_ENET1TX = 22U, /**< ENET1 TX RDC Master */
661 kRDC_Master_ENET1RX = 23U, /**< ENET1 RX RDC Master */
662 kRDC_Master_SDMA2_PERIPH = 24U, /**< SDMA2 PERIPH RDC Master */
663 kRDC_Master_SDMA2_BURST = 24U, /**< SDMA2 BURST RDC Master */
664 kRDC_Master_SDMA2_SPDA2 = 24U, /**< SDMA2 to SPDA2 RDC Master */
665 kRDC_Master_SDMA1_SPBA1 = 26U, /**< SDMA1 to SPBA1 RDC Master */
666} rdc_master_t;
667
668typedef enum _rdc_mem
669{
670 kRDC_Mem_MRC0_0 = 0U, /**< MMDC/DRAM. Region resolution 4KB. */
671 kRDC_Mem_MRC0_1 = 1U,
672 kRDC_Mem_MRC0_2 = 2U,
673 kRDC_Mem_MRC0_3 = 3U,
674 kRDC_Mem_MRC0_4 = 4U,
675 kRDC_Mem_MRC0_5 = 5U,
676 kRDC_Mem_MRC0_6 = 6U,
677 kRDC_Mem_MRC0_7 = 7U,
678 kRDC_Mem_MRC1_0 = 8U, /**< PCIE2. Region resolution 4KB. */
679 kRDC_Mem_MRC1_1 = 9U,
680 kRDC_Mem_MRC1_2 = 10U,
681 kRDC_Mem_MRC1_3 = 11U,
682 kRDC_Mem_MRC2_0 = 12U, /**< QSPI. Region resolution 4KB. */
683 kRDC_Mem_MRC2_1 = 13U,
684 kRDC_Mem_MRC2_2 = 14U,
685 kRDC_Mem_MRC2_3 = 15U,
686 kRDC_Mem_MRC2_4 = 16U,
687 kRDC_Mem_MRC2_5 = 17U,
688 kRDC_Mem_MRC2_6 = 18U,
689 kRDC_Mem_MRC2_7 = 19U,
690 kRDC_Mem_MRC3_0 = 20U, /**< PCIE1. Region resolution 4KB. */
691 kRDC_Mem_MRC3_1 = 21U,
692 kRDC_Mem_MRC3_2 = 22U,
693 kRDC_Mem_MRC3_3 = 23U,
694 kRDC_Mem_MRC4_0 = 24U, /**< OCRAM. Region resolution 128B. */
695 kRDC_Mem_MRC4_1 = 25U,
696 kRDC_Mem_MRC4_2 = 26U,
697 kRDC_Mem_MRC4_3 = 27U,
698 kRDC_Mem_MRC4_4 = 28U,
699 kRDC_Mem_MRC5_0 = 29U, /**< OCRAM_S. Region resolution 128B. */
700 kRDC_Mem_MRC5_1 = 30U,
701 kRDC_Mem_MRC5_2 = 31U,
702 kRDC_Mem_MRC5_3 = 32U,
703 kRDC_Mem_MRC5_4 = 33U,
704 kRDC_Mem_MRC6_0 = 34U, /**< TCM. Region resolution 128B. */
705 kRDC_Mem_MRC6_1 = 35U,
706 kRDC_Mem_MRC6_2 = 36U,
707 kRDC_Mem_MRC6_3 = 37U,
708 kRDC_Mem_MRC6_4 = 38U,
709 kRDC_Mem_MRC7_0 = 39U, /**< GIC. Region resolution 4KB. */
710 kRDC_Mem_MRC7_1 = 40U,
711 kRDC_Mem_MRC7_2 = 41U,
712 kRDC_Mem_MRC7_3 = 42U,
713 kRDC_Mem_MRC8_0 = 43U, /**< USBMIX. Region resolution 4KB. */
714 kRDC_Mem_MRC8_1 = 44U,
715 kRDC_Mem_MRC8_2 = 45U,
716 kRDC_Mem_MRC8_3 = 46U,
717 kRDC_Mem_MRC9_0 = 47U, /**< GPU. Region resolution 4KB. */
718 kRDC_Mem_MRC9_1 = 48U,
719 kRDC_Mem_MRC9_2 = 49U,
720 kRDC_Mem_MRC9_3 = 50U,
721 kRDC_Mem_MRC10_0 = 51U, /**< VPU(Decoder). Region resolution 4KB. */
722 kRDC_Mem_MRC10_1 = 52U,
723 kRDC_Mem_MRC10_2 = 53U,
724 kRDC_Mem_MRC10_3 = 54U,
725 kRDC_Mem_MRC11_0 = 55U, /**< DEBUG(DAP). Region resolution 4KB. */
726 kRDC_Mem_MRC11_1 = 56U,
727 kRDC_Mem_MRC11_2 = 57U,
728 kRDC_Mem_MRC11_3 = 58U,
729 kRDC_Mem_MRC12_0 = 59U, /**< DDRC(REG). Region resolution 4KB. */
730 kRDC_Mem_MRC12_1 = 60U,
731 kRDC_Mem_MRC12_2 = 61U,
732 kRDC_Mem_MRC12_3 = 62U,
733 kRDC_Mem_MRC12_4 = 63U,
734} rdc_mem_t;
735
736typedef enum _rdc_periph
737{
738 kRDC_Periph_GPIO1 = 0U, /**< GPIO1 RDC Peripheral */
739 kRDC_Periph_GPIO2 = 1U, /**< GPIO2 RDC Peripheral */
740 kRDC_Periph_GPIO3 = 2U, /**< GPIO3 RDC Peripheral */
741 kRDC_Periph_GPIO4 = 3U, /**< GPIO4 RDC Peripheral */
742 kRDC_Periph_GPIO5 = 4U, /**< GPIO5 RDC Peripheral */
743 kRDC_Periph_ANA_TSENSOR = 6U, /**< ANA_TSENSOR RDC Peripheral */
744 kRDC_Periph_ANA_OSC = 7U, /**< ANA_OSC RDC Peripheral */
745 kRDC_Periph_WDOG1 = 8U, /**< WDOG1 RDC Peripheral */
746 kRDC_Periph_WDOG2 = 9U, /**< WDOG2 RDC Peripheral */
747 kRDC_Periph_WDOG3 = 10U, /**< WDOG3 RDC Peripheral */
748 kRDC_Periph_SDMA2 = 12U, /**< SDMA2 RDC Peripheral */
749 kRDC_Periph_GPT1 = 13U, /**< GPT1 RDC Peripheral */
750 kRDC_Periph_GPT2 = 14U, /**< GPT2 RDC Peripheral */
751 kRDC_Periph_GPT3 = 15U, /**< GPT3 RDC Peripheral */
752 kRDC_Periph_ROMCP = 17U, /**< ROMCP RDC Peripheral */
753 kRDC_Periph_LCDIF = 18U, /**< LCDIF RDC Peripheral */
754 kRDC_Periph_IOMUXC = 19U, /**< IOMUXC RDC Peripheral */
755 kRDC_Periph_IOMUXC_GPR = 20U, /**< IOMUXC_GPR RDC Peripheral */
756 kRDC_Periph_OCOTP_CTRL = 21U, /**< OCOTP_CTRL RDC Peripheral */
757 kRDC_Periph_ANA_PLL = 22U, /**< ANA_PLL RDC Peripheral */
758 kRDC_Periph_SNVS_HP = 23U, /**< SNVS_HP GPR RDC Peripheral */
759 kRDC_Periph_CCM = 24U, /**< CCM RDC Peripheral */
760 kRDC_Periph_SRC = 25U, /**< SRC RDC Peripheral */
761 kRDC_Periph_GPC = 26U, /**< GPC RDC Peripheral */
762 kRDC_Periph_SEMAPHORE1 = 27U, /**< SEMAPHORE1 RDC Peripheral */
763 kRDC_Periph_SEMAPHORE2 = 28U, /**< SEMAPHORE2 RDC Peripheral */
764 kRDC_Periph_RDC = 29U, /**< RDC RDC Peripheral */
765 kRDC_Periph_CSU = 30U, /**< CSU RDC Peripheral */
766 kRDC_Periph_DC_MST0 = 32U, /**< DC_MST0 RDC Peripheral */
767 kRDC_Periph_DC_MST1 = 33U, /**< DC_MST1 RDC Peripheral */
768 kRDC_Periph_DC_MST2 = 34U, /**< DC_MST2 RDC Peripheral */
769 kRDC_Periph_DC_MST3 = 35U, /**< DC_MST3 RDC Peripheral */
770 kRDC_Periph_HDMI_SEC = 36U, /**< HDMI_SEC RDC Peripheral */
771 kRDC_Periph_PWM1 = 38U, /**< PWM1 RDC Peripheral */
772 kRDC_Periph_PWM2 = 39U, /**< PWM2 RDC Peripheral */
773 kRDC_Periph_PWM3 = 40U, /**< PWM3 RDC Peripheral */
774 kRDC_Periph_PWM4 = 41U, /**< PWM4 RDC Peripheral */
775 kRDC_Periph_SYS_COUNTER_RD = 42U, /**< System counter read RDC Peripheral */
776 kRDC_Periph_SYS_COUNTER_CMP = 43U, /**< System counter compare RDC Peripheral */
777 kRDC_Periph_SYS_COUNTER_CTRL = 44U, /**< System counter control RDC Peripheral */
778 kRDC_Periph_HDMI_CTRL = 45U, /**< HDMI_CTRL RDC Peripheral */
779 kRDC_Periph_GPT6 = 46U, /**< GPT6 RDC Peripheral */
780 kRDC_Periph_GPT5 = 47U, /**< GPT5 RDC Peripheral */
781 kRDC_Periph_GPT4 = 48U, /**< GPT4 RDC Peripheral */
782 kRDC_Periph_TZASC = 56U, /**< TZASC RDC Peripheral */
783 kRDC_Periph_MTR = 59U, /**< MTR RDC Peripheral */
784 kRDC_Periph_PERFMON1 = 60U, /**< PERFMON1 RDC Peripheral */
785 kRDC_Periph_PERFMON2 = 61U, /**< PERFMON2 RDC Peripheral */
786 kRDC_Periph_PLATFORM_CTRL = 62U, /**< PLATFORM_CTRL RDC Peripheral */
787 kRDC_Periph_QOSC = 63U, /**< QOSC RDC Peripheral */
788 kRDC_Periph_MIPI_PHY = 64U, /**< MIPI_PHY RDC Peripheral */
789 kRDC_Periph_MIPI_DSI = 65U, /**< MIPI_DSI RDC Peripheral */
790 kRDC_Periph_I2C1 = 66U, /**< I2C1 RDC Peripheral */
791 kRDC_Periph_I2C2 = 67U, /**< I2C2 RDC Peripheral */
792 kRDC_Periph_I2C3 = 68U, /**< I2C3 RDC Peripheral */
793 kRDC_Periph_I2C4 = 69U, /**< I2C4 RDC Peripheral */
794 kRDC_Periph_UART4 = 70U, /**< UART4 RDC Peripheral */
795 kRDC_Periph_MIPI_CSI1 = 71U, /**< MIPI_CSI1 RDC Peripheral */
796 kRDC_Periph_MIPI_CSI_PHY1 = 72U, /**< MIPI_CSI_PHY1 RDC Peripheral */
797 kRDC_Periph_CSI1 = 73U, /**< CSI1 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_SAI6 = 80U, /**< SAI6 RDC Peripheral */
803 kRDC_Periph_SAI5 = 81U, /**< SAI5 RDC Peripheral */
804 kRDC_Periph_SAI4 = 82U, /**< SAI4 RDC Peripheral */
805 kRDC_Periph_USDHC1 = 84U, /**< USDHC1 RDC Peripheral */
806 kRDC_Periph_USDHC2 = 85U, /**< USDHC2 RDC Peripheral */
807 kRDC_Periph_MIPI_CSI2 = 86U, /**< MIPI_CSI2 RDC Peripheral */
808 kRDC_Periph_MIPI_CSI_PHY2 = 87U, /**< MIPI_CSI_PHY2 RDC Peripheral */
809 kRDC_Periph_CSI2 = 88U, /**< CSI2 RDC Peripheral */
810 kRDC_Periph_SPBA2 = 90U, /**< SPBA2 RDC Peripheral */
811 kRDC_Periph_QSPI = 91U, /**< QSPI RDC Peripheral */
812 kRDC_Periph_SDMA1 = 93U, /**< SDMA1 RDC Peripheral */
813 kRDC_Periph_ENET1 = 94U, /**< ENET1 RDC Peripheral */
814 kRDC_Periph_SPDIF1 = 97U, /**< SPDIF1 RDC Peripheral */
815 kRDC_Periph_ECSPI1 = 98U, /**< ECSPI1 RDC Peripheral */
816 kRDC_Periph_ECSPI2 = 99U, /**< ECSPI2 RDC Peripheral */
817 kRDC_Periph_ECSPI3 = 100U, /**< ECSPI3 RDC Peripheral */
818 kRDC_Periph_UART1 = 102U, /**< UART1 RDC Peripheral */
819 kRDC_Periph_UART3 = 104U, /**< UART3 RDC Peripheral */
820 kRDC_Periph_UART2 = 105U, /**< UART2 RDC Peripheral */
821 kRDC_Periph_SPDIF2 = 106U, /**< SPDIF2 RDC Peripheral */
822 kRDC_Periph_SAI2 = 107U, /**< SAI2 RDC Peripheral */
823 kRDC_Periph_SAI3 = 108U, /**< SAI3 RDC Peripheral */
824 kRDC_Periph_SPBA1 = 111U, /**< SPBA1 RDC Peripheral */
825 kRDC_Periph_CAAM = 114U, /**< CAAM RDC Peripheral */
826} rdc_periph_t;
827
828/* @} */
829
830
831/*!
832 * @}
833 */ /* end of group Mapping_Information */
834
835
836/* ----------------------------------------------------------------------------
837 -- Device Peripheral Access Layer
838 ---------------------------------------------------------------------------- */
839
840/*!
841 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer
842 * @{
843 */
844
845
846/*
847** Start of section using anonymous unions
848*/
849
850#if defined(__ARMCC_VERSION)
851 #if (__ARMCC_VERSION >= 6010050)
852 #pragma clang diagnostic push
853 #else
854 #pragma push
855 #pragma anon_unions
856 #endif
857#elif defined(__GNUC__)
858 /* anonymous unions are enabled by default */
859#elif defined(__IAR_SYSTEMS_ICC__)
860 #pragma language=extended
861#else
862 #error Not supported compiler type
863#endif
864
865/* ----------------------------------------------------------------------------
866 -- AIPSTZ Peripheral Access Layer
867 ---------------------------------------------------------------------------- */
868
869/*!
870 * @addtogroup AIPSTZ_Peripheral_Access_Layer AIPSTZ Peripheral Access Layer
871 * @{
872 */
873
874/** AIPSTZ - Register Layout Typedef */
875typedef struct {
876 __IO uint32_t MPR; /**< MPR, offset: 0x0 */
877 uint8_t RESERVED_0[60];
878 __IO uint32_t OPACR; /**< OPACR, offset: 0x40 */
879 __IO uint32_t OPACR1; /**< OPACR1, offset: 0x44 */
880 __IO uint32_t OPACR2; /**< OPACR2, offset: 0x48 */
881 __IO uint32_t OPACR3; /**< OPACR3, offset: 0x4C */
882 __IO uint32_t OPACR4; /**< OPACR4, offset: 0x50 */
883} AIPSTZ_Type;
884
885/* ----------------------------------------------------------------------------
886 -- AIPSTZ Register Masks
887 ---------------------------------------------------------------------------- */
888
889/*!
890 * @addtogroup AIPSTZ_Register_Masks AIPSTZ Register Masks
891 * @{
892 */
893
894/*! @name MPR - MPR */
895/*! @{ */
896#define AIPSTZ_MPR_MPROT5_MASK (0xF00U)
897#define AIPSTZ_MPR_MPROT5_SHIFT (8U)
898#define AIPSTZ_MPR_MPROT5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT5_SHIFT)) & AIPSTZ_MPR_MPROT5_MASK)
899#define AIPSTZ_MPR_MPROT3_MASK (0xF0000U)
900#define AIPSTZ_MPR_MPROT3_SHIFT (16U)
901#define AIPSTZ_MPR_MPROT3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT3_SHIFT)) & AIPSTZ_MPR_MPROT3_MASK)
902#define AIPSTZ_MPR_MPROT2_MASK (0xF00000U)
903#define AIPSTZ_MPR_MPROT2_SHIFT (20U)
904#define AIPSTZ_MPR_MPROT2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT2_SHIFT)) & AIPSTZ_MPR_MPROT2_MASK)
905#define AIPSTZ_MPR_MPROT1_MASK (0xF000000U)
906#define AIPSTZ_MPR_MPROT1_SHIFT (24U)
907#define AIPSTZ_MPR_MPROT1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT1_SHIFT)) & AIPSTZ_MPR_MPROT1_MASK)
908#define AIPSTZ_MPR_MPROT0_MASK (0xF0000000U)
909#define AIPSTZ_MPR_MPROT0_SHIFT (28U)
910#define AIPSTZ_MPR_MPROT0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT0_SHIFT)) & AIPSTZ_MPR_MPROT0_MASK)
911/*! @} */
912
913/*! @name OPACR - OPACR */
914/*! @{ */
915#define AIPSTZ_OPACR_OPAC7_MASK (0xFU)
916#define AIPSTZ_OPACR_OPAC7_SHIFT (0U)
917#define AIPSTZ_OPACR_OPAC7(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC7_SHIFT)) & AIPSTZ_OPACR_OPAC7_MASK)
918#define AIPSTZ_OPACR_OPAC6_MASK (0xF0U)
919#define AIPSTZ_OPACR_OPAC6_SHIFT (4U)
920#define AIPSTZ_OPACR_OPAC6(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC6_SHIFT)) & AIPSTZ_OPACR_OPAC6_MASK)
921#define AIPSTZ_OPACR_OPAC5_MASK (0xF00U)
922#define AIPSTZ_OPACR_OPAC5_SHIFT (8U)
923#define AIPSTZ_OPACR_OPAC5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC5_SHIFT)) & AIPSTZ_OPACR_OPAC5_MASK)
924#define AIPSTZ_OPACR_OPAC4_MASK (0xF000U)
925#define AIPSTZ_OPACR_OPAC4_SHIFT (12U)
926#define AIPSTZ_OPACR_OPAC4(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC4_SHIFT)) & AIPSTZ_OPACR_OPAC4_MASK)
927#define AIPSTZ_OPACR_OPAC3_MASK (0xF0000U)
928#define AIPSTZ_OPACR_OPAC3_SHIFT (16U)
929#define AIPSTZ_OPACR_OPAC3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC3_SHIFT)) & AIPSTZ_OPACR_OPAC3_MASK)
930#define AIPSTZ_OPACR_OPAC2_MASK (0xF00000U)
931#define AIPSTZ_OPACR_OPAC2_SHIFT (20U)
932#define AIPSTZ_OPACR_OPAC2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC2_SHIFT)) & AIPSTZ_OPACR_OPAC2_MASK)
933#define AIPSTZ_OPACR_OPAC1_MASK (0xF000000U)
934#define AIPSTZ_OPACR_OPAC1_SHIFT (24U)
935#define AIPSTZ_OPACR_OPAC1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC1_SHIFT)) & AIPSTZ_OPACR_OPAC1_MASK)
936#define AIPSTZ_OPACR_OPAC0_MASK (0xF0000000U)
937#define AIPSTZ_OPACR_OPAC0_SHIFT (28U)
938#define AIPSTZ_OPACR_OPAC0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC0_SHIFT)) & AIPSTZ_OPACR_OPAC0_MASK)
939/*! @} */
940
941/*! @name OPACR1 - OPACR1 */
942/*! @{ */
943#define AIPSTZ_OPACR1_OPAC15_MASK (0xFU)
944#define AIPSTZ_OPACR1_OPAC15_SHIFT (0U)
945#define AIPSTZ_OPACR1_OPAC15(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC15_SHIFT)) & AIPSTZ_OPACR1_OPAC15_MASK)
946#define AIPSTZ_OPACR1_OPAC14_MASK (0xF0U)
947#define AIPSTZ_OPACR1_OPAC14_SHIFT (4U)
948#define AIPSTZ_OPACR1_OPAC14(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC14_SHIFT)) & AIPSTZ_OPACR1_OPAC14_MASK)
949#define AIPSTZ_OPACR1_OPAC13_MASK (0xF00U)
950#define AIPSTZ_OPACR1_OPAC13_SHIFT (8U)
951#define AIPSTZ_OPACR1_OPAC13(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC13_SHIFT)) & AIPSTZ_OPACR1_OPAC13_MASK)
952#define AIPSTZ_OPACR1_OPAC12_MASK (0xF000U)
953#define AIPSTZ_OPACR1_OPAC12_SHIFT (12U)
954#define AIPSTZ_OPACR1_OPAC12(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC12_SHIFT)) & AIPSTZ_OPACR1_OPAC12_MASK)
955#define AIPSTZ_OPACR1_OPAC11_MASK (0xF0000U)
956#define AIPSTZ_OPACR1_OPAC11_SHIFT (16U)
957#define AIPSTZ_OPACR1_OPAC11(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC11_SHIFT)) & AIPSTZ_OPACR1_OPAC11_MASK)
958#define AIPSTZ_OPACR1_OPAC10_MASK (0xF00000U)
959#define AIPSTZ_OPACR1_OPAC10_SHIFT (20U)
960#define AIPSTZ_OPACR1_OPAC10(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC10_SHIFT)) & AIPSTZ_OPACR1_OPAC10_MASK)
961#define AIPSTZ_OPACR1_OPAC9_MASK (0xF000000U)
962#define AIPSTZ_OPACR1_OPAC9_SHIFT (24U)
963#define AIPSTZ_OPACR1_OPAC9(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC9_SHIFT)) & AIPSTZ_OPACR1_OPAC9_MASK)
964#define AIPSTZ_OPACR1_OPAC8_MASK (0xF0000000U)
965#define AIPSTZ_OPACR1_OPAC8_SHIFT (28U)
966#define AIPSTZ_OPACR1_OPAC8(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC8_SHIFT)) & AIPSTZ_OPACR1_OPAC8_MASK)
967/*! @} */
968
969/*! @name OPACR2 - OPACR2 */
970/*! @{ */
971#define AIPSTZ_OPACR2_OPAC23_MASK (0xFU)
972#define AIPSTZ_OPACR2_OPAC23_SHIFT (0U)
973#define AIPSTZ_OPACR2_OPAC23(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC23_SHIFT)) & AIPSTZ_OPACR2_OPAC23_MASK)
974#define AIPSTZ_OPACR2_OPAC22_MASK (0xF0U)
975#define AIPSTZ_OPACR2_OPAC22_SHIFT (4U)
976#define AIPSTZ_OPACR2_OPAC22(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC22_SHIFT)) & AIPSTZ_OPACR2_OPAC22_MASK)
977#define AIPSTZ_OPACR2_OPAC21_MASK (0xF00U)
978#define AIPSTZ_OPACR2_OPAC21_SHIFT (8U)
979#define AIPSTZ_OPACR2_OPAC21(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC21_SHIFT)) & AIPSTZ_OPACR2_OPAC21_MASK)
980#define AIPSTZ_OPACR2_OPAC20_MASK (0xF000U)
981#define AIPSTZ_OPACR2_OPAC20_SHIFT (12U)
982#define AIPSTZ_OPACR2_OPAC20(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC20_SHIFT)) & AIPSTZ_OPACR2_OPAC20_MASK)
983#define AIPSTZ_OPACR2_OPAC19_MASK (0xF0000U)
984#define AIPSTZ_OPACR2_OPAC19_SHIFT (16U)
985#define AIPSTZ_OPACR2_OPAC19(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC19_SHIFT)) & AIPSTZ_OPACR2_OPAC19_MASK)
986#define AIPSTZ_OPACR2_OPAC18_MASK (0xF00000U)
987#define AIPSTZ_OPACR2_OPAC18_SHIFT (20U)
988#define AIPSTZ_OPACR2_OPAC18(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC18_SHIFT)) & AIPSTZ_OPACR2_OPAC18_MASK)
989#define AIPSTZ_OPACR2_OPAC17_MASK (0xF000000U)
990#define AIPSTZ_OPACR2_OPAC17_SHIFT (24U)
991#define AIPSTZ_OPACR2_OPAC17(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC17_SHIFT)) & AIPSTZ_OPACR2_OPAC17_MASK)
992#define AIPSTZ_OPACR2_OPAC16_MASK (0xF0000000U)
993#define AIPSTZ_OPACR2_OPAC16_SHIFT (28U)
994#define AIPSTZ_OPACR2_OPAC16(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC16_SHIFT)) & AIPSTZ_OPACR2_OPAC16_MASK)
995/*! @} */
996
997/*! @name OPACR3 - OPACR3 */
998/*! @{ */
999#define AIPSTZ_OPACR3_OPAC31_MASK (0xFU)
1000#define AIPSTZ_OPACR3_OPAC31_SHIFT (0U)
1001#define AIPSTZ_OPACR3_OPAC31(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC31_SHIFT)) & AIPSTZ_OPACR3_OPAC31_MASK)
1002#define AIPSTZ_OPACR3_OPAC30_MASK (0xF0U)
1003#define AIPSTZ_OPACR3_OPAC30_SHIFT (4U)
1004#define AIPSTZ_OPACR3_OPAC30(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC30_SHIFT)) & AIPSTZ_OPACR3_OPAC30_MASK)
1005#define AIPSTZ_OPACR3_OPAC29_MASK (0xF00U)
1006#define AIPSTZ_OPACR3_OPAC29_SHIFT (8U)
1007#define AIPSTZ_OPACR3_OPAC29(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC29_SHIFT)) & AIPSTZ_OPACR3_OPAC29_MASK)
1008#define AIPSTZ_OPACR3_OPAC28_MASK (0xF000U)
1009#define AIPSTZ_OPACR3_OPAC28_SHIFT (12U)
1010#define AIPSTZ_OPACR3_OPAC28(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC28_SHIFT)) & AIPSTZ_OPACR3_OPAC28_MASK)
1011#define AIPSTZ_OPACR3_OPAC27_MASK (0xF0000U)
1012#define AIPSTZ_OPACR3_OPAC27_SHIFT (16U)
1013#define AIPSTZ_OPACR3_OPAC27(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC27_SHIFT)) & AIPSTZ_OPACR3_OPAC27_MASK)
1014#define AIPSTZ_OPACR3_OPAC26_MASK (0xF00000U)
1015#define AIPSTZ_OPACR3_OPAC26_SHIFT (20U)
1016#define AIPSTZ_OPACR3_OPAC26(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC26_SHIFT)) & AIPSTZ_OPACR3_OPAC26_MASK)
1017#define AIPSTZ_OPACR3_OPAC25_MASK (0xF000000U)
1018#define AIPSTZ_OPACR3_OPAC25_SHIFT (24U)
1019#define AIPSTZ_OPACR3_OPAC25(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC25_SHIFT)) & AIPSTZ_OPACR3_OPAC25_MASK)
1020#define AIPSTZ_OPACR3_OPAC24_MASK (0xF0000000U)
1021#define AIPSTZ_OPACR3_OPAC24_SHIFT (28U)
1022#define AIPSTZ_OPACR3_OPAC24(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC24_SHIFT)) & AIPSTZ_OPACR3_OPAC24_MASK)
1023/*! @} */
1024
1025/*! @name OPACR4 - OPACR4 */
1026/*! @{ */
1027#define AIPSTZ_OPACR4_OPAC33_MASK (0xF000000U)
1028#define AIPSTZ_OPACR4_OPAC33_SHIFT (24U)
1029#define AIPSTZ_OPACR4_OPAC33(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC33_SHIFT)) & AIPSTZ_OPACR4_OPAC33_MASK)
1030#define AIPSTZ_OPACR4_OPAC32_MASK (0xF0000000U)
1031#define AIPSTZ_OPACR4_OPAC32_SHIFT (28U)
1032#define AIPSTZ_OPACR4_OPAC32(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC32_SHIFT)) & AIPSTZ_OPACR4_OPAC32_MASK)
1033/*! @} */
1034
1035
1036/*!
1037 * @}
1038 */ /* end of group AIPSTZ_Register_Masks */
1039
1040
1041/* AIPSTZ - Peripheral instance base addresses */
1042/** Peripheral AIPSTZ1 base address */
1043#define AIPSTZ1_BASE (0x301F0000u)
1044/** Peripheral AIPSTZ1 base pointer */
1045#define AIPSTZ1 ((AIPSTZ_Type *)AIPSTZ1_BASE)
1046/** Peripheral AIPSTZ2 base address */
1047#define AIPSTZ2_BASE (0x305F0000u)
1048/** Peripheral AIPSTZ2 base pointer */
1049#define AIPSTZ2 ((AIPSTZ_Type *)AIPSTZ2_BASE)
1050/** Peripheral AIPSTZ3 base address */
1051#define AIPSTZ3_BASE (0x309F0000u)
1052/** Peripheral AIPSTZ3 base pointer */
1053#define AIPSTZ3 ((AIPSTZ_Type *)AIPSTZ3_BASE)
1054/** Peripheral AIPSTZ4 base address */
1055#define AIPSTZ4_BASE (0x32DF0000u)
1056/** Peripheral AIPSTZ4 base pointer */
1057#define AIPSTZ4 ((AIPSTZ_Type *)AIPSTZ4_BASE)
1058/** Array initializer of AIPSTZ peripheral base addresses */
1059#define AIPSTZ_BASE_ADDRS { 0u, AIPSTZ1_BASE, AIPSTZ2_BASE, AIPSTZ3_BASE, AIPSTZ4_BASE }
1060/** Array initializer of AIPSTZ peripheral base pointers */
1061#define AIPSTZ_BASE_PTRS { (AIPSTZ_Type *)0u, AIPSTZ1, AIPSTZ2, AIPSTZ3, AIPSTZ4 }
1062
1063/*!
1064 * @}
1065 */ /* end of group AIPSTZ_Peripheral_Access_Layer */
1066
1067
1068/* ----------------------------------------------------------------------------
1069 -- APBH Peripheral Access Layer
1070 ---------------------------------------------------------------------------- */
1071
1072/*!
1073 * @addtogroup APBH_Peripheral_Access_Layer APBH Peripheral Access Layer
1074 * @{
1075 */
1076
1077/** APBH - Register Layout Typedef */
1078typedef struct {
1079 __IO uint32_t CTRL0; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x0 */
1080 __IO uint32_t CTRL0_SET; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x4 */
1081 __IO uint32_t CTRL0_CLR; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x8 */
1082 __IO uint32_t CTRL0_TOG; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0xC */
1083 __IO uint32_t CTRL1; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x10 */
1084 __IO uint32_t CTRL1_SET; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x14 */
1085 __IO uint32_t CTRL1_CLR; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x18 */
1086 __IO uint32_t CTRL1_TOG; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x1C */
1087 __IO uint32_t CTRL2; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x20 */
1088 __IO uint32_t CTRL2_SET; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x24 */
1089 __IO uint32_t CTRL2_CLR; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x28 */
1090 __IO uint32_t CTRL2_TOG; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x2C */
1091 __IO uint32_t CHANNEL_CTRL; /**< AHB to APBH Bridge Channel Register, offset: 0x30 */
1092 __IO uint32_t CHANNEL_CTRL_SET; /**< AHB to APBH Bridge Channel Register, offset: 0x34 */
1093 __IO uint32_t CHANNEL_CTRL_CLR; /**< AHB to APBH Bridge Channel Register, offset: 0x38 */
1094 __IO uint32_t CHANNEL_CTRL_TOG; /**< AHB to APBH Bridge Channel Register, offset: 0x3C */
1095 __I uint32_t DEVSEL; /**< AHB to APBH DMA Device Assignment Register, offset: 0x40 */
1096 uint8_t RESERVED_0[12];
1097 __IO uint32_t DMA_BURST_SIZE; /**< AHB to APBH DMA burst size, offset: 0x50 */
1098 uint8_t RESERVED_1[12];
1099 __IO uint32_t DEBUGr; /**< AHB to APBH DMA Debug Register, offset: 0x60 */
1100 uint8_t RESERVED_2[156];
1101 __I uint32_t CH0_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x100 */
1102 uint8_t RESERVED_3[12];
1103 __IO uint32_t CH0_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x110 */
1104 uint8_t RESERVED_4[12];
1105 __I uint32_t CH0_CMD; /**< APBH DMA Channel n Command Register, offset: 0x120 */
1106 uint8_t RESERVED_5[12];
1107 __I uint32_t CH0_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x130 */
1108 uint8_t RESERVED_6[12];
1109 __IO uint32_t CH0_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x140 */
1110 uint8_t RESERVED_7[12];
1111 __I uint32_t CH0_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x150 */
1112 uint8_t RESERVED_8[12];
1113 __I uint32_t CH0_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x160 */
1114 uint8_t RESERVED_9[12];
1115 __I uint32_t CH1_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x170 */
1116 uint8_t RESERVED_10[12];
1117 __IO uint32_t CH1_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x180 */
1118 uint8_t RESERVED_11[12];
1119 __I uint32_t CH1_CMD; /**< APBH DMA Channel n Command Register, offset: 0x190 */
1120 uint8_t RESERVED_12[12];
1121 __I uint32_t CH1_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x1A0 */
1122 uint8_t RESERVED_13[12];
1123 __IO uint32_t CH1_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x1B0 */
1124 uint8_t RESERVED_14[12];
1125 __I uint32_t CH1_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x1C0 */
1126 uint8_t RESERVED_15[12];
1127 __I uint32_t CH1_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x1D0 */
1128 uint8_t RESERVED_16[12];
1129 __I uint32_t CH2_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x1E0 */
1130 uint8_t RESERVED_17[12];
1131 __IO uint32_t CH2_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x1F0 */
1132 uint8_t RESERVED_18[12];
1133 __I uint32_t CH2_CMD; /**< APBH DMA Channel n Command Register, offset: 0x200 */
1134 uint8_t RESERVED_19[12];
1135 __I uint32_t CH2_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x210 */
1136 uint8_t RESERVED_20[12];
1137 __IO uint32_t CH2_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x220 */
1138 uint8_t RESERVED_21[12];
1139 __I uint32_t CH2_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x230 */
1140 uint8_t RESERVED_22[12];
1141 __I uint32_t CH2_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x240 */
1142 uint8_t RESERVED_23[12];
1143 __I uint32_t CH3_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x250 */
1144 uint8_t RESERVED_24[12];
1145 __IO uint32_t CH3_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x260 */
1146 uint8_t RESERVED_25[12];
1147 __I uint32_t CH3_CMD; /**< APBH DMA Channel n Command Register, offset: 0x270 */
1148 uint8_t RESERVED_26[12];
1149 __I uint32_t CH3_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x280 */
1150 uint8_t RESERVED_27[12];
1151 __IO uint32_t CH3_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x290 */
1152 uint8_t RESERVED_28[12];
1153 __I uint32_t CH3_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x2A0 */
1154 uint8_t RESERVED_29[12];
1155 __I uint32_t CH3_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x2B0 */
1156 uint8_t RESERVED_30[12];
1157 __I uint32_t CH4_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x2C0 */
1158 uint8_t RESERVED_31[12];
1159 __IO uint32_t CH4_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x2D0 */
1160 uint8_t RESERVED_32[12];
1161 __I uint32_t CH4_CMD; /**< APBH DMA Channel n Command Register, offset: 0x2E0 */
1162 uint8_t RESERVED_33[12];
1163 __I uint32_t CH4_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x2F0 */
1164 uint8_t RESERVED_34[12];
1165 __IO uint32_t CH4_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x300 */
1166 uint8_t RESERVED_35[12];
1167 __I uint32_t CH4_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x310 */
1168 uint8_t RESERVED_36[12];
1169 __I uint32_t CH4_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x320 */
1170 uint8_t RESERVED_37[12];
1171 __I uint32_t CH5_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x330 */
1172 uint8_t RESERVED_38[12];
1173 __IO uint32_t CH5_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x340 */
1174 uint8_t RESERVED_39[12];
1175 __I uint32_t CH5_CMD; /**< APBH DMA Channel n Command Register, offset: 0x350 */
1176 uint8_t RESERVED_40[12];
1177 __I uint32_t CH5_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x360 */
1178 uint8_t RESERVED_41[12];
1179 __IO uint32_t CH5_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x370 */
1180 uint8_t RESERVED_42[12];
1181 __I uint32_t CH5_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x380 */
1182 uint8_t RESERVED_43[12];
1183 __I uint32_t CH5_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x390 */
1184 uint8_t RESERVED_44[12];
1185 __I uint32_t CH6_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x3A0 */
1186 uint8_t RESERVED_45[12];
1187 __IO uint32_t CH6_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x3B0 */
1188 uint8_t RESERVED_46[12];
1189 __I uint32_t CH6_CMD; /**< APBH DMA Channel n Command Register, offset: 0x3C0 */
1190 uint8_t RESERVED_47[12];
1191 __I uint32_t CH6_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x3D0 */
1192 uint8_t RESERVED_48[12];
1193 __IO uint32_t CH6_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x3E0 */
1194 uint8_t RESERVED_49[12];
1195 __I uint32_t CH6_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x3F0 */
1196 uint8_t RESERVED_50[12];
1197 __I uint32_t CH6_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x400 */
1198 uint8_t RESERVED_51[12];
1199 __I uint32_t CH7_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x410 */
1200 uint8_t RESERVED_52[12];
1201 __IO uint32_t CH7_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x420 */
1202 uint8_t RESERVED_53[12];
1203 __I uint32_t CH7_CMD; /**< APBH DMA Channel n Command Register, offset: 0x430 */
1204 uint8_t RESERVED_54[12];
1205 __I uint32_t CH7_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x440 */
1206 uint8_t RESERVED_55[12];
1207 __IO uint32_t CH7_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x450 */
1208 uint8_t RESERVED_56[12];
1209 __I uint32_t CH7_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x460 */
1210 uint8_t RESERVED_57[12];
1211 __I uint32_t CH7_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x470 */
1212 uint8_t RESERVED_58[12];
1213 __I uint32_t CH8_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x480 */
1214 uint8_t RESERVED_59[12];
1215 __IO uint32_t CH8_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x490 */
1216 uint8_t RESERVED_60[12];
1217 __I uint32_t CH8_CMD; /**< APBH DMA Channel n Command Register, offset: 0x4A0 */
1218 uint8_t RESERVED_61[12];
1219 __I uint32_t CH8_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x4B0 */
1220 uint8_t RESERVED_62[12];
1221 __IO uint32_t CH8_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x4C0 */
1222 uint8_t RESERVED_63[12];
1223 __I uint32_t CH8_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x4D0 */
1224 uint8_t RESERVED_64[12];
1225 __I uint32_t CH8_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x4E0 */
1226 uint8_t RESERVED_65[12];
1227 __I uint32_t CH9_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x4F0 */
1228 uint8_t RESERVED_66[12];
1229 __IO uint32_t CH9_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x500 */
1230 uint8_t RESERVED_67[12];
1231 __I uint32_t CH9_CMD; /**< APBH DMA Channel n Command Register, offset: 0x510 */
1232 uint8_t RESERVED_68[12];
1233 __I uint32_t CH9_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x520 */
1234 uint8_t RESERVED_69[12];
1235 __IO uint32_t CH9_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x530 */
1236 uint8_t RESERVED_70[12];
1237 __I uint32_t CH9_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x540 */
1238 uint8_t RESERVED_71[12];
1239 __I uint32_t CH9_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x550 */
1240 uint8_t RESERVED_72[12];
1241 __I uint32_t CH10_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x560 */
1242 uint8_t RESERVED_73[12];
1243 __IO uint32_t CH10_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x570 */
1244 uint8_t RESERVED_74[12];
1245 __I uint32_t CH10_CMD; /**< APBH DMA Channel n Command Register, offset: 0x580 */
1246 uint8_t RESERVED_75[12];
1247 __I uint32_t CH10_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x590 */
1248 uint8_t RESERVED_76[12];
1249 __IO uint32_t CH10_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x5A0 */
1250 uint8_t RESERVED_77[12];
1251 __I uint32_t CH10_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x5B0 */
1252 uint8_t RESERVED_78[12];
1253 __I uint32_t CH10_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x5C0 */
1254 uint8_t RESERVED_79[12];
1255 __I uint32_t CH11_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x5D0 */
1256 uint8_t RESERVED_80[12];
1257 __IO uint32_t CH11_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x5E0 */
1258 uint8_t RESERVED_81[12];
1259 __I uint32_t CH11_CMD; /**< APBH DMA Channel n Command Register, offset: 0x5F0 */
1260 uint8_t RESERVED_82[12];
1261 __I uint32_t CH11_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x600 */
1262 uint8_t RESERVED_83[12];
1263 __IO uint32_t CH11_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x610 */
1264 uint8_t RESERVED_84[12];
1265 __I uint32_t CH11_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x620 */
1266 uint8_t RESERVED_85[12];
1267 __I uint32_t CH11_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x630 */
1268 uint8_t RESERVED_86[12];
1269 __I uint32_t CH12_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x640 */
1270 uint8_t RESERVED_87[12];
1271 __IO uint32_t CH12_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x650 */
1272 uint8_t RESERVED_88[12];
1273 __I uint32_t CH12_CMD; /**< APBH DMA Channel n Command Register, offset: 0x660 */
1274 uint8_t RESERVED_89[12];
1275 __I uint32_t CH12_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x670 */
1276 uint8_t RESERVED_90[12];
1277 __IO uint32_t CH12_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x680 */
1278 uint8_t RESERVED_91[12];
1279 __I uint32_t CH12_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x690 */
1280 uint8_t RESERVED_92[12];
1281 __I uint32_t CH12_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x6A0 */
1282 uint8_t RESERVED_93[12];
1283 __I uint32_t CH13_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x6B0 */
1284 uint8_t RESERVED_94[12];
1285 __IO uint32_t CH13_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x6C0 */
1286 uint8_t RESERVED_95[12];
1287 __I uint32_t CH13_CMD; /**< APBH DMA Channel n Command Register, offset: 0x6D0 */
1288 uint8_t RESERVED_96[12];
1289 __I uint32_t CH13_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x6E0 */
1290 uint8_t RESERVED_97[12];
1291 __IO uint32_t CH13_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x6F0 */
1292 uint8_t RESERVED_98[12];
1293 __I uint32_t CH13_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x700 */
1294 uint8_t RESERVED_99[12];
1295 __I uint32_t CH13_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x710 */
1296 uint8_t RESERVED_100[12];
1297 __I uint32_t CH14_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x720 */
1298 uint8_t RESERVED_101[12];
1299 __IO uint32_t CH14_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x730 */
1300 uint8_t RESERVED_102[12];
1301 __I uint32_t CH14_CMD; /**< APBH DMA Channel n Command Register, offset: 0x740 */
1302 uint8_t RESERVED_103[12];
1303 __I uint32_t CH14_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x750 */
1304 uint8_t RESERVED_104[12];
1305 __IO uint32_t CH14_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x760 */
1306 uint8_t RESERVED_105[12];
1307 __I uint32_t CH14_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x770 */
1308 uint8_t RESERVED_106[12];
1309 __I uint32_t CH14_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x780 */
1310 uint8_t RESERVED_107[12];
1311 __I uint32_t CH15_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, offset: 0x790 */
1312 uint8_t RESERVED_108[12];
1313 __IO uint32_t CH15_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, offset: 0x7A0 */
1314 uint8_t RESERVED_109[12];
1315 __I uint32_t CH15_CMD; /**< APBH DMA Channel n Command Register, offset: 0x7B0 */
1316 uint8_t RESERVED_110[12];
1317 __I uint32_t CH15_BAR; /**< APBH DMA Channel n Buffer Address Register, offset: 0x7C0 */
1318 uint8_t RESERVED_111[12];
1319 __IO uint32_t CH15_SEMA; /**< APBH DMA Channel n Semaphore Register, offset: 0x7D0 */
1320 uint8_t RESERVED_112[12];
1321 __I uint32_t CH15_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x7E0 */
1322 uint8_t RESERVED_113[12];
1323 __I uint32_t CH15_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, offset: 0x7F0 */
1324 uint8_t RESERVED_114[12];
1325 __I uint32_t VERSION; /**< APBH Bridge Version Register, offset: 0x800 */
1326} APBH_Type;
1327
1328/* ----------------------------------------------------------------------------
1329 -- APBH Register Masks
1330 ---------------------------------------------------------------------------- */
1331
1332/*!
1333 * @addtogroup APBH_Register_Masks APBH Register Masks
1334 * @{
1335 */
1336
1337/*! @name CTRL0 - AHB to APBH Bridge Control and Status Register 0 */
1338/*! @{ */
1339#define APBH_CTRL0_CLKGATE_CHANNEL_MASK (0xFFFFU)
1340#define APBH_CTRL0_CLKGATE_CHANNEL_SHIFT (0U)
1341/*! CLKGATE_CHANNEL
1342 * 0b0000000000000001..NAND0
1343 * 0b0000000000000010..NAND1
1344 * 0b0000000000000100..NAND2
1345 * 0b0000000000001000..NAND3
1346 * 0b0000000000010000..NAND4
1347 * 0b0000000000100000..NAND5
1348 * 0b0000000001000000..NAND6
1349 * 0b0000000010000000..NAND7
1350 * 0b0000000100000000..SSP
1351 */
1352#define APBH_CTRL0_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLKGATE_CHANNEL_MASK)
1353#define APBH_CTRL0_RSVD0_MASK (0xFFF0000U)
1354#define APBH_CTRL0_RSVD0_SHIFT (16U)
1355#define APBH_CTRL0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_RSVD0_SHIFT)) & APBH_CTRL0_RSVD0_MASK)
1356#define APBH_CTRL0_APB_BURST_EN_MASK (0x10000000U)
1357#define APBH_CTRL0_APB_BURST_EN_SHIFT (28U)
1358#define APBH_CTRL0_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_APB_BURST_EN_SHIFT)) & APBH_CTRL0_APB_BURST_EN_MASK)
1359#define APBH_CTRL0_AHB_BURST8_EN_MASK (0x20000000U)
1360#define APBH_CTRL0_AHB_BURST8_EN_SHIFT (29U)
1361#define APBH_CTRL0_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_AHB_BURST8_EN_MASK)
1362#define APBH_CTRL0_CLKGATE_MASK (0x40000000U)
1363#define APBH_CTRL0_CLKGATE_SHIFT (30U)
1364#define APBH_CTRL0_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_SHIFT)) & APBH_CTRL0_CLKGATE_MASK)
1365#define APBH_CTRL0_SFTRST_MASK (0x80000000U)
1366#define APBH_CTRL0_SFTRST_SHIFT (31U)
1367#define APBH_CTRL0_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SFTRST_SHIFT)) & APBH_CTRL0_SFTRST_MASK)
1368/*! @} */
1369
1370/*! @name CTRL0_SET - AHB to APBH Bridge Control and Status Register 0 */
1371/*! @{ */
1372#define APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK (0xFFFFU)
1373#define APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT (0U)
1374/*! CLKGATE_CHANNEL
1375 * 0b0000000000000001..NAND0
1376 * 0b0000000000000010..NAND1
1377 * 0b0000000000000100..NAND2
1378 * 0b0000000000001000..NAND3
1379 * 0b0000000000010000..NAND4
1380 * 0b0000000000100000..NAND5
1381 * 0b0000000001000000..NAND6
1382 * 0b0000000010000000..NAND7
1383 * 0b0000000100000000..SSP
1384 */
1385#define APBH_CTRL0_SET_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK)
1386#define APBH_CTRL0_SET_RSVD0_MASK (0xFFF0000U)
1387#define APBH_CTRL0_SET_RSVD0_SHIFT (16U)
1388#define APBH_CTRL0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_RSVD0_SHIFT)) & APBH_CTRL0_SET_RSVD0_MASK)
1389#define APBH_CTRL0_SET_APB_BURST_EN_MASK (0x10000000U)
1390#define APBH_CTRL0_SET_APB_BURST_EN_SHIFT (28U)
1391#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)
1392#define APBH_CTRL0_SET_AHB_BURST8_EN_MASK (0x20000000U)
1393#define APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT (29U)
1394#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)
1395#define APBH_CTRL0_SET_CLKGATE_MASK (0x40000000U)
1396#define APBH_CTRL0_SET_CLKGATE_SHIFT (30U)
1397#define APBH_CTRL0_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_SHIFT)) & APBH_CTRL0_SET_CLKGATE_MASK)
1398#define APBH_CTRL0_SET_SFTRST_MASK (0x80000000U)
1399#define APBH_CTRL0_SET_SFTRST_SHIFT (31U)
1400#define APBH_CTRL0_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_SFTRST_SHIFT)) & APBH_CTRL0_SET_SFTRST_MASK)
1401/*! @} */
1402
1403/*! @name CTRL0_CLR - AHB to APBH Bridge Control and Status Register 0 */
1404/*! @{ */
1405#define APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK (0xFFFFU)
1406#define APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT (0U)
1407/*! CLKGATE_CHANNEL
1408 * 0b0000000000000001..NAND0
1409 * 0b0000000000000010..NAND1
1410 * 0b0000000000000100..NAND2
1411 * 0b0000000000001000..NAND3
1412 * 0b0000000000010000..NAND4
1413 * 0b0000000000100000..NAND5
1414 * 0b0000000001000000..NAND6
1415 * 0b0000000010000000..NAND7
1416 * 0b0000000100000000..SSP
1417 */
1418#define APBH_CTRL0_CLR_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK)
1419#define APBH_CTRL0_CLR_RSVD0_MASK (0xFFF0000U)
1420#define APBH_CTRL0_CLR_RSVD0_SHIFT (16U)
1421#define APBH_CTRL0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_RSVD0_SHIFT)) & APBH_CTRL0_CLR_RSVD0_MASK)
1422#define APBH_CTRL0_CLR_APB_BURST_EN_MASK (0x10000000U)
1423#define APBH_CTRL0_CLR_APB_BURST_EN_SHIFT (28U)
1424#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)
1425#define APBH_CTRL0_CLR_AHB_BURST8_EN_MASK (0x20000000U)
1426#define APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT (29U)
1427#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)
1428#define APBH_CTRL0_CLR_CLKGATE_MASK (0x40000000U)
1429#define APBH_CTRL0_CLR_CLKGATE_SHIFT (30U)
1430#define APBH_CTRL0_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_MASK)
1431#define APBH_CTRL0_CLR_SFTRST_MASK (0x80000000U)
1432#define APBH_CTRL0_CLR_SFTRST_SHIFT (31U)
1433#define APBH_CTRL0_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_SFTRST_SHIFT)) & APBH_CTRL0_CLR_SFTRST_MASK)
1434/*! @} */
1435
1436/*! @name CTRL0_TOG - AHB to APBH Bridge Control and Status Register 0 */
1437/*! @{ */
1438#define APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK (0xFFFFU)
1439#define APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT (0U)
1440/*! CLKGATE_CHANNEL
1441 * 0b0000000000000001..NAND0
1442 * 0b0000000000000010..NAND1
1443 * 0b0000000000000100..NAND2
1444 * 0b0000000000001000..NAND3
1445 * 0b0000000000010000..NAND4
1446 * 0b0000000000100000..NAND5
1447 * 0b0000000001000000..NAND6
1448 * 0b0000000010000000..NAND7
1449 * 0b0000000100000000..SSP
1450 */
1451#define APBH_CTRL0_TOG_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK)
1452#define APBH_CTRL0_TOG_RSVD0_MASK (0xFFF0000U)
1453#define APBH_CTRL0_TOG_RSVD0_SHIFT (16U)
1454#define APBH_CTRL0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_RSVD0_SHIFT)) & APBH_CTRL0_TOG_RSVD0_MASK)
1455#define APBH_CTRL0_TOG_APB_BURST_EN_MASK (0x10000000U)
1456#define APBH_CTRL0_TOG_APB_BURST_EN_SHIFT (28U)
1457#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)
1458#define APBH_CTRL0_TOG_AHB_BURST8_EN_MASK (0x20000000U)
1459#define APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT (29U)
1460#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)
1461#define APBH_CTRL0_TOG_CLKGATE_MASK (0x40000000U)
1462#define APBH_CTRL0_TOG_CLKGATE_SHIFT (30U)
1463#define APBH_CTRL0_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_MASK)
1464#define APBH_CTRL0_TOG_SFTRST_MASK (0x80000000U)
1465#define APBH_CTRL0_TOG_SFTRST_SHIFT (31U)
1466#define APBH_CTRL0_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_SFTRST_SHIFT)) & APBH_CTRL0_TOG_SFTRST_MASK)
1467/*! @} */
1468
1469/*! @name CTRL1 - AHB to APBH Bridge Control and Status Register 1 */
1470/*! @{ */
1471#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1472#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1473#define APBH_CTRL1_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK)
1474#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1475#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1476#define APBH_CTRL1_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK)
1477#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1478#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1479#define APBH_CTRL1_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK)
1480#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1481#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1482#define APBH_CTRL1_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK)
1483#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1484#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1485#define APBH_CTRL1_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK)
1486#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1487#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1488#define APBH_CTRL1_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK)
1489#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1490#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1491#define APBH_CTRL1_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK)
1492#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1493#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1494#define APBH_CTRL1_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK)
1495#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1496#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1497#define APBH_CTRL1_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK)
1498#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1499#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1500#define APBH_CTRL1_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK)
1501#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1502#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1503#define APBH_CTRL1_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK)
1504#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1505#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1506#define APBH_CTRL1_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK)
1507#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1508#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1509#define APBH_CTRL1_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK)
1510#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1511#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1512#define APBH_CTRL1_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK)
1513#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1514#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1515#define APBH_CTRL1_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK)
1516#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1517#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1518#define APBH_CTRL1_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK)
1519#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1520#define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1521#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)
1522#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1523#define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1524#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)
1525#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1526#define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1527#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)
1528#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1529#define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1530#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)
1531#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1532#define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1533#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)
1534#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1535#define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1536#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)
1537#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1538#define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1539#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)
1540#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1541#define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1542#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)
1543#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1544#define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1545#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)
1546#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1547#define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1548#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)
1549#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1550#define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1551#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)
1552#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1553#define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1554#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)
1555#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1556#define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1557#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)
1558#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1559#define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1560#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)
1561#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1562#define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1563#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)
1564#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1565#define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1566#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)
1567/*! @} */
1568
1569/*! @name CTRL1_SET - AHB to APBH Bridge Control and Status Register 1 */
1570/*! @{ */
1571#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1572#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1573#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)
1574#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1575#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1576#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)
1577#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1578#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1579#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)
1580#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1581#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1582#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)
1583#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1584#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1585#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)
1586#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1587#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1588#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)
1589#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1590#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1591#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)
1592#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1593#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1594#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)
1595#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1596#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1597#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)
1598#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1599#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1600#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)
1601#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1602#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1603#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)
1604#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1605#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1606#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)
1607#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1608#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1609#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)
1610#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1611#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1612#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)
1613#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1614#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1615#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)
1616#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1617#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1618#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)
1619#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1620#define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1621#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)
1622#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1623#define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1624#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)
1625#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1626#define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1627#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)
1628#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1629#define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1630#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)
1631#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1632#define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1633#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)
1634#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1635#define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1636#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)
1637#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1638#define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1639#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)
1640#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1641#define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1642#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)
1643#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1644#define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1645#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)
1646#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1647#define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1648#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)
1649#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1650#define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1651#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)
1652#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1653#define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1654#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)
1655#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1656#define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1657#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)
1658#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1659#define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1660#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)
1661#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1662#define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1663#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)
1664#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1665#define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1666#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)
1667/*! @} */
1668
1669/*! @name CTRL1_CLR - AHB to APBH Bridge Control and Status Register 1 */
1670/*! @{ */
1671#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1672#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1673#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)
1674#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1675#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1676#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)
1677#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1678#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1679#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)
1680#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1681#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1682#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)
1683#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1684#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1685#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)
1686#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1687#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1688#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)
1689#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1690#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1691#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)
1692#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1693#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1694#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)
1695#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1696#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1697#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)
1698#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1699#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1700#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)
1701#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1702#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1703#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)
1704#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1705#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1706#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)
1707#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1708#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1709#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)
1710#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1711#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1712#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)
1713#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1714#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1715#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)
1716#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1717#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1718#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)
1719#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1720#define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1721#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)
1722#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1723#define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1724#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)
1725#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1726#define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1727#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)
1728#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1729#define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1730#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)
1731#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1732#define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1733#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)
1734#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1735#define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1736#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)
1737#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1738#define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1739#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)
1740#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1741#define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1742#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)
1743#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1744#define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1745#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)
1746#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1747#define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1748#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)
1749#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1750#define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1751#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)
1752#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1753#define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1754#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)
1755#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1756#define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1757#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)
1758#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1759#define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1760#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)
1761#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1762#define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1763#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)
1764#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1765#define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1766#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)
1767/*! @} */
1768
1769/*! @name CTRL1_TOG - AHB to APBH Bridge Control and Status Register 1 */
1770/*! @{ */
1771#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK (0x1U)
1772#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT (0U)
1773#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)
1774#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK (0x2U)
1775#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT (1U)
1776#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)
1777#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK (0x4U)
1778#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT (2U)
1779#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)
1780#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK (0x8U)
1781#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT (3U)
1782#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)
1783#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK (0x10U)
1784#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT (4U)
1785#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)
1786#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK (0x20U)
1787#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT (5U)
1788#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)
1789#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK (0x40U)
1790#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT (6U)
1791#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)
1792#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK (0x80U)
1793#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT (7U)
1794#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)
1795#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK (0x100U)
1796#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT (8U)
1797#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)
1798#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK (0x200U)
1799#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT (9U)
1800#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)
1801#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK (0x400U)
1802#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT (10U)
1803#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)
1804#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK (0x800U)
1805#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT (11U)
1806#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)
1807#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK (0x1000U)
1808#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT (12U)
1809#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)
1810#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK (0x2000U)
1811#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT (13U)
1812#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)
1813#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK (0x4000U)
1814#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT (14U)
1815#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)
1816#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK (0x8000U)
1817#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT (15U)
1818#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)
1819#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U)
1820#define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U)
1821#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)
1822#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U)
1823#define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U)
1824#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)
1825#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U)
1826#define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U)
1827#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)
1828#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U)
1829#define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U)
1830#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)
1831#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U)
1832#define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U)
1833#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)
1834#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U)
1835#define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U)
1836#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)
1837#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U)
1838#define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U)
1839#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)
1840#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U)
1841#define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U)
1842#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)
1843#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U)
1844#define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U)
1845#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)
1846#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U)
1847#define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U)
1848#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)
1849#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U)
1850#define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U)
1851#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)
1852#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U)
1853#define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U)
1854#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)
1855#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U)
1856#define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U)
1857#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)
1858#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U)
1859#define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U)
1860#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)
1861#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U)
1862#define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U)
1863#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)
1864#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U)
1865#define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U)
1866#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)
1867/*! @} */
1868
1869/*! @name CTRL2 - AHB to APBH Bridge Control and Status Register 2 */
1870/*! @{ */
1871#define APBH_CTRL2_CH0_ERROR_IRQ_MASK (0x1U)
1872#define APBH_CTRL2_CH0_ERROR_IRQ_SHIFT (0U)
1873#define APBH_CTRL2_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH0_ERROR_IRQ_MASK)
1874#define APBH_CTRL2_CH1_ERROR_IRQ_MASK (0x2U)
1875#define APBH_CTRL2_CH1_ERROR_IRQ_SHIFT (1U)
1876#define APBH_CTRL2_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH1_ERROR_IRQ_MASK)
1877#define APBH_CTRL2_CH2_ERROR_IRQ_MASK (0x4U)
1878#define APBH_CTRL2_CH2_ERROR_IRQ_SHIFT (2U)
1879#define APBH_CTRL2_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH2_ERROR_IRQ_MASK)
1880#define APBH_CTRL2_CH3_ERROR_IRQ_MASK (0x8U)
1881#define APBH_CTRL2_CH3_ERROR_IRQ_SHIFT (3U)
1882#define APBH_CTRL2_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH3_ERROR_IRQ_MASK)
1883#define APBH_CTRL2_CH4_ERROR_IRQ_MASK (0x10U)
1884#define APBH_CTRL2_CH4_ERROR_IRQ_SHIFT (4U)
1885#define APBH_CTRL2_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH4_ERROR_IRQ_MASK)
1886#define APBH_CTRL2_CH5_ERROR_IRQ_MASK (0x20U)
1887#define APBH_CTRL2_CH5_ERROR_IRQ_SHIFT (5U)
1888#define APBH_CTRL2_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH5_ERROR_IRQ_MASK)
1889#define APBH_CTRL2_CH6_ERROR_IRQ_MASK (0x40U)
1890#define APBH_CTRL2_CH6_ERROR_IRQ_SHIFT (6U)
1891#define APBH_CTRL2_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH6_ERROR_IRQ_MASK)
1892#define APBH_CTRL2_CH7_ERROR_IRQ_MASK (0x80U)
1893#define APBH_CTRL2_CH7_ERROR_IRQ_SHIFT (7U)
1894#define APBH_CTRL2_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH7_ERROR_IRQ_MASK)
1895#define APBH_CTRL2_CH8_ERROR_IRQ_MASK (0x100U)
1896#define APBH_CTRL2_CH8_ERROR_IRQ_SHIFT (8U)
1897#define APBH_CTRL2_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH8_ERROR_IRQ_MASK)
1898#define APBH_CTRL2_CH9_ERROR_IRQ_MASK (0x200U)
1899#define APBH_CTRL2_CH9_ERROR_IRQ_SHIFT (9U)
1900#define APBH_CTRL2_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH9_ERROR_IRQ_MASK)
1901#define APBH_CTRL2_CH10_ERROR_IRQ_MASK (0x400U)
1902#define APBH_CTRL2_CH10_ERROR_IRQ_SHIFT (10U)
1903#define APBH_CTRL2_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH10_ERROR_IRQ_MASK)
1904#define APBH_CTRL2_CH11_ERROR_IRQ_MASK (0x800U)
1905#define APBH_CTRL2_CH11_ERROR_IRQ_SHIFT (11U)
1906#define APBH_CTRL2_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH11_ERROR_IRQ_MASK)
1907#define APBH_CTRL2_CH12_ERROR_IRQ_MASK (0x1000U)
1908#define APBH_CTRL2_CH12_ERROR_IRQ_SHIFT (12U)
1909#define APBH_CTRL2_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH12_ERROR_IRQ_MASK)
1910#define APBH_CTRL2_CH13_ERROR_IRQ_MASK (0x2000U)
1911#define APBH_CTRL2_CH13_ERROR_IRQ_SHIFT (13U)
1912#define APBH_CTRL2_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH13_ERROR_IRQ_MASK)
1913#define APBH_CTRL2_CH14_ERROR_IRQ_MASK (0x4000U)
1914#define APBH_CTRL2_CH14_ERROR_IRQ_SHIFT (14U)
1915#define APBH_CTRL2_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH14_ERROR_IRQ_MASK)
1916#define APBH_CTRL2_CH15_ERROR_IRQ_MASK (0x8000U)
1917#define APBH_CTRL2_CH15_ERROR_IRQ_SHIFT (15U)
1918#define APBH_CTRL2_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH15_ERROR_IRQ_MASK)
1919#define APBH_CTRL2_CH0_ERROR_STATUS_MASK (0x10000U)
1920#define APBH_CTRL2_CH0_ERROR_STATUS_SHIFT (16U)
1921/*! CH0_ERROR_STATUS
1922 * 0b0..An early termination from the device causes error IRQ.
1923 * 0b1..An AHB bus error causes error IRQ.
1924 */
1925#define APBH_CTRL2_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH0_ERROR_STATUS_MASK)
1926#define APBH_CTRL2_CH1_ERROR_STATUS_MASK (0x20000U)
1927#define APBH_CTRL2_CH1_ERROR_STATUS_SHIFT (17U)
1928/*! CH1_ERROR_STATUS
1929 * 0b0..An early termination from the device causes error IRQ.
1930 * 0b1..An AHB bus error causes error IRQ.
1931 */
1932#define APBH_CTRL2_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH1_ERROR_STATUS_MASK)
1933#define APBH_CTRL2_CH2_ERROR_STATUS_MASK (0x40000U)
1934#define APBH_CTRL2_CH2_ERROR_STATUS_SHIFT (18U)
1935/*! CH2_ERROR_STATUS
1936 * 0b0..An early termination from the device causes error IRQ.
1937 * 0b1..An AHB bus error causes error IRQ.
1938 */
1939#define APBH_CTRL2_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH2_ERROR_STATUS_MASK)
1940#define APBH_CTRL2_CH3_ERROR_STATUS_MASK (0x80000U)
1941#define APBH_CTRL2_CH3_ERROR_STATUS_SHIFT (19U)
1942/*! CH3_ERROR_STATUS
1943 * 0b0..An early termination from the device causes error IRQ.
1944 * 0b1..An AHB bus error causes error IRQ.
1945 */
1946#define APBH_CTRL2_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH3_ERROR_STATUS_MASK)
1947#define APBH_CTRL2_CH4_ERROR_STATUS_MASK (0x100000U)
1948#define APBH_CTRL2_CH4_ERROR_STATUS_SHIFT (20U)
1949/*! CH4_ERROR_STATUS
1950 * 0b0..An early termination from the device causes error IRQ.
1951 * 0b1..An AHB bus error causes error IRQ.
1952 */
1953#define APBH_CTRL2_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH4_ERROR_STATUS_MASK)
1954#define APBH_CTRL2_CH5_ERROR_STATUS_MASK (0x200000U)
1955#define APBH_CTRL2_CH5_ERROR_STATUS_SHIFT (21U)
1956/*! CH5_ERROR_STATUS
1957 * 0b0..An early termination from the device causes error IRQ.
1958 * 0b1..An AHB bus error causes error IRQ.
1959 */
1960#define APBH_CTRL2_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH5_ERROR_STATUS_MASK)
1961#define APBH_CTRL2_CH6_ERROR_STATUS_MASK (0x400000U)
1962#define APBH_CTRL2_CH6_ERROR_STATUS_SHIFT (22U)
1963/*! CH6_ERROR_STATUS
1964 * 0b0..An early termination from the device causes error IRQ.
1965 * 0b1..An AHB bus error causes error IRQ.
1966 */
1967#define APBH_CTRL2_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH6_ERROR_STATUS_MASK)
1968#define APBH_CTRL2_CH7_ERROR_STATUS_MASK (0x800000U)
1969#define APBH_CTRL2_CH7_ERROR_STATUS_SHIFT (23U)
1970/*! CH7_ERROR_STATUS
1971 * 0b0..An early termination from the device causes error IRQ.
1972 * 0b1..An AHB bus error causes error IRQ.
1973 */
1974#define APBH_CTRL2_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH7_ERROR_STATUS_MASK)
1975#define APBH_CTRL2_CH8_ERROR_STATUS_MASK (0x1000000U)
1976#define APBH_CTRL2_CH8_ERROR_STATUS_SHIFT (24U)
1977/*! CH8_ERROR_STATUS
1978 * 0b0..An early termination from the device causes error IRQ.
1979 * 0b1..An AHB bus error causes error IRQ.
1980 */
1981#define APBH_CTRL2_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH8_ERROR_STATUS_MASK)
1982#define APBH_CTRL2_CH9_ERROR_STATUS_MASK (0x2000000U)
1983#define APBH_CTRL2_CH9_ERROR_STATUS_SHIFT (25U)
1984/*! CH9_ERROR_STATUS
1985 * 0b0..An early termination from the device causes error IRQ.
1986 * 0b1..An AHB bus error causes error IRQ.
1987 */
1988#define APBH_CTRL2_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH9_ERROR_STATUS_MASK)
1989#define APBH_CTRL2_CH10_ERROR_STATUS_MASK (0x4000000U)
1990#define APBH_CTRL2_CH10_ERROR_STATUS_SHIFT (26U)
1991/*! CH10_ERROR_STATUS
1992 * 0b0..An early termination from the device causes error IRQ.
1993 * 0b1..An AHB bus error causes error IRQ.
1994 */
1995#define APBH_CTRL2_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH10_ERROR_STATUS_MASK)
1996#define APBH_CTRL2_CH11_ERROR_STATUS_MASK (0x8000000U)
1997#define APBH_CTRL2_CH11_ERROR_STATUS_SHIFT (27U)
1998/*! CH11_ERROR_STATUS
1999 * 0b0..An early termination from the device causes error IRQ.
2000 * 0b1..An AHB bus error causes error IRQ.
2001 */
2002#define APBH_CTRL2_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH11_ERROR_STATUS_MASK)
2003#define APBH_CTRL2_CH12_ERROR_STATUS_MASK (0x10000000U)
2004#define APBH_CTRL2_CH12_ERROR_STATUS_SHIFT (28U)
2005/*! CH12_ERROR_STATUS
2006 * 0b0..An early termination from the device causes error IRQ.
2007 * 0b1..An AHB bus error causes error IRQ.
2008 */
2009#define APBH_CTRL2_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH12_ERROR_STATUS_MASK)
2010#define APBH_CTRL2_CH13_ERROR_STATUS_MASK (0x20000000U)
2011#define APBH_CTRL2_CH13_ERROR_STATUS_SHIFT (29U)
2012/*! CH13_ERROR_STATUS
2013 * 0b0..An early termination from the device causes error IRQ.
2014 * 0b1..An AHB bus error causes error IRQ.
2015 */
2016#define APBH_CTRL2_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH13_ERROR_STATUS_MASK)
2017#define APBH_CTRL2_CH14_ERROR_STATUS_MASK (0x40000000U)
2018#define APBH_CTRL2_CH14_ERROR_STATUS_SHIFT (30U)
2019/*! CH14_ERROR_STATUS
2020 * 0b0..An early termination from the device causes error IRQ.
2021 * 0b1..An AHB bus error causes error IRQ.
2022 */
2023#define APBH_CTRL2_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH14_ERROR_STATUS_MASK)
2024#define APBH_CTRL2_CH15_ERROR_STATUS_MASK (0x80000000U)
2025#define APBH_CTRL2_CH15_ERROR_STATUS_SHIFT (31U)
2026/*! CH15_ERROR_STATUS
2027 * 0b0..An early termination from the device causes error IRQ.
2028 * 0b1..An AHB bus error causes error IRQ.
2029 */
2030#define APBH_CTRL2_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH15_ERROR_STATUS_MASK)
2031/*! @} */
2032
2033/*! @name CTRL2_SET - AHB to APBH Bridge Control and Status Register 2 */
2034/*! @{ */
2035#define APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK (0x1U)
2036#define APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT (0U)
2037#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)
2038#define APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK (0x2U)
2039#define APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT (1U)
2040#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)
2041#define APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK (0x4U)
2042#define APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT (2U)
2043#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)
2044#define APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK (0x8U)
2045#define APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT (3U)
2046#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)
2047#define APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK (0x10U)
2048#define APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT (4U)
2049#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)
2050#define APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK (0x20U)
2051#define APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT (5U)
2052#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)
2053#define APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK (0x40U)
2054#define APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT (6U)
2055#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)
2056#define APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK (0x80U)
2057#define APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT (7U)
2058#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)
2059#define APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK (0x100U)
2060#define APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT (8U)
2061#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)
2062#define APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK (0x200U)
2063#define APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT (9U)
2064#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)
2065#define APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK (0x400U)
2066#define APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT (10U)
2067#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)
2068#define APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK (0x800U)
2069#define APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT (11U)
2070#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)
2071#define APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK (0x1000U)
2072#define APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT (12U)
2073#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)
2074#define APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK (0x2000U)
2075#define APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT (13U)
2076#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)
2077#define APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK (0x4000U)
2078#define APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT (14U)
2079#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)
2080#define APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK (0x8000U)
2081#define APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT (15U)
2082#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)
2083#define APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK (0x10000U)
2084#define APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT (16U)
2085/*! CH0_ERROR_STATUS
2086 * 0b0..An early termination from the device causes error IRQ.
2087 * 0b1..An AHB bus error causes error IRQ.
2088 */
2089#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)
2090#define APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK (0x20000U)
2091#define APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT (17U)
2092/*! CH1_ERROR_STATUS
2093 * 0b0..An early termination from the device causes error IRQ.
2094 * 0b1..An AHB bus error causes error IRQ.
2095 */
2096#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)
2097#define APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK (0x40000U)
2098#define APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT (18U)
2099/*! CH2_ERROR_STATUS
2100 * 0b0..An early termination from the device causes error IRQ.
2101 * 0b1..An AHB bus error causes error IRQ.
2102 */
2103#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)
2104#define APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK (0x80000U)
2105#define APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT (19U)
2106/*! CH3_ERROR_STATUS
2107 * 0b0..An early termination from the device causes error IRQ.
2108 * 0b1..An AHB bus error causes error IRQ.
2109 */
2110#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)
2111#define APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK (0x100000U)
2112#define APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT (20U)
2113/*! CH4_ERROR_STATUS
2114 * 0b0..An early termination from the device causes error IRQ.
2115 * 0b1..An AHB bus error causes error IRQ.
2116 */
2117#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)
2118#define APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK (0x200000U)
2119#define APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT (21U)
2120/*! CH5_ERROR_STATUS
2121 * 0b0..An early termination from the device causes error IRQ.
2122 * 0b1..An AHB bus error causes error IRQ.
2123 */
2124#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)
2125#define APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK (0x400000U)
2126#define APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT (22U)
2127/*! CH6_ERROR_STATUS
2128 * 0b0..An early termination from the device causes error IRQ.
2129 * 0b1..An AHB bus error causes error IRQ.
2130 */
2131#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)
2132#define APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK (0x800000U)
2133#define APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT (23U)
2134/*! CH7_ERROR_STATUS
2135 * 0b0..An early termination from the device causes error IRQ.
2136 * 0b1..An AHB bus error causes error IRQ.
2137 */
2138#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)
2139#define APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK (0x1000000U)
2140#define APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT (24U)
2141/*! CH8_ERROR_STATUS
2142 * 0b0..An early termination from the device causes error IRQ.
2143 * 0b1..An AHB bus error causes error IRQ.
2144 */
2145#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)
2146#define APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK (0x2000000U)
2147#define APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT (25U)
2148/*! CH9_ERROR_STATUS
2149 * 0b0..An early termination from the device causes error IRQ.
2150 * 0b1..An AHB bus error causes error IRQ.
2151 */
2152#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)
2153#define APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK (0x4000000U)
2154#define APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT (26U)
2155/*! CH10_ERROR_STATUS
2156 * 0b0..An early termination from the device causes error IRQ.
2157 * 0b1..An AHB bus error causes error IRQ.
2158 */
2159#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)
2160#define APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK (0x8000000U)
2161#define APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT (27U)
2162/*! CH11_ERROR_STATUS
2163 * 0b0..An early termination from the device causes error IRQ.
2164 * 0b1..An AHB bus error causes error IRQ.
2165 */
2166#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)
2167#define APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK (0x10000000U)
2168#define APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT (28U)
2169/*! CH12_ERROR_STATUS
2170 * 0b0..An early termination from the device causes error IRQ.
2171 * 0b1..An AHB bus error causes error IRQ.
2172 */
2173#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)
2174#define APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK (0x20000000U)
2175#define APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT (29U)
2176/*! CH13_ERROR_STATUS
2177 * 0b0..An early termination from the device causes error IRQ.
2178 * 0b1..An AHB bus error causes error IRQ.
2179 */
2180#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)
2181#define APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK (0x40000000U)
2182#define APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT (30U)
2183/*! CH14_ERROR_STATUS
2184 * 0b0..An early termination from the device causes error IRQ.
2185 * 0b1..An AHB bus error causes error IRQ.
2186 */
2187#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)
2188#define APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK (0x80000000U)
2189#define APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT (31U)
2190/*! CH15_ERROR_STATUS
2191 * 0b0..An early termination from the device causes error IRQ.
2192 * 0b1..An AHB bus error causes error IRQ.
2193 */
2194#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)
2195/*! @} */
2196
2197/*! @name CTRL2_CLR - AHB to APBH Bridge Control and Status Register 2 */
2198/*! @{ */
2199#define APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK (0x1U)
2200#define APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT (0U)
2201#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)
2202#define APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK (0x2U)
2203#define APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT (1U)
2204#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)
2205#define APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK (0x4U)
2206#define APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT (2U)
2207#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)
2208#define APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK (0x8U)
2209#define APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT (3U)
2210#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)
2211#define APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK (0x10U)
2212#define APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT (4U)
2213#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)
2214#define APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK (0x20U)
2215#define APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT (5U)
2216#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)
2217#define APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK (0x40U)
2218#define APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT (6U)
2219#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)
2220#define APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK (0x80U)
2221#define APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT (7U)
2222#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)
2223#define APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK (0x100U)
2224#define APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT (8U)
2225#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)
2226#define APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK (0x200U)
2227#define APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT (9U)
2228#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)
2229#define APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK (0x400U)
2230#define APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT (10U)
2231#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)
2232#define APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK (0x800U)
2233#define APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT (11U)
2234#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)
2235#define APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK (0x1000U)
2236#define APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT (12U)
2237#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)
2238#define APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK (0x2000U)
2239#define APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT (13U)
2240#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)
2241#define APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK (0x4000U)
2242#define APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT (14U)
2243#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)
2244#define APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK (0x8000U)
2245#define APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT (15U)
2246#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)
2247#define APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK (0x10000U)
2248#define APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT (16U)
2249/*! CH0_ERROR_STATUS
2250 * 0b0..An early termination from the device causes error IRQ.
2251 * 0b1..An AHB bus error causes error IRQ.
2252 */
2253#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)
2254#define APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK (0x20000U)
2255#define APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT (17U)
2256/*! CH1_ERROR_STATUS
2257 * 0b0..An early termination from the device causes error IRQ.
2258 * 0b1..An AHB bus error causes error IRQ.
2259 */
2260#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)
2261#define APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK (0x40000U)
2262#define APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT (18U)
2263/*! CH2_ERROR_STATUS
2264 * 0b0..An early termination from the device causes error IRQ.
2265 * 0b1..An AHB bus error causes error IRQ.
2266 */
2267#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)
2268#define APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK (0x80000U)
2269#define APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT (19U)
2270/*! CH3_ERROR_STATUS
2271 * 0b0..An early termination from the device causes error IRQ.
2272 * 0b1..An AHB bus error causes error IRQ.
2273 */
2274#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)
2275#define APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK (0x100000U)
2276#define APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT (20U)
2277/*! CH4_ERROR_STATUS
2278 * 0b0..An early termination from the device causes error IRQ.
2279 * 0b1..An AHB bus error causes error IRQ.
2280 */
2281#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)
2282#define APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK (0x200000U)
2283#define APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT (21U)
2284/*! CH5_ERROR_STATUS
2285 * 0b0..An early termination from the device causes error IRQ.
2286 * 0b1..An AHB bus error causes error IRQ.
2287 */
2288#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)
2289#define APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK (0x400000U)
2290#define APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT (22U)
2291/*! CH6_ERROR_STATUS
2292 * 0b0..An early termination from the device causes error IRQ.
2293 * 0b1..An AHB bus error causes error IRQ.
2294 */
2295#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)
2296#define APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK (0x800000U)
2297#define APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT (23U)
2298/*! CH7_ERROR_STATUS
2299 * 0b0..An early termination from the device causes error IRQ.
2300 * 0b1..An AHB bus error causes error IRQ.
2301 */
2302#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)
2303#define APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK (0x1000000U)
2304#define APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT (24U)
2305/*! CH8_ERROR_STATUS
2306 * 0b0..An early termination from the device causes error IRQ.
2307 * 0b1..An AHB bus error causes error IRQ.
2308 */
2309#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)
2310#define APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK (0x2000000U)
2311#define APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT (25U)
2312/*! CH9_ERROR_STATUS
2313 * 0b0..An early termination from the device causes error IRQ.
2314 * 0b1..An AHB bus error causes error IRQ.
2315 */
2316#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)
2317#define APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK (0x4000000U)
2318#define APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT (26U)
2319/*! CH10_ERROR_STATUS
2320 * 0b0..An early termination from the device causes error IRQ.
2321 * 0b1..An AHB bus error causes error IRQ.
2322 */
2323#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)
2324#define APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK (0x8000000U)
2325#define APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT (27U)
2326/*! CH11_ERROR_STATUS
2327 * 0b0..An early termination from the device causes error IRQ.
2328 * 0b1..An AHB bus error causes error IRQ.
2329 */
2330#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)
2331#define APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK (0x10000000U)
2332#define APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT (28U)
2333/*! CH12_ERROR_STATUS
2334 * 0b0..An early termination from the device causes error IRQ.
2335 * 0b1..An AHB bus error causes error IRQ.
2336 */
2337#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)
2338#define APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK (0x20000000U)
2339#define APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT (29U)
2340/*! CH13_ERROR_STATUS
2341 * 0b0..An early termination from the device causes error IRQ.
2342 * 0b1..An AHB bus error causes error IRQ.
2343 */
2344#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)
2345#define APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK (0x40000000U)
2346#define APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT (30U)
2347/*! CH14_ERROR_STATUS
2348 * 0b0..An early termination from the device causes error IRQ.
2349 * 0b1..An AHB bus error causes error IRQ.
2350 */
2351#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)
2352#define APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK (0x80000000U)
2353#define APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT (31U)
2354/*! CH15_ERROR_STATUS
2355 * 0b0..An early termination from the device causes error IRQ.
2356 * 0b1..An AHB bus error causes error IRQ.
2357 */
2358#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)
2359/*! @} */
2360
2361/*! @name CTRL2_TOG - AHB to APBH Bridge Control and Status Register 2 */
2362/*! @{ */
2363#define APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK (0x1U)
2364#define APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT (0U)
2365#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)
2366#define APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK (0x2U)
2367#define APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT (1U)
2368#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)
2369#define APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK (0x4U)
2370#define APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT (2U)
2371#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)
2372#define APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK (0x8U)
2373#define APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT (3U)
2374#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)
2375#define APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK (0x10U)
2376#define APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT (4U)
2377#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)
2378#define APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK (0x20U)
2379#define APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT (5U)
2380#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)
2381#define APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK (0x40U)
2382#define APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT (6U)
2383#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)
2384#define APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK (0x80U)
2385#define APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT (7U)
2386#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)
2387#define APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK (0x100U)
2388#define APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT (8U)
2389#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)
2390#define APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK (0x200U)
2391#define APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT (9U)
2392#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)
2393#define APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK (0x400U)
2394#define APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT (10U)
2395#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)
2396#define APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK (0x800U)
2397#define APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT (11U)
2398#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)
2399#define APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK (0x1000U)
2400#define APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT (12U)
2401#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)
2402#define APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK (0x2000U)
2403#define APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT (13U)
2404#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)
2405#define APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK (0x4000U)
2406#define APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT (14U)
2407#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)
2408#define APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK (0x8000U)
2409#define APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT (15U)
2410#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)
2411#define APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK (0x10000U)
2412#define APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT (16U)
2413/*! CH0_ERROR_STATUS
2414 * 0b0..An early termination from the device causes error IRQ.
2415 * 0b1..An AHB bus error causes error IRQ.
2416 */
2417#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)
2418#define APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK (0x20000U)
2419#define APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT (17U)
2420/*! CH1_ERROR_STATUS
2421 * 0b0..An early termination from the device causes error IRQ.
2422 * 0b1..An AHB bus error causes error IRQ.
2423 */
2424#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)
2425#define APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK (0x40000U)
2426#define APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT (18U)
2427/*! CH2_ERROR_STATUS
2428 * 0b0..An early termination from the device causes error IRQ.
2429 * 0b1..An AHB bus error causes error IRQ.
2430 */
2431#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)
2432#define APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK (0x80000U)
2433#define APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT (19U)
2434/*! CH3_ERROR_STATUS
2435 * 0b0..An early termination from the device causes error IRQ.
2436 * 0b1..An AHB bus error causes error IRQ.
2437 */
2438#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)
2439#define APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK (0x100000U)
2440#define APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT (20U)
2441/*! CH4_ERROR_STATUS
2442 * 0b0..An early termination from the device causes error IRQ.
2443 * 0b1..An AHB bus error causes error IRQ.
2444 */
2445#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)
2446#define APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK (0x200000U)
2447#define APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT (21U)
2448/*! CH5_ERROR_STATUS
2449 * 0b0..An early termination from the device causes error IRQ.
2450 * 0b1..An AHB bus error causes error IRQ.
2451 */
2452#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)
2453#define APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK (0x400000U)
2454#define APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT (22U)
2455/*! CH6_ERROR_STATUS
2456 * 0b0..An early termination from the device causes error IRQ.
2457 * 0b1..An AHB bus error causes error IRQ.
2458 */
2459#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)
2460#define APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK (0x800000U)
2461#define APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT (23U)
2462/*! CH7_ERROR_STATUS
2463 * 0b0..An early termination from the device causes error IRQ.
2464 * 0b1..An AHB bus error causes error IRQ.
2465 */
2466#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)
2467#define APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK (0x1000000U)
2468#define APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT (24U)
2469/*! CH8_ERROR_STATUS
2470 * 0b0..An early termination from the device causes error IRQ.
2471 * 0b1..An AHB bus error causes error IRQ.
2472 */
2473#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)
2474#define APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK (0x2000000U)
2475#define APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT (25U)
2476/*! CH9_ERROR_STATUS
2477 * 0b0..An early termination from the device causes error IRQ.
2478 * 0b1..An AHB bus error causes error IRQ.
2479 */
2480#define APBH_CTRL2_TOG_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK)
2481#define APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK (0x4000000U)
2482#define APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT (26U)
2483/*! CH10_ERROR_STATUS
2484 * 0b0..An early termination from the device causes error IRQ.
2485 * 0b1..An AHB bus error causes error IRQ.
2486 */
2487#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)
2488#define APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK (0x8000000U)
2489#define APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT (27U)
2490/*! CH11_ERROR_STATUS
2491 * 0b0..An early termination from the device causes error IRQ.
2492 * 0b1..An AHB bus error causes error IRQ.
2493 */
2494#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)
2495#define APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK (0x10000000U)
2496#define APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT (28U)
2497/*! CH12_ERROR_STATUS
2498 * 0b0..An early termination from the device causes error IRQ.
2499 * 0b1..An AHB bus error causes error IRQ.
2500 */
2501#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)
2502#define APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK (0x20000000U)
2503#define APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT (29U)
2504/*! CH13_ERROR_STATUS
2505 * 0b0..An early termination from the device causes error IRQ.
2506 * 0b1..An AHB bus error causes error IRQ.
2507 */
2508#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)
2509#define APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK (0x40000000U)
2510#define APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT (30U)
2511/*! CH14_ERROR_STATUS
2512 * 0b0..An early termination from the device causes error IRQ.
2513 * 0b1..An AHB bus error causes error IRQ.
2514 */
2515#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)
2516#define APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK (0x80000000U)
2517#define APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT (31U)
2518/*! CH15_ERROR_STATUS
2519 * 0b0..An early termination from the device causes error IRQ.
2520 * 0b1..An AHB bus error causes error IRQ.
2521 */
2522#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)
2523/*! @} */
2524
2525/*! @name CHANNEL_CTRL - AHB to APBH Bridge Channel Register */
2526/*! @{ */
2527#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK (0xFFFFU)
2528#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT (0U)
2529/*! FREEZE_CHANNEL
2530 * 0b0000000000000001..NAND0
2531 * 0b0000000000000010..NAND1
2532 * 0b0000000000000100..NAND2
2533 * 0b0000000000001000..NAND3
2534 * 0b0000000000010000..NAND4
2535 * 0b0000000000100000..NAND5
2536 * 0b0000000001000000..NAND6
2537 * 0b0000000010000000..NAND7
2538 * 0b0000000100000000..SSP
2539 */
2540#define APBH_CHANNEL_CTRL_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK)
2541#define APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK (0xFFFF0000U)
2542#define APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT (16U)
2543/*! RESET_CHANNEL
2544 * 0b0000000000000001..NAND0
2545 * 0b0000000000000010..NAND1
2546 * 0b0000000000000100..NAND2
2547 * 0b0000000000001000..NAND3
2548 * 0b0000000000010000..NAND4
2549 * 0b0000000000100000..NAND5
2550 * 0b0000000001000000..NAND6
2551 * 0b0000000010000000..NAND7
2552 * 0b0000000100000000..SSP
2553 */
2554#define APBH_CHANNEL_CTRL_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK)
2555/*! @} */
2556
2557/*! @name CHANNEL_CTRL_SET - AHB to APBH Bridge Channel Register */
2558/*! @{ */
2559#define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK (0xFFFFU)
2560#define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT (0U)
2561/*! FREEZE_CHANNEL
2562 * 0b0000000000000001..NAND0
2563 * 0b0000000000000010..NAND1
2564 * 0b0000000000000100..NAND2
2565 * 0b0000000000001000..NAND3
2566 * 0b0000000000010000..NAND4
2567 * 0b0000000000100000..NAND5
2568 * 0b0000000001000000..NAND6
2569 * 0b0000000010000000..NAND7
2570 * 0b0000000100000000..SSP
2571 */
2572#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)
2573#define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK (0xFFFF0000U)
2574#define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT (16U)
2575/*! RESET_CHANNEL
2576 * 0b0000000000000001..NAND0
2577 * 0b0000000000000010..NAND1
2578 * 0b0000000000000100..NAND2
2579 * 0b0000000000001000..NAND3
2580 * 0b0000000000010000..NAND4
2581 * 0b0000000000100000..NAND5
2582 * 0b0000000001000000..NAND6
2583 * 0b0000000010000000..NAND7
2584 * 0b0000000100000000..SSP
2585 */
2586#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)
2587/*! @} */
2588
2589/*! @name CHANNEL_CTRL_CLR - AHB to APBH Bridge Channel Register */
2590/*! @{ */
2591#define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK (0xFFFFU)
2592#define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT (0U)
2593/*! FREEZE_CHANNEL
2594 * 0b0000000000000001..NAND0
2595 * 0b0000000000000010..NAND1
2596 * 0b0000000000000100..NAND2
2597 * 0b0000000000001000..NAND3
2598 * 0b0000000000010000..NAND4
2599 * 0b0000000000100000..NAND5
2600 * 0b0000000001000000..NAND6
2601 * 0b0000000010000000..NAND7
2602 * 0b0000000100000000..SSP
2603 */
2604#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)
2605#define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK (0xFFFF0000U)
2606#define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT (16U)
2607/*! RESET_CHANNEL
2608 * 0b0000000000000001..NAND0
2609 * 0b0000000000000010..NAND1
2610 * 0b0000000000000100..NAND2
2611 * 0b0000000000001000..NAND3
2612 * 0b0000000000010000..NAND4
2613 * 0b0000000000100000..NAND5
2614 * 0b0000000001000000..NAND6
2615 * 0b0000000010000000..NAND7
2616 * 0b0000000100000000..SSP
2617 */
2618#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)
2619/*! @} */
2620
2621/*! @name CHANNEL_CTRL_TOG - AHB to APBH Bridge Channel Register */
2622/*! @{ */
2623#define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK (0xFFFFU)
2624#define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT (0U)
2625/*! FREEZE_CHANNEL
2626 * 0b0000000000000001..NAND0
2627 * 0b0000000000000010..NAND1
2628 * 0b0000000000000100..NAND2
2629 * 0b0000000000001000..NAND3
2630 * 0b0000000000010000..NAND4
2631 * 0b0000000000100000..NAND5
2632 * 0b0000000001000000..NAND6
2633 * 0b0000000010000000..NAND7
2634 * 0b0000000100000000..SSP
2635 */
2636#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)
2637#define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK (0xFFFF0000U)
2638#define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT (16U)
2639/*! RESET_CHANNEL
2640 * 0b0000000000000001..NAND0
2641 * 0b0000000000000010..NAND1
2642 * 0b0000000000000100..NAND2
2643 * 0b0000000000001000..NAND3
2644 * 0b0000000000010000..NAND4
2645 * 0b0000000000100000..NAND5
2646 * 0b0000000001000000..NAND6
2647 * 0b0000000010000000..NAND7
2648 * 0b0000000100000000..SSP
2649 */
2650#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)
2651/*! @} */
2652
2653/*! @name DEVSEL - AHB to APBH DMA Device Assignment Register */
2654/*! @{ */
2655#define APBH_DEVSEL_CH0_MASK (0x3U)
2656#define APBH_DEVSEL_CH0_SHIFT (0U)
2657#define APBH_DEVSEL_CH0(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH0_SHIFT)) & APBH_DEVSEL_CH0_MASK)
2658#define APBH_DEVSEL_CH1_MASK (0xCU)
2659#define APBH_DEVSEL_CH1_SHIFT (2U)
2660#define APBH_DEVSEL_CH1(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH1_SHIFT)) & APBH_DEVSEL_CH1_MASK)
2661#define APBH_DEVSEL_CH2_MASK (0x30U)
2662#define APBH_DEVSEL_CH2_SHIFT (4U)
2663#define APBH_DEVSEL_CH2(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH2_SHIFT)) & APBH_DEVSEL_CH2_MASK)
2664#define APBH_DEVSEL_CH3_MASK (0xC0U)
2665#define APBH_DEVSEL_CH3_SHIFT (6U)
2666#define APBH_DEVSEL_CH3(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH3_SHIFT)) & APBH_DEVSEL_CH3_MASK)
2667#define APBH_DEVSEL_CH4_MASK (0x300U)
2668#define APBH_DEVSEL_CH4_SHIFT (8U)
2669#define APBH_DEVSEL_CH4(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH4_SHIFT)) & APBH_DEVSEL_CH4_MASK)
2670#define APBH_DEVSEL_CH5_MASK (0xC00U)
2671#define APBH_DEVSEL_CH5_SHIFT (10U)
2672#define APBH_DEVSEL_CH5(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH5_SHIFT)) & APBH_DEVSEL_CH5_MASK)
2673#define APBH_DEVSEL_CH6_MASK (0x3000U)
2674#define APBH_DEVSEL_CH6_SHIFT (12U)
2675#define APBH_DEVSEL_CH6(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH6_SHIFT)) & APBH_DEVSEL_CH6_MASK)
2676#define APBH_DEVSEL_CH7_MASK (0xC000U)
2677#define APBH_DEVSEL_CH7_SHIFT (14U)
2678#define APBH_DEVSEL_CH7(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH7_SHIFT)) & APBH_DEVSEL_CH7_MASK)
2679#define APBH_DEVSEL_CH8_MASK (0x30000U)
2680#define APBH_DEVSEL_CH8_SHIFT (16U)
2681#define APBH_DEVSEL_CH8(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH8_SHIFT)) & APBH_DEVSEL_CH8_MASK)
2682#define APBH_DEVSEL_CH9_MASK (0xC0000U)
2683#define APBH_DEVSEL_CH9_SHIFT (18U)
2684#define APBH_DEVSEL_CH9(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH9_SHIFT)) & APBH_DEVSEL_CH9_MASK)
2685#define APBH_DEVSEL_CH10_MASK (0x300000U)
2686#define APBH_DEVSEL_CH10_SHIFT (20U)
2687#define APBH_DEVSEL_CH10(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH10_SHIFT)) & APBH_DEVSEL_CH10_MASK)
2688#define APBH_DEVSEL_CH11_MASK (0xC00000U)
2689#define APBH_DEVSEL_CH11_SHIFT (22U)
2690#define APBH_DEVSEL_CH11(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH11_SHIFT)) & APBH_DEVSEL_CH11_MASK)
2691#define APBH_DEVSEL_CH12_MASK (0x3000000U)
2692#define APBH_DEVSEL_CH12_SHIFT (24U)
2693#define APBH_DEVSEL_CH12(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH12_SHIFT)) & APBH_DEVSEL_CH12_MASK)
2694#define APBH_DEVSEL_CH13_MASK (0xC000000U)
2695#define APBH_DEVSEL_CH13_SHIFT (26U)
2696#define APBH_DEVSEL_CH13(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH13_SHIFT)) & APBH_DEVSEL_CH13_MASK)
2697#define APBH_DEVSEL_CH14_MASK (0x30000000U)
2698#define APBH_DEVSEL_CH14_SHIFT (28U)
2699#define APBH_DEVSEL_CH14(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH14_SHIFT)) & APBH_DEVSEL_CH14_MASK)
2700#define APBH_DEVSEL_CH15_MASK (0xC0000000U)
2701#define APBH_DEVSEL_CH15_SHIFT (30U)
2702#define APBH_DEVSEL_CH15(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEVSEL_CH15_SHIFT)) & APBH_DEVSEL_CH15_MASK)
2703/*! @} */
2704
2705/*! @name DMA_BURST_SIZE - AHB to APBH DMA burst size */
2706/*! @{ */
2707#define APBH_DMA_BURST_SIZE_CH0_MASK (0x3U)
2708#define APBH_DMA_BURST_SIZE_CH0_SHIFT (0U)
2709#define APBH_DMA_BURST_SIZE_CH0(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH0_SHIFT)) & APBH_DMA_BURST_SIZE_CH0_MASK)
2710#define APBH_DMA_BURST_SIZE_CH1_MASK (0xCU)
2711#define APBH_DMA_BURST_SIZE_CH1_SHIFT (2U)
2712#define APBH_DMA_BURST_SIZE_CH1(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH1_SHIFT)) & APBH_DMA_BURST_SIZE_CH1_MASK)
2713#define APBH_DMA_BURST_SIZE_CH2_MASK (0x30U)
2714#define APBH_DMA_BURST_SIZE_CH2_SHIFT (4U)
2715#define APBH_DMA_BURST_SIZE_CH2(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH2_SHIFT)) & APBH_DMA_BURST_SIZE_CH2_MASK)
2716#define APBH_DMA_BURST_SIZE_CH3_MASK (0xC0U)
2717#define APBH_DMA_BURST_SIZE_CH3_SHIFT (6U)
2718#define APBH_DMA_BURST_SIZE_CH3(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH3_SHIFT)) & APBH_DMA_BURST_SIZE_CH3_MASK)
2719#define APBH_DMA_BURST_SIZE_CH4_MASK (0x300U)
2720#define APBH_DMA_BURST_SIZE_CH4_SHIFT (8U)
2721#define APBH_DMA_BURST_SIZE_CH4(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH4_SHIFT)) & APBH_DMA_BURST_SIZE_CH4_MASK)
2722#define APBH_DMA_BURST_SIZE_CH5_MASK (0xC00U)
2723#define APBH_DMA_BURST_SIZE_CH5_SHIFT (10U)
2724#define APBH_DMA_BURST_SIZE_CH5(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH5_SHIFT)) & APBH_DMA_BURST_SIZE_CH5_MASK)
2725#define APBH_DMA_BURST_SIZE_CH6_MASK (0x3000U)
2726#define APBH_DMA_BURST_SIZE_CH6_SHIFT (12U)
2727#define APBH_DMA_BURST_SIZE_CH6(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH6_SHIFT)) & APBH_DMA_BURST_SIZE_CH6_MASK)
2728#define APBH_DMA_BURST_SIZE_CH7_MASK (0xC000U)
2729#define APBH_DMA_BURST_SIZE_CH7_SHIFT (14U)
2730#define APBH_DMA_BURST_SIZE_CH7(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH7_SHIFT)) & APBH_DMA_BURST_SIZE_CH7_MASK)
2731#define APBH_DMA_BURST_SIZE_CH8_MASK (0x30000U)
2732#define APBH_DMA_BURST_SIZE_CH8_SHIFT (16U)
2733/*! CH8
2734 * 0b00..BURST0
2735 * 0b01..BURST4
2736 * 0b10..BURST8
2737 */
2738#define APBH_DMA_BURST_SIZE_CH8(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH8_SHIFT)) & APBH_DMA_BURST_SIZE_CH8_MASK)
2739#define APBH_DMA_BURST_SIZE_CH9_MASK (0xC0000U)
2740#define APBH_DMA_BURST_SIZE_CH9_SHIFT (18U)
2741#define APBH_DMA_BURST_SIZE_CH9(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH9_SHIFT)) & APBH_DMA_BURST_SIZE_CH9_MASK)
2742#define APBH_DMA_BURST_SIZE_CH10_MASK (0x300000U)
2743#define APBH_DMA_BURST_SIZE_CH10_SHIFT (20U)
2744#define APBH_DMA_BURST_SIZE_CH10(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH10_SHIFT)) & APBH_DMA_BURST_SIZE_CH10_MASK)
2745#define APBH_DMA_BURST_SIZE_CH11_MASK (0xC00000U)
2746#define APBH_DMA_BURST_SIZE_CH11_SHIFT (22U)
2747#define APBH_DMA_BURST_SIZE_CH11(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH11_SHIFT)) & APBH_DMA_BURST_SIZE_CH11_MASK)
2748#define APBH_DMA_BURST_SIZE_CH12_MASK (0x3000000U)
2749#define APBH_DMA_BURST_SIZE_CH12_SHIFT (24U)
2750#define APBH_DMA_BURST_SIZE_CH12(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH12_SHIFT)) & APBH_DMA_BURST_SIZE_CH12_MASK)
2751#define APBH_DMA_BURST_SIZE_CH13_MASK (0xC000000U)
2752#define APBH_DMA_BURST_SIZE_CH13_SHIFT (26U)
2753#define APBH_DMA_BURST_SIZE_CH13(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH13_SHIFT)) & APBH_DMA_BURST_SIZE_CH13_MASK)
2754#define APBH_DMA_BURST_SIZE_CH14_MASK (0x30000000U)
2755#define APBH_DMA_BURST_SIZE_CH14_SHIFT (28U)
2756#define APBH_DMA_BURST_SIZE_CH14(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH14_SHIFT)) & APBH_DMA_BURST_SIZE_CH14_MASK)
2757#define APBH_DMA_BURST_SIZE_CH15_MASK (0xC0000000U)
2758#define APBH_DMA_BURST_SIZE_CH15_SHIFT (30U)
2759#define APBH_DMA_BURST_SIZE_CH15(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH15_SHIFT)) & APBH_DMA_BURST_SIZE_CH15_MASK)
2760/*! @} */
2761
2762/*! @name DEBUG - AHB to APBH DMA Debug Register */
2763/*! @{ */
2764#define APBH_DEBUG_GPMI_ONE_FIFO_MASK (0x1U)
2765#define APBH_DEBUG_GPMI_ONE_FIFO_SHIFT (0U)
2766#define APBH_DEBUG_GPMI_ONE_FIFO(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEBUG_GPMI_ONE_FIFO_SHIFT)) & APBH_DEBUG_GPMI_ONE_FIFO_MASK)
2767/*! @} */
2768
2769/*! @name CH0_CURCMDAR - APBH DMA Channel n Current Command Address Register */
2770/*! @{ */
2771#define APBH_CH0_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
2772#define APBH_CH0_CURCMDAR_CMD_ADDR_SHIFT (0U)
2773#define APBH_CH0_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH0_CURCMDAR_CMD_ADDR_MASK)
2774/*! @} */
2775
2776/*! @name CH0_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
2777/*! @{ */
2778#define APBH_CH0_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
2779#define APBH_CH0_NXTCMDAR_CMD_ADDR_SHIFT (0U)
2780#define APBH_CH0_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH0_NXTCMDAR_CMD_ADDR_MASK)
2781/*! @} */
2782
2783/*! @name CH0_CMD - APBH DMA Channel n Command Register */
2784/*! @{ */
2785#define APBH_CH0_CMD_COMMAND_MASK (0x3U)
2786#define APBH_CH0_CMD_COMMAND_SHIFT (0U)
2787/*! COMMAND
2788 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
2789 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
2790 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
2791 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
2792 */
2793#define APBH_CH0_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_COMMAND_SHIFT)) & APBH_CH0_CMD_COMMAND_MASK)
2794#define APBH_CH0_CMD_CHAIN_MASK (0x4U)
2795#define APBH_CH0_CMD_CHAIN_SHIFT (2U)
2796#define APBH_CH0_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_CHAIN_SHIFT)) & APBH_CH0_CMD_CHAIN_MASK)
2797#define APBH_CH0_CMD_IRQONCMPLT_MASK (0x8U)
2798#define APBH_CH0_CMD_IRQONCMPLT_SHIFT (3U)
2799#define APBH_CH0_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_IRQONCMPLT_SHIFT)) & APBH_CH0_CMD_IRQONCMPLT_MASK)
2800#define APBH_CH0_CMD_NANDLOCK_MASK (0x10U)
2801#define APBH_CH0_CMD_NANDLOCK_SHIFT (4U)
2802#define APBH_CH0_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_NANDLOCK_SHIFT)) & APBH_CH0_CMD_NANDLOCK_MASK)
2803#define APBH_CH0_CMD_NANDWAIT4READY_MASK (0x20U)
2804#define APBH_CH0_CMD_NANDWAIT4READY_SHIFT (5U)
2805#define APBH_CH0_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH0_CMD_NANDWAIT4READY_MASK)
2806#define APBH_CH0_CMD_SEMAPHORE_MASK (0x40U)
2807#define APBH_CH0_CMD_SEMAPHORE_SHIFT (6U)
2808#define APBH_CH0_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_SEMAPHORE_SHIFT)) & APBH_CH0_CMD_SEMAPHORE_MASK)
2809#define APBH_CH0_CMD_WAIT4ENDCMD_MASK (0x80U)
2810#define APBH_CH0_CMD_WAIT4ENDCMD_SHIFT (7U)
2811#define APBH_CH0_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH0_CMD_WAIT4ENDCMD_MASK)
2812#define APBH_CH0_CMD_HALTONTERMINATE_MASK (0x100U)
2813#define APBH_CH0_CMD_HALTONTERMINATE_SHIFT (8U)
2814#define APBH_CH0_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH0_CMD_HALTONTERMINATE_MASK)
2815#define APBH_CH0_CMD_CMDWORDS_MASK (0xF000U)
2816#define APBH_CH0_CMD_CMDWORDS_SHIFT (12U)
2817#define APBH_CH0_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_CMDWORDS_SHIFT)) & APBH_CH0_CMD_CMDWORDS_MASK)
2818#define APBH_CH0_CMD_XFER_COUNT_MASK (0xFFFF0000U)
2819#define APBH_CH0_CMD_XFER_COUNT_SHIFT (16U)
2820#define APBH_CH0_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_CMD_XFER_COUNT_SHIFT)) & APBH_CH0_CMD_XFER_COUNT_MASK)
2821/*! @} */
2822
2823/*! @name CH0_BAR - APBH DMA Channel n Buffer Address Register */
2824/*! @{ */
2825#define APBH_CH0_BAR_ADDRESS_MASK (0xFFFFFFFFU)
2826#define APBH_CH0_BAR_ADDRESS_SHIFT (0U)
2827#define APBH_CH0_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_BAR_ADDRESS_SHIFT)) & APBH_CH0_BAR_ADDRESS_MASK)
2828/*! @} */
2829
2830/*! @name CH0_SEMA - APBH DMA Channel n Semaphore Register */
2831/*! @{ */
2832#define APBH_CH0_SEMA_INCREMENT_SEMA_MASK (0xFFU)
2833#define APBH_CH0_SEMA_INCREMENT_SEMA_SHIFT (0U)
2834#define APBH_CH0_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH0_SEMA_INCREMENT_SEMA_MASK)
2835#define APBH_CH0_SEMA_PHORE_MASK (0xFF0000U)
2836#define APBH_CH0_SEMA_PHORE_SHIFT (16U)
2837#define APBH_CH0_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_SEMA_PHORE_SHIFT)) & APBH_CH0_SEMA_PHORE_MASK)
2838/*! @} */
2839
2840/*! @name CH0_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
2841/*! @{ */
2842#define APBH_CH0_DEBUG1_STATEMACHINE_MASK (0x1FU)
2843#define APBH_CH0_DEBUG1_STATEMACHINE_SHIFT (0U)
2844/*! STATEMACHINE
2845 * 0b00000..This is the idle state of the DMA state machine.
2846 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
2847 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
2848 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
2849 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
2850 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
2851 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
2852 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
2853 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
2854 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
2855 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
2856 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
2857 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
2858 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
2859 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
2860 * 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.
2861 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
2862 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
2863 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
2864 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
2865 */
2866#define APBH_CH0_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH0_DEBUG1_STATEMACHINE_MASK)
2867#define APBH_CH0_DEBUG1_RSVD1_MASK (0xFFFE0U)
2868#define APBH_CH0_DEBUG1_RSVD1_SHIFT (5U)
2869#define APBH_CH0_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_RSVD1_SHIFT)) & APBH_CH0_DEBUG1_RSVD1_MASK)
2870#define APBH_CH0_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
2871#define APBH_CH0_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
2872#define APBH_CH0_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH0_DEBUG1_WR_FIFO_FULL_MASK)
2873#define APBH_CH0_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
2874#define APBH_CH0_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
2875#define APBH_CH0_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH0_DEBUG1_WR_FIFO_EMPTY_MASK)
2876#define APBH_CH0_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
2877#define APBH_CH0_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
2878#define APBH_CH0_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH0_DEBUG1_RD_FIFO_FULL_MASK)
2879#define APBH_CH0_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
2880#define APBH_CH0_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
2881#define APBH_CH0_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH0_DEBUG1_RD_FIFO_EMPTY_MASK)
2882#define APBH_CH0_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
2883#define APBH_CH0_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
2884#define APBH_CH0_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH0_DEBUG1_NEXTCMDADDRVALID_MASK)
2885#define APBH_CH0_DEBUG1_LOCK_MASK (0x2000000U)
2886#define APBH_CH0_DEBUG1_LOCK_SHIFT (25U)
2887#define APBH_CH0_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_LOCK_SHIFT)) & APBH_CH0_DEBUG1_LOCK_MASK)
2888#define APBH_CH0_DEBUG1_READY_MASK (0x4000000U)
2889#define APBH_CH0_DEBUG1_READY_SHIFT (26U)
2890#define APBH_CH0_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_READY_SHIFT)) & APBH_CH0_DEBUG1_READY_MASK)
2891#define APBH_CH0_DEBUG1_SENSE_MASK (0x8000000U)
2892#define APBH_CH0_DEBUG1_SENSE_SHIFT (27U)
2893#define APBH_CH0_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_SENSE_SHIFT)) & APBH_CH0_DEBUG1_SENSE_MASK)
2894#define APBH_CH0_DEBUG1_END_MASK (0x10000000U)
2895#define APBH_CH0_DEBUG1_END_SHIFT (28U)
2896#define APBH_CH0_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_END_SHIFT)) & APBH_CH0_DEBUG1_END_MASK)
2897#define APBH_CH0_DEBUG1_KICK_MASK (0x20000000U)
2898#define APBH_CH0_DEBUG1_KICK_SHIFT (29U)
2899#define APBH_CH0_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_KICK_SHIFT)) & APBH_CH0_DEBUG1_KICK_MASK)
2900#define APBH_CH0_DEBUG1_BURST_MASK (0x40000000U)
2901#define APBH_CH0_DEBUG1_BURST_SHIFT (30U)
2902#define APBH_CH0_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_BURST_SHIFT)) & APBH_CH0_DEBUG1_BURST_MASK)
2903#define APBH_CH0_DEBUG1_REQ_MASK (0x80000000U)
2904#define APBH_CH0_DEBUG1_REQ_SHIFT (31U)
2905#define APBH_CH0_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG1_REQ_SHIFT)) & APBH_CH0_DEBUG1_REQ_MASK)
2906/*! @} */
2907
2908/*! @name CH0_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
2909/*! @{ */
2910#define APBH_CH0_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
2911#define APBH_CH0_DEBUG2_AHB_BYTES_SHIFT (0U)
2912#define APBH_CH0_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH0_DEBUG2_AHB_BYTES_MASK)
2913#define APBH_CH0_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
2914#define APBH_CH0_DEBUG2_APB_BYTES_SHIFT (16U)
2915#define APBH_CH0_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH0_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH0_DEBUG2_APB_BYTES_MASK)
2916/*! @} */
2917
2918/*! @name CH1_CURCMDAR - APBH DMA Channel n Current Command Address Register */
2919/*! @{ */
2920#define APBH_CH1_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
2921#define APBH_CH1_CURCMDAR_CMD_ADDR_SHIFT (0U)
2922#define APBH_CH1_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH1_CURCMDAR_CMD_ADDR_MASK)
2923/*! @} */
2924
2925/*! @name CH1_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
2926/*! @{ */
2927#define APBH_CH1_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
2928#define APBH_CH1_NXTCMDAR_CMD_ADDR_SHIFT (0U)
2929#define APBH_CH1_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH1_NXTCMDAR_CMD_ADDR_MASK)
2930/*! @} */
2931
2932/*! @name CH1_CMD - APBH DMA Channel n Command Register */
2933/*! @{ */
2934#define APBH_CH1_CMD_COMMAND_MASK (0x3U)
2935#define APBH_CH1_CMD_COMMAND_SHIFT (0U)
2936/*! COMMAND
2937 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
2938 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
2939 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
2940 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
2941 */
2942#define APBH_CH1_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_COMMAND_SHIFT)) & APBH_CH1_CMD_COMMAND_MASK)
2943#define APBH_CH1_CMD_CHAIN_MASK (0x4U)
2944#define APBH_CH1_CMD_CHAIN_SHIFT (2U)
2945#define APBH_CH1_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_CHAIN_SHIFT)) & APBH_CH1_CMD_CHAIN_MASK)
2946#define APBH_CH1_CMD_IRQONCMPLT_MASK (0x8U)
2947#define APBH_CH1_CMD_IRQONCMPLT_SHIFT (3U)
2948#define APBH_CH1_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_IRQONCMPLT_SHIFT)) & APBH_CH1_CMD_IRQONCMPLT_MASK)
2949#define APBH_CH1_CMD_NANDLOCK_MASK (0x10U)
2950#define APBH_CH1_CMD_NANDLOCK_SHIFT (4U)
2951#define APBH_CH1_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_NANDLOCK_SHIFT)) & APBH_CH1_CMD_NANDLOCK_MASK)
2952#define APBH_CH1_CMD_NANDWAIT4READY_MASK (0x20U)
2953#define APBH_CH1_CMD_NANDWAIT4READY_SHIFT (5U)
2954#define APBH_CH1_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH1_CMD_NANDWAIT4READY_MASK)
2955#define APBH_CH1_CMD_SEMAPHORE_MASK (0x40U)
2956#define APBH_CH1_CMD_SEMAPHORE_SHIFT (6U)
2957#define APBH_CH1_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_SEMAPHORE_SHIFT)) & APBH_CH1_CMD_SEMAPHORE_MASK)
2958#define APBH_CH1_CMD_WAIT4ENDCMD_MASK (0x80U)
2959#define APBH_CH1_CMD_WAIT4ENDCMD_SHIFT (7U)
2960#define APBH_CH1_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH1_CMD_WAIT4ENDCMD_MASK)
2961#define APBH_CH1_CMD_HALTONTERMINATE_MASK (0x100U)
2962#define APBH_CH1_CMD_HALTONTERMINATE_SHIFT (8U)
2963#define APBH_CH1_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH1_CMD_HALTONTERMINATE_MASK)
2964#define APBH_CH1_CMD_CMDWORDS_MASK (0xF000U)
2965#define APBH_CH1_CMD_CMDWORDS_SHIFT (12U)
2966#define APBH_CH1_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_CMDWORDS_SHIFT)) & APBH_CH1_CMD_CMDWORDS_MASK)
2967#define APBH_CH1_CMD_XFER_COUNT_MASK (0xFFFF0000U)
2968#define APBH_CH1_CMD_XFER_COUNT_SHIFT (16U)
2969#define APBH_CH1_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_CMD_XFER_COUNT_SHIFT)) & APBH_CH1_CMD_XFER_COUNT_MASK)
2970/*! @} */
2971
2972/*! @name CH1_BAR - APBH DMA Channel n Buffer Address Register */
2973/*! @{ */
2974#define APBH_CH1_BAR_ADDRESS_MASK (0xFFFFFFFFU)
2975#define APBH_CH1_BAR_ADDRESS_SHIFT (0U)
2976#define APBH_CH1_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_BAR_ADDRESS_SHIFT)) & APBH_CH1_BAR_ADDRESS_MASK)
2977/*! @} */
2978
2979/*! @name CH1_SEMA - APBH DMA Channel n Semaphore Register */
2980/*! @{ */
2981#define APBH_CH1_SEMA_INCREMENT_SEMA_MASK (0xFFU)
2982#define APBH_CH1_SEMA_INCREMENT_SEMA_SHIFT (0U)
2983#define APBH_CH1_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH1_SEMA_INCREMENT_SEMA_MASK)
2984#define APBH_CH1_SEMA_PHORE_MASK (0xFF0000U)
2985#define APBH_CH1_SEMA_PHORE_SHIFT (16U)
2986#define APBH_CH1_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_SEMA_PHORE_SHIFT)) & APBH_CH1_SEMA_PHORE_MASK)
2987/*! @} */
2988
2989/*! @name CH1_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
2990/*! @{ */
2991#define APBH_CH1_DEBUG1_STATEMACHINE_MASK (0x1FU)
2992#define APBH_CH1_DEBUG1_STATEMACHINE_SHIFT (0U)
2993/*! STATEMACHINE
2994 * 0b00000..This is the idle state of the DMA state machine.
2995 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
2996 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
2997 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
2998 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
2999 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3000 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3001 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3002 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3003 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3004 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3005 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3006 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3007 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3008 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3009 * 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.
3010 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3011 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3012 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3013 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3014 */
3015#define APBH_CH1_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH1_DEBUG1_STATEMACHINE_MASK)
3016#define APBH_CH1_DEBUG1_RSVD1_MASK (0xFFFE0U)
3017#define APBH_CH1_DEBUG1_RSVD1_SHIFT (5U)
3018#define APBH_CH1_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_RSVD1_SHIFT)) & APBH_CH1_DEBUG1_RSVD1_MASK)
3019#define APBH_CH1_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3020#define APBH_CH1_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3021#define APBH_CH1_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH1_DEBUG1_WR_FIFO_FULL_MASK)
3022#define APBH_CH1_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3023#define APBH_CH1_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3024#define APBH_CH1_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH1_DEBUG1_WR_FIFO_EMPTY_MASK)
3025#define APBH_CH1_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3026#define APBH_CH1_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3027#define APBH_CH1_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH1_DEBUG1_RD_FIFO_FULL_MASK)
3028#define APBH_CH1_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3029#define APBH_CH1_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3030#define APBH_CH1_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH1_DEBUG1_RD_FIFO_EMPTY_MASK)
3031#define APBH_CH1_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3032#define APBH_CH1_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3033#define APBH_CH1_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH1_DEBUG1_NEXTCMDADDRVALID_MASK)
3034#define APBH_CH1_DEBUG1_LOCK_MASK (0x2000000U)
3035#define APBH_CH1_DEBUG1_LOCK_SHIFT (25U)
3036#define APBH_CH1_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_LOCK_SHIFT)) & APBH_CH1_DEBUG1_LOCK_MASK)
3037#define APBH_CH1_DEBUG1_READY_MASK (0x4000000U)
3038#define APBH_CH1_DEBUG1_READY_SHIFT (26U)
3039#define APBH_CH1_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_READY_SHIFT)) & APBH_CH1_DEBUG1_READY_MASK)
3040#define APBH_CH1_DEBUG1_SENSE_MASK (0x8000000U)
3041#define APBH_CH1_DEBUG1_SENSE_SHIFT (27U)
3042#define APBH_CH1_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_SENSE_SHIFT)) & APBH_CH1_DEBUG1_SENSE_MASK)
3043#define APBH_CH1_DEBUG1_END_MASK (0x10000000U)
3044#define APBH_CH1_DEBUG1_END_SHIFT (28U)
3045#define APBH_CH1_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_END_SHIFT)) & APBH_CH1_DEBUG1_END_MASK)
3046#define APBH_CH1_DEBUG1_KICK_MASK (0x20000000U)
3047#define APBH_CH1_DEBUG1_KICK_SHIFT (29U)
3048#define APBH_CH1_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_KICK_SHIFT)) & APBH_CH1_DEBUG1_KICK_MASK)
3049#define APBH_CH1_DEBUG1_BURST_MASK (0x40000000U)
3050#define APBH_CH1_DEBUG1_BURST_SHIFT (30U)
3051#define APBH_CH1_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_BURST_SHIFT)) & APBH_CH1_DEBUG1_BURST_MASK)
3052#define APBH_CH1_DEBUG1_REQ_MASK (0x80000000U)
3053#define APBH_CH1_DEBUG1_REQ_SHIFT (31U)
3054#define APBH_CH1_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG1_REQ_SHIFT)) & APBH_CH1_DEBUG1_REQ_MASK)
3055/*! @} */
3056
3057/*! @name CH1_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3058/*! @{ */
3059#define APBH_CH1_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3060#define APBH_CH1_DEBUG2_AHB_BYTES_SHIFT (0U)
3061#define APBH_CH1_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH1_DEBUG2_AHB_BYTES_MASK)
3062#define APBH_CH1_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3063#define APBH_CH1_DEBUG2_APB_BYTES_SHIFT (16U)
3064#define APBH_CH1_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH1_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH1_DEBUG2_APB_BYTES_MASK)
3065/*! @} */
3066
3067/*! @name CH2_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3068/*! @{ */
3069#define APBH_CH2_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3070#define APBH_CH2_CURCMDAR_CMD_ADDR_SHIFT (0U)
3071#define APBH_CH2_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH2_CURCMDAR_CMD_ADDR_MASK)
3072/*! @} */
3073
3074/*! @name CH2_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3075/*! @{ */
3076#define APBH_CH2_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3077#define APBH_CH2_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3078#define APBH_CH2_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH2_NXTCMDAR_CMD_ADDR_MASK)
3079/*! @} */
3080
3081/*! @name CH2_CMD - APBH DMA Channel n Command Register */
3082/*! @{ */
3083#define APBH_CH2_CMD_COMMAND_MASK (0x3U)
3084#define APBH_CH2_CMD_COMMAND_SHIFT (0U)
3085/*! COMMAND
3086 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3087 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3088 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3089 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3090 */
3091#define APBH_CH2_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_COMMAND_SHIFT)) & APBH_CH2_CMD_COMMAND_MASK)
3092#define APBH_CH2_CMD_CHAIN_MASK (0x4U)
3093#define APBH_CH2_CMD_CHAIN_SHIFT (2U)
3094#define APBH_CH2_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_CHAIN_SHIFT)) & APBH_CH2_CMD_CHAIN_MASK)
3095#define APBH_CH2_CMD_IRQONCMPLT_MASK (0x8U)
3096#define APBH_CH2_CMD_IRQONCMPLT_SHIFT (3U)
3097#define APBH_CH2_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_IRQONCMPLT_SHIFT)) & APBH_CH2_CMD_IRQONCMPLT_MASK)
3098#define APBH_CH2_CMD_NANDLOCK_MASK (0x10U)
3099#define APBH_CH2_CMD_NANDLOCK_SHIFT (4U)
3100#define APBH_CH2_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_NANDLOCK_SHIFT)) & APBH_CH2_CMD_NANDLOCK_MASK)
3101#define APBH_CH2_CMD_NANDWAIT4READY_MASK (0x20U)
3102#define APBH_CH2_CMD_NANDWAIT4READY_SHIFT (5U)
3103#define APBH_CH2_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH2_CMD_NANDWAIT4READY_MASK)
3104#define APBH_CH2_CMD_SEMAPHORE_MASK (0x40U)
3105#define APBH_CH2_CMD_SEMAPHORE_SHIFT (6U)
3106#define APBH_CH2_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_SEMAPHORE_SHIFT)) & APBH_CH2_CMD_SEMAPHORE_MASK)
3107#define APBH_CH2_CMD_WAIT4ENDCMD_MASK (0x80U)
3108#define APBH_CH2_CMD_WAIT4ENDCMD_SHIFT (7U)
3109#define APBH_CH2_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH2_CMD_WAIT4ENDCMD_MASK)
3110#define APBH_CH2_CMD_HALTONTERMINATE_MASK (0x100U)
3111#define APBH_CH2_CMD_HALTONTERMINATE_SHIFT (8U)
3112#define APBH_CH2_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH2_CMD_HALTONTERMINATE_MASK)
3113#define APBH_CH2_CMD_CMDWORDS_MASK (0xF000U)
3114#define APBH_CH2_CMD_CMDWORDS_SHIFT (12U)
3115#define APBH_CH2_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_CMDWORDS_SHIFT)) & APBH_CH2_CMD_CMDWORDS_MASK)
3116#define APBH_CH2_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3117#define APBH_CH2_CMD_XFER_COUNT_SHIFT (16U)
3118#define APBH_CH2_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_CMD_XFER_COUNT_SHIFT)) & APBH_CH2_CMD_XFER_COUNT_MASK)
3119/*! @} */
3120
3121/*! @name CH2_BAR - APBH DMA Channel n Buffer Address Register */
3122/*! @{ */
3123#define APBH_CH2_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3124#define APBH_CH2_BAR_ADDRESS_SHIFT (0U)
3125#define APBH_CH2_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_BAR_ADDRESS_SHIFT)) & APBH_CH2_BAR_ADDRESS_MASK)
3126/*! @} */
3127
3128/*! @name CH2_SEMA - APBH DMA Channel n Semaphore Register */
3129/*! @{ */
3130#define APBH_CH2_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3131#define APBH_CH2_SEMA_INCREMENT_SEMA_SHIFT (0U)
3132#define APBH_CH2_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH2_SEMA_INCREMENT_SEMA_MASK)
3133#define APBH_CH2_SEMA_PHORE_MASK (0xFF0000U)
3134#define APBH_CH2_SEMA_PHORE_SHIFT (16U)
3135#define APBH_CH2_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_SEMA_PHORE_SHIFT)) & APBH_CH2_SEMA_PHORE_MASK)
3136/*! @} */
3137
3138/*! @name CH2_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3139/*! @{ */
3140#define APBH_CH2_DEBUG1_STATEMACHINE_MASK (0x1FU)
3141#define APBH_CH2_DEBUG1_STATEMACHINE_SHIFT (0U)
3142/*! STATEMACHINE
3143 * 0b00000..This is the idle state of the DMA state machine.
3144 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3145 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3146 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3147 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3148 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3149 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3150 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3151 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3152 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3153 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3154 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3155 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3156 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3157 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3158 * 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.
3159 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3160 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3161 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3162 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3163 */
3164#define APBH_CH2_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH2_DEBUG1_STATEMACHINE_MASK)
3165#define APBH_CH2_DEBUG1_RSVD1_MASK (0xFFFE0U)
3166#define APBH_CH2_DEBUG1_RSVD1_SHIFT (5U)
3167#define APBH_CH2_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_RSVD1_SHIFT)) & APBH_CH2_DEBUG1_RSVD1_MASK)
3168#define APBH_CH2_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3169#define APBH_CH2_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3170#define APBH_CH2_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH2_DEBUG1_WR_FIFO_FULL_MASK)
3171#define APBH_CH2_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3172#define APBH_CH2_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3173#define APBH_CH2_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH2_DEBUG1_WR_FIFO_EMPTY_MASK)
3174#define APBH_CH2_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3175#define APBH_CH2_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3176#define APBH_CH2_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH2_DEBUG1_RD_FIFO_FULL_MASK)
3177#define APBH_CH2_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3178#define APBH_CH2_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3179#define APBH_CH2_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH2_DEBUG1_RD_FIFO_EMPTY_MASK)
3180#define APBH_CH2_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3181#define APBH_CH2_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3182#define APBH_CH2_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH2_DEBUG1_NEXTCMDADDRVALID_MASK)
3183#define APBH_CH2_DEBUG1_LOCK_MASK (0x2000000U)
3184#define APBH_CH2_DEBUG1_LOCK_SHIFT (25U)
3185#define APBH_CH2_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_LOCK_SHIFT)) & APBH_CH2_DEBUG1_LOCK_MASK)
3186#define APBH_CH2_DEBUG1_READY_MASK (0x4000000U)
3187#define APBH_CH2_DEBUG1_READY_SHIFT (26U)
3188#define APBH_CH2_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_READY_SHIFT)) & APBH_CH2_DEBUG1_READY_MASK)
3189#define APBH_CH2_DEBUG1_SENSE_MASK (0x8000000U)
3190#define APBH_CH2_DEBUG1_SENSE_SHIFT (27U)
3191#define APBH_CH2_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_SENSE_SHIFT)) & APBH_CH2_DEBUG1_SENSE_MASK)
3192#define APBH_CH2_DEBUG1_END_MASK (0x10000000U)
3193#define APBH_CH2_DEBUG1_END_SHIFT (28U)
3194#define APBH_CH2_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_END_SHIFT)) & APBH_CH2_DEBUG1_END_MASK)
3195#define APBH_CH2_DEBUG1_KICK_MASK (0x20000000U)
3196#define APBH_CH2_DEBUG1_KICK_SHIFT (29U)
3197#define APBH_CH2_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_KICK_SHIFT)) & APBH_CH2_DEBUG1_KICK_MASK)
3198#define APBH_CH2_DEBUG1_BURST_MASK (0x40000000U)
3199#define APBH_CH2_DEBUG1_BURST_SHIFT (30U)
3200#define APBH_CH2_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_BURST_SHIFT)) & APBH_CH2_DEBUG1_BURST_MASK)
3201#define APBH_CH2_DEBUG1_REQ_MASK (0x80000000U)
3202#define APBH_CH2_DEBUG1_REQ_SHIFT (31U)
3203#define APBH_CH2_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG1_REQ_SHIFT)) & APBH_CH2_DEBUG1_REQ_MASK)
3204/*! @} */
3205
3206/*! @name CH2_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3207/*! @{ */
3208#define APBH_CH2_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3209#define APBH_CH2_DEBUG2_AHB_BYTES_SHIFT (0U)
3210#define APBH_CH2_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH2_DEBUG2_AHB_BYTES_MASK)
3211#define APBH_CH2_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3212#define APBH_CH2_DEBUG2_APB_BYTES_SHIFT (16U)
3213#define APBH_CH2_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH2_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH2_DEBUG2_APB_BYTES_MASK)
3214/*! @} */
3215
3216/*! @name CH3_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3217/*! @{ */
3218#define APBH_CH3_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3219#define APBH_CH3_CURCMDAR_CMD_ADDR_SHIFT (0U)
3220#define APBH_CH3_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH3_CURCMDAR_CMD_ADDR_MASK)
3221/*! @} */
3222
3223/*! @name CH3_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3224/*! @{ */
3225#define APBH_CH3_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3226#define APBH_CH3_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3227#define APBH_CH3_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH3_NXTCMDAR_CMD_ADDR_MASK)
3228/*! @} */
3229
3230/*! @name CH3_CMD - APBH DMA Channel n Command Register */
3231/*! @{ */
3232#define APBH_CH3_CMD_COMMAND_MASK (0x3U)
3233#define APBH_CH3_CMD_COMMAND_SHIFT (0U)
3234/*! COMMAND
3235 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3236 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3237 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3238 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3239 */
3240#define APBH_CH3_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_COMMAND_SHIFT)) & APBH_CH3_CMD_COMMAND_MASK)
3241#define APBH_CH3_CMD_CHAIN_MASK (0x4U)
3242#define APBH_CH3_CMD_CHAIN_SHIFT (2U)
3243#define APBH_CH3_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_CHAIN_SHIFT)) & APBH_CH3_CMD_CHAIN_MASK)
3244#define APBH_CH3_CMD_IRQONCMPLT_MASK (0x8U)
3245#define APBH_CH3_CMD_IRQONCMPLT_SHIFT (3U)
3246#define APBH_CH3_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_IRQONCMPLT_SHIFT)) & APBH_CH3_CMD_IRQONCMPLT_MASK)
3247#define APBH_CH3_CMD_NANDLOCK_MASK (0x10U)
3248#define APBH_CH3_CMD_NANDLOCK_SHIFT (4U)
3249#define APBH_CH3_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_NANDLOCK_SHIFT)) & APBH_CH3_CMD_NANDLOCK_MASK)
3250#define APBH_CH3_CMD_NANDWAIT4READY_MASK (0x20U)
3251#define APBH_CH3_CMD_NANDWAIT4READY_SHIFT (5U)
3252#define APBH_CH3_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH3_CMD_NANDWAIT4READY_MASK)
3253#define APBH_CH3_CMD_SEMAPHORE_MASK (0x40U)
3254#define APBH_CH3_CMD_SEMAPHORE_SHIFT (6U)
3255#define APBH_CH3_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_SEMAPHORE_SHIFT)) & APBH_CH3_CMD_SEMAPHORE_MASK)
3256#define APBH_CH3_CMD_WAIT4ENDCMD_MASK (0x80U)
3257#define APBH_CH3_CMD_WAIT4ENDCMD_SHIFT (7U)
3258#define APBH_CH3_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH3_CMD_WAIT4ENDCMD_MASK)
3259#define APBH_CH3_CMD_HALTONTERMINATE_MASK (0x100U)
3260#define APBH_CH3_CMD_HALTONTERMINATE_SHIFT (8U)
3261#define APBH_CH3_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH3_CMD_HALTONTERMINATE_MASK)
3262#define APBH_CH3_CMD_CMDWORDS_MASK (0xF000U)
3263#define APBH_CH3_CMD_CMDWORDS_SHIFT (12U)
3264#define APBH_CH3_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_CMDWORDS_SHIFT)) & APBH_CH3_CMD_CMDWORDS_MASK)
3265#define APBH_CH3_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3266#define APBH_CH3_CMD_XFER_COUNT_SHIFT (16U)
3267#define APBH_CH3_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_CMD_XFER_COUNT_SHIFT)) & APBH_CH3_CMD_XFER_COUNT_MASK)
3268/*! @} */
3269
3270/*! @name CH3_BAR - APBH DMA Channel n Buffer Address Register */
3271/*! @{ */
3272#define APBH_CH3_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3273#define APBH_CH3_BAR_ADDRESS_SHIFT (0U)
3274#define APBH_CH3_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_BAR_ADDRESS_SHIFT)) & APBH_CH3_BAR_ADDRESS_MASK)
3275/*! @} */
3276
3277/*! @name CH3_SEMA - APBH DMA Channel n Semaphore Register */
3278/*! @{ */
3279#define APBH_CH3_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3280#define APBH_CH3_SEMA_INCREMENT_SEMA_SHIFT (0U)
3281#define APBH_CH3_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH3_SEMA_INCREMENT_SEMA_MASK)
3282#define APBH_CH3_SEMA_PHORE_MASK (0xFF0000U)
3283#define APBH_CH3_SEMA_PHORE_SHIFT (16U)
3284#define APBH_CH3_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_SEMA_PHORE_SHIFT)) & APBH_CH3_SEMA_PHORE_MASK)
3285/*! @} */
3286
3287/*! @name CH3_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3288/*! @{ */
3289#define APBH_CH3_DEBUG1_STATEMACHINE_MASK (0x1FU)
3290#define APBH_CH3_DEBUG1_STATEMACHINE_SHIFT (0U)
3291/*! STATEMACHINE
3292 * 0b00000..This is the idle state of the DMA state machine.
3293 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3294 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3295 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3296 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3297 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3298 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3299 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3300 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3301 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3302 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3303 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3304 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3305 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3306 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3307 * 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.
3308 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3309 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3310 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3311 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3312 */
3313#define APBH_CH3_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH3_DEBUG1_STATEMACHINE_MASK)
3314#define APBH_CH3_DEBUG1_RSVD1_MASK (0xFFFE0U)
3315#define APBH_CH3_DEBUG1_RSVD1_SHIFT (5U)
3316#define APBH_CH3_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_RSVD1_SHIFT)) & APBH_CH3_DEBUG1_RSVD1_MASK)
3317#define APBH_CH3_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3318#define APBH_CH3_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3319#define APBH_CH3_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH3_DEBUG1_WR_FIFO_FULL_MASK)
3320#define APBH_CH3_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3321#define APBH_CH3_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3322#define APBH_CH3_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH3_DEBUG1_WR_FIFO_EMPTY_MASK)
3323#define APBH_CH3_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3324#define APBH_CH3_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3325#define APBH_CH3_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH3_DEBUG1_RD_FIFO_FULL_MASK)
3326#define APBH_CH3_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3327#define APBH_CH3_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3328#define APBH_CH3_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH3_DEBUG1_RD_FIFO_EMPTY_MASK)
3329#define APBH_CH3_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3330#define APBH_CH3_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3331#define APBH_CH3_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH3_DEBUG1_NEXTCMDADDRVALID_MASK)
3332#define APBH_CH3_DEBUG1_LOCK_MASK (0x2000000U)
3333#define APBH_CH3_DEBUG1_LOCK_SHIFT (25U)
3334#define APBH_CH3_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_LOCK_SHIFT)) & APBH_CH3_DEBUG1_LOCK_MASK)
3335#define APBH_CH3_DEBUG1_READY_MASK (0x4000000U)
3336#define APBH_CH3_DEBUG1_READY_SHIFT (26U)
3337#define APBH_CH3_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_READY_SHIFT)) & APBH_CH3_DEBUG1_READY_MASK)
3338#define APBH_CH3_DEBUG1_SENSE_MASK (0x8000000U)
3339#define APBH_CH3_DEBUG1_SENSE_SHIFT (27U)
3340#define APBH_CH3_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_SENSE_SHIFT)) & APBH_CH3_DEBUG1_SENSE_MASK)
3341#define APBH_CH3_DEBUG1_END_MASK (0x10000000U)
3342#define APBH_CH3_DEBUG1_END_SHIFT (28U)
3343#define APBH_CH3_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_END_SHIFT)) & APBH_CH3_DEBUG1_END_MASK)
3344#define APBH_CH3_DEBUG1_KICK_MASK (0x20000000U)
3345#define APBH_CH3_DEBUG1_KICK_SHIFT (29U)
3346#define APBH_CH3_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_KICK_SHIFT)) & APBH_CH3_DEBUG1_KICK_MASK)
3347#define APBH_CH3_DEBUG1_BURST_MASK (0x40000000U)
3348#define APBH_CH3_DEBUG1_BURST_SHIFT (30U)
3349#define APBH_CH3_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_BURST_SHIFT)) & APBH_CH3_DEBUG1_BURST_MASK)
3350#define APBH_CH3_DEBUG1_REQ_MASK (0x80000000U)
3351#define APBH_CH3_DEBUG1_REQ_SHIFT (31U)
3352#define APBH_CH3_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG1_REQ_SHIFT)) & APBH_CH3_DEBUG1_REQ_MASK)
3353/*! @} */
3354
3355/*! @name CH3_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3356/*! @{ */
3357#define APBH_CH3_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3358#define APBH_CH3_DEBUG2_AHB_BYTES_SHIFT (0U)
3359#define APBH_CH3_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH3_DEBUG2_AHB_BYTES_MASK)
3360#define APBH_CH3_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3361#define APBH_CH3_DEBUG2_APB_BYTES_SHIFT (16U)
3362#define APBH_CH3_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH3_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH3_DEBUG2_APB_BYTES_MASK)
3363/*! @} */
3364
3365/*! @name CH4_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3366/*! @{ */
3367#define APBH_CH4_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3368#define APBH_CH4_CURCMDAR_CMD_ADDR_SHIFT (0U)
3369#define APBH_CH4_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH4_CURCMDAR_CMD_ADDR_MASK)
3370/*! @} */
3371
3372/*! @name CH4_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3373/*! @{ */
3374#define APBH_CH4_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3375#define APBH_CH4_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3376#define APBH_CH4_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH4_NXTCMDAR_CMD_ADDR_MASK)
3377/*! @} */
3378
3379/*! @name CH4_CMD - APBH DMA Channel n Command Register */
3380/*! @{ */
3381#define APBH_CH4_CMD_COMMAND_MASK (0x3U)
3382#define APBH_CH4_CMD_COMMAND_SHIFT (0U)
3383/*! COMMAND
3384 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3385 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3386 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3387 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3388 */
3389#define APBH_CH4_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_COMMAND_SHIFT)) & APBH_CH4_CMD_COMMAND_MASK)
3390#define APBH_CH4_CMD_CHAIN_MASK (0x4U)
3391#define APBH_CH4_CMD_CHAIN_SHIFT (2U)
3392#define APBH_CH4_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_CHAIN_SHIFT)) & APBH_CH4_CMD_CHAIN_MASK)
3393#define APBH_CH4_CMD_IRQONCMPLT_MASK (0x8U)
3394#define APBH_CH4_CMD_IRQONCMPLT_SHIFT (3U)
3395#define APBH_CH4_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_IRQONCMPLT_SHIFT)) & APBH_CH4_CMD_IRQONCMPLT_MASK)
3396#define APBH_CH4_CMD_NANDLOCK_MASK (0x10U)
3397#define APBH_CH4_CMD_NANDLOCK_SHIFT (4U)
3398#define APBH_CH4_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_NANDLOCK_SHIFT)) & APBH_CH4_CMD_NANDLOCK_MASK)
3399#define APBH_CH4_CMD_NANDWAIT4READY_MASK (0x20U)
3400#define APBH_CH4_CMD_NANDWAIT4READY_SHIFT (5U)
3401#define APBH_CH4_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH4_CMD_NANDWAIT4READY_MASK)
3402#define APBH_CH4_CMD_SEMAPHORE_MASK (0x40U)
3403#define APBH_CH4_CMD_SEMAPHORE_SHIFT (6U)
3404#define APBH_CH4_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_SEMAPHORE_SHIFT)) & APBH_CH4_CMD_SEMAPHORE_MASK)
3405#define APBH_CH4_CMD_WAIT4ENDCMD_MASK (0x80U)
3406#define APBH_CH4_CMD_WAIT4ENDCMD_SHIFT (7U)
3407#define APBH_CH4_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH4_CMD_WAIT4ENDCMD_MASK)
3408#define APBH_CH4_CMD_HALTONTERMINATE_MASK (0x100U)
3409#define APBH_CH4_CMD_HALTONTERMINATE_SHIFT (8U)
3410#define APBH_CH4_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH4_CMD_HALTONTERMINATE_MASK)
3411#define APBH_CH4_CMD_CMDWORDS_MASK (0xF000U)
3412#define APBH_CH4_CMD_CMDWORDS_SHIFT (12U)
3413#define APBH_CH4_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_CMDWORDS_SHIFT)) & APBH_CH4_CMD_CMDWORDS_MASK)
3414#define APBH_CH4_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3415#define APBH_CH4_CMD_XFER_COUNT_SHIFT (16U)
3416#define APBH_CH4_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_CMD_XFER_COUNT_SHIFT)) & APBH_CH4_CMD_XFER_COUNT_MASK)
3417/*! @} */
3418
3419/*! @name CH4_BAR - APBH DMA Channel n Buffer Address Register */
3420/*! @{ */
3421#define APBH_CH4_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3422#define APBH_CH4_BAR_ADDRESS_SHIFT (0U)
3423#define APBH_CH4_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_BAR_ADDRESS_SHIFT)) & APBH_CH4_BAR_ADDRESS_MASK)
3424/*! @} */
3425
3426/*! @name CH4_SEMA - APBH DMA Channel n Semaphore Register */
3427/*! @{ */
3428#define APBH_CH4_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3429#define APBH_CH4_SEMA_INCREMENT_SEMA_SHIFT (0U)
3430#define APBH_CH4_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH4_SEMA_INCREMENT_SEMA_MASK)
3431#define APBH_CH4_SEMA_PHORE_MASK (0xFF0000U)
3432#define APBH_CH4_SEMA_PHORE_SHIFT (16U)
3433#define APBH_CH4_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_SEMA_PHORE_SHIFT)) & APBH_CH4_SEMA_PHORE_MASK)
3434/*! @} */
3435
3436/*! @name CH4_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3437/*! @{ */
3438#define APBH_CH4_DEBUG1_STATEMACHINE_MASK (0x1FU)
3439#define APBH_CH4_DEBUG1_STATEMACHINE_SHIFT (0U)
3440/*! STATEMACHINE
3441 * 0b00000..This is the idle state of the DMA state machine.
3442 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3443 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3444 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3445 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3446 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3447 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3448 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3449 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3450 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3451 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3452 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3453 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3454 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3455 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3456 * 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.
3457 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3458 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3459 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3460 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3461 */
3462#define APBH_CH4_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH4_DEBUG1_STATEMACHINE_MASK)
3463#define APBH_CH4_DEBUG1_RSVD1_MASK (0xFFFE0U)
3464#define APBH_CH4_DEBUG1_RSVD1_SHIFT (5U)
3465#define APBH_CH4_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_RSVD1_SHIFT)) & APBH_CH4_DEBUG1_RSVD1_MASK)
3466#define APBH_CH4_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3467#define APBH_CH4_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3468#define APBH_CH4_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH4_DEBUG1_WR_FIFO_FULL_MASK)
3469#define APBH_CH4_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3470#define APBH_CH4_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3471#define APBH_CH4_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH4_DEBUG1_WR_FIFO_EMPTY_MASK)
3472#define APBH_CH4_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3473#define APBH_CH4_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3474#define APBH_CH4_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH4_DEBUG1_RD_FIFO_FULL_MASK)
3475#define APBH_CH4_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3476#define APBH_CH4_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3477#define APBH_CH4_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH4_DEBUG1_RD_FIFO_EMPTY_MASK)
3478#define APBH_CH4_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3479#define APBH_CH4_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3480#define APBH_CH4_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH4_DEBUG1_NEXTCMDADDRVALID_MASK)
3481#define APBH_CH4_DEBUG1_LOCK_MASK (0x2000000U)
3482#define APBH_CH4_DEBUG1_LOCK_SHIFT (25U)
3483#define APBH_CH4_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_LOCK_SHIFT)) & APBH_CH4_DEBUG1_LOCK_MASK)
3484#define APBH_CH4_DEBUG1_READY_MASK (0x4000000U)
3485#define APBH_CH4_DEBUG1_READY_SHIFT (26U)
3486#define APBH_CH4_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_READY_SHIFT)) & APBH_CH4_DEBUG1_READY_MASK)
3487#define APBH_CH4_DEBUG1_SENSE_MASK (0x8000000U)
3488#define APBH_CH4_DEBUG1_SENSE_SHIFT (27U)
3489#define APBH_CH4_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_SENSE_SHIFT)) & APBH_CH4_DEBUG1_SENSE_MASK)
3490#define APBH_CH4_DEBUG1_END_MASK (0x10000000U)
3491#define APBH_CH4_DEBUG1_END_SHIFT (28U)
3492#define APBH_CH4_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_END_SHIFT)) & APBH_CH4_DEBUG1_END_MASK)
3493#define APBH_CH4_DEBUG1_KICK_MASK (0x20000000U)
3494#define APBH_CH4_DEBUG1_KICK_SHIFT (29U)
3495#define APBH_CH4_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_KICK_SHIFT)) & APBH_CH4_DEBUG1_KICK_MASK)
3496#define APBH_CH4_DEBUG1_BURST_MASK (0x40000000U)
3497#define APBH_CH4_DEBUG1_BURST_SHIFT (30U)
3498#define APBH_CH4_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_BURST_SHIFT)) & APBH_CH4_DEBUG1_BURST_MASK)
3499#define APBH_CH4_DEBUG1_REQ_MASK (0x80000000U)
3500#define APBH_CH4_DEBUG1_REQ_SHIFT (31U)
3501#define APBH_CH4_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG1_REQ_SHIFT)) & APBH_CH4_DEBUG1_REQ_MASK)
3502/*! @} */
3503
3504/*! @name CH4_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3505/*! @{ */
3506#define APBH_CH4_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3507#define APBH_CH4_DEBUG2_AHB_BYTES_SHIFT (0U)
3508#define APBH_CH4_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH4_DEBUG2_AHB_BYTES_MASK)
3509#define APBH_CH4_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3510#define APBH_CH4_DEBUG2_APB_BYTES_SHIFT (16U)
3511#define APBH_CH4_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH4_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH4_DEBUG2_APB_BYTES_MASK)
3512/*! @} */
3513
3514/*! @name CH5_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3515/*! @{ */
3516#define APBH_CH5_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3517#define APBH_CH5_CURCMDAR_CMD_ADDR_SHIFT (0U)
3518#define APBH_CH5_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH5_CURCMDAR_CMD_ADDR_MASK)
3519/*! @} */
3520
3521/*! @name CH5_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3522/*! @{ */
3523#define APBH_CH5_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3524#define APBH_CH5_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3525#define APBH_CH5_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH5_NXTCMDAR_CMD_ADDR_MASK)
3526/*! @} */
3527
3528/*! @name CH5_CMD - APBH DMA Channel n Command Register */
3529/*! @{ */
3530#define APBH_CH5_CMD_COMMAND_MASK (0x3U)
3531#define APBH_CH5_CMD_COMMAND_SHIFT (0U)
3532/*! COMMAND
3533 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3534 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3535 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3536 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3537 */
3538#define APBH_CH5_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_COMMAND_SHIFT)) & APBH_CH5_CMD_COMMAND_MASK)
3539#define APBH_CH5_CMD_CHAIN_MASK (0x4U)
3540#define APBH_CH5_CMD_CHAIN_SHIFT (2U)
3541#define APBH_CH5_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_CHAIN_SHIFT)) & APBH_CH5_CMD_CHAIN_MASK)
3542#define APBH_CH5_CMD_IRQONCMPLT_MASK (0x8U)
3543#define APBH_CH5_CMD_IRQONCMPLT_SHIFT (3U)
3544#define APBH_CH5_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_IRQONCMPLT_SHIFT)) & APBH_CH5_CMD_IRQONCMPLT_MASK)
3545#define APBH_CH5_CMD_NANDLOCK_MASK (0x10U)
3546#define APBH_CH5_CMD_NANDLOCK_SHIFT (4U)
3547#define APBH_CH5_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_NANDLOCK_SHIFT)) & APBH_CH5_CMD_NANDLOCK_MASK)
3548#define APBH_CH5_CMD_NANDWAIT4READY_MASK (0x20U)
3549#define APBH_CH5_CMD_NANDWAIT4READY_SHIFT (5U)
3550#define APBH_CH5_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH5_CMD_NANDWAIT4READY_MASK)
3551#define APBH_CH5_CMD_SEMAPHORE_MASK (0x40U)
3552#define APBH_CH5_CMD_SEMAPHORE_SHIFT (6U)
3553#define APBH_CH5_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_SEMAPHORE_SHIFT)) & APBH_CH5_CMD_SEMAPHORE_MASK)
3554#define APBH_CH5_CMD_WAIT4ENDCMD_MASK (0x80U)
3555#define APBH_CH5_CMD_WAIT4ENDCMD_SHIFT (7U)
3556#define APBH_CH5_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH5_CMD_WAIT4ENDCMD_MASK)
3557#define APBH_CH5_CMD_HALTONTERMINATE_MASK (0x100U)
3558#define APBH_CH5_CMD_HALTONTERMINATE_SHIFT (8U)
3559#define APBH_CH5_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH5_CMD_HALTONTERMINATE_MASK)
3560#define APBH_CH5_CMD_CMDWORDS_MASK (0xF000U)
3561#define APBH_CH5_CMD_CMDWORDS_SHIFT (12U)
3562#define APBH_CH5_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_CMDWORDS_SHIFT)) & APBH_CH5_CMD_CMDWORDS_MASK)
3563#define APBH_CH5_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3564#define APBH_CH5_CMD_XFER_COUNT_SHIFT (16U)
3565#define APBH_CH5_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_CMD_XFER_COUNT_SHIFT)) & APBH_CH5_CMD_XFER_COUNT_MASK)
3566/*! @} */
3567
3568/*! @name CH5_BAR - APBH DMA Channel n Buffer Address Register */
3569/*! @{ */
3570#define APBH_CH5_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3571#define APBH_CH5_BAR_ADDRESS_SHIFT (0U)
3572#define APBH_CH5_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_BAR_ADDRESS_SHIFT)) & APBH_CH5_BAR_ADDRESS_MASK)
3573/*! @} */
3574
3575/*! @name CH5_SEMA - APBH DMA Channel n Semaphore Register */
3576/*! @{ */
3577#define APBH_CH5_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3578#define APBH_CH5_SEMA_INCREMENT_SEMA_SHIFT (0U)
3579#define APBH_CH5_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH5_SEMA_INCREMENT_SEMA_MASK)
3580#define APBH_CH5_SEMA_PHORE_MASK (0xFF0000U)
3581#define APBH_CH5_SEMA_PHORE_SHIFT (16U)
3582#define APBH_CH5_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_SEMA_PHORE_SHIFT)) & APBH_CH5_SEMA_PHORE_MASK)
3583/*! @} */
3584
3585/*! @name CH5_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3586/*! @{ */
3587#define APBH_CH5_DEBUG1_STATEMACHINE_MASK (0x1FU)
3588#define APBH_CH5_DEBUG1_STATEMACHINE_SHIFT (0U)
3589/*! STATEMACHINE
3590 * 0b00000..This is the idle state of the DMA state machine.
3591 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3592 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3593 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3594 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3595 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3596 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3597 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3598 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3599 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3600 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3601 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3602 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3603 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3604 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3605 * 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.
3606 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3607 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3608 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3609 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3610 */
3611#define APBH_CH5_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH5_DEBUG1_STATEMACHINE_MASK)
3612#define APBH_CH5_DEBUG1_RSVD1_MASK (0xFFFE0U)
3613#define APBH_CH5_DEBUG1_RSVD1_SHIFT (5U)
3614#define APBH_CH5_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_RSVD1_SHIFT)) & APBH_CH5_DEBUG1_RSVD1_MASK)
3615#define APBH_CH5_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3616#define APBH_CH5_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3617#define APBH_CH5_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH5_DEBUG1_WR_FIFO_FULL_MASK)
3618#define APBH_CH5_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3619#define APBH_CH5_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3620#define APBH_CH5_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH5_DEBUG1_WR_FIFO_EMPTY_MASK)
3621#define APBH_CH5_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3622#define APBH_CH5_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3623#define APBH_CH5_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH5_DEBUG1_RD_FIFO_FULL_MASK)
3624#define APBH_CH5_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3625#define APBH_CH5_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3626#define APBH_CH5_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH5_DEBUG1_RD_FIFO_EMPTY_MASK)
3627#define APBH_CH5_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3628#define APBH_CH5_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3629#define APBH_CH5_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH5_DEBUG1_NEXTCMDADDRVALID_MASK)
3630#define APBH_CH5_DEBUG1_LOCK_MASK (0x2000000U)
3631#define APBH_CH5_DEBUG1_LOCK_SHIFT (25U)
3632#define APBH_CH5_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_LOCK_SHIFT)) & APBH_CH5_DEBUG1_LOCK_MASK)
3633#define APBH_CH5_DEBUG1_READY_MASK (0x4000000U)
3634#define APBH_CH5_DEBUG1_READY_SHIFT (26U)
3635#define APBH_CH5_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_READY_SHIFT)) & APBH_CH5_DEBUG1_READY_MASK)
3636#define APBH_CH5_DEBUG1_SENSE_MASK (0x8000000U)
3637#define APBH_CH5_DEBUG1_SENSE_SHIFT (27U)
3638#define APBH_CH5_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_SENSE_SHIFT)) & APBH_CH5_DEBUG1_SENSE_MASK)
3639#define APBH_CH5_DEBUG1_END_MASK (0x10000000U)
3640#define APBH_CH5_DEBUG1_END_SHIFT (28U)
3641#define APBH_CH5_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_END_SHIFT)) & APBH_CH5_DEBUG1_END_MASK)
3642#define APBH_CH5_DEBUG1_KICK_MASK (0x20000000U)
3643#define APBH_CH5_DEBUG1_KICK_SHIFT (29U)
3644#define APBH_CH5_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_KICK_SHIFT)) & APBH_CH5_DEBUG1_KICK_MASK)
3645#define APBH_CH5_DEBUG1_BURST_MASK (0x40000000U)
3646#define APBH_CH5_DEBUG1_BURST_SHIFT (30U)
3647#define APBH_CH5_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_BURST_SHIFT)) & APBH_CH5_DEBUG1_BURST_MASK)
3648#define APBH_CH5_DEBUG1_REQ_MASK (0x80000000U)
3649#define APBH_CH5_DEBUG1_REQ_SHIFT (31U)
3650#define APBH_CH5_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG1_REQ_SHIFT)) & APBH_CH5_DEBUG1_REQ_MASK)
3651/*! @} */
3652
3653/*! @name CH5_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3654/*! @{ */
3655#define APBH_CH5_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3656#define APBH_CH5_DEBUG2_AHB_BYTES_SHIFT (0U)
3657#define APBH_CH5_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH5_DEBUG2_AHB_BYTES_MASK)
3658#define APBH_CH5_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3659#define APBH_CH5_DEBUG2_APB_BYTES_SHIFT (16U)
3660#define APBH_CH5_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH5_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH5_DEBUG2_APB_BYTES_MASK)
3661/*! @} */
3662
3663/*! @name CH6_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3664/*! @{ */
3665#define APBH_CH6_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3666#define APBH_CH6_CURCMDAR_CMD_ADDR_SHIFT (0U)
3667#define APBH_CH6_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH6_CURCMDAR_CMD_ADDR_MASK)
3668/*! @} */
3669
3670/*! @name CH6_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3671/*! @{ */
3672#define APBH_CH6_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3673#define APBH_CH6_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3674#define APBH_CH6_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH6_NXTCMDAR_CMD_ADDR_MASK)
3675/*! @} */
3676
3677/*! @name CH6_CMD - APBH DMA Channel n Command Register */
3678/*! @{ */
3679#define APBH_CH6_CMD_COMMAND_MASK (0x3U)
3680#define APBH_CH6_CMD_COMMAND_SHIFT (0U)
3681/*! COMMAND
3682 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3683 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3684 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3685 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3686 */
3687#define APBH_CH6_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_COMMAND_SHIFT)) & APBH_CH6_CMD_COMMAND_MASK)
3688#define APBH_CH6_CMD_CHAIN_MASK (0x4U)
3689#define APBH_CH6_CMD_CHAIN_SHIFT (2U)
3690#define APBH_CH6_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_CHAIN_SHIFT)) & APBH_CH6_CMD_CHAIN_MASK)
3691#define APBH_CH6_CMD_IRQONCMPLT_MASK (0x8U)
3692#define APBH_CH6_CMD_IRQONCMPLT_SHIFT (3U)
3693#define APBH_CH6_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_IRQONCMPLT_SHIFT)) & APBH_CH6_CMD_IRQONCMPLT_MASK)
3694#define APBH_CH6_CMD_NANDLOCK_MASK (0x10U)
3695#define APBH_CH6_CMD_NANDLOCK_SHIFT (4U)
3696#define APBH_CH6_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_NANDLOCK_SHIFT)) & APBH_CH6_CMD_NANDLOCK_MASK)
3697#define APBH_CH6_CMD_NANDWAIT4READY_MASK (0x20U)
3698#define APBH_CH6_CMD_NANDWAIT4READY_SHIFT (5U)
3699#define APBH_CH6_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH6_CMD_NANDWAIT4READY_MASK)
3700#define APBH_CH6_CMD_SEMAPHORE_MASK (0x40U)
3701#define APBH_CH6_CMD_SEMAPHORE_SHIFT (6U)
3702#define APBH_CH6_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_SEMAPHORE_SHIFT)) & APBH_CH6_CMD_SEMAPHORE_MASK)
3703#define APBH_CH6_CMD_WAIT4ENDCMD_MASK (0x80U)
3704#define APBH_CH6_CMD_WAIT4ENDCMD_SHIFT (7U)
3705#define APBH_CH6_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH6_CMD_WAIT4ENDCMD_MASK)
3706#define APBH_CH6_CMD_HALTONTERMINATE_MASK (0x100U)
3707#define APBH_CH6_CMD_HALTONTERMINATE_SHIFT (8U)
3708#define APBH_CH6_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH6_CMD_HALTONTERMINATE_MASK)
3709#define APBH_CH6_CMD_CMDWORDS_MASK (0xF000U)
3710#define APBH_CH6_CMD_CMDWORDS_SHIFT (12U)
3711#define APBH_CH6_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_CMDWORDS_SHIFT)) & APBH_CH6_CMD_CMDWORDS_MASK)
3712#define APBH_CH6_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3713#define APBH_CH6_CMD_XFER_COUNT_SHIFT (16U)
3714#define APBH_CH6_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_CMD_XFER_COUNT_SHIFT)) & APBH_CH6_CMD_XFER_COUNT_MASK)
3715/*! @} */
3716
3717/*! @name CH6_BAR - APBH DMA Channel n Buffer Address Register */
3718/*! @{ */
3719#define APBH_CH6_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3720#define APBH_CH6_BAR_ADDRESS_SHIFT (0U)
3721#define APBH_CH6_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_BAR_ADDRESS_SHIFT)) & APBH_CH6_BAR_ADDRESS_MASK)
3722/*! @} */
3723
3724/*! @name CH6_SEMA - APBH DMA Channel n Semaphore Register */
3725/*! @{ */
3726#define APBH_CH6_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3727#define APBH_CH6_SEMA_INCREMENT_SEMA_SHIFT (0U)
3728#define APBH_CH6_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH6_SEMA_INCREMENT_SEMA_MASK)
3729#define APBH_CH6_SEMA_PHORE_MASK (0xFF0000U)
3730#define APBH_CH6_SEMA_PHORE_SHIFT (16U)
3731#define APBH_CH6_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_SEMA_PHORE_SHIFT)) & APBH_CH6_SEMA_PHORE_MASK)
3732/*! @} */
3733
3734/*! @name CH6_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3735/*! @{ */
3736#define APBH_CH6_DEBUG1_STATEMACHINE_MASK (0x1FU)
3737#define APBH_CH6_DEBUG1_STATEMACHINE_SHIFT (0U)
3738/*! STATEMACHINE
3739 * 0b00000..This is the idle state of the DMA state machine.
3740 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3741 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3742 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3743 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3744 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3745 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3746 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3747 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3748 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3749 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3750 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3751 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3752 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3753 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3754 * 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.
3755 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3756 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3757 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3758 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3759 */
3760#define APBH_CH6_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH6_DEBUG1_STATEMACHINE_MASK)
3761#define APBH_CH6_DEBUG1_RSVD1_MASK (0xFFFE0U)
3762#define APBH_CH6_DEBUG1_RSVD1_SHIFT (5U)
3763#define APBH_CH6_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_RSVD1_SHIFT)) & APBH_CH6_DEBUG1_RSVD1_MASK)
3764#define APBH_CH6_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3765#define APBH_CH6_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3766#define APBH_CH6_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH6_DEBUG1_WR_FIFO_FULL_MASK)
3767#define APBH_CH6_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3768#define APBH_CH6_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3769#define APBH_CH6_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH6_DEBUG1_WR_FIFO_EMPTY_MASK)
3770#define APBH_CH6_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3771#define APBH_CH6_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3772#define APBH_CH6_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH6_DEBUG1_RD_FIFO_FULL_MASK)
3773#define APBH_CH6_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3774#define APBH_CH6_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3775#define APBH_CH6_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH6_DEBUG1_RD_FIFO_EMPTY_MASK)
3776#define APBH_CH6_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3777#define APBH_CH6_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3778#define APBH_CH6_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH6_DEBUG1_NEXTCMDADDRVALID_MASK)
3779#define APBH_CH6_DEBUG1_LOCK_MASK (0x2000000U)
3780#define APBH_CH6_DEBUG1_LOCK_SHIFT (25U)
3781#define APBH_CH6_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_LOCK_SHIFT)) & APBH_CH6_DEBUG1_LOCK_MASK)
3782#define APBH_CH6_DEBUG1_READY_MASK (0x4000000U)
3783#define APBH_CH6_DEBUG1_READY_SHIFT (26U)
3784#define APBH_CH6_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_READY_SHIFT)) & APBH_CH6_DEBUG1_READY_MASK)
3785#define APBH_CH6_DEBUG1_SENSE_MASK (0x8000000U)
3786#define APBH_CH6_DEBUG1_SENSE_SHIFT (27U)
3787#define APBH_CH6_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_SENSE_SHIFT)) & APBH_CH6_DEBUG1_SENSE_MASK)
3788#define APBH_CH6_DEBUG1_END_MASK (0x10000000U)
3789#define APBH_CH6_DEBUG1_END_SHIFT (28U)
3790#define APBH_CH6_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_END_SHIFT)) & APBH_CH6_DEBUG1_END_MASK)
3791#define APBH_CH6_DEBUG1_KICK_MASK (0x20000000U)
3792#define APBH_CH6_DEBUG1_KICK_SHIFT (29U)
3793#define APBH_CH6_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_KICK_SHIFT)) & APBH_CH6_DEBUG1_KICK_MASK)
3794#define APBH_CH6_DEBUG1_BURST_MASK (0x40000000U)
3795#define APBH_CH6_DEBUG1_BURST_SHIFT (30U)
3796#define APBH_CH6_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_BURST_SHIFT)) & APBH_CH6_DEBUG1_BURST_MASK)
3797#define APBH_CH6_DEBUG1_REQ_MASK (0x80000000U)
3798#define APBH_CH6_DEBUG1_REQ_SHIFT (31U)
3799#define APBH_CH6_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG1_REQ_SHIFT)) & APBH_CH6_DEBUG1_REQ_MASK)
3800/*! @} */
3801
3802/*! @name CH6_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3803/*! @{ */
3804#define APBH_CH6_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3805#define APBH_CH6_DEBUG2_AHB_BYTES_SHIFT (0U)
3806#define APBH_CH6_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH6_DEBUG2_AHB_BYTES_MASK)
3807#define APBH_CH6_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3808#define APBH_CH6_DEBUG2_APB_BYTES_SHIFT (16U)
3809#define APBH_CH6_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH6_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH6_DEBUG2_APB_BYTES_MASK)
3810/*! @} */
3811
3812/*! @name CH7_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3813/*! @{ */
3814#define APBH_CH7_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3815#define APBH_CH7_CURCMDAR_CMD_ADDR_SHIFT (0U)
3816#define APBH_CH7_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH7_CURCMDAR_CMD_ADDR_MASK)
3817/*! @} */
3818
3819/*! @name CH7_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3820/*! @{ */
3821#define APBH_CH7_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3822#define APBH_CH7_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3823#define APBH_CH7_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH7_NXTCMDAR_CMD_ADDR_MASK)
3824/*! @} */
3825
3826/*! @name CH7_CMD - APBH DMA Channel n Command Register */
3827/*! @{ */
3828#define APBH_CH7_CMD_COMMAND_MASK (0x3U)
3829#define APBH_CH7_CMD_COMMAND_SHIFT (0U)
3830/*! COMMAND
3831 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3832 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3833 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3834 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3835 */
3836#define APBH_CH7_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_COMMAND_SHIFT)) & APBH_CH7_CMD_COMMAND_MASK)
3837#define APBH_CH7_CMD_CHAIN_MASK (0x4U)
3838#define APBH_CH7_CMD_CHAIN_SHIFT (2U)
3839#define APBH_CH7_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_CHAIN_SHIFT)) & APBH_CH7_CMD_CHAIN_MASK)
3840#define APBH_CH7_CMD_IRQONCMPLT_MASK (0x8U)
3841#define APBH_CH7_CMD_IRQONCMPLT_SHIFT (3U)
3842#define APBH_CH7_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_IRQONCMPLT_SHIFT)) & APBH_CH7_CMD_IRQONCMPLT_MASK)
3843#define APBH_CH7_CMD_NANDLOCK_MASK (0x10U)
3844#define APBH_CH7_CMD_NANDLOCK_SHIFT (4U)
3845#define APBH_CH7_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_NANDLOCK_SHIFT)) & APBH_CH7_CMD_NANDLOCK_MASK)
3846#define APBH_CH7_CMD_NANDWAIT4READY_MASK (0x20U)
3847#define APBH_CH7_CMD_NANDWAIT4READY_SHIFT (5U)
3848#define APBH_CH7_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH7_CMD_NANDWAIT4READY_MASK)
3849#define APBH_CH7_CMD_SEMAPHORE_MASK (0x40U)
3850#define APBH_CH7_CMD_SEMAPHORE_SHIFT (6U)
3851#define APBH_CH7_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_SEMAPHORE_SHIFT)) & APBH_CH7_CMD_SEMAPHORE_MASK)
3852#define APBH_CH7_CMD_WAIT4ENDCMD_MASK (0x80U)
3853#define APBH_CH7_CMD_WAIT4ENDCMD_SHIFT (7U)
3854#define APBH_CH7_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH7_CMD_WAIT4ENDCMD_MASK)
3855#define APBH_CH7_CMD_HALTONTERMINATE_MASK (0x100U)
3856#define APBH_CH7_CMD_HALTONTERMINATE_SHIFT (8U)
3857#define APBH_CH7_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH7_CMD_HALTONTERMINATE_MASK)
3858#define APBH_CH7_CMD_CMDWORDS_MASK (0xF000U)
3859#define APBH_CH7_CMD_CMDWORDS_SHIFT (12U)
3860#define APBH_CH7_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_CMDWORDS_SHIFT)) & APBH_CH7_CMD_CMDWORDS_MASK)
3861#define APBH_CH7_CMD_XFER_COUNT_MASK (0xFFFF0000U)
3862#define APBH_CH7_CMD_XFER_COUNT_SHIFT (16U)
3863#define APBH_CH7_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_CMD_XFER_COUNT_SHIFT)) & APBH_CH7_CMD_XFER_COUNT_MASK)
3864/*! @} */
3865
3866/*! @name CH7_BAR - APBH DMA Channel n Buffer Address Register */
3867/*! @{ */
3868#define APBH_CH7_BAR_ADDRESS_MASK (0xFFFFFFFFU)
3869#define APBH_CH7_BAR_ADDRESS_SHIFT (0U)
3870#define APBH_CH7_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_BAR_ADDRESS_SHIFT)) & APBH_CH7_BAR_ADDRESS_MASK)
3871/*! @} */
3872
3873/*! @name CH7_SEMA - APBH DMA Channel n Semaphore Register */
3874/*! @{ */
3875#define APBH_CH7_SEMA_INCREMENT_SEMA_MASK (0xFFU)
3876#define APBH_CH7_SEMA_INCREMENT_SEMA_SHIFT (0U)
3877#define APBH_CH7_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH7_SEMA_INCREMENT_SEMA_MASK)
3878#define APBH_CH7_SEMA_PHORE_MASK (0xFF0000U)
3879#define APBH_CH7_SEMA_PHORE_SHIFT (16U)
3880#define APBH_CH7_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_SEMA_PHORE_SHIFT)) & APBH_CH7_SEMA_PHORE_MASK)
3881/*! @} */
3882
3883/*! @name CH7_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
3884/*! @{ */
3885#define APBH_CH7_DEBUG1_STATEMACHINE_MASK (0x1FU)
3886#define APBH_CH7_DEBUG1_STATEMACHINE_SHIFT (0U)
3887/*! STATEMACHINE
3888 * 0b00000..This is the idle state of the DMA state machine.
3889 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
3890 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
3891 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
3892 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
3893 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
3894 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
3895 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
3896 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
3897 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
3898 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3899 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
3900 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
3901 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
3902 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
3903 * 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.
3904 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
3905 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
3906 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
3907 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
3908 */
3909#define APBH_CH7_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH7_DEBUG1_STATEMACHINE_MASK)
3910#define APBH_CH7_DEBUG1_RSVD1_MASK (0xFFFE0U)
3911#define APBH_CH7_DEBUG1_RSVD1_SHIFT (5U)
3912#define APBH_CH7_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_RSVD1_SHIFT)) & APBH_CH7_DEBUG1_RSVD1_MASK)
3913#define APBH_CH7_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
3914#define APBH_CH7_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
3915#define APBH_CH7_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH7_DEBUG1_WR_FIFO_FULL_MASK)
3916#define APBH_CH7_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
3917#define APBH_CH7_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
3918#define APBH_CH7_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH7_DEBUG1_WR_FIFO_EMPTY_MASK)
3919#define APBH_CH7_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
3920#define APBH_CH7_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
3921#define APBH_CH7_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH7_DEBUG1_RD_FIFO_FULL_MASK)
3922#define APBH_CH7_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
3923#define APBH_CH7_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
3924#define APBH_CH7_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH7_DEBUG1_RD_FIFO_EMPTY_MASK)
3925#define APBH_CH7_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
3926#define APBH_CH7_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
3927#define APBH_CH7_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH7_DEBUG1_NEXTCMDADDRVALID_MASK)
3928#define APBH_CH7_DEBUG1_LOCK_MASK (0x2000000U)
3929#define APBH_CH7_DEBUG1_LOCK_SHIFT (25U)
3930#define APBH_CH7_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_LOCK_SHIFT)) & APBH_CH7_DEBUG1_LOCK_MASK)
3931#define APBH_CH7_DEBUG1_READY_MASK (0x4000000U)
3932#define APBH_CH7_DEBUG1_READY_SHIFT (26U)
3933#define APBH_CH7_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_READY_SHIFT)) & APBH_CH7_DEBUG1_READY_MASK)
3934#define APBH_CH7_DEBUG1_SENSE_MASK (0x8000000U)
3935#define APBH_CH7_DEBUG1_SENSE_SHIFT (27U)
3936#define APBH_CH7_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_SENSE_SHIFT)) & APBH_CH7_DEBUG1_SENSE_MASK)
3937#define APBH_CH7_DEBUG1_END_MASK (0x10000000U)
3938#define APBH_CH7_DEBUG1_END_SHIFT (28U)
3939#define APBH_CH7_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_END_SHIFT)) & APBH_CH7_DEBUG1_END_MASK)
3940#define APBH_CH7_DEBUG1_KICK_MASK (0x20000000U)
3941#define APBH_CH7_DEBUG1_KICK_SHIFT (29U)
3942#define APBH_CH7_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_KICK_SHIFT)) & APBH_CH7_DEBUG1_KICK_MASK)
3943#define APBH_CH7_DEBUG1_BURST_MASK (0x40000000U)
3944#define APBH_CH7_DEBUG1_BURST_SHIFT (30U)
3945#define APBH_CH7_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_BURST_SHIFT)) & APBH_CH7_DEBUG1_BURST_MASK)
3946#define APBH_CH7_DEBUG1_REQ_MASK (0x80000000U)
3947#define APBH_CH7_DEBUG1_REQ_SHIFT (31U)
3948#define APBH_CH7_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG1_REQ_SHIFT)) & APBH_CH7_DEBUG1_REQ_MASK)
3949/*! @} */
3950
3951/*! @name CH7_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
3952/*! @{ */
3953#define APBH_CH7_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
3954#define APBH_CH7_DEBUG2_AHB_BYTES_SHIFT (0U)
3955#define APBH_CH7_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH7_DEBUG2_AHB_BYTES_MASK)
3956#define APBH_CH7_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
3957#define APBH_CH7_DEBUG2_APB_BYTES_SHIFT (16U)
3958#define APBH_CH7_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH7_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH7_DEBUG2_APB_BYTES_MASK)
3959/*! @} */
3960
3961/*! @name CH8_CURCMDAR - APBH DMA Channel n Current Command Address Register */
3962/*! @{ */
3963#define APBH_CH8_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3964#define APBH_CH8_CURCMDAR_CMD_ADDR_SHIFT (0U)
3965#define APBH_CH8_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH8_CURCMDAR_CMD_ADDR_MASK)
3966/*! @} */
3967
3968/*! @name CH8_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
3969/*! @{ */
3970#define APBH_CH8_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
3971#define APBH_CH8_NXTCMDAR_CMD_ADDR_SHIFT (0U)
3972#define APBH_CH8_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH8_NXTCMDAR_CMD_ADDR_MASK)
3973/*! @} */
3974
3975/*! @name CH8_CMD - APBH DMA Channel n Command Register */
3976/*! @{ */
3977#define APBH_CH8_CMD_COMMAND_MASK (0x3U)
3978#define APBH_CH8_CMD_COMMAND_SHIFT (0U)
3979/*! COMMAND
3980 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
3981 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
3982 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
3983 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
3984 */
3985#define APBH_CH8_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_COMMAND_SHIFT)) & APBH_CH8_CMD_COMMAND_MASK)
3986#define APBH_CH8_CMD_CHAIN_MASK (0x4U)
3987#define APBH_CH8_CMD_CHAIN_SHIFT (2U)
3988#define APBH_CH8_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_CHAIN_SHIFT)) & APBH_CH8_CMD_CHAIN_MASK)
3989#define APBH_CH8_CMD_IRQONCMPLT_MASK (0x8U)
3990#define APBH_CH8_CMD_IRQONCMPLT_SHIFT (3U)
3991#define APBH_CH8_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_IRQONCMPLT_SHIFT)) & APBH_CH8_CMD_IRQONCMPLT_MASK)
3992#define APBH_CH8_CMD_NANDLOCK_MASK (0x10U)
3993#define APBH_CH8_CMD_NANDLOCK_SHIFT (4U)
3994#define APBH_CH8_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_NANDLOCK_SHIFT)) & APBH_CH8_CMD_NANDLOCK_MASK)
3995#define APBH_CH8_CMD_NANDWAIT4READY_MASK (0x20U)
3996#define APBH_CH8_CMD_NANDWAIT4READY_SHIFT (5U)
3997#define APBH_CH8_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH8_CMD_NANDWAIT4READY_MASK)
3998#define APBH_CH8_CMD_SEMAPHORE_MASK (0x40U)
3999#define APBH_CH8_CMD_SEMAPHORE_SHIFT (6U)
4000#define APBH_CH8_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_SEMAPHORE_SHIFT)) & APBH_CH8_CMD_SEMAPHORE_MASK)
4001#define APBH_CH8_CMD_WAIT4ENDCMD_MASK (0x80U)
4002#define APBH_CH8_CMD_WAIT4ENDCMD_SHIFT (7U)
4003#define APBH_CH8_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH8_CMD_WAIT4ENDCMD_MASK)
4004#define APBH_CH8_CMD_HALTONTERMINATE_MASK (0x100U)
4005#define APBH_CH8_CMD_HALTONTERMINATE_SHIFT (8U)
4006#define APBH_CH8_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH8_CMD_HALTONTERMINATE_MASK)
4007#define APBH_CH8_CMD_CMDWORDS_MASK (0xF000U)
4008#define APBH_CH8_CMD_CMDWORDS_SHIFT (12U)
4009#define APBH_CH8_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_CMDWORDS_SHIFT)) & APBH_CH8_CMD_CMDWORDS_MASK)
4010#define APBH_CH8_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4011#define APBH_CH8_CMD_XFER_COUNT_SHIFT (16U)
4012#define APBH_CH8_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_CMD_XFER_COUNT_SHIFT)) & APBH_CH8_CMD_XFER_COUNT_MASK)
4013/*! @} */
4014
4015/*! @name CH8_BAR - APBH DMA Channel n Buffer Address Register */
4016/*! @{ */
4017#define APBH_CH8_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4018#define APBH_CH8_BAR_ADDRESS_SHIFT (0U)
4019#define APBH_CH8_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_BAR_ADDRESS_SHIFT)) & APBH_CH8_BAR_ADDRESS_MASK)
4020/*! @} */
4021
4022/*! @name CH8_SEMA - APBH DMA Channel n Semaphore Register */
4023/*! @{ */
4024#define APBH_CH8_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4025#define APBH_CH8_SEMA_INCREMENT_SEMA_SHIFT (0U)
4026#define APBH_CH8_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH8_SEMA_INCREMENT_SEMA_MASK)
4027#define APBH_CH8_SEMA_PHORE_MASK (0xFF0000U)
4028#define APBH_CH8_SEMA_PHORE_SHIFT (16U)
4029#define APBH_CH8_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_SEMA_PHORE_SHIFT)) & APBH_CH8_SEMA_PHORE_MASK)
4030/*! @} */
4031
4032/*! @name CH8_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4033/*! @{ */
4034#define APBH_CH8_DEBUG1_STATEMACHINE_MASK (0x1FU)
4035#define APBH_CH8_DEBUG1_STATEMACHINE_SHIFT (0U)
4036/*! STATEMACHINE
4037 * 0b00000..This is the idle state of the DMA state machine.
4038 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4039 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4040 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4041 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4042 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4043 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4044 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4045 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4046 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4047 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4048 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4049 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4050 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4051 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4052 * 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.
4053 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4054 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4055 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4056 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4057 */
4058#define APBH_CH8_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH8_DEBUG1_STATEMACHINE_MASK)
4059#define APBH_CH8_DEBUG1_RSVD1_MASK (0xFFFE0U)
4060#define APBH_CH8_DEBUG1_RSVD1_SHIFT (5U)
4061#define APBH_CH8_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_RSVD1_SHIFT)) & APBH_CH8_DEBUG1_RSVD1_MASK)
4062#define APBH_CH8_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4063#define APBH_CH8_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4064#define APBH_CH8_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH8_DEBUG1_WR_FIFO_FULL_MASK)
4065#define APBH_CH8_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4066#define APBH_CH8_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4067#define APBH_CH8_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH8_DEBUG1_WR_FIFO_EMPTY_MASK)
4068#define APBH_CH8_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4069#define APBH_CH8_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4070#define APBH_CH8_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH8_DEBUG1_RD_FIFO_FULL_MASK)
4071#define APBH_CH8_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4072#define APBH_CH8_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4073#define APBH_CH8_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH8_DEBUG1_RD_FIFO_EMPTY_MASK)
4074#define APBH_CH8_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4075#define APBH_CH8_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4076#define APBH_CH8_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH8_DEBUG1_NEXTCMDADDRVALID_MASK)
4077#define APBH_CH8_DEBUG1_LOCK_MASK (0x2000000U)
4078#define APBH_CH8_DEBUG1_LOCK_SHIFT (25U)
4079#define APBH_CH8_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_LOCK_SHIFT)) & APBH_CH8_DEBUG1_LOCK_MASK)
4080#define APBH_CH8_DEBUG1_READY_MASK (0x4000000U)
4081#define APBH_CH8_DEBUG1_READY_SHIFT (26U)
4082#define APBH_CH8_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_READY_SHIFT)) & APBH_CH8_DEBUG1_READY_MASK)
4083#define APBH_CH8_DEBUG1_SENSE_MASK (0x8000000U)
4084#define APBH_CH8_DEBUG1_SENSE_SHIFT (27U)
4085#define APBH_CH8_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_SENSE_SHIFT)) & APBH_CH8_DEBUG1_SENSE_MASK)
4086#define APBH_CH8_DEBUG1_END_MASK (0x10000000U)
4087#define APBH_CH8_DEBUG1_END_SHIFT (28U)
4088#define APBH_CH8_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_END_SHIFT)) & APBH_CH8_DEBUG1_END_MASK)
4089#define APBH_CH8_DEBUG1_KICK_MASK (0x20000000U)
4090#define APBH_CH8_DEBUG1_KICK_SHIFT (29U)
4091#define APBH_CH8_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_KICK_SHIFT)) & APBH_CH8_DEBUG1_KICK_MASK)
4092#define APBH_CH8_DEBUG1_BURST_MASK (0x40000000U)
4093#define APBH_CH8_DEBUG1_BURST_SHIFT (30U)
4094#define APBH_CH8_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_BURST_SHIFT)) & APBH_CH8_DEBUG1_BURST_MASK)
4095#define APBH_CH8_DEBUG1_REQ_MASK (0x80000000U)
4096#define APBH_CH8_DEBUG1_REQ_SHIFT (31U)
4097#define APBH_CH8_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG1_REQ_SHIFT)) & APBH_CH8_DEBUG1_REQ_MASK)
4098/*! @} */
4099
4100/*! @name CH8_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4101/*! @{ */
4102#define APBH_CH8_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4103#define APBH_CH8_DEBUG2_AHB_BYTES_SHIFT (0U)
4104#define APBH_CH8_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH8_DEBUG2_AHB_BYTES_MASK)
4105#define APBH_CH8_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4106#define APBH_CH8_DEBUG2_APB_BYTES_SHIFT (16U)
4107#define APBH_CH8_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH8_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH8_DEBUG2_APB_BYTES_MASK)
4108/*! @} */
4109
4110/*! @name CH9_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4111/*! @{ */
4112#define APBH_CH9_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4113#define APBH_CH9_CURCMDAR_CMD_ADDR_SHIFT (0U)
4114#define APBH_CH9_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH9_CURCMDAR_CMD_ADDR_MASK)
4115/*! @} */
4116
4117/*! @name CH9_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4118/*! @{ */
4119#define APBH_CH9_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4120#define APBH_CH9_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4121#define APBH_CH9_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH9_NXTCMDAR_CMD_ADDR_MASK)
4122/*! @} */
4123
4124/*! @name CH9_CMD - APBH DMA Channel n Command Register */
4125/*! @{ */
4126#define APBH_CH9_CMD_COMMAND_MASK (0x3U)
4127#define APBH_CH9_CMD_COMMAND_SHIFT (0U)
4128/*! COMMAND
4129 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4130 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4131 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4132 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4133 */
4134#define APBH_CH9_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_COMMAND_SHIFT)) & APBH_CH9_CMD_COMMAND_MASK)
4135#define APBH_CH9_CMD_CHAIN_MASK (0x4U)
4136#define APBH_CH9_CMD_CHAIN_SHIFT (2U)
4137#define APBH_CH9_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_CHAIN_SHIFT)) & APBH_CH9_CMD_CHAIN_MASK)
4138#define APBH_CH9_CMD_IRQONCMPLT_MASK (0x8U)
4139#define APBH_CH9_CMD_IRQONCMPLT_SHIFT (3U)
4140#define APBH_CH9_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_IRQONCMPLT_SHIFT)) & APBH_CH9_CMD_IRQONCMPLT_MASK)
4141#define APBH_CH9_CMD_NANDLOCK_MASK (0x10U)
4142#define APBH_CH9_CMD_NANDLOCK_SHIFT (4U)
4143#define APBH_CH9_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_NANDLOCK_SHIFT)) & APBH_CH9_CMD_NANDLOCK_MASK)
4144#define APBH_CH9_CMD_NANDWAIT4READY_MASK (0x20U)
4145#define APBH_CH9_CMD_NANDWAIT4READY_SHIFT (5U)
4146#define APBH_CH9_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH9_CMD_NANDWAIT4READY_MASK)
4147#define APBH_CH9_CMD_SEMAPHORE_MASK (0x40U)
4148#define APBH_CH9_CMD_SEMAPHORE_SHIFT (6U)
4149#define APBH_CH9_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_SEMAPHORE_SHIFT)) & APBH_CH9_CMD_SEMAPHORE_MASK)
4150#define APBH_CH9_CMD_WAIT4ENDCMD_MASK (0x80U)
4151#define APBH_CH9_CMD_WAIT4ENDCMD_SHIFT (7U)
4152#define APBH_CH9_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH9_CMD_WAIT4ENDCMD_MASK)
4153#define APBH_CH9_CMD_HALTONTERMINATE_MASK (0x100U)
4154#define APBH_CH9_CMD_HALTONTERMINATE_SHIFT (8U)
4155#define APBH_CH9_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH9_CMD_HALTONTERMINATE_MASK)
4156#define APBH_CH9_CMD_CMDWORDS_MASK (0xF000U)
4157#define APBH_CH9_CMD_CMDWORDS_SHIFT (12U)
4158#define APBH_CH9_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_CMDWORDS_SHIFT)) & APBH_CH9_CMD_CMDWORDS_MASK)
4159#define APBH_CH9_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4160#define APBH_CH9_CMD_XFER_COUNT_SHIFT (16U)
4161#define APBH_CH9_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_CMD_XFER_COUNT_SHIFT)) & APBH_CH9_CMD_XFER_COUNT_MASK)
4162/*! @} */
4163
4164/*! @name CH9_BAR - APBH DMA Channel n Buffer Address Register */
4165/*! @{ */
4166#define APBH_CH9_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4167#define APBH_CH9_BAR_ADDRESS_SHIFT (0U)
4168#define APBH_CH9_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_BAR_ADDRESS_SHIFT)) & APBH_CH9_BAR_ADDRESS_MASK)
4169/*! @} */
4170
4171/*! @name CH9_SEMA - APBH DMA Channel n Semaphore Register */
4172/*! @{ */
4173#define APBH_CH9_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4174#define APBH_CH9_SEMA_INCREMENT_SEMA_SHIFT (0U)
4175#define APBH_CH9_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH9_SEMA_INCREMENT_SEMA_MASK)
4176#define APBH_CH9_SEMA_PHORE_MASK (0xFF0000U)
4177#define APBH_CH9_SEMA_PHORE_SHIFT (16U)
4178#define APBH_CH9_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_SEMA_PHORE_SHIFT)) & APBH_CH9_SEMA_PHORE_MASK)
4179/*! @} */
4180
4181/*! @name CH9_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4182/*! @{ */
4183#define APBH_CH9_DEBUG1_STATEMACHINE_MASK (0x1FU)
4184#define APBH_CH9_DEBUG1_STATEMACHINE_SHIFT (0U)
4185/*! STATEMACHINE
4186 * 0b00000..This is the idle state of the DMA state machine.
4187 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4188 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4189 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4190 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4191 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4192 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4193 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4194 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4195 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4196 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4197 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4198 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4199 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4200 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4201 * 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.
4202 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4203 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4204 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4205 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4206 */
4207#define APBH_CH9_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH9_DEBUG1_STATEMACHINE_MASK)
4208#define APBH_CH9_DEBUG1_RSVD1_MASK (0xFFFE0U)
4209#define APBH_CH9_DEBUG1_RSVD1_SHIFT (5U)
4210#define APBH_CH9_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_RSVD1_SHIFT)) & APBH_CH9_DEBUG1_RSVD1_MASK)
4211#define APBH_CH9_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4212#define APBH_CH9_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4213#define APBH_CH9_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH9_DEBUG1_WR_FIFO_FULL_MASK)
4214#define APBH_CH9_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4215#define APBH_CH9_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4216#define APBH_CH9_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH9_DEBUG1_WR_FIFO_EMPTY_MASK)
4217#define APBH_CH9_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4218#define APBH_CH9_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4219#define APBH_CH9_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH9_DEBUG1_RD_FIFO_FULL_MASK)
4220#define APBH_CH9_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4221#define APBH_CH9_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4222#define APBH_CH9_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH9_DEBUG1_RD_FIFO_EMPTY_MASK)
4223#define APBH_CH9_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4224#define APBH_CH9_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4225#define APBH_CH9_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH9_DEBUG1_NEXTCMDADDRVALID_MASK)
4226#define APBH_CH9_DEBUG1_LOCK_MASK (0x2000000U)
4227#define APBH_CH9_DEBUG1_LOCK_SHIFT (25U)
4228#define APBH_CH9_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_LOCK_SHIFT)) & APBH_CH9_DEBUG1_LOCK_MASK)
4229#define APBH_CH9_DEBUG1_READY_MASK (0x4000000U)
4230#define APBH_CH9_DEBUG1_READY_SHIFT (26U)
4231#define APBH_CH9_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_READY_SHIFT)) & APBH_CH9_DEBUG1_READY_MASK)
4232#define APBH_CH9_DEBUG1_SENSE_MASK (0x8000000U)
4233#define APBH_CH9_DEBUG1_SENSE_SHIFT (27U)
4234#define APBH_CH9_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_SENSE_SHIFT)) & APBH_CH9_DEBUG1_SENSE_MASK)
4235#define APBH_CH9_DEBUG1_END_MASK (0x10000000U)
4236#define APBH_CH9_DEBUG1_END_SHIFT (28U)
4237#define APBH_CH9_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_END_SHIFT)) & APBH_CH9_DEBUG1_END_MASK)
4238#define APBH_CH9_DEBUG1_KICK_MASK (0x20000000U)
4239#define APBH_CH9_DEBUG1_KICK_SHIFT (29U)
4240#define APBH_CH9_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_KICK_SHIFT)) & APBH_CH9_DEBUG1_KICK_MASK)
4241#define APBH_CH9_DEBUG1_BURST_MASK (0x40000000U)
4242#define APBH_CH9_DEBUG1_BURST_SHIFT (30U)
4243#define APBH_CH9_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_BURST_SHIFT)) & APBH_CH9_DEBUG1_BURST_MASK)
4244#define APBH_CH9_DEBUG1_REQ_MASK (0x80000000U)
4245#define APBH_CH9_DEBUG1_REQ_SHIFT (31U)
4246#define APBH_CH9_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG1_REQ_SHIFT)) & APBH_CH9_DEBUG1_REQ_MASK)
4247/*! @} */
4248
4249/*! @name CH9_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4250/*! @{ */
4251#define APBH_CH9_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4252#define APBH_CH9_DEBUG2_AHB_BYTES_SHIFT (0U)
4253#define APBH_CH9_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH9_DEBUG2_AHB_BYTES_MASK)
4254#define APBH_CH9_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4255#define APBH_CH9_DEBUG2_APB_BYTES_SHIFT (16U)
4256#define APBH_CH9_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH9_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH9_DEBUG2_APB_BYTES_MASK)
4257/*! @} */
4258
4259/*! @name CH10_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4260/*! @{ */
4261#define APBH_CH10_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4262#define APBH_CH10_CURCMDAR_CMD_ADDR_SHIFT (0U)
4263#define APBH_CH10_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH10_CURCMDAR_CMD_ADDR_MASK)
4264/*! @} */
4265
4266/*! @name CH10_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4267/*! @{ */
4268#define APBH_CH10_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4269#define APBH_CH10_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4270#define APBH_CH10_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH10_NXTCMDAR_CMD_ADDR_MASK)
4271/*! @} */
4272
4273/*! @name CH10_CMD - APBH DMA Channel n Command Register */
4274/*! @{ */
4275#define APBH_CH10_CMD_COMMAND_MASK (0x3U)
4276#define APBH_CH10_CMD_COMMAND_SHIFT (0U)
4277/*! COMMAND
4278 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4279 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4280 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4281 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4282 */
4283#define APBH_CH10_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_COMMAND_SHIFT)) & APBH_CH10_CMD_COMMAND_MASK)
4284#define APBH_CH10_CMD_CHAIN_MASK (0x4U)
4285#define APBH_CH10_CMD_CHAIN_SHIFT (2U)
4286#define APBH_CH10_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_CHAIN_SHIFT)) & APBH_CH10_CMD_CHAIN_MASK)
4287#define APBH_CH10_CMD_IRQONCMPLT_MASK (0x8U)
4288#define APBH_CH10_CMD_IRQONCMPLT_SHIFT (3U)
4289#define APBH_CH10_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_IRQONCMPLT_SHIFT)) & APBH_CH10_CMD_IRQONCMPLT_MASK)
4290#define APBH_CH10_CMD_NANDLOCK_MASK (0x10U)
4291#define APBH_CH10_CMD_NANDLOCK_SHIFT (4U)
4292#define APBH_CH10_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_NANDLOCK_SHIFT)) & APBH_CH10_CMD_NANDLOCK_MASK)
4293#define APBH_CH10_CMD_NANDWAIT4READY_MASK (0x20U)
4294#define APBH_CH10_CMD_NANDWAIT4READY_SHIFT (5U)
4295#define APBH_CH10_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH10_CMD_NANDWAIT4READY_MASK)
4296#define APBH_CH10_CMD_SEMAPHORE_MASK (0x40U)
4297#define APBH_CH10_CMD_SEMAPHORE_SHIFT (6U)
4298#define APBH_CH10_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_SEMAPHORE_SHIFT)) & APBH_CH10_CMD_SEMAPHORE_MASK)
4299#define APBH_CH10_CMD_WAIT4ENDCMD_MASK (0x80U)
4300#define APBH_CH10_CMD_WAIT4ENDCMD_SHIFT (7U)
4301#define APBH_CH10_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH10_CMD_WAIT4ENDCMD_MASK)
4302#define APBH_CH10_CMD_HALTONTERMINATE_MASK (0x100U)
4303#define APBH_CH10_CMD_HALTONTERMINATE_SHIFT (8U)
4304#define APBH_CH10_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH10_CMD_HALTONTERMINATE_MASK)
4305#define APBH_CH10_CMD_CMDWORDS_MASK (0xF000U)
4306#define APBH_CH10_CMD_CMDWORDS_SHIFT (12U)
4307#define APBH_CH10_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_CMDWORDS_SHIFT)) & APBH_CH10_CMD_CMDWORDS_MASK)
4308#define APBH_CH10_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4309#define APBH_CH10_CMD_XFER_COUNT_SHIFT (16U)
4310#define APBH_CH10_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_CMD_XFER_COUNT_SHIFT)) & APBH_CH10_CMD_XFER_COUNT_MASK)
4311/*! @} */
4312
4313/*! @name CH10_BAR - APBH DMA Channel n Buffer Address Register */
4314/*! @{ */
4315#define APBH_CH10_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4316#define APBH_CH10_BAR_ADDRESS_SHIFT (0U)
4317#define APBH_CH10_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_BAR_ADDRESS_SHIFT)) & APBH_CH10_BAR_ADDRESS_MASK)
4318/*! @} */
4319
4320/*! @name CH10_SEMA - APBH DMA Channel n Semaphore Register */
4321/*! @{ */
4322#define APBH_CH10_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4323#define APBH_CH10_SEMA_INCREMENT_SEMA_SHIFT (0U)
4324#define APBH_CH10_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH10_SEMA_INCREMENT_SEMA_MASK)
4325#define APBH_CH10_SEMA_PHORE_MASK (0xFF0000U)
4326#define APBH_CH10_SEMA_PHORE_SHIFT (16U)
4327#define APBH_CH10_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_SEMA_PHORE_SHIFT)) & APBH_CH10_SEMA_PHORE_MASK)
4328/*! @} */
4329
4330/*! @name CH10_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4331/*! @{ */
4332#define APBH_CH10_DEBUG1_STATEMACHINE_MASK (0x1FU)
4333#define APBH_CH10_DEBUG1_STATEMACHINE_SHIFT (0U)
4334/*! STATEMACHINE
4335 * 0b00000..This is the idle state of the DMA state machine.
4336 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4337 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4338 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4339 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4340 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4341 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4342 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4343 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4344 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4345 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4346 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4347 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4348 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4349 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4350 * 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.
4351 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4352 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4353 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4354 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4355 */
4356#define APBH_CH10_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH10_DEBUG1_STATEMACHINE_MASK)
4357#define APBH_CH10_DEBUG1_RSVD1_MASK (0xFFFE0U)
4358#define APBH_CH10_DEBUG1_RSVD1_SHIFT (5U)
4359#define APBH_CH10_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_RSVD1_SHIFT)) & APBH_CH10_DEBUG1_RSVD1_MASK)
4360#define APBH_CH10_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4361#define APBH_CH10_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4362#define APBH_CH10_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH10_DEBUG1_WR_FIFO_FULL_MASK)
4363#define APBH_CH10_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4364#define APBH_CH10_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4365#define APBH_CH10_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH10_DEBUG1_WR_FIFO_EMPTY_MASK)
4366#define APBH_CH10_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4367#define APBH_CH10_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4368#define APBH_CH10_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH10_DEBUG1_RD_FIFO_FULL_MASK)
4369#define APBH_CH10_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4370#define APBH_CH10_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4371#define APBH_CH10_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH10_DEBUG1_RD_FIFO_EMPTY_MASK)
4372#define APBH_CH10_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4373#define APBH_CH10_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4374#define APBH_CH10_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH10_DEBUG1_NEXTCMDADDRVALID_MASK)
4375#define APBH_CH10_DEBUG1_LOCK_MASK (0x2000000U)
4376#define APBH_CH10_DEBUG1_LOCK_SHIFT (25U)
4377#define APBH_CH10_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_LOCK_SHIFT)) & APBH_CH10_DEBUG1_LOCK_MASK)
4378#define APBH_CH10_DEBUG1_READY_MASK (0x4000000U)
4379#define APBH_CH10_DEBUG1_READY_SHIFT (26U)
4380#define APBH_CH10_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_READY_SHIFT)) & APBH_CH10_DEBUG1_READY_MASK)
4381#define APBH_CH10_DEBUG1_SENSE_MASK (0x8000000U)
4382#define APBH_CH10_DEBUG1_SENSE_SHIFT (27U)
4383#define APBH_CH10_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_SENSE_SHIFT)) & APBH_CH10_DEBUG1_SENSE_MASK)
4384#define APBH_CH10_DEBUG1_END_MASK (0x10000000U)
4385#define APBH_CH10_DEBUG1_END_SHIFT (28U)
4386#define APBH_CH10_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_END_SHIFT)) & APBH_CH10_DEBUG1_END_MASK)
4387#define APBH_CH10_DEBUG1_KICK_MASK (0x20000000U)
4388#define APBH_CH10_DEBUG1_KICK_SHIFT (29U)
4389#define APBH_CH10_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_KICK_SHIFT)) & APBH_CH10_DEBUG1_KICK_MASK)
4390#define APBH_CH10_DEBUG1_BURST_MASK (0x40000000U)
4391#define APBH_CH10_DEBUG1_BURST_SHIFT (30U)
4392#define APBH_CH10_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_BURST_SHIFT)) & APBH_CH10_DEBUG1_BURST_MASK)
4393#define APBH_CH10_DEBUG1_REQ_MASK (0x80000000U)
4394#define APBH_CH10_DEBUG1_REQ_SHIFT (31U)
4395#define APBH_CH10_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG1_REQ_SHIFT)) & APBH_CH10_DEBUG1_REQ_MASK)
4396/*! @} */
4397
4398/*! @name CH10_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4399/*! @{ */
4400#define APBH_CH10_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4401#define APBH_CH10_DEBUG2_AHB_BYTES_SHIFT (0U)
4402#define APBH_CH10_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH10_DEBUG2_AHB_BYTES_MASK)
4403#define APBH_CH10_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4404#define APBH_CH10_DEBUG2_APB_BYTES_SHIFT (16U)
4405#define APBH_CH10_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH10_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH10_DEBUG2_APB_BYTES_MASK)
4406/*! @} */
4407
4408/*! @name CH11_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4409/*! @{ */
4410#define APBH_CH11_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4411#define APBH_CH11_CURCMDAR_CMD_ADDR_SHIFT (0U)
4412#define APBH_CH11_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH11_CURCMDAR_CMD_ADDR_MASK)
4413/*! @} */
4414
4415/*! @name CH11_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4416/*! @{ */
4417#define APBH_CH11_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4418#define APBH_CH11_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4419#define APBH_CH11_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH11_NXTCMDAR_CMD_ADDR_MASK)
4420/*! @} */
4421
4422/*! @name CH11_CMD - APBH DMA Channel n Command Register */
4423/*! @{ */
4424#define APBH_CH11_CMD_COMMAND_MASK (0x3U)
4425#define APBH_CH11_CMD_COMMAND_SHIFT (0U)
4426/*! COMMAND
4427 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4428 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4429 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4430 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4431 */
4432#define APBH_CH11_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_COMMAND_SHIFT)) & APBH_CH11_CMD_COMMAND_MASK)
4433#define APBH_CH11_CMD_CHAIN_MASK (0x4U)
4434#define APBH_CH11_CMD_CHAIN_SHIFT (2U)
4435#define APBH_CH11_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_CHAIN_SHIFT)) & APBH_CH11_CMD_CHAIN_MASK)
4436#define APBH_CH11_CMD_IRQONCMPLT_MASK (0x8U)
4437#define APBH_CH11_CMD_IRQONCMPLT_SHIFT (3U)
4438#define APBH_CH11_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_IRQONCMPLT_SHIFT)) & APBH_CH11_CMD_IRQONCMPLT_MASK)
4439#define APBH_CH11_CMD_NANDLOCK_MASK (0x10U)
4440#define APBH_CH11_CMD_NANDLOCK_SHIFT (4U)
4441#define APBH_CH11_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_NANDLOCK_SHIFT)) & APBH_CH11_CMD_NANDLOCK_MASK)
4442#define APBH_CH11_CMD_NANDWAIT4READY_MASK (0x20U)
4443#define APBH_CH11_CMD_NANDWAIT4READY_SHIFT (5U)
4444#define APBH_CH11_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH11_CMD_NANDWAIT4READY_MASK)
4445#define APBH_CH11_CMD_SEMAPHORE_MASK (0x40U)
4446#define APBH_CH11_CMD_SEMAPHORE_SHIFT (6U)
4447#define APBH_CH11_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_SEMAPHORE_SHIFT)) & APBH_CH11_CMD_SEMAPHORE_MASK)
4448#define APBH_CH11_CMD_WAIT4ENDCMD_MASK (0x80U)
4449#define APBH_CH11_CMD_WAIT4ENDCMD_SHIFT (7U)
4450#define APBH_CH11_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH11_CMD_WAIT4ENDCMD_MASK)
4451#define APBH_CH11_CMD_HALTONTERMINATE_MASK (0x100U)
4452#define APBH_CH11_CMD_HALTONTERMINATE_SHIFT (8U)
4453#define APBH_CH11_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH11_CMD_HALTONTERMINATE_MASK)
4454#define APBH_CH11_CMD_CMDWORDS_MASK (0xF000U)
4455#define APBH_CH11_CMD_CMDWORDS_SHIFT (12U)
4456#define APBH_CH11_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_CMDWORDS_SHIFT)) & APBH_CH11_CMD_CMDWORDS_MASK)
4457#define APBH_CH11_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4458#define APBH_CH11_CMD_XFER_COUNT_SHIFT (16U)
4459#define APBH_CH11_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_CMD_XFER_COUNT_SHIFT)) & APBH_CH11_CMD_XFER_COUNT_MASK)
4460/*! @} */
4461
4462/*! @name CH11_BAR - APBH DMA Channel n Buffer Address Register */
4463/*! @{ */
4464#define APBH_CH11_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4465#define APBH_CH11_BAR_ADDRESS_SHIFT (0U)
4466#define APBH_CH11_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_BAR_ADDRESS_SHIFT)) & APBH_CH11_BAR_ADDRESS_MASK)
4467/*! @} */
4468
4469/*! @name CH11_SEMA - APBH DMA Channel n Semaphore Register */
4470/*! @{ */
4471#define APBH_CH11_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4472#define APBH_CH11_SEMA_INCREMENT_SEMA_SHIFT (0U)
4473#define APBH_CH11_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH11_SEMA_INCREMENT_SEMA_MASK)
4474#define APBH_CH11_SEMA_PHORE_MASK (0xFF0000U)
4475#define APBH_CH11_SEMA_PHORE_SHIFT (16U)
4476#define APBH_CH11_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_SEMA_PHORE_SHIFT)) & APBH_CH11_SEMA_PHORE_MASK)
4477/*! @} */
4478
4479/*! @name CH11_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4480/*! @{ */
4481#define APBH_CH11_DEBUG1_STATEMACHINE_MASK (0x1FU)
4482#define APBH_CH11_DEBUG1_STATEMACHINE_SHIFT (0U)
4483/*! STATEMACHINE
4484 * 0b00000..This is the idle state of the DMA state machine.
4485 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4486 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4487 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4488 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4489 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4490 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4491 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4492 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4493 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4494 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4495 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4496 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4497 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4498 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4499 * 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.
4500 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4501 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4502 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4503 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4504 */
4505#define APBH_CH11_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH11_DEBUG1_STATEMACHINE_MASK)
4506#define APBH_CH11_DEBUG1_RSVD1_MASK (0xFFFE0U)
4507#define APBH_CH11_DEBUG1_RSVD1_SHIFT (5U)
4508#define APBH_CH11_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_RSVD1_SHIFT)) & APBH_CH11_DEBUG1_RSVD1_MASK)
4509#define APBH_CH11_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4510#define APBH_CH11_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4511#define APBH_CH11_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH11_DEBUG1_WR_FIFO_FULL_MASK)
4512#define APBH_CH11_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4513#define APBH_CH11_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4514#define APBH_CH11_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH11_DEBUG1_WR_FIFO_EMPTY_MASK)
4515#define APBH_CH11_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4516#define APBH_CH11_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4517#define APBH_CH11_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH11_DEBUG1_RD_FIFO_FULL_MASK)
4518#define APBH_CH11_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4519#define APBH_CH11_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4520#define APBH_CH11_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH11_DEBUG1_RD_FIFO_EMPTY_MASK)
4521#define APBH_CH11_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4522#define APBH_CH11_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4523#define APBH_CH11_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH11_DEBUG1_NEXTCMDADDRVALID_MASK)
4524#define APBH_CH11_DEBUG1_LOCK_MASK (0x2000000U)
4525#define APBH_CH11_DEBUG1_LOCK_SHIFT (25U)
4526#define APBH_CH11_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_LOCK_SHIFT)) & APBH_CH11_DEBUG1_LOCK_MASK)
4527#define APBH_CH11_DEBUG1_READY_MASK (0x4000000U)
4528#define APBH_CH11_DEBUG1_READY_SHIFT (26U)
4529#define APBH_CH11_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_READY_SHIFT)) & APBH_CH11_DEBUG1_READY_MASK)
4530#define APBH_CH11_DEBUG1_SENSE_MASK (0x8000000U)
4531#define APBH_CH11_DEBUG1_SENSE_SHIFT (27U)
4532#define APBH_CH11_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_SENSE_SHIFT)) & APBH_CH11_DEBUG1_SENSE_MASK)
4533#define APBH_CH11_DEBUG1_END_MASK (0x10000000U)
4534#define APBH_CH11_DEBUG1_END_SHIFT (28U)
4535#define APBH_CH11_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_END_SHIFT)) & APBH_CH11_DEBUG1_END_MASK)
4536#define APBH_CH11_DEBUG1_KICK_MASK (0x20000000U)
4537#define APBH_CH11_DEBUG1_KICK_SHIFT (29U)
4538#define APBH_CH11_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_KICK_SHIFT)) & APBH_CH11_DEBUG1_KICK_MASK)
4539#define APBH_CH11_DEBUG1_BURST_MASK (0x40000000U)
4540#define APBH_CH11_DEBUG1_BURST_SHIFT (30U)
4541#define APBH_CH11_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_BURST_SHIFT)) & APBH_CH11_DEBUG1_BURST_MASK)
4542#define APBH_CH11_DEBUG1_REQ_MASK (0x80000000U)
4543#define APBH_CH11_DEBUG1_REQ_SHIFT (31U)
4544#define APBH_CH11_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG1_REQ_SHIFT)) & APBH_CH11_DEBUG1_REQ_MASK)
4545/*! @} */
4546
4547/*! @name CH11_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4548/*! @{ */
4549#define APBH_CH11_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4550#define APBH_CH11_DEBUG2_AHB_BYTES_SHIFT (0U)
4551#define APBH_CH11_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH11_DEBUG2_AHB_BYTES_MASK)
4552#define APBH_CH11_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4553#define APBH_CH11_DEBUG2_APB_BYTES_SHIFT (16U)
4554#define APBH_CH11_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH11_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH11_DEBUG2_APB_BYTES_MASK)
4555/*! @} */
4556
4557/*! @name CH12_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4558/*! @{ */
4559#define APBH_CH12_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4560#define APBH_CH12_CURCMDAR_CMD_ADDR_SHIFT (0U)
4561#define APBH_CH12_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH12_CURCMDAR_CMD_ADDR_MASK)
4562/*! @} */
4563
4564/*! @name CH12_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4565/*! @{ */
4566#define APBH_CH12_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4567#define APBH_CH12_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4568#define APBH_CH12_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH12_NXTCMDAR_CMD_ADDR_MASK)
4569/*! @} */
4570
4571/*! @name CH12_CMD - APBH DMA Channel n Command Register */
4572/*! @{ */
4573#define APBH_CH12_CMD_COMMAND_MASK (0x3U)
4574#define APBH_CH12_CMD_COMMAND_SHIFT (0U)
4575/*! COMMAND
4576 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4577 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4578 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4579 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4580 */
4581#define APBH_CH12_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_COMMAND_SHIFT)) & APBH_CH12_CMD_COMMAND_MASK)
4582#define APBH_CH12_CMD_CHAIN_MASK (0x4U)
4583#define APBH_CH12_CMD_CHAIN_SHIFT (2U)
4584#define APBH_CH12_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_CHAIN_SHIFT)) & APBH_CH12_CMD_CHAIN_MASK)
4585#define APBH_CH12_CMD_IRQONCMPLT_MASK (0x8U)
4586#define APBH_CH12_CMD_IRQONCMPLT_SHIFT (3U)
4587#define APBH_CH12_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_IRQONCMPLT_SHIFT)) & APBH_CH12_CMD_IRQONCMPLT_MASK)
4588#define APBH_CH12_CMD_NANDLOCK_MASK (0x10U)
4589#define APBH_CH12_CMD_NANDLOCK_SHIFT (4U)
4590#define APBH_CH12_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_NANDLOCK_SHIFT)) & APBH_CH12_CMD_NANDLOCK_MASK)
4591#define APBH_CH12_CMD_NANDWAIT4READY_MASK (0x20U)
4592#define APBH_CH12_CMD_NANDWAIT4READY_SHIFT (5U)
4593#define APBH_CH12_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH12_CMD_NANDWAIT4READY_MASK)
4594#define APBH_CH12_CMD_SEMAPHORE_MASK (0x40U)
4595#define APBH_CH12_CMD_SEMAPHORE_SHIFT (6U)
4596#define APBH_CH12_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_SEMAPHORE_SHIFT)) & APBH_CH12_CMD_SEMAPHORE_MASK)
4597#define APBH_CH12_CMD_WAIT4ENDCMD_MASK (0x80U)
4598#define APBH_CH12_CMD_WAIT4ENDCMD_SHIFT (7U)
4599#define APBH_CH12_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH12_CMD_WAIT4ENDCMD_MASK)
4600#define APBH_CH12_CMD_HALTONTERMINATE_MASK (0x100U)
4601#define APBH_CH12_CMD_HALTONTERMINATE_SHIFT (8U)
4602#define APBH_CH12_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH12_CMD_HALTONTERMINATE_MASK)
4603#define APBH_CH12_CMD_CMDWORDS_MASK (0xF000U)
4604#define APBH_CH12_CMD_CMDWORDS_SHIFT (12U)
4605#define APBH_CH12_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_CMDWORDS_SHIFT)) & APBH_CH12_CMD_CMDWORDS_MASK)
4606#define APBH_CH12_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4607#define APBH_CH12_CMD_XFER_COUNT_SHIFT (16U)
4608#define APBH_CH12_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_CMD_XFER_COUNT_SHIFT)) & APBH_CH12_CMD_XFER_COUNT_MASK)
4609/*! @} */
4610
4611/*! @name CH12_BAR - APBH DMA Channel n Buffer Address Register */
4612/*! @{ */
4613#define APBH_CH12_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4614#define APBH_CH12_BAR_ADDRESS_SHIFT (0U)
4615#define APBH_CH12_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_BAR_ADDRESS_SHIFT)) & APBH_CH12_BAR_ADDRESS_MASK)
4616/*! @} */
4617
4618/*! @name CH12_SEMA - APBH DMA Channel n Semaphore Register */
4619/*! @{ */
4620#define APBH_CH12_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4621#define APBH_CH12_SEMA_INCREMENT_SEMA_SHIFT (0U)
4622#define APBH_CH12_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH12_SEMA_INCREMENT_SEMA_MASK)
4623#define APBH_CH12_SEMA_PHORE_MASK (0xFF0000U)
4624#define APBH_CH12_SEMA_PHORE_SHIFT (16U)
4625#define APBH_CH12_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_SEMA_PHORE_SHIFT)) & APBH_CH12_SEMA_PHORE_MASK)
4626/*! @} */
4627
4628/*! @name CH12_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4629/*! @{ */
4630#define APBH_CH12_DEBUG1_STATEMACHINE_MASK (0x1FU)
4631#define APBH_CH12_DEBUG1_STATEMACHINE_SHIFT (0U)
4632/*! STATEMACHINE
4633 * 0b00000..This is the idle state of the DMA state machine.
4634 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4635 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4636 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4637 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4638 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4639 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4640 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4641 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4642 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4643 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4644 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4645 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4646 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4647 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4648 * 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.
4649 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4650 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4651 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4652 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4653 */
4654#define APBH_CH12_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH12_DEBUG1_STATEMACHINE_MASK)
4655#define APBH_CH12_DEBUG1_RSVD1_MASK (0xFFFE0U)
4656#define APBH_CH12_DEBUG1_RSVD1_SHIFT (5U)
4657#define APBH_CH12_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_RSVD1_SHIFT)) & APBH_CH12_DEBUG1_RSVD1_MASK)
4658#define APBH_CH12_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4659#define APBH_CH12_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4660#define APBH_CH12_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH12_DEBUG1_WR_FIFO_FULL_MASK)
4661#define APBH_CH12_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4662#define APBH_CH12_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4663#define APBH_CH12_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH12_DEBUG1_WR_FIFO_EMPTY_MASK)
4664#define APBH_CH12_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4665#define APBH_CH12_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4666#define APBH_CH12_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH12_DEBUG1_RD_FIFO_FULL_MASK)
4667#define APBH_CH12_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4668#define APBH_CH12_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4669#define APBH_CH12_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH12_DEBUG1_RD_FIFO_EMPTY_MASK)
4670#define APBH_CH12_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4671#define APBH_CH12_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4672#define APBH_CH12_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH12_DEBUG1_NEXTCMDADDRVALID_MASK)
4673#define APBH_CH12_DEBUG1_LOCK_MASK (0x2000000U)
4674#define APBH_CH12_DEBUG1_LOCK_SHIFT (25U)
4675#define APBH_CH12_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_LOCK_SHIFT)) & APBH_CH12_DEBUG1_LOCK_MASK)
4676#define APBH_CH12_DEBUG1_READY_MASK (0x4000000U)
4677#define APBH_CH12_DEBUG1_READY_SHIFT (26U)
4678#define APBH_CH12_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_READY_SHIFT)) & APBH_CH12_DEBUG1_READY_MASK)
4679#define APBH_CH12_DEBUG1_SENSE_MASK (0x8000000U)
4680#define APBH_CH12_DEBUG1_SENSE_SHIFT (27U)
4681#define APBH_CH12_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_SENSE_SHIFT)) & APBH_CH12_DEBUG1_SENSE_MASK)
4682#define APBH_CH12_DEBUG1_END_MASK (0x10000000U)
4683#define APBH_CH12_DEBUG1_END_SHIFT (28U)
4684#define APBH_CH12_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_END_SHIFT)) & APBH_CH12_DEBUG1_END_MASK)
4685#define APBH_CH12_DEBUG1_KICK_MASK (0x20000000U)
4686#define APBH_CH12_DEBUG1_KICK_SHIFT (29U)
4687#define APBH_CH12_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_KICK_SHIFT)) & APBH_CH12_DEBUG1_KICK_MASK)
4688#define APBH_CH12_DEBUG1_BURST_MASK (0x40000000U)
4689#define APBH_CH12_DEBUG1_BURST_SHIFT (30U)
4690#define APBH_CH12_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_BURST_SHIFT)) & APBH_CH12_DEBUG1_BURST_MASK)
4691#define APBH_CH12_DEBUG1_REQ_MASK (0x80000000U)
4692#define APBH_CH12_DEBUG1_REQ_SHIFT (31U)
4693#define APBH_CH12_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG1_REQ_SHIFT)) & APBH_CH12_DEBUG1_REQ_MASK)
4694/*! @} */
4695
4696/*! @name CH12_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4697/*! @{ */
4698#define APBH_CH12_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4699#define APBH_CH12_DEBUG2_AHB_BYTES_SHIFT (0U)
4700#define APBH_CH12_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH12_DEBUG2_AHB_BYTES_MASK)
4701#define APBH_CH12_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4702#define APBH_CH12_DEBUG2_APB_BYTES_SHIFT (16U)
4703#define APBH_CH12_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH12_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH12_DEBUG2_APB_BYTES_MASK)
4704/*! @} */
4705
4706/*! @name CH13_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4707/*! @{ */
4708#define APBH_CH13_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4709#define APBH_CH13_CURCMDAR_CMD_ADDR_SHIFT (0U)
4710#define APBH_CH13_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH13_CURCMDAR_CMD_ADDR_MASK)
4711/*! @} */
4712
4713/*! @name CH13_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4714/*! @{ */
4715#define APBH_CH13_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4716#define APBH_CH13_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4717#define APBH_CH13_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH13_NXTCMDAR_CMD_ADDR_MASK)
4718/*! @} */
4719
4720/*! @name CH13_CMD - APBH DMA Channel n Command Register */
4721/*! @{ */
4722#define APBH_CH13_CMD_COMMAND_MASK (0x3U)
4723#define APBH_CH13_CMD_COMMAND_SHIFT (0U)
4724/*! COMMAND
4725 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4726 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4727 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4728 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4729 */
4730#define APBH_CH13_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_COMMAND_SHIFT)) & APBH_CH13_CMD_COMMAND_MASK)
4731#define APBH_CH13_CMD_CHAIN_MASK (0x4U)
4732#define APBH_CH13_CMD_CHAIN_SHIFT (2U)
4733#define APBH_CH13_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_CHAIN_SHIFT)) & APBH_CH13_CMD_CHAIN_MASK)
4734#define APBH_CH13_CMD_IRQONCMPLT_MASK (0x8U)
4735#define APBH_CH13_CMD_IRQONCMPLT_SHIFT (3U)
4736#define APBH_CH13_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_IRQONCMPLT_SHIFT)) & APBH_CH13_CMD_IRQONCMPLT_MASK)
4737#define APBH_CH13_CMD_NANDLOCK_MASK (0x10U)
4738#define APBH_CH13_CMD_NANDLOCK_SHIFT (4U)
4739#define APBH_CH13_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_NANDLOCK_SHIFT)) & APBH_CH13_CMD_NANDLOCK_MASK)
4740#define APBH_CH13_CMD_NANDWAIT4READY_MASK (0x20U)
4741#define APBH_CH13_CMD_NANDWAIT4READY_SHIFT (5U)
4742#define APBH_CH13_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH13_CMD_NANDWAIT4READY_MASK)
4743#define APBH_CH13_CMD_SEMAPHORE_MASK (0x40U)
4744#define APBH_CH13_CMD_SEMAPHORE_SHIFT (6U)
4745#define APBH_CH13_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_SEMAPHORE_SHIFT)) & APBH_CH13_CMD_SEMAPHORE_MASK)
4746#define APBH_CH13_CMD_WAIT4ENDCMD_MASK (0x80U)
4747#define APBH_CH13_CMD_WAIT4ENDCMD_SHIFT (7U)
4748#define APBH_CH13_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH13_CMD_WAIT4ENDCMD_MASK)
4749#define APBH_CH13_CMD_HALTONTERMINATE_MASK (0x100U)
4750#define APBH_CH13_CMD_HALTONTERMINATE_SHIFT (8U)
4751#define APBH_CH13_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH13_CMD_HALTONTERMINATE_MASK)
4752#define APBH_CH13_CMD_CMDWORDS_MASK (0xF000U)
4753#define APBH_CH13_CMD_CMDWORDS_SHIFT (12U)
4754#define APBH_CH13_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_CMDWORDS_SHIFT)) & APBH_CH13_CMD_CMDWORDS_MASK)
4755#define APBH_CH13_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4756#define APBH_CH13_CMD_XFER_COUNT_SHIFT (16U)
4757#define APBH_CH13_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_CMD_XFER_COUNT_SHIFT)) & APBH_CH13_CMD_XFER_COUNT_MASK)
4758/*! @} */
4759
4760/*! @name CH13_BAR - APBH DMA Channel n Buffer Address Register */
4761/*! @{ */
4762#define APBH_CH13_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4763#define APBH_CH13_BAR_ADDRESS_SHIFT (0U)
4764#define APBH_CH13_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_BAR_ADDRESS_SHIFT)) & APBH_CH13_BAR_ADDRESS_MASK)
4765/*! @} */
4766
4767/*! @name CH13_SEMA - APBH DMA Channel n Semaphore Register */
4768/*! @{ */
4769#define APBH_CH13_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4770#define APBH_CH13_SEMA_INCREMENT_SEMA_SHIFT (0U)
4771#define APBH_CH13_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH13_SEMA_INCREMENT_SEMA_MASK)
4772#define APBH_CH13_SEMA_PHORE_MASK (0xFF0000U)
4773#define APBH_CH13_SEMA_PHORE_SHIFT (16U)
4774#define APBH_CH13_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_SEMA_PHORE_SHIFT)) & APBH_CH13_SEMA_PHORE_MASK)
4775/*! @} */
4776
4777/*! @name CH13_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4778/*! @{ */
4779#define APBH_CH13_DEBUG1_STATEMACHINE_MASK (0x1FU)
4780#define APBH_CH13_DEBUG1_STATEMACHINE_SHIFT (0U)
4781/*! STATEMACHINE
4782 * 0b00000..This is the idle state of the DMA state machine.
4783 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4784 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4785 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4786 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4787 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4788 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4789 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4790 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4791 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4792 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4793 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4794 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4795 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4796 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4797 * 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.
4798 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4799 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4800 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4801 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4802 */
4803#define APBH_CH13_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH13_DEBUG1_STATEMACHINE_MASK)
4804#define APBH_CH13_DEBUG1_RSVD1_MASK (0xFFFE0U)
4805#define APBH_CH13_DEBUG1_RSVD1_SHIFT (5U)
4806#define APBH_CH13_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_RSVD1_SHIFT)) & APBH_CH13_DEBUG1_RSVD1_MASK)
4807#define APBH_CH13_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4808#define APBH_CH13_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4809#define APBH_CH13_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH13_DEBUG1_WR_FIFO_FULL_MASK)
4810#define APBH_CH13_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4811#define APBH_CH13_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4812#define APBH_CH13_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH13_DEBUG1_WR_FIFO_EMPTY_MASK)
4813#define APBH_CH13_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4814#define APBH_CH13_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4815#define APBH_CH13_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH13_DEBUG1_RD_FIFO_FULL_MASK)
4816#define APBH_CH13_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4817#define APBH_CH13_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4818#define APBH_CH13_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH13_DEBUG1_RD_FIFO_EMPTY_MASK)
4819#define APBH_CH13_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4820#define APBH_CH13_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4821#define APBH_CH13_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH13_DEBUG1_NEXTCMDADDRVALID_MASK)
4822#define APBH_CH13_DEBUG1_LOCK_MASK (0x2000000U)
4823#define APBH_CH13_DEBUG1_LOCK_SHIFT (25U)
4824#define APBH_CH13_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_LOCK_SHIFT)) & APBH_CH13_DEBUG1_LOCK_MASK)
4825#define APBH_CH13_DEBUG1_READY_MASK (0x4000000U)
4826#define APBH_CH13_DEBUG1_READY_SHIFT (26U)
4827#define APBH_CH13_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_READY_SHIFT)) & APBH_CH13_DEBUG1_READY_MASK)
4828#define APBH_CH13_DEBUG1_SENSE_MASK (0x8000000U)
4829#define APBH_CH13_DEBUG1_SENSE_SHIFT (27U)
4830#define APBH_CH13_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_SENSE_SHIFT)) & APBH_CH13_DEBUG1_SENSE_MASK)
4831#define APBH_CH13_DEBUG1_END_MASK (0x10000000U)
4832#define APBH_CH13_DEBUG1_END_SHIFT (28U)
4833#define APBH_CH13_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_END_SHIFT)) & APBH_CH13_DEBUG1_END_MASK)
4834#define APBH_CH13_DEBUG1_KICK_MASK (0x20000000U)
4835#define APBH_CH13_DEBUG1_KICK_SHIFT (29U)
4836#define APBH_CH13_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_KICK_SHIFT)) & APBH_CH13_DEBUG1_KICK_MASK)
4837#define APBH_CH13_DEBUG1_BURST_MASK (0x40000000U)
4838#define APBH_CH13_DEBUG1_BURST_SHIFT (30U)
4839#define APBH_CH13_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_BURST_SHIFT)) & APBH_CH13_DEBUG1_BURST_MASK)
4840#define APBH_CH13_DEBUG1_REQ_MASK (0x80000000U)
4841#define APBH_CH13_DEBUG1_REQ_SHIFT (31U)
4842#define APBH_CH13_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG1_REQ_SHIFT)) & APBH_CH13_DEBUG1_REQ_MASK)
4843/*! @} */
4844
4845/*! @name CH13_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4846/*! @{ */
4847#define APBH_CH13_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4848#define APBH_CH13_DEBUG2_AHB_BYTES_SHIFT (0U)
4849#define APBH_CH13_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH13_DEBUG2_AHB_BYTES_MASK)
4850#define APBH_CH13_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
4851#define APBH_CH13_DEBUG2_APB_BYTES_SHIFT (16U)
4852#define APBH_CH13_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH13_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH13_DEBUG2_APB_BYTES_MASK)
4853/*! @} */
4854
4855/*! @name CH14_CURCMDAR - APBH DMA Channel n Current Command Address Register */
4856/*! @{ */
4857#define APBH_CH14_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4858#define APBH_CH14_CURCMDAR_CMD_ADDR_SHIFT (0U)
4859#define APBH_CH14_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH14_CURCMDAR_CMD_ADDR_MASK)
4860/*! @} */
4861
4862/*! @name CH14_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
4863/*! @{ */
4864#define APBH_CH14_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
4865#define APBH_CH14_NXTCMDAR_CMD_ADDR_SHIFT (0U)
4866#define APBH_CH14_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH14_NXTCMDAR_CMD_ADDR_MASK)
4867/*! @} */
4868
4869/*! @name CH14_CMD - APBH DMA Channel n Command Register */
4870/*! @{ */
4871#define APBH_CH14_CMD_COMMAND_MASK (0x3U)
4872#define APBH_CH14_CMD_COMMAND_SHIFT (0U)
4873/*! COMMAND
4874 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
4875 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
4876 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
4877 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
4878 */
4879#define APBH_CH14_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_COMMAND_SHIFT)) & APBH_CH14_CMD_COMMAND_MASK)
4880#define APBH_CH14_CMD_CHAIN_MASK (0x4U)
4881#define APBH_CH14_CMD_CHAIN_SHIFT (2U)
4882#define APBH_CH14_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_CHAIN_SHIFT)) & APBH_CH14_CMD_CHAIN_MASK)
4883#define APBH_CH14_CMD_IRQONCMPLT_MASK (0x8U)
4884#define APBH_CH14_CMD_IRQONCMPLT_SHIFT (3U)
4885#define APBH_CH14_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_IRQONCMPLT_SHIFT)) & APBH_CH14_CMD_IRQONCMPLT_MASK)
4886#define APBH_CH14_CMD_NANDLOCK_MASK (0x10U)
4887#define APBH_CH14_CMD_NANDLOCK_SHIFT (4U)
4888#define APBH_CH14_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_NANDLOCK_SHIFT)) & APBH_CH14_CMD_NANDLOCK_MASK)
4889#define APBH_CH14_CMD_NANDWAIT4READY_MASK (0x20U)
4890#define APBH_CH14_CMD_NANDWAIT4READY_SHIFT (5U)
4891#define APBH_CH14_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH14_CMD_NANDWAIT4READY_MASK)
4892#define APBH_CH14_CMD_SEMAPHORE_MASK (0x40U)
4893#define APBH_CH14_CMD_SEMAPHORE_SHIFT (6U)
4894#define APBH_CH14_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_SEMAPHORE_SHIFT)) & APBH_CH14_CMD_SEMAPHORE_MASK)
4895#define APBH_CH14_CMD_WAIT4ENDCMD_MASK (0x80U)
4896#define APBH_CH14_CMD_WAIT4ENDCMD_SHIFT (7U)
4897#define APBH_CH14_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH14_CMD_WAIT4ENDCMD_MASK)
4898#define APBH_CH14_CMD_HALTONTERMINATE_MASK (0x100U)
4899#define APBH_CH14_CMD_HALTONTERMINATE_SHIFT (8U)
4900#define APBH_CH14_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH14_CMD_HALTONTERMINATE_MASK)
4901#define APBH_CH14_CMD_CMDWORDS_MASK (0xF000U)
4902#define APBH_CH14_CMD_CMDWORDS_SHIFT (12U)
4903#define APBH_CH14_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_CMDWORDS_SHIFT)) & APBH_CH14_CMD_CMDWORDS_MASK)
4904#define APBH_CH14_CMD_XFER_COUNT_MASK (0xFFFF0000U)
4905#define APBH_CH14_CMD_XFER_COUNT_SHIFT (16U)
4906#define APBH_CH14_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_CMD_XFER_COUNT_SHIFT)) & APBH_CH14_CMD_XFER_COUNT_MASK)
4907/*! @} */
4908
4909/*! @name CH14_BAR - APBH DMA Channel n Buffer Address Register */
4910/*! @{ */
4911#define APBH_CH14_BAR_ADDRESS_MASK (0xFFFFFFFFU)
4912#define APBH_CH14_BAR_ADDRESS_SHIFT (0U)
4913#define APBH_CH14_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_BAR_ADDRESS_SHIFT)) & APBH_CH14_BAR_ADDRESS_MASK)
4914/*! @} */
4915
4916/*! @name CH14_SEMA - APBH DMA Channel n Semaphore Register */
4917/*! @{ */
4918#define APBH_CH14_SEMA_INCREMENT_SEMA_MASK (0xFFU)
4919#define APBH_CH14_SEMA_INCREMENT_SEMA_SHIFT (0U)
4920#define APBH_CH14_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH14_SEMA_INCREMENT_SEMA_MASK)
4921#define APBH_CH14_SEMA_PHORE_MASK (0xFF0000U)
4922#define APBH_CH14_SEMA_PHORE_SHIFT (16U)
4923#define APBH_CH14_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_SEMA_PHORE_SHIFT)) & APBH_CH14_SEMA_PHORE_MASK)
4924/*! @} */
4925
4926/*! @name CH14_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
4927/*! @{ */
4928#define APBH_CH14_DEBUG1_STATEMACHINE_MASK (0x1FU)
4929#define APBH_CH14_DEBUG1_STATEMACHINE_SHIFT (0U)
4930/*! STATEMACHINE
4931 * 0b00000..This is the idle state of the DMA state machine.
4932 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
4933 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
4934 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
4935 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
4936 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
4937 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
4938 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
4939 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
4940 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
4941 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4942 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
4943 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
4944 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
4945 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
4946 * 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.
4947 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
4948 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
4949 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
4950 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
4951 */
4952#define APBH_CH14_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH14_DEBUG1_STATEMACHINE_MASK)
4953#define APBH_CH14_DEBUG1_RSVD1_MASK (0xFFFE0U)
4954#define APBH_CH14_DEBUG1_RSVD1_SHIFT (5U)
4955#define APBH_CH14_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_RSVD1_SHIFT)) & APBH_CH14_DEBUG1_RSVD1_MASK)
4956#define APBH_CH14_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
4957#define APBH_CH14_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
4958#define APBH_CH14_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH14_DEBUG1_WR_FIFO_FULL_MASK)
4959#define APBH_CH14_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
4960#define APBH_CH14_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
4961#define APBH_CH14_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH14_DEBUG1_WR_FIFO_EMPTY_MASK)
4962#define APBH_CH14_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
4963#define APBH_CH14_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
4964#define APBH_CH14_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH14_DEBUG1_RD_FIFO_FULL_MASK)
4965#define APBH_CH14_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
4966#define APBH_CH14_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
4967#define APBH_CH14_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH14_DEBUG1_RD_FIFO_EMPTY_MASK)
4968#define APBH_CH14_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
4969#define APBH_CH14_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
4970#define APBH_CH14_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH14_DEBUG1_NEXTCMDADDRVALID_MASK)
4971#define APBH_CH14_DEBUG1_LOCK_MASK (0x2000000U)
4972#define APBH_CH14_DEBUG1_LOCK_SHIFT (25U)
4973#define APBH_CH14_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_LOCK_SHIFT)) & APBH_CH14_DEBUG1_LOCK_MASK)
4974#define APBH_CH14_DEBUG1_READY_MASK (0x4000000U)
4975#define APBH_CH14_DEBUG1_READY_SHIFT (26U)
4976#define APBH_CH14_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_READY_SHIFT)) & APBH_CH14_DEBUG1_READY_MASK)
4977#define APBH_CH14_DEBUG1_SENSE_MASK (0x8000000U)
4978#define APBH_CH14_DEBUG1_SENSE_SHIFT (27U)
4979#define APBH_CH14_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_SENSE_SHIFT)) & APBH_CH14_DEBUG1_SENSE_MASK)
4980#define APBH_CH14_DEBUG1_END_MASK (0x10000000U)
4981#define APBH_CH14_DEBUG1_END_SHIFT (28U)
4982#define APBH_CH14_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_END_SHIFT)) & APBH_CH14_DEBUG1_END_MASK)
4983#define APBH_CH14_DEBUG1_KICK_MASK (0x20000000U)
4984#define APBH_CH14_DEBUG1_KICK_SHIFT (29U)
4985#define APBH_CH14_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_KICK_SHIFT)) & APBH_CH14_DEBUG1_KICK_MASK)
4986#define APBH_CH14_DEBUG1_BURST_MASK (0x40000000U)
4987#define APBH_CH14_DEBUG1_BURST_SHIFT (30U)
4988#define APBH_CH14_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_BURST_SHIFT)) & APBH_CH14_DEBUG1_BURST_MASK)
4989#define APBH_CH14_DEBUG1_REQ_MASK (0x80000000U)
4990#define APBH_CH14_DEBUG1_REQ_SHIFT (31U)
4991#define APBH_CH14_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG1_REQ_SHIFT)) & APBH_CH14_DEBUG1_REQ_MASK)
4992/*! @} */
4993
4994/*! @name CH14_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
4995/*! @{ */
4996#define APBH_CH14_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
4997#define APBH_CH14_DEBUG2_AHB_BYTES_SHIFT (0U)
4998#define APBH_CH14_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH14_DEBUG2_AHB_BYTES_MASK)
4999#define APBH_CH14_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
5000#define APBH_CH14_DEBUG2_APB_BYTES_SHIFT (16U)
5001#define APBH_CH14_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH14_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH14_DEBUG2_APB_BYTES_MASK)
5002/*! @} */
5003
5004/*! @name CH15_CURCMDAR - APBH DMA Channel n Current Command Address Register */
5005/*! @{ */
5006#define APBH_CH15_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
5007#define APBH_CH15_CURCMDAR_CMD_ADDR_SHIFT (0U)
5008#define APBH_CH15_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH15_CURCMDAR_CMD_ADDR_MASK)
5009/*! @} */
5010
5011/*! @name CH15_NXTCMDAR - APBH DMA Channel n Next Command Address Register */
5012/*! @{ */
5013#define APBH_CH15_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU)
5014#define APBH_CH15_NXTCMDAR_CMD_ADDR_SHIFT (0U)
5015#define APBH_CH15_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH15_NXTCMDAR_CMD_ADDR_MASK)
5016/*! @} */
5017
5018/*! @name CH15_CMD - APBH DMA Channel n Command Register */
5019/*! @{ */
5020#define APBH_CH15_CMD_COMMAND_MASK (0x3U)
5021#define APBH_CH15_CMD_COMMAND_SHIFT (0U)
5022/*! COMMAND
5023 * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer.
5024 * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes.
5025 * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes.
5026 * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain pointer if the peripheral sense line is false.
5027 */
5028#define APBH_CH15_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_COMMAND_SHIFT)) & APBH_CH15_CMD_COMMAND_MASK)
5029#define APBH_CH15_CMD_CHAIN_MASK (0x4U)
5030#define APBH_CH15_CMD_CHAIN_SHIFT (2U)
5031#define APBH_CH15_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_CHAIN_SHIFT)) & APBH_CH15_CMD_CHAIN_MASK)
5032#define APBH_CH15_CMD_IRQONCMPLT_MASK (0x8U)
5033#define APBH_CH15_CMD_IRQONCMPLT_SHIFT (3U)
5034#define APBH_CH15_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_IRQONCMPLT_SHIFT)) & APBH_CH15_CMD_IRQONCMPLT_MASK)
5035#define APBH_CH15_CMD_NANDLOCK_MASK (0x10U)
5036#define APBH_CH15_CMD_NANDLOCK_SHIFT (4U)
5037#define APBH_CH15_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_NANDLOCK_SHIFT)) & APBH_CH15_CMD_NANDLOCK_MASK)
5038#define APBH_CH15_CMD_NANDWAIT4READY_MASK (0x20U)
5039#define APBH_CH15_CMD_NANDWAIT4READY_SHIFT (5U)
5040#define APBH_CH15_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH15_CMD_NANDWAIT4READY_MASK)
5041#define APBH_CH15_CMD_SEMAPHORE_MASK (0x40U)
5042#define APBH_CH15_CMD_SEMAPHORE_SHIFT (6U)
5043#define APBH_CH15_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_SEMAPHORE_SHIFT)) & APBH_CH15_CMD_SEMAPHORE_MASK)
5044#define APBH_CH15_CMD_WAIT4ENDCMD_MASK (0x80U)
5045#define APBH_CH15_CMD_WAIT4ENDCMD_SHIFT (7U)
5046#define APBH_CH15_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH15_CMD_WAIT4ENDCMD_MASK)
5047#define APBH_CH15_CMD_HALTONTERMINATE_MASK (0x100U)
5048#define APBH_CH15_CMD_HALTONTERMINATE_SHIFT (8U)
5049#define APBH_CH15_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH15_CMD_HALTONTERMINATE_MASK)
5050#define APBH_CH15_CMD_CMDWORDS_MASK (0xF000U)
5051#define APBH_CH15_CMD_CMDWORDS_SHIFT (12U)
5052#define APBH_CH15_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_CMDWORDS_SHIFT)) & APBH_CH15_CMD_CMDWORDS_MASK)
5053#define APBH_CH15_CMD_XFER_COUNT_MASK (0xFFFF0000U)
5054#define APBH_CH15_CMD_XFER_COUNT_SHIFT (16U)
5055#define APBH_CH15_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_CMD_XFER_COUNT_SHIFT)) & APBH_CH15_CMD_XFER_COUNT_MASK)
5056/*! @} */
5057
5058/*! @name CH15_BAR - APBH DMA Channel n Buffer Address Register */
5059/*! @{ */
5060#define APBH_CH15_BAR_ADDRESS_MASK (0xFFFFFFFFU)
5061#define APBH_CH15_BAR_ADDRESS_SHIFT (0U)
5062#define APBH_CH15_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_BAR_ADDRESS_SHIFT)) & APBH_CH15_BAR_ADDRESS_MASK)
5063/*! @} */
5064
5065/*! @name CH15_SEMA - APBH DMA Channel n Semaphore Register */
5066/*! @{ */
5067#define APBH_CH15_SEMA_INCREMENT_SEMA_MASK (0xFFU)
5068#define APBH_CH15_SEMA_INCREMENT_SEMA_SHIFT (0U)
5069#define APBH_CH15_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH15_SEMA_INCREMENT_SEMA_MASK)
5070#define APBH_CH15_SEMA_PHORE_MASK (0xFF0000U)
5071#define APBH_CH15_SEMA_PHORE_SHIFT (16U)
5072#define APBH_CH15_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_SEMA_PHORE_SHIFT)) & APBH_CH15_SEMA_PHORE_MASK)
5073/*! @} */
5074
5075/*! @name CH15_DEBUG1 - AHB to APBH DMA Channel n Debug Information */
5076/*! @{ */
5077#define APBH_CH15_DEBUG1_STATEMACHINE_MASK (0x1FU)
5078#define APBH_CH15_DEBUG1_STATEMACHINE_SHIFT (0U)
5079/*! STATEMACHINE
5080 * 0b00000..This is the idle state of the DMA state machine.
5081 * 0b00001..State in which the DMA is waiting to receive the first word of a command.
5082 * 0b00010..State in which the DMA is waiting to receive the third word of a command.
5083 * 0b00011..State in which the DMA is waiting to receive the second word of a command.
5084 * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly.
5085 * 0b00101..The state machine waits in this state for the PIO APB cycles to complete.
5086 * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the PIO words when PIO count is greater than 1.
5087 * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers.
5088 * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB.
5089 * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete.
5090 * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
5091 * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel.
5092 * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly.
5093 * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next.
5094 * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed.
5095 * 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.
5096 * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space.
5097 * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and effectively halts. A channel reset is required to exit this state
5098 * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts.
5099 * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device indicates that the external device is ready.
5100 */
5101#define APBH_CH15_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH15_DEBUG1_STATEMACHINE_MASK)
5102#define APBH_CH15_DEBUG1_RSVD1_MASK (0xFFFE0U)
5103#define APBH_CH15_DEBUG1_RSVD1_SHIFT (5U)
5104#define APBH_CH15_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_RSVD1_SHIFT)) & APBH_CH15_DEBUG1_RSVD1_MASK)
5105#define APBH_CH15_DEBUG1_WR_FIFO_FULL_MASK (0x100000U)
5106#define APBH_CH15_DEBUG1_WR_FIFO_FULL_SHIFT (20U)
5107#define APBH_CH15_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH15_DEBUG1_WR_FIFO_FULL_MASK)
5108#define APBH_CH15_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U)
5109#define APBH_CH15_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U)
5110#define APBH_CH15_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH15_DEBUG1_WR_FIFO_EMPTY_MASK)
5111#define APBH_CH15_DEBUG1_RD_FIFO_FULL_MASK (0x400000U)
5112#define APBH_CH15_DEBUG1_RD_FIFO_FULL_SHIFT (22U)
5113#define APBH_CH15_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH15_DEBUG1_RD_FIFO_FULL_MASK)
5114#define APBH_CH15_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U)
5115#define APBH_CH15_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U)
5116#define APBH_CH15_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH15_DEBUG1_RD_FIFO_EMPTY_MASK)
5117#define APBH_CH15_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U)
5118#define APBH_CH15_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U)
5119#define APBH_CH15_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH15_DEBUG1_NEXTCMDADDRVALID_MASK)
5120#define APBH_CH15_DEBUG1_LOCK_MASK (0x2000000U)
5121#define APBH_CH15_DEBUG1_LOCK_SHIFT (25U)
5122#define APBH_CH15_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_LOCK_SHIFT)) & APBH_CH15_DEBUG1_LOCK_MASK)
5123#define APBH_CH15_DEBUG1_READY_MASK (0x4000000U)
5124#define APBH_CH15_DEBUG1_READY_SHIFT (26U)
5125#define APBH_CH15_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_READY_SHIFT)) & APBH_CH15_DEBUG1_READY_MASK)
5126#define APBH_CH15_DEBUG1_SENSE_MASK (0x8000000U)
5127#define APBH_CH15_DEBUG1_SENSE_SHIFT (27U)
5128#define APBH_CH15_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_SENSE_SHIFT)) & APBH_CH15_DEBUG1_SENSE_MASK)
5129#define APBH_CH15_DEBUG1_END_MASK (0x10000000U)
5130#define APBH_CH15_DEBUG1_END_SHIFT (28U)
5131#define APBH_CH15_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_END_SHIFT)) & APBH_CH15_DEBUG1_END_MASK)
5132#define APBH_CH15_DEBUG1_KICK_MASK (0x20000000U)
5133#define APBH_CH15_DEBUG1_KICK_SHIFT (29U)
5134#define APBH_CH15_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_KICK_SHIFT)) & APBH_CH15_DEBUG1_KICK_MASK)
5135#define APBH_CH15_DEBUG1_BURST_MASK (0x40000000U)
5136#define APBH_CH15_DEBUG1_BURST_SHIFT (30U)
5137#define APBH_CH15_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_BURST_SHIFT)) & APBH_CH15_DEBUG1_BURST_MASK)
5138#define APBH_CH15_DEBUG1_REQ_MASK (0x80000000U)
5139#define APBH_CH15_DEBUG1_REQ_SHIFT (31U)
5140#define APBH_CH15_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG1_REQ_SHIFT)) & APBH_CH15_DEBUG1_REQ_MASK)
5141/*! @} */
5142
5143/*! @name CH15_DEBUG2 - AHB to APBH DMA Channel n Debug Information */
5144/*! @{ */
5145#define APBH_CH15_DEBUG2_AHB_BYTES_MASK (0xFFFFU)
5146#define APBH_CH15_DEBUG2_AHB_BYTES_SHIFT (0U)
5147#define APBH_CH15_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH15_DEBUG2_AHB_BYTES_MASK)
5148#define APBH_CH15_DEBUG2_APB_BYTES_MASK (0xFFFF0000U)
5149#define APBH_CH15_DEBUG2_APB_BYTES_SHIFT (16U)
5150#define APBH_CH15_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH15_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH15_DEBUG2_APB_BYTES_MASK)
5151/*! @} */
5152
5153/*! @name VERSION - APBH Bridge Version Register */
5154/*! @{ */
5155#define APBH_VERSION_STEP_MASK (0xFFFFU)
5156#define APBH_VERSION_STEP_SHIFT (0U)
5157#define APBH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_STEP_SHIFT)) & APBH_VERSION_STEP_MASK)
5158#define APBH_VERSION_MINOR_MASK (0xFF0000U)
5159#define APBH_VERSION_MINOR_SHIFT (16U)
5160#define APBH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MINOR_SHIFT)) & APBH_VERSION_MINOR_MASK)
5161#define APBH_VERSION_MAJOR_MASK (0xFF000000U)
5162#define APBH_VERSION_MAJOR_SHIFT (24U)
5163#define APBH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MAJOR_SHIFT)) & APBH_VERSION_MAJOR_MASK)
5164/*! @} */
5165
5166
5167/*!
5168 * @}
5169 */ /* end of group APBH_Register_Masks */
5170
5171
5172/* APBH - Peripheral instance base addresses */
5173/** Peripheral APBH base address */
5174#define APBH_BASE (0x33000000u)
5175/** Peripheral APBH base pointer */
5176#define APBH ((APBH_Type *)APBH_BASE)
5177/** Array initializer of APBH peripheral base addresses */
5178#define APBH_BASE_ADDRS { APBH_BASE }
5179/** Array initializer of APBH peripheral base pointers */
5180#define APBH_BASE_PTRS { APBH }
5181/** Interrupt vectors for the APBH peripheral type */
5182#define APBH_IRQS { APBHDMA_IRQn }
5183
5184/*!
5185 * @}
5186 */ /* end of group APBH_Peripheral_Access_Layer */
5187
5188
5189/* ----------------------------------------------------------------------------
5190 -- BCH Peripheral Access Layer
5191 ---------------------------------------------------------------------------- */
5192
5193/*!
5194 * @addtogroup BCH_Peripheral_Access_Layer BCH Peripheral Access Layer
5195 * @{
5196 */
5197
5198/** BCH - Register Layout Typedef */
5199typedef struct {
5200 __IO uint32_t CTRL; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x0 */
5201 __IO uint32_t CTRL_SET; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x4 */
5202 __IO uint32_t CTRL_CLR; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x8 */
5203 __IO uint32_t CTRL_TOG; /**< Hardware BCH ECC Accelerator Control Register, offset: 0xC */
5204 __I uint32_t STATUS0; /**< Hardware ECC Accelerator Status Register 0, offset: 0x10 */
5205 __I uint32_t STATUS0_SET; /**< Hardware ECC Accelerator Status Register 0, offset: 0x14 */
5206 __I uint32_t STATUS0_CLR; /**< Hardware ECC Accelerator Status Register 0, offset: 0x18 */
5207 __I uint32_t STATUS0_TOG; /**< Hardware ECC Accelerator Status Register 0, offset: 0x1C */
5208 __IO uint32_t MODE; /**< Hardware ECC Accelerator Mode Register, offset: 0x20 */
5209 __IO uint32_t MODE_SET; /**< Hardware ECC Accelerator Mode Register, offset: 0x24 */
5210 __IO uint32_t MODE_CLR; /**< Hardware ECC Accelerator Mode Register, offset: 0x28 */
5211 __IO uint32_t MODE_TOG; /**< Hardware ECC Accelerator Mode Register, offset: 0x2C */
5212 __IO uint32_t ENCODEPTR; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x30 */
5213 __IO uint32_t ENCODEPTR_SET; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x34 */
5214 __IO uint32_t ENCODEPTR_CLR; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x38 */
5215 __IO uint32_t ENCODEPTR_TOG; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x3C */
5216 __IO uint32_t DATAPTR; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x40 */
5217 __IO uint32_t DATAPTR_SET; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x44 */
5218 __IO uint32_t DATAPTR_CLR; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x48 */
5219 __IO uint32_t DATAPTR_TOG; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x4C */
5220 __IO uint32_t METAPTR; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x50 */
5221 __IO uint32_t METAPTR_SET; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x54 */
5222 __IO uint32_t METAPTR_CLR; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x58 */
5223 __IO uint32_t METAPTR_TOG; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x5C */
5224 uint8_t RESERVED_0[16];
5225 __IO uint32_t LAYOUTSELECT; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x70 */
5226 __IO uint32_t LAYOUTSELECT_SET; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x74 */
5227 __IO uint32_t LAYOUTSELECT_CLR; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x78 */
5228 __IO uint32_t LAYOUTSELECT_TOG; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x7C */
5229 __IO uint32_t FLASH0LAYOUT0; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x80 */
5230 __IO uint32_t FLASH0LAYOUT0_SET; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x84 */
5231 __IO uint32_t FLASH0LAYOUT0_CLR; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x88 */
5232 __IO uint32_t FLASH0LAYOUT0_TOG; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x8C */
5233 __IO uint32_t FLASH0LAYOUT1; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x90 */
5234 __IO uint32_t FLASH0LAYOUT1_SET; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x94 */
5235 __IO uint32_t FLASH0LAYOUT1_CLR; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x98 */
5236 __IO uint32_t FLASH0LAYOUT1_TOG; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x9C */
5237 __IO uint32_t FLASH1LAYOUT0; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xA0 */
5238 __IO uint32_t FLASH1LAYOUT0_SET; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xA4 */
5239 __IO uint32_t FLASH1LAYOUT0_CLR; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xA8 */
5240 __IO uint32_t FLASH1LAYOUT0_TOG; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xAC */
5241 __IO uint32_t FLASH1LAYOUT1; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xB0 */
5242 __IO uint32_t FLASH1LAYOUT1_SET; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xB4 */
5243 __IO uint32_t FLASH1LAYOUT1_CLR; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xB8 */
5244 __IO uint32_t FLASH1LAYOUT1_TOG; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xBC */
5245 __IO uint32_t FLASH2LAYOUT0; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xC0 */
5246 __IO uint32_t FLASH2LAYOUT0_SET; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xC4 */
5247 __IO uint32_t FLASH2LAYOUT0_CLR; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xC8 */
5248 __IO uint32_t FLASH2LAYOUT0_TOG; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xCC */
5249 __IO uint32_t FLASH2LAYOUT1; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xD0 */
5250 __IO uint32_t FLASH2LAYOUT1_SET; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xD4 */
5251 __IO uint32_t FLASH2LAYOUT1_CLR; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xD8 */
5252 __IO uint32_t FLASH2LAYOUT1_TOG; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xDC */
5253 __IO uint32_t FLASH3LAYOUT0; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xE0 */
5254 __IO uint32_t FLASH3LAYOUT0_SET; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xE4 */
5255 __IO uint32_t FLASH3LAYOUT0_CLR; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xE8 */
5256 __IO uint32_t FLASH3LAYOUT0_TOG; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xEC */
5257 __IO uint32_t FLASH3LAYOUT1; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xF0 */
5258 __IO uint32_t FLASH3LAYOUT1_SET; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xF4 */
5259 __IO uint32_t FLASH3LAYOUT1_CLR; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xF8 */
5260 __IO uint32_t FLASH3LAYOUT1_TOG; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xFC */
5261 __IO uint32_t DEBUG0; /**< Hardware BCH ECC Debug Register0, offset: 0x100 */
5262 __IO uint32_t DEBUG0_SET; /**< Hardware BCH ECC Debug Register0, offset: 0x104 */
5263 __IO uint32_t DEBUG0_CLR; /**< Hardware BCH ECC Debug Register0, offset: 0x108 */
5264 __IO uint32_t DEBUG0_TOG; /**< Hardware BCH ECC Debug Register0, offset: 0x10C */
5265 __I uint32_t DBGKESREAD; /**< KES Debug Read Register, offset: 0x110 */
5266 __I uint32_t DBGKESREAD_SET; /**< KES Debug Read Register, offset: 0x114 */
5267 __I uint32_t DBGKESREAD_CLR; /**< KES Debug Read Register, offset: 0x118 */
5268 __I uint32_t DBGKESREAD_TOG; /**< KES Debug Read Register, offset: 0x11C */
5269 __I uint32_t DBGCSFEREAD; /**< Chien Search Debug Read Register, offset: 0x120 */
5270 __I uint32_t DBGCSFEREAD_SET; /**< Chien Search Debug Read Register, offset: 0x124 */
5271 __I uint32_t DBGCSFEREAD_CLR; /**< Chien Search Debug Read Register, offset: 0x128 */
5272 __I uint32_t DBGCSFEREAD_TOG; /**< Chien Search Debug Read Register, offset: 0x12C */
5273 __I uint32_t DBGSYNDGENREAD; /**< Syndrome Generator Debug Read Register, offset: 0x130 */
5274 __I uint32_t DBGSYNDGENREAD_SET; /**< Syndrome Generator Debug Read Register, offset: 0x134 */
5275 __I uint32_t DBGSYNDGENREAD_CLR; /**< Syndrome Generator Debug Read Register, offset: 0x138 */
5276 __I uint32_t DBGSYNDGENREAD_TOG; /**< Syndrome Generator Debug Read Register, offset: 0x13C */
5277 __I uint32_t DBGAHBMREAD; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x140 */
5278 __I uint32_t DBGAHBMREAD_SET; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x144 */
5279 __I uint32_t DBGAHBMREAD_CLR; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x148 */
5280 __I uint32_t DBGAHBMREAD_TOG; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x14C */
5281 __I uint32_t BLOCKNAME; /**< Block Name Register, offset: 0x150 */
5282 __I uint32_t BLOCKNAME_SET; /**< Block Name Register, offset: 0x154 */
5283 __I uint32_t BLOCKNAME_CLR; /**< Block Name Register, offset: 0x158 */
5284 __I uint32_t BLOCKNAME_TOG; /**< Block Name Register, offset: 0x15C */
5285 __I uint32_t VERSION; /**< BCH Version Register, offset: 0x160 */
5286 __I uint32_t VERSION_SET; /**< BCH Version Register, offset: 0x164 */
5287 __I uint32_t VERSION_CLR; /**< BCH Version Register, offset: 0x168 */
5288 __I uint32_t VERSION_TOG; /**< BCH Version Register, offset: 0x16C */
5289 __IO uint32_t DEBUG1; /**< Hardware BCH ECC Debug Register 1, offset: 0x170 */
5290 __IO uint32_t DEBUG1_SET; /**< Hardware BCH ECC Debug Register 1, offset: 0x174 */
5291 __IO uint32_t DEBUG1_CLR; /**< Hardware BCH ECC Debug Register 1, offset: 0x178 */
5292 __IO uint32_t DEBUG1_TOG; /**< Hardware BCH ECC Debug Register 1, offset: 0x17C */
5293} BCH_Type;
5294
5295/* ----------------------------------------------------------------------------
5296 -- BCH Register Masks
5297 ---------------------------------------------------------------------------- */
5298
5299/*!
5300 * @addtogroup BCH_Register_Masks BCH Register Masks
5301 * @{
5302 */
5303
5304/*! @name CTRL - Hardware BCH ECC Accelerator Control Register */
5305/*! @{ */
5306#define BCH_CTRL_COMPLETE_IRQ_MASK (0x1U)
5307#define BCH_CTRL_COMPLETE_IRQ_SHIFT (0U)
5308#define BCH_CTRL_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_MASK)
5309#define BCH_CTRL_RSVD0_MASK (0x2U)
5310#define BCH_CTRL_RSVD0_SHIFT (1U)
5311#define BCH_CTRL_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD0_SHIFT)) & BCH_CTRL_RSVD0_MASK)
5312#define BCH_CTRL_DEBUG_STALL_IRQ_MASK (0x4U)
5313#define BCH_CTRL_DEBUG_STALL_IRQ_SHIFT (2U)
5314#define BCH_CTRL_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_DEBUG_STALL_IRQ_MASK)
5315#define BCH_CTRL_BM_ERROR_IRQ_MASK (0x8U)
5316#define BCH_CTRL_BM_ERROR_IRQ_SHIFT (3U)
5317#define BCH_CTRL_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_BM_ERROR_IRQ_MASK)
5318#define BCH_CTRL_RSVD1_MASK (0xF0U)
5319#define BCH_CTRL_RSVD1_SHIFT (4U)
5320#define BCH_CTRL_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD1_SHIFT)) & BCH_CTRL_RSVD1_MASK)
5321#define BCH_CTRL_COMPLETE_IRQ_EN_MASK (0x100U)
5322#define BCH_CTRL_COMPLETE_IRQ_EN_SHIFT (8U)
5323#define BCH_CTRL_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_EN_MASK)
5324#define BCH_CTRL_RSVD2_MASK (0x200U)
5325#define BCH_CTRL_RSVD2_SHIFT (9U)
5326#define BCH_CTRL_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD2_SHIFT)) & BCH_CTRL_RSVD2_MASK)
5327#define BCH_CTRL_DEBUG_STALL_IRQ_EN_MASK (0x400U)
5328#define BCH_CTRL_DEBUG_STALL_IRQ_EN_SHIFT (10U)
5329#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)
5330#define BCH_CTRL_RSVD3_MASK (0xF800U)
5331#define BCH_CTRL_RSVD3_SHIFT (11U)
5332#define BCH_CTRL_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD3_SHIFT)) & BCH_CTRL_RSVD3_MASK)
5333#define BCH_CTRL_M2M_ENABLE_MASK (0x10000U)
5334#define BCH_CTRL_M2M_ENABLE_SHIFT (16U)
5335#define BCH_CTRL_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENABLE_SHIFT)) & BCH_CTRL_M2M_ENABLE_MASK)
5336#define BCH_CTRL_M2M_ENCODE_MASK (0x20000U)
5337#define BCH_CTRL_M2M_ENCODE_SHIFT (17U)
5338#define BCH_CTRL_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENCODE_SHIFT)) & BCH_CTRL_M2M_ENCODE_MASK)
5339#define BCH_CTRL_M2M_LAYOUT_MASK (0xC0000U)
5340#define BCH_CTRL_M2M_LAYOUT_SHIFT (18U)
5341#define BCH_CTRL_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_LAYOUT_SHIFT)) & BCH_CTRL_M2M_LAYOUT_MASK)
5342#define BCH_CTRL_RSVD4_MASK (0x300000U)
5343#define BCH_CTRL_RSVD4_SHIFT (20U)
5344#define BCH_CTRL_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD4_SHIFT)) & BCH_CTRL_RSVD4_MASK)
5345#define BCH_CTRL_DEBUGSYNDROME_MASK (0x400000U)
5346#define BCH_CTRL_DEBUGSYNDROME_SHIFT (22U)
5347#define BCH_CTRL_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_DEBUGSYNDROME_MASK)
5348#define BCH_CTRL_RSVD5_MASK (0x3F800000U)
5349#define BCH_CTRL_RSVD5_SHIFT (23U)
5350#define BCH_CTRL_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD5_SHIFT)) & BCH_CTRL_RSVD5_MASK)
5351#define BCH_CTRL_CLKGATE_MASK (0x40000000U)
5352#define BCH_CTRL_CLKGATE_SHIFT (30U)
5353/*! CLKGATE
5354 * 0b0..Allow BCH to operate normally.
5355 * 0b1..Do not clock BCH gates in order to minimize power consumption.
5356 */
5357#define BCH_CTRL_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLKGATE_SHIFT)) & BCH_CTRL_CLKGATE_MASK)
5358#define BCH_CTRL_SFTRST_MASK (0x80000000U)
5359#define BCH_CTRL_SFTRST_SHIFT (31U)
5360/*! SFTRST
5361 * 0b0..Allow BCH to operate normally.
5362 * 0b1..Hold BCH in reset.
5363 */
5364#define BCH_CTRL_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SFTRST_SHIFT)) & BCH_CTRL_SFTRST_MASK)
5365/*! @} */
5366
5367/*! @name CTRL_SET - Hardware BCH ECC Accelerator Control Register */
5368/*! @{ */
5369#define BCH_CTRL_SET_COMPLETE_IRQ_MASK (0x1U)
5370#define BCH_CTRL_SET_COMPLETE_IRQ_SHIFT (0U)
5371#define BCH_CTRL_SET_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_SET_COMPLETE_IRQ_MASK)
5372#define BCH_CTRL_SET_RSVD0_MASK (0x2U)
5373#define BCH_CTRL_SET_RSVD0_SHIFT (1U)
5374#define BCH_CTRL_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD0_SHIFT)) & BCH_CTRL_SET_RSVD0_MASK)
5375#define BCH_CTRL_SET_DEBUG_STALL_IRQ_MASK (0x4U)
5376#define BCH_CTRL_SET_DEBUG_STALL_IRQ_SHIFT (2U)
5377#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)
5378#define BCH_CTRL_SET_BM_ERROR_IRQ_MASK (0x8U)
5379#define BCH_CTRL_SET_BM_ERROR_IRQ_SHIFT (3U)
5380#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)
5381#define BCH_CTRL_SET_RSVD1_MASK (0xF0U)
5382#define BCH_CTRL_SET_RSVD1_SHIFT (4U)
5383#define BCH_CTRL_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD1_SHIFT)) & BCH_CTRL_SET_RSVD1_MASK)
5384#define BCH_CTRL_SET_COMPLETE_IRQ_EN_MASK (0x100U)
5385#define BCH_CTRL_SET_COMPLETE_IRQ_EN_SHIFT (8U)
5386#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)
5387#define BCH_CTRL_SET_RSVD2_MASK (0x200U)
5388#define BCH_CTRL_SET_RSVD2_SHIFT (9U)
5389#define BCH_CTRL_SET_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD2_SHIFT)) & BCH_CTRL_SET_RSVD2_MASK)
5390#define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_MASK (0x400U)
5391#define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_SHIFT (10U)
5392#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)
5393#define BCH_CTRL_SET_RSVD3_MASK (0xF800U)
5394#define BCH_CTRL_SET_RSVD3_SHIFT (11U)
5395#define BCH_CTRL_SET_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD3_SHIFT)) & BCH_CTRL_SET_RSVD3_MASK)
5396#define BCH_CTRL_SET_M2M_ENABLE_MASK (0x10000U)
5397#define BCH_CTRL_SET_M2M_ENABLE_SHIFT (16U)
5398#define BCH_CTRL_SET_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENABLE_SHIFT)) & BCH_CTRL_SET_M2M_ENABLE_MASK)
5399#define BCH_CTRL_SET_M2M_ENCODE_MASK (0x20000U)
5400#define BCH_CTRL_SET_M2M_ENCODE_SHIFT (17U)
5401#define BCH_CTRL_SET_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENCODE_SHIFT)) & BCH_CTRL_SET_M2M_ENCODE_MASK)
5402#define BCH_CTRL_SET_M2M_LAYOUT_MASK (0xC0000U)
5403#define BCH_CTRL_SET_M2M_LAYOUT_SHIFT (18U)
5404#define BCH_CTRL_SET_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_LAYOUT_SHIFT)) & BCH_CTRL_SET_M2M_LAYOUT_MASK)
5405#define BCH_CTRL_SET_RSVD4_MASK (0x300000U)
5406#define BCH_CTRL_SET_RSVD4_SHIFT (20U)
5407#define BCH_CTRL_SET_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD4_SHIFT)) & BCH_CTRL_SET_RSVD4_MASK)
5408#define BCH_CTRL_SET_DEBUGSYNDROME_MASK (0x400000U)
5409#define BCH_CTRL_SET_DEBUGSYNDROME_SHIFT (22U)
5410#define BCH_CTRL_SET_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_SET_DEBUGSYNDROME_MASK)
5411#define BCH_CTRL_SET_RSVD5_MASK (0x3F800000U)
5412#define BCH_CTRL_SET_RSVD5_SHIFT (23U)
5413#define BCH_CTRL_SET_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD5_SHIFT)) & BCH_CTRL_SET_RSVD5_MASK)
5414#define BCH_CTRL_SET_CLKGATE_MASK (0x40000000U)
5415#define BCH_CTRL_SET_CLKGATE_SHIFT (30U)
5416/*! CLKGATE
5417 * 0b0..Allow BCH to operate normally.
5418 * 0b1..Do not clock BCH gates in order to minimize power consumption.
5419 */
5420#define BCH_CTRL_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_CLKGATE_SHIFT)) & BCH_CTRL_SET_CLKGATE_MASK)
5421#define BCH_CTRL_SET_SFTRST_MASK (0x80000000U)
5422#define BCH_CTRL_SET_SFTRST_SHIFT (31U)
5423/*! SFTRST
5424 * 0b0..Allow BCH to operate normally.
5425 * 0b1..Hold BCH in reset.
5426 */
5427#define BCH_CTRL_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_SFTRST_SHIFT)) & BCH_CTRL_SET_SFTRST_MASK)
5428/*! @} */
5429
5430/*! @name CTRL_CLR - Hardware BCH ECC Accelerator Control Register */
5431/*! @{ */
5432#define BCH_CTRL_CLR_COMPLETE_IRQ_MASK (0x1U)
5433#define BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT (0U)
5434#define BCH_CTRL_CLR_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_CLR_COMPLETE_IRQ_MASK)
5435#define BCH_CTRL_CLR_RSVD0_MASK (0x2U)
5436#define BCH_CTRL_CLR_RSVD0_SHIFT (1U)
5437#define BCH_CTRL_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD0_SHIFT)) & BCH_CTRL_CLR_RSVD0_MASK)
5438#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_MASK (0x4U)
5439#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_SHIFT (2U)
5440#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)
5441#define BCH_CTRL_CLR_BM_ERROR_IRQ_MASK (0x8U)
5442#define BCH_CTRL_CLR_BM_ERROR_IRQ_SHIFT (3U)
5443#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)
5444#define BCH_CTRL_CLR_RSVD1_MASK (0xF0U)
5445#define BCH_CTRL_CLR_RSVD1_SHIFT (4U)
5446#define BCH_CTRL_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD1_SHIFT)) & BCH_CTRL_CLR_RSVD1_MASK)
5447#define BCH_CTRL_CLR_COMPLETE_IRQ_EN_MASK (0x100U)
5448#define BCH_CTRL_CLR_COMPLETE_IRQ_EN_SHIFT (8U)
5449#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)
5450#define BCH_CTRL_CLR_RSVD2_MASK (0x200U)
5451#define BCH_CTRL_CLR_RSVD2_SHIFT (9U)
5452#define BCH_CTRL_CLR_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD2_SHIFT)) & BCH_CTRL_CLR_RSVD2_MASK)
5453#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_MASK (0x400U)
5454#define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_SHIFT (10U)
5455#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)
5456#define BCH_CTRL_CLR_RSVD3_MASK (0xF800U)
5457#define BCH_CTRL_CLR_RSVD3_SHIFT (11U)
5458#define BCH_CTRL_CLR_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD3_SHIFT)) & BCH_CTRL_CLR_RSVD3_MASK)
5459#define BCH_CTRL_CLR_M2M_ENABLE_MASK (0x10000U)
5460#define BCH_CTRL_CLR_M2M_ENABLE_SHIFT (16U)
5461#define BCH_CTRL_CLR_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENABLE_SHIFT)) & BCH_CTRL_CLR_M2M_ENABLE_MASK)
5462#define BCH_CTRL_CLR_M2M_ENCODE_MASK (0x20000U)
5463#define BCH_CTRL_CLR_M2M_ENCODE_SHIFT (17U)
5464#define BCH_CTRL_CLR_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENCODE_SHIFT)) & BCH_CTRL_CLR_M2M_ENCODE_MASK)
5465#define BCH_CTRL_CLR_M2M_LAYOUT_MASK (0xC0000U)
5466#define BCH_CTRL_CLR_M2M_LAYOUT_SHIFT (18U)
5467#define BCH_CTRL_CLR_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_LAYOUT_SHIFT)) & BCH_CTRL_CLR_M2M_LAYOUT_MASK)
5468#define BCH_CTRL_CLR_RSVD4_MASK (0x300000U)
5469#define BCH_CTRL_CLR_RSVD4_SHIFT (20U)
5470#define BCH_CTRL_CLR_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD4_SHIFT)) & BCH_CTRL_CLR_RSVD4_MASK)
5471#define BCH_CTRL_CLR_DEBUGSYNDROME_MASK (0x400000U)
5472#define BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT (22U)
5473#define BCH_CTRL_CLR_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_CLR_DEBUGSYNDROME_MASK)
5474#define BCH_CTRL_CLR_RSVD5_MASK (0x3F800000U)
5475#define BCH_CTRL_CLR_RSVD5_SHIFT (23U)
5476#define BCH_CTRL_CLR_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD5_SHIFT)) & BCH_CTRL_CLR_RSVD5_MASK)
5477#define BCH_CTRL_CLR_CLKGATE_MASK (0x40000000U)
5478#define BCH_CTRL_CLR_CLKGATE_SHIFT (30U)
5479/*! CLKGATE
5480 * 0b0..Allow BCH to operate normally.
5481 * 0b1..Do not clock BCH gates in order to minimize power consumption.
5482 */
5483#define BCH_CTRL_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_CLKGATE_SHIFT)) & BCH_CTRL_CLR_CLKGATE_MASK)
5484#define BCH_CTRL_CLR_SFTRST_MASK (0x80000000U)
5485#define BCH_CTRL_CLR_SFTRST_SHIFT (31U)
5486/*! SFTRST
5487 * 0b0..Allow BCH to operate normally.
5488 * 0b1..Hold BCH in reset.
5489 */
5490#define BCH_CTRL_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_SFTRST_SHIFT)) & BCH_CTRL_CLR_SFTRST_MASK)
5491/*! @} */
5492
5493/*! @name CTRL_TOG - Hardware BCH ECC Accelerator Control Register */
5494/*! @{ */
5495#define BCH_CTRL_TOG_COMPLETE_IRQ_MASK (0x1U)
5496#define BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT (0U)
5497#define BCH_CTRL_TOG_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_TOG_COMPLETE_IRQ_MASK)
5498#define BCH_CTRL_TOG_RSVD0_MASK (0x2U)
5499#define BCH_CTRL_TOG_RSVD0_SHIFT (1U)
5500#define BCH_CTRL_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD0_SHIFT)) & BCH_CTRL_TOG_RSVD0_MASK)
5501#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_MASK (0x4U)
5502#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_SHIFT (2U)
5503#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)
5504#define BCH_CTRL_TOG_BM_ERROR_IRQ_MASK (0x8U)
5505#define BCH_CTRL_TOG_BM_ERROR_IRQ_SHIFT (3U)
5506#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)
5507#define BCH_CTRL_TOG_RSVD1_MASK (0xF0U)
5508#define BCH_CTRL_TOG_RSVD1_SHIFT (4U)
5509#define BCH_CTRL_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD1_SHIFT)) & BCH_CTRL_TOG_RSVD1_MASK)
5510#define BCH_CTRL_TOG_COMPLETE_IRQ_EN_MASK (0x100U)
5511#define BCH_CTRL_TOG_COMPLETE_IRQ_EN_SHIFT (8U)
5512#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)
5513#define BCH_CTRL_TOG_RSVD2_MASK (0x200U)
5514#define BCH_CTRL_TOG_RSVD2_SHIFT (9U)
5515#define BCH_CTRL_TOG_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD2_SHIFT)) & BCH_CTRL_TOG_RSVD2_MASK)
5516#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_MASK (0x400U)
5517#define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_SHIFT (10U)
5518#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)
5519#define BCH_CTRL_TOG_RSVD3_MASK (0xF800U)
5520#define BCH_CTRL_TOG_RSVD3_SHIFT (11U)
5521#define BCH_CTRL_TOG_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD3_SHIFT)) & BCH_CTRL_TOG_RSVD3_MASK)
5522#define BCH_CTRL_TOG_M2M_ENABLE_MASK (0x10000U)
5523#define BCH_CTRL_TOG_M2M_ENABLE_SHIFT (16U)
5524#define BCH_CTRL_TOG_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENABLE_SHIFT)) & BCH_CTRL_TOG_M2M_ENABLE_MASK)
5525#define BCH_CTRL_TOG_M2M_ENCODE_MASK (0x20000U)
5526#define BCH_CTRL_TOG_M2M_ENCODE_SHIFT (17U)
5527#define BCH_CTRL_TOG_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENCODE_SHIFT)) & BCH_CTRL_TOG_M2M_ENCODE_MASK)
5528#define BCH_CTRL_TOG_M2M_LAYOUT_MASK (0xC0000U)
5529#define BCH_CTRL_TOG_M2M_LAYOUT_SHIFT (18U)
5530#define BCH_CTRL_TOG_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_LAYOUT_SHIFT)) & BCH_CTRL_TOG_M2M_LAYOUT_MASK)
5531#define BCH_CTRL_TOG_RSVD4_MASK (0x300000U)
5532#define BCH_CTRL_TOG_RSVD4_SHIFT (20U)
5533#define BCH_CTRL_TOG_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD4_SHIFT)) & BCH_CTRL_TOG_RSVD4_MASK)
5534#define BCH_CTRL_TOG_DEBUGSYNDROME_MASK (0x400000U)
5535#define BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT (22U)
5536#define BCH_CTRL_TOG_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_TOG_DEBUGSYNDROME_MASK)
5537#define BCH_CTRL_TOG_RSVD5_MASK (0x3F800000U)
5538#define BCH_CTRL_TOG_RSVD5_SHIFT (23U)
5539#define BCH_CTRL_TOG_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD5_SHIFT)) & BCH_CTRL_TOG_RSVD5_MASK)
5540#define BCH_CTRL_TOG_CLKGATE_MASK (0x40000000U)
5541#define BCH_CTRL_TOG_CLKGATE_SHIFT (30U)
5542/*! CLKGATE
5543 * 0b0..Allow BCH to operate normally.
5544 * 0b1..Do not clock BCH gates in order to minimize power consumption.
5545 */
5546#define BCH_CTRL_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_CLKGATE_SHIFT)) & BCH_CTRL_TOG_CLKGATE_MASK)
5547#define BCH_CTRL_TOG_SFTRST_MASK (0x80000000U)
5548#define BCH_CTRL_TOG_SFTRST_SHIFT (31U)
5549/*! SFTRST
5550 * 0b0..Allow BCH to operate normally.
5551 * 0b1..Hold BCH in reset.
5552 */
5553#define BCH_CTRL_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_SFTRST_SHIFT)) & BCH_CTRL_TOG_SFTRST_MASK)
5554/*! @} */
5555
5556/*! @name STATUS0 - Hardware ECC Accelerator Status Register 0 */
5557/*! @{ */
5558#define BCH_STATUS0_RSVD0_MASK (0x3U)
5559#define BCH_STATUS0_RSVD0_SHIFT (0U)
5560#define BCH_STATUS0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD0_SHIFT)) & BCH_STATUS0_RSVD0_MASK)
5561#define BCH_STATUS0_UNCORRECTABLE_MASK (0x4U)
5562#define BCH_STATUS0_UNCORRECTABLE_SHIFT (2U)
5563#define BCH_STATUS0_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_UNCORRECTABLE_MASK)
5564#define BCH_STATUS0_CORRECTED_MASK (0x8U)
5565#define BCH_STATUS0_CORRECTED_SHIFT (3U)
5566#define BCH_STATUS0_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CORRECTED_SHIFT)) & BCH_STATUS0_CORRECTED_MASK)
5567#define BCH_STATUS0_ALLONES_MASK (0x10U)
5568#define BCH_STATUS0_ALLONES_SHIFT (4U)
5569#define BCH_STATUS0_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_ALLONES_SHIFT)) & BCH_STATUS0_ALLONES_MASK)
5570#define BCH_STATUS0_RSVD1_MASK (0xE0U)
5571#define BCH_STATUS0_RSVD1_SHIFT (5U)
5572#define BCH_STATUS0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD1_SHIFT)) & BCH_STATUS0_RSVD1_MASK)
5573#define BCH_STATUS0_STATUS_BLK0_MASK (0xFF00U)
5574#define BCH_STATUS0_STATUS_BLK0_SHIFT (8U)
5575/*! STATUS_BLK0
5576 * 0b00000000..No errors found on block.
5577 * 0b00000001..One error found on block.
5578 * 0b00000010..One errors found on block.
5579 * 0b00000011..One errors found on block.
5580 * 0b00000100..One errors found on block.
5581 * 0b11111110..Block exhibited uncorrectable errors.
5582 * 0b11111111..Page is erased.
5583 */
5584#define BCH_STATUS0_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_STATUS_BLK0_SHIFT)) & BCH_STATUS0_STATUS_BLK0_MASK)
5585#define BCH_STATUS0_COMPLETED_CE_MASK (0xF0000U)
5586#define BCH_STATUS0_COMPLETED_CE_SHIFT (16U)
5587#define BCH_STATUS0_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_COMPLETED_CE_SHIFT)) & BCH_STATUS0_COMPLETED_CE_MASK)
5588#define BCH_STATUS0_HANDLE_MASK (0xFFF00000U)
5589#define BCH_STATUS0_HANDLE_SHIFT (20U)
5590#define BCH_STATUS0_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_HANDLE_SHIFT)) & BCH_STATUS0_HANDLE_MASK)
5591/*! @} */
5592
5593/*! @name STATUS0_SET - Hardware ECC Accelerator Status Register 0 */
5594/*! @{ */
5595#define BCH_STATUS0_SET_RSVD0_MASK (0x3U)
5596#define BCH_STATUS0_SET_RSVD0_SHIFT (0U)
5597#define BCH_STATUS0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_RSVD0_SHIFT)) & BCH_STATUS0_SET_RSVD0_MASK)
5598#define BCH_STATUS0_SET_UNCORRECTABLE_MASK (0x4U)
5599#define BCH_STATUS0_SET_UNCORRECTABLE_SHIFT (2U)
5600#define BCH_STATUS0_SET_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_SET_UNCORRECTABLE_MASK)
5601#define BCH_STATUS0_SET_CORRECTED_MASK (0x8U)
5602#define BCH_STATUS0_SET_CORRECTED_SHIFT (3U)
5603#define BCH_STATUS0_SET_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_CORRECTED_SHIFT)) & BCH_STATUS0_SET_CORRECTED_MASK)
5604#define BCH_STATUS0_SET_ALLONES_MASK (0x10U)
5605#define BCH_STATUS0_SET_ALLONES_SHIFT (4U)
5606#define BCH_STATUS0_SET_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_ALLONES_SHIFT)) & BCH_STATUS0_SET_ALLONES_MASK)
5607#define BCH_STATUS0_SET_RSVD1_MASK (0xE0U)
5608#define BCH_STATUS0_SET_RSVD1_SHIFT (5U)
5609#define BCH_STATUS0_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_RSVD1_SHIFT)) & BCH_STATUS0_SET_RSVD1_MASK)
5610#define BCH_STATUS0_SET_STATUS_BLK0_MASK (0xFF00U)
5611#define BCH_STATUS0_SET_STATUS_BLK0_SHIFT (8U)
5612/*! STATUS_BLK0
5613 * 0b00000000..No errors found on block.
5614 * 0b00000001..One error found on block.
5615 * 0b00000010..One errors found on block.
5616 * 0b00000011..One errors found on block.
5617 * 0b00000100..One errors found on block.
5618 * 0b11111110..Block exhibited uncorrectable errors.
5619 * 0b11111111..Page is erased.
5620 */
5621#define BCH_STATUS0_SET_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_STATUS_BLK0_SHIFT)) & BCH_STATUS0_SET_STATUS_BLK0_MASK)
5622#define BCH_STATUS0_SET_COMPLETED_CE_MASK (0xF0000U)
5623#define BCH_STATUS0_SET_COMPLETED_CE_SHIFT (16U)
5624#define BCH_STATUS0_SET_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_COMPLETED_CE_SHIFT)) & BCH_STATUS0_SET_COMPLETED_CE_MASK)
5625#define BCH_STATUS0_SET_HANDLE_MASK (0xFFF00000U)
5626#define BCH_STATUS0_SET_HANDLE_SHIFT (20U)
5627#define BCH_STATUS0_SET_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_SET_HANDLE_SHIFT)) & BCH_STATUS0_SET_HANDLE_MASK)
5628/*! @} */
5629
5630/*! @name STATUS0_CLR - Hardware ECC Accelerator Status Register 0 */
5631/*! @{ */
5632#define BCH_STATUS0_CLR_RSVD0_MASK (0x3U)
5633#define BCH_STATUS0_CLR_RSVD0_SHIFT (0U)
5634#define BCH_STATUS0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_RSVD0_SHIFT)) & BCH_STATUS0_CLR_RSVD0_MASK)
5635#define BCH_STATUS0_CLR_UNCORRECTABLE_MASK (0x4U)
5636#define BCH_STATUS0_CLR_UNCORRECTABLE_SHIFT (2U)
5637#define BCH_STATUS0_CLR_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_CLR_UNCORRECTABLE_MASK)
5638#define BCH_STATUS0_CLR_CORRECTED_MASK (0x8U)
5639#define BCH_STATUS0_CLR_CORRECTED_SHIFT (3U)
5640#define BCH_STATUS0_CLR_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_CORRECTED_SHIFT)) & BCH_STATUS0_CLR_CORRECTED_MASK)
5641#define BCH_STATUS0_CLR_ALLONES_MASK (0x10U)
5642#define BCH_STATUS0_CLR_ALLONES_SHIFT (4U)
5643#define BCH_STATUS0_CLR_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_ALLONES_SHIFT)) & BCH_STATUS0_CLR_ALLONES_MASK)
5644#define BCH_STATUS0_CLR_RSVD1_MASK (0xE0U)
5645#define BCH_STATUS0_CLR_RSVD1_SHIFT (5U)
5646#define BCH_STATUS0_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_RSVD1_SHIFT)) & BCH_STATUS0_CLR_RSVD1_MASK)
5647#define BCH_STATUS0_CLR_STATUS_BLK0_MASK (0xFF00U)
5648#define BCH_STATUS0_CLR_STATUS_BLK0_SHIFT (8U)
5649/*! STATUS_BLK0
5650 * 0b00000000..No errors found on block.
5651 * 0b00000001..One error found on block.
5652 * 0b00000010..One errors found on block.
5653 * 0b00000011..One errors found on block.
5654 * 0b00000100..One errors found on block.
5655 * 0b11111110..Block exhibited uncorrectable errors.
5656 * 0b11111111..Page is erased.
5657 */
5658#define BCH_STATUS0_CLR_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_STATUS_BLK0_SHIFT)) & BCH_STATUS0_CLR_STATUS_BLK0_MASK)
5659#define BCH_STATUS0_CLR_COMPLETED_CE_MASK (0xF0000U)
5660#define BCH_STATUS0_CLR_COMPLETED_CE_SHIFT (16U)
5661#define BCH_STATUS0_CLR_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_COMPLETED_CE_SHIFT)) & BCH_STATUS0_CLR_COMPLETED_CE_MASK)
5662#define BCH_STATUS0_CLR_HANDLE_MASK (0xFFF00000U)
5663#define BCH_STATUS0_CLR_HANDLE_SHIFT (20U)
5664#define BCH_STATUS0_CLR_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CLR_HANDLE_SHIFT)) & BCH_STATUS0_CLR_HANDLE_MASK)
5665/*! @} */
5666
5667/*! @name STATUS0_TOG - Hardware ECC Accelerator Status Register 0 */
5668/*! @{ */
5669#define BCH_STATUS0_TOG_RSVD0_MASK (0x3U)
5670#define BCH_STATUS0_TOG_RSVD0_SHIFT (0U)
5671#define BCH_STATUS0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_RSVD0_SHIFT)) & BCH_STATUS0_TOG_RSVD0_MASK)
5672#define BCH_STATUS0_TOG_UNCORRECTABLE_MASK (0x4U)
5673#define BCH_STATUS0_TOG_UNCORRECTABLE_SHIFT (2U)
5674#define BCH_STATUS0_TOG_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_TOG_UNCORRECTABLE_MASK)
5675#define BCH_STATUS0_TOG_CORRECTED_MASK (0x8U)
5676#define BCH_STATUS0_TOG_CORRECTED_SHIFT (3U)
5677#define BCH_STATUS0_TOG_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_CORRECTED_SHIFT)) & BCH_STATUS0_TOG_CORRECTED_MASK)
5678#define BCH_STATUS0_TOG_ALLONES_MASK (0x10U)
5679#define BCH_STATUS0_TOG_ALLONES_SHIFT (4U)
5680#define BCH_STATUS0_TOG_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_ALLONES_SHIFT)) & BCH_STATUS0_TOG_ALLONES_MASK)
5681#define BCH_STATUS0_TOG_RSVD1_MASK (0xE0U)
5682#define BCH_STATUS0_TOG_RSVD1_SHIFT (5U)
5683#define BCH_STATUS0_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_RSVD1_SHIFT)) & BCH_STATUS0_TOG_RSVD1_MASK)
5684#define BCH_STATUS0_TOG_STATUS_BLK0_MASK (0xFF00U)
5685#define BCH_STATUS0_TOG_STATUS_BLK0_SHIFT (8U)
5686/*! STATUS_BLK0
5687 * 0b00000000..No errors found on block.
5688 * 0b00000001..One error found on block.
5689 * 0b00000010..One errors found on block.
5690 * 0b00000011..One errors found on block.
5691 * 0b00000100..One errors found on block.
5692 * 0b11111110..Block exhibited uncorrectable errors.
5693 * 0b11111111..Page is erased.
5694 */
5695#define BCH_STATUS0_TOG_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_STATUS_BLK0_SHIFT)) & BCH_STATUS0_TOG_STATUS_BLK0_MASK)
5696#define BCH_STATUS0_TOG_COMPLETED_CE_MASK (0xF0000U)
5697#define BCH_STATUS0_TOG_COMPLETED_CE_SHIFT (16U)
5698#define BCH_STATUS0_TOG_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_COMPLETED_CE_SHIFT)) & BCH_STATUS0_TOG_COMPLETED_CE_MASK)
5699#define BCH_STATUS0_TOG_HANDLE_MASK (0xFFF00000U)
5700#define BCH_STATUS0_TOG_HANDLE_SHIFT (20U)
5701#define BCH_STATUS0_TOG_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_TOG_HANDLE_SHIFT)) & BCH_STATUS0_TOG_HANDLE_MASK)
5702/*! @} */
5703
5704/*! @name MODE - Hardware ECC Accelerator Mode Register */
5705/*! @{ */
5706#define BCH_MODE_ERASE_THRESHOLD_MASK (0xFFU)
5707#define BCH_MODE_ERASE_THRESHOLD_SHIFT (0U)
5708#define BCH_MODE_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_ERASE_THRESHOLD_MASK)
5709#define BCH_MODE_RSVD_MASK (0xFFFFFF00U)
5710#define BCH_MODE_RSVD_SHIFT (8U)
5711#define BCH_MODE_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_RSVD_SHIFT)) & BCH_MODE_RSVD_MASK)
5712/*! @} */
5713
5714/*! @name MODE_SET - Hardware ECC Accelerator Mode Register */
5715/*! @{ */
5716#define BCH_MODE_SET_ERASE_THRESHOLD_MASK (0xFFU)
5717#define BCH_MODE_SET_ERASE_THRESHOLD_SHIFT (0U)
5718#define BCH_MODE_SET_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_SET_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_SET_ERASE_THRESHOLD_MASK)
5719#define BCH_MODE_SET_RSVD_MASK (0xFFFFFF00U)
5720#define BCH_MODE_SET_RSVD_SHIFT (8U)
5721#define BCH_MODE_SET_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_SET_RSVD_SHIFT)) & BCH_MODE_SET_RSVD_MASK)
5722/*! @} */
5723
5724/*! @name MODE_CLR - Hardware ECC Accelerator Mode Register */
5725/*! @{ */
5726#define BCH_MODE_CLR_ERASE_THRESHOLD_MASK (0xFFU)
5727#define BCH_MODE_CLR_ERASE_THRESHOLD_SHIFT (0U)
5728#define BCH_MODE_CLR_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_CLR_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_CLR_ERASE_THRESHOLD_MASK)
5729#define BCH_MODE_CLR_RSVD_MASK (0xFFFFFF00U)
5730#define BCH_MODE_CLR_RSVD_SHIFT (8U)
5731#define BCH_MODE_CLR_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_CLR_RSVD_SHIFT)) & BCH_MODE_CLR_RSVD_MASK)
5732/*! @} */
5733
5734/*! @name MODE_TOG - Hardware ECC Accelerator Mode Register */
5735/*! @{ */
5736#define BCH_MODE_TOG_ERASE_THRESHOLD_MASK (0xFFU)
5737#define BCH_MODE_TOG_ERASE_THRESHOLD_SHIFT (0U)
5738#define BCH_MODE_TOG_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_TOG_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_TOG_ERASE_THRESHOLD_MASK)
5739#define BCH_MODE_TOG_RSVD_MASK (0xFFFFFF00U)
5740#define BCH_MODE_TOG_RSVD_SHIFT (8U)
5741#define BCH_MODE_TOG_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_TOG_RSVD_SHIFT)) & BCH_MODE_TOG_RSVD_MASK)
5742/*! @} */
5743
5744/*! @name ENCODEPTR - Hardware BCH ECC Loopback Encode Buffer Register */
5745/*! @{ */
5746#define BCH_ENCODEPTR_ADDR_MASK (0xFFFFFFFFU)
5747#define BCH_ENCODEPTR_ADDR_SHIFT (0U)
5748#define BCH_ENCODEPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_ADDR_SHIFT)) & BCH_ENCODEPTR_ADDR_MASK)
5749/*! @} */
5750
5751/*! @name ENCODEPTR_SET - Hardware BCH ECC Loopback Encode Buffer Register */
5752/*! @{ */
5753#define BCH_ENCODEPTR_SET_ADDR_MASK (0xFFFFFFFFU)
5754#define BCH_ENCODEPTR_SET_ADDR_SHIFT (0U)
5755#define BCH_ENCODEPTR_SET_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_SET_ADDR_SHIFT)) & BCH_ENCODEPTR_SET_ADDR_MASK)
5756/*! @} */
5757
5758/*! @name ENCODEPTR_CLR - Hardware BCH ECC Loopback Encode Buffer Register */
5759/*! @{ */
5760#define BCH_ENCODEPTR_CLR_ADDR_MASK (0xFFFFFFFFU)
5761#define BCH_ENCODEPTR_CLR_ADDR_SHIFT (0U)
5762#define BCH_ENCODEPTR_CLR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_CLR_ADDR_SHIFT)) & BCH_ENCODEPTR_CLR_ADDR_MASK)
5763/*! @} */
5764
5765/*! @name ENCODEPTR_TOG - Hardware BCH ECC Loopback Encode Buffer Register */
5766/*! @{ */
5767#define BCH_ENCODEPTR_TOG_ADDR_MASK (0xFFFFFFFFU)
5768#define BCH_ENCODEPTR_TOG_ADDR_SHIFT (0U)
5769#define BCH_ENCODEPTR_TOG_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_TOG_ADDR_SHIFT)) & BCH_ENCODEPTR_TOG_ADDR_MASK)
5770/*! @} */
5771
5772/*! @name DATAPTR - Hardware BCH ECC Loopback Data Buffer Register */
5773/*! @{ */
5774#define BCH_DATAPTR_ADDR_MASK (0xFFFFFFFFU)
5775#define BCH_DATAPTR_ADDR_SHIFT (0U)
5776#define BCH_DATAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_ADDR_SHIFT)) & BCH_DATAPTR_ADDR_MASK)
5777/*! @} */
5778
5779/*! @name DATAPTR_SET - Hardware BCH ECC Loopback Data Buffer Register */
5780/*! @{ */
5781#define BCH_DATAPTR_SET_ADDR_MASK (0xFFFFFFFFU)
5782#define BCH_DATAPTR_SET_ADDR_SHIFT (0U)
5783#define BCH_DATAPTR_SET_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_SET_ADDR_SHIFT)) & BCH_DATAPTR_SET_ADDR_MASK)
5784/*! @} */
5785
5786/*! @name DATAPTR_CLR - Hardware BCH ECC Loopback Data Buffer Register */
5787/*! @{ */
5788#define BCH_DATAPTR_CLR_ADDR_MASK (0xFFFFFFFFU)
5789#define BCH_DATAPTR_CLR_ADDR_SHIFT (0U)
5790#define BCH_DATAPTR_CLR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_CLR_ADDR_SHIFT)) & BCH_DATAPTR_CLR_ADDR_MASK)
5791/*! @} */
5792
5793/*! @name DATAPTR_TOG - Hardware BCH ECC Loopback Data Buffer Register */
5794/*! @{ */
5795#define BCH_DATAPTR_TOG_ADDR_MASK (0xFFFFFFFFU)
5796#define BCH_DATAPTR_TOG_ADDR_SHIFT (0U)
5797#define BCH_DATAPTR_TOG_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_TOG_ADDR_SHIFT)) & BCH_DATAPTR_TOG_ADDR_MASK)
5798/*! @} */
5799
5800/*! @name METAPTR - Hardware BCH ECC Loopback Metadata Buffer Register */
5801/*! @{ */
5802#define BCH_METAPTR_ADDR_MASK (0xFFFFFFFFU)
5803#define BCH_METAPTR_ADDR_SHIFT (0U)
5804#define BCH_METAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_ADDR_SHIFT)) & BCH_METAPTR_ADDR_MASK)
5805/*! @} */
5806
5807/*! @name METAPTR_SET - Hardware BCH ECC Loopback Metadata Buffer Register */
5808/*! @{ */
5809#define BCH_METAPTR_SET_ADDR_MASK (0xFFFFFFFFU)
5810#define BCH_METAPTR_SET_ADDR_SHIFT (0U)
5811#define BCH_METAPTR_SET_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_SET_ADDR_SHIFT)) & BCH_METAPTR_SET_ADDR_MASK)
5812/*! @} */
5813
5814/*! @name METAPTR_CLR - Hardware BCH ECC Loopback Metadata Buffer Register */
5815/*! @{ */
5816#define BCH_METAPTR_CLR_ADDR_MASK (0xFFFFFFFFU)
5817#define BCH_METAPTR_CLR_ADDR_SHIFT (0U)
5818#define BCH_METAPTR_CLR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_CLR_ADDR_SHIFT)) & BCH_METAPTR_CLR_ADDR_MASK)
5819/*! @} */
5820
5821/*! @name METAPTR_TOG - Hardware BCH ECC Loopback Metadata Buffer Register */
5822/*! @{ */
5823#define BCH_METAPTR_TOG_ADDR_MASK (0xFFFFFFFFU)
5824#define BCH_METAPTR_TOG_ADDR_SHIFT (0U)
5825#define BCH_METAPTR_TOG_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_TOG_ADDR_SHIFT)) & BCH_METAPTR_TOG_ADDR_MASK)
5826/*! @} */
5827
5828/*! @name LAYOUTSELECT - Hardware ECC Accelerator Layout Select Register */
5829/*! @{ */
5830#define BCH_LAYOUTSELECT_CS0_SELECT_MASK (0x3U)
5831#define BCH_LAYOUTSELECT_CS0_SELECT_SHIFT (0U)
5832#define BCH_LAYOUTSELECT_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS0_SELECT_MASK)
5833#define BCH_LAYOUTSELECT_CS1_SELECT_MASK (0xCU)
5834#define BCH_LAYOUTSELECT_CS1_SELECT_SHIFT (2U)
5835#define BCH_LAYOUTSELECT_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS1_SELECT_MASK)
5836#define BCH_LAYOUTSELECT_CS2_SELECT_MASK (0x30U)
5837#define BCH_LAYOUTSELECT_CS2_SELECT_SHIFT (4U)
5838#define BCH_LAYOUTSELECT_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS2_SELECT_MASK)
5839#define BCH_LAYOUTSELECT_CS3_SELECT_MASK (0xC0U)
5840#define BCH_LAYOUTSELECT_CS3_SELECT_SHIFT (6U)
5841#define BCH_LAYOUTSELECT_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS3_SELECT_MASK)
5842#define BCH_LAYOUTSELECT_CS4_SELECT_MASK (0x300U)
5843#define BCH_LAYOUTSELECT_CS4_SELECT_SHIFT (8U)
5844#define BCH_LAYOUTSELECT_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS4_SELECT_MASK)
5845#define BCH_LAYOUTSELECT_CS5_SELECT_MASK (0xC00U)
5846#define BCH_LAYOUTSELECT_CS5_SELECT_SHIFT (10U)
5847#define BCH_LAYOUTSELECT_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS5_SELECT_MASK)
5848#define BCH_LAYOUTSELECT_CS6_SELECT_MASK (0x3000U)
5849#define BCH_LAYOUTSELECT_CS6_SELECT_SHIFT (12U)
5850#define BCH_LAYOUTSELECT_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS6_SELECT_MASK)
5851#define BCH_LAYOUTSELECT_CS7_SELECT_MASK (0xC000U)
5852#define BCH_LAYOUTSELECT_CS7_SELECT_SHIFT (14U)
5853#define BCH_LAYOUTSELECT_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS7_SELECT_MASK)
5854#define BCH_LAYOUTSELECT_CS8_SELECT_MASK (0x30000U)
5855#define BCH_LAYOUTSELECT_CS8_SELECT_SHIFT (16U)
5856#define BCH_LAYOUTSELECT_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS8_SELECT_MASK)
5857#define BCH_LAYOUTSELECT_CS9_SELECT_MASK (0xC0000U)
5858#define BCH_LAYOUTSELECT_CS9_SELECT_SHIFT (18U)
5859#define BCH_LAYOUTSELECT_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS9_SELECT_MASK)
5860#define BCH_LAYOUTSELECT_CS10_SELECT_MASK (0x300000U)
5861#define BCH_LAYOUTSELECT_CS10_SELECT_SHIFT (20U)
5862#define BCH_LAYOUTSELECT_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS10_SELECT_MASK)
5863#define BCH_LAYOUTSELECT_CS11_SELECT_MASK (0xC00000U)
5864#define BCH_LAYOUTSELECT_CS11_SELECT_SHIFT (22U)
5865#define BCH_LAYOUTSELECT_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS11_SELECT_MASK)
5866#define BCH_LAYOUTSELECT_CS12_SELECT_MASK (0x3000000U)
5867#define BCH_LAYOUTSELECT_CS12_SELECT_SHIFT (24U)
5868#define BCH_LAYOUTSELECT_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS12_SELECT_MASK)
5869#define BCH_LAYOUTSELECT_CS13_SELECT_MASK (0xC000000U)
5870#define BCH_LAYOUTSELECT_CS13_SELECT_SHIFT (26U)
5871#define BCH_LAYOUTSELECT_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS13_SELECT_MASK)
5872#define BCH_LAYOUTSELECT_CS14_SELECT_MASK (0x30000000U)
5873#define BCH_LAYOUTSELECT_CS14_SELECT_SHIFT (28U)
5874#define BCH_LAYOUTSELECT_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS14_SELECT_MASK)
5875#define BCH_LAYOUTSELECT_CS15_SELECT_MASK (0xC0000000U)
5876#define BCH_LAYOUTSELECT_CS15_SELECT_SHIFT (30U)
5877#define BCH_LAYOUTSELECT_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS15_SELECT_MASK)
5878/*! @} */
5879
5880/*! @name LAYOUTSELECT_SET - Hardware ECC Accelerator Layout Select Register */
5881/*! @{ */
5882#define BCH_LAYOUTSELECT_SET_CS0_SELECT_MASK (0x3U)
5883#define BCH_LAYOUTSELECT_SET_CS0_SELECT_SHIFT (0U)
5884#define BCH_LAYOUTSELECT_SET_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS0_SELECT_MASK)
5885#define BCH_LAYOUTSELECT_SET_CS1_SELECT_MASK (0xCU)
5886#define BCH_LAYOUTSELECT_SET_CS1_SELECT_SHIFT (2U)
5887#define BCH_LAYOUTSELECT_SET_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS1_SELECT_MASK)
5888#define BCH_LAYOUTSELECT_SET_CS2_SELECT_MASK (0x30U)
5889#define BCH_LAYOUTSELECT_SET_CS2_SELECT_SHIFT (4U)
5890#define BCH_LAYOUTSELECT_SET_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS2_SELECT_MASK)
5891#define BCH_LAYOUTSELECT_SET_CS3_SELECT_MASK (0xC0U)
5892#define BCH_LAYOUTSELECT_SET_CS3_SELECT_SHIFT (6U)
5893#define BCH_LAYOUTSELECT_SET_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS3_SELECT_MASK)
5894#define BCH_LAYOUTSELECT_SET_CS4_SELECT_MASK (0x300U)
5895#define BCH_LAYOUTSELECT_SET_CS4_SELECT_SHIFT (8U)
5896#define BCH_LAYOUTSELECT_SET_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS4_SELECT_MASK)
5897#define BCH_LAYOUTSELECT_SET_CS5_SELECT_MASK (0xC00U)
5898#define BCH_LAYOUTSELECT_SET_CS5_SELECT_SHIFT (10U)
5899#define BCH_LAYOUTSELECT_SET_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS5_SELECT_MASK)
5900#define BCH_LAYOUTSELECT_SET_CS6_SELECT_MASK (0x3000U)
5901#define BCH_LAYOUTSELECT_SET_CS6_SELECT_SHIFT (12U)
5902#define BCH_LAYOUTSELECT_SET_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS6_SELECT_MASK)
5903#define BCH_LAYOUTSELECT_SET_CS7_SELECT_MASK (0xC000U)
5904#define BCH_LAYOUTSELECT_SET_CS7_SELECT_SHIFT (14U)
5905#define BCH_LAYOUTSELECT_SET_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS7_SELECT_MASK)
5906#define BCH_LAYOUTSELECT_SET_CS8_SELECT_MASK (0x30000U)
5907#define BCH_LAYOUTSELECT_SET_CS8_SELECT_SHIFT (16U)
5908#define BCH_LAYOUTSELECT_SET_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS8_SELECT_MASK)
5909#define BCH_LAYOUTSELECT_SET_CS9_SELECT_MASK (0xC0000U)
5910#define BCH_LAYOUTSELECT_SET_CS9_SELECT_SHIFT (18U)
5911#define BCH_LAYOUTSELECT_SET_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS9_SELECT_MASK)
5912#define BCH_LAYOUTSELECT_SET_CS10_SELECT_MASK (0x300000U)
5913#define BCH_LAYOUTSELECT_SET_CS10_SELECT_SHIFT (20U)
5914#define BCH_LAYOUTSELECT_SET_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS10_SELECT_MASK)
5915#define BCH_LAYOUTSELECT_SET_CS11_SELECT_MASK (0xC00000U)
5916#define BCH_LAYOUTSELECT_SET_CS11_SELECT_SHIFT (22U)
5917#define BCH_LAYOUTSELECT_SET_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS11_SELECT_MASK)
5918#define BCH_LAYOUTSELECT_SET_CS12_SELECT_MASK (0x3000000U)
5919#define BCH_LAYOUTSELECT_SET_CS12_SELECT_SHIFT (24U)
5920#define BCH_LAYOUTSELECT_SET_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS12_SELECT_MASK)
5921#define BCH_LAYOUTSELECT_SET_CS13_SELECT_MASK (0xC000000U)
5922#define BCH_LAYOUTSELECT_SET_CS13_SELECT_SHIFT (26U)
5923#define BCH_LAYOUTSELECT_SET_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS13_SELECT_MASK)
5924#define BCH_LAYOUTSELECT_SET_CS14_SELECT_MASK (0x30000000U)
5925#define BCH_LAYOUTSELECT_SET_CS14_SELECT_SHIFT (28U)
5926#define BCH_LAYOUTSELECT_SET_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS14_SELECT_MASK)
5927#define BCH_LAYOUTSELECT_SET_CS15_SELECT_MASK (0xC0000000U)
5928#define BCH_LAYOUTSELECT_SET_CS15_SELECT_SHIFT (30U)
5929#define BCH_LAYOUTSELECT_SET_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_SET_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_SET_CS15_SELECT_MASK)
5930/*! @} */
5931
5932/*! @name LAYOUTSELECT_CLR - Hardware ECC Accelerator Layout Select Register */
5933/*! @{ */
5934#define BCH_LAYOUTSELECT_CLR_CS0_SELECT_MASK (0x3U)
5935#define BCH_LAYOUTSELECT_CLR_CS0_SELECT_SHIFT (0U)
5936#define BCH_LAYOUTSELECT_CLR_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS0_SELECT_MASK)
5937#define BCH_LAYOUTSELECT_CLR_CS1_SELECT_MASK (0xCU)
5938#define BCH_LAYOUTSELECT_CLR_CS1_SELECT_SHIFT (2U)
5939#define BCH_LAYOUTSELECT_CLR_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS1_SELECT_MASK)
5940#define BCH_LAYOUTSELECT_CLR_CS2_SELECT_MASK (0x30U)
5941#define BCH_LAYOUTSELECT_CLR_CS2_SELECT_SHIFT (4U)
5942#define BCH_LAYOUTSELECT_CLR_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS2_SELECT_MASK)
5943#define BCH_LAYOUTSELECT_CLR_CS3_SELECT_MASK (0xC0U)
5944#define BCH_LAYOUTSELECT_CLR_CS3_SELECT_SHIFT (6U)
5945#define BCH_LAYOUTSELECT_CLR_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS3_SELECT_MASK)
5946#define BCH_LAYOUTSELECT_CLR_CS4_SELECT_MASK (0x300U)
5947#define BCH_LAYOUTSELECT_CLR_CS4_SELECT_SHIFT (8U)
5948#define BCH_LAYOUTSELECT_CLR_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS4_SELECT_MASK)
5949#define BCH_LAYOUTSELECT_CLR_CS5_SELECT_MASK (0xC00U)
5950#define BCH_LAYOUTSELECT_CLR_CS5_SELECT_SHIFT (10U)
5951#define BCH_LAYOUTSELECT_CLR_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS5_SELECT_MASK)
5952#define BCH_LAYOUTSELECT_CLR_CS6_SELECT_MASK (0x3000U)
5953#define BCH_LAYOUTSELECT_CLR_CS6_SELECT_SHIFT (12U)
5954#define BCH_LAYOUTSELECT_CLR_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS6_SELECT_MASK)
5955#define BCH_LAYOUTSELECT_CLR_CS7_SELECT_MASK (0xC000U)
5956#define BCH_LAYOUTSELECT_CLR_CS7_SELECT_SHIFT (14U)
5957#define BCH_LAYOUTSELECT_CLR_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS7_SELECT_MASK)
5958#define BCH_LAYOUTSELECT_CLR_CS8_SELECT_MASK (0x30000U)
5959#define BCH_LAYOUTSELECT_CLR_CS8_SELECT_SHIFT (16U)
5960#define BCH_LAYOUTSELECT_CLR_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS8_SELECT_MASK)
5961#define BCH_LAYOUTSELECT_CLR_CS9_SELECT_MASK (0xC0000U)
5962#define BCH_LAYOUTSELECT_CLR_CS9_SELECT_SHIFT (18U)
5963#define BCH_LAYOUTSELECT_CLR_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS9_SELECT_MASK)
5964#define BCH_LAYOUTSELECT_CLR_CS10_SELECT_MASK (0x300000U)
5965#define BCH_LAYOUTSELECT_CLR_CS10_SELECT_SHIFT (20U)
5966#define BCH_LAYOUTSELECT_CLR_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS10_SELECT_MASK)
5967#define BCH_LAYOUTSELECT_CLR_CS11_SELECT_MASK (0xC00000U)
5968#define BCH_LAYOUTSELECT_CLR_CS11_SELECT_SHIFT (22U)
5969#define BCH_LAYOUTSELECT_CLR_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS11_SELECT_MASK)
5970#define BCH_LAYOUTSELECT_CLR_CS12_SELECT_MASK (0x3000000U)
5971#define BCH_LAYOUTSELECT_CLR_CS12_SELECT_SHIFT (24U)
5972#define BCH_LAYOUTSELECT_CLR_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS12_SELECT_MASK)
5973#define BCH_LAYOUTSELECT_CLR_CS13_SELECT_MASK (0xC000000U)
5974#define BCH_LAYOUTSELECT_CLR_CS13_SELECT_SHIFT (26U)
5975#define BCH_LAYOUTSELECT_CLR_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS13_SELECT_MASK)
5976#define BCH_LAYOUTSELECT_CLR_CS14_SELECT_MASK (0x30000000U)
5977#define BCH_LAYOUTSELECT_CLR_CS14_SELECT_SHIFT (28U)
5978#define BCH_LAYOUTSELECT_CLR_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS14_SELECT_MASK)
5979#define BCH_LAYOUTSELECT_CLR_CS15_SELECT_MASK (0xC0000000U)
5980#define BCH_LAYOUTSELECT_CLR_CS15_SELECT_SHIFT (30U)
5981#define BCH_LAYOUTSELECT_CLR_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CLR_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CLR_CS15_SELECT_MASK)
5982/*! @} */
5983
5984/*! @name LAYOUTSELECT_TOG - Hardware ECC Accelerator Layout Select Register */
5985/*! @{ */
5986#define BCH_LAYOUTSELECT_TOG_CS0_SELECT_MASK (0x3U)
5987#define BCH_LAYOUTSELECT_TOG_CS0_SELECT_SHIFT (0U)
5988#define BCH_LAYOUTSELECT_TOG_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS0_SELECT_MASK)
5989#define BCH_LAYOUTSELECT_TOG_CS1_SELECT_MASK (0xCU)
5990#define BCH_LAYOUTSELECT_TOG_CS1_SELECT_SHIFT (2U)
5991#define BCH_LAYOUTSELECT_TOG_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS1_SELECT_MASK)
5992#define BCH_LAYOUTSELECT_TOG_CS2_SELECT_MASK (0x30U)
5993#define BCH_LAYOUTSELECT_TOG_CS2_SELECT_SHIFT (4U)
5994#define BCH_LAYOUTSELECT_TOG_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS2_SELECT_MASK)
5995#define BCH_LAYOUTSELECT_TOG_CS3_SELECT_MASK (0xC0U)
5996#define BCH_LAYOUTSELECT_TOG_CS3_SELECT_SHIFT (6U)
5997#define BCH_LAYOUTSELECT_TOG_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS3_SELECT_MASK)
5998#define BCH_LAYOUTSELECT_TOG_CS4_SELECT_MASK (0x300U)
5999#define BCH_LAYOUTSELECT_TOG_CS4_SELECT_SHIFT (8U)
6000#define BCH_LAYOUTSELECT_TOG_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS4_SELECT_MASK)
6001#define BCH_LAYOUTSELECT_TOG_CS5_SELECT_MASK (0xC00U)
6002#define BCH_LAYOUTSELECT_TOG_CS5_SELECT_SHIFT (10U)
6003#define BCH_LAYOUTSELECT_TOG_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS5_SELECT_MASK)
6004#define BCH_LAYOUTSELECT_TOG_CS6_SELECT_MASK (0x3000U)
6005#define BCH_LAYOUTSELECT_TOG_CS6_SELECT_SHIFT (12U)
6006#define BCH_LAYOUTSELECT_TOG_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS6_SELECT_MASK)
6007#define BCH_LAYOUTSELECT_TOG_CS7_SELECT_MASK (0xC000U)
6008#define BCH_LAYOUTSELECT_TOG_CS7_SELECT_SHIFT (14U)
6009#define BCH_LAYOUTSELECT_TOG_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS7_SELECT_MASK)
6010#define BCH_LAYOUTSELECT_TOG_CS8_SELECT_MASK (0x30000U)
6011#define BCH_LAYOUTSELECT_TOG_CS8_SELECT_SHIFT (16U)
6012#define BCH_LAYOUTSELECT_TOG_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS8_SELECT_MASK)
6013#define BCH_LAYOUTSELECT_TOG_CS9_SELECT_MASK (0xC0000U)
6014#define BCH_LAYOUTSELECT_TOG_CS9_SELECT_SHIFT (18U)
6015#define BCH_LAYOUTSELECT_TOG_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS9_SELECT_MASK)
6016#define BCH_LAYOUTSELECT_TOG_CS10_SELECT_MASK (0x300000U)
6017#define BCH_LAYOUTSELECT_TOG_CS10_SELECT_SHIFT (20U)
6018#define BCH_LAYOUTSELECT_TOG_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS10_SELECT_MASK)
6019#define BCH_LAYOUTSELECT_TOG_CS11_SELECT_MASK (0xC00000U)
6020#define BCH_LAYOUTSELECT_TOG_CS11_SELECT_SHIFT (22U)
6021#define BCH_LAYOUTSELECT_TOG_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS11_SELECT_MASK)
6022#define BCH_LAYOUTSELECT_TOG_CS12_SELECT_MASK (0x3000000U)
6023#define BCH_LAYOUTSELECT_TOG_CS12_SELECT_SHIFT (24U)
6024#define BCH_LAYOUTSELECT_TOG_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS12_SELECT_MASK)
6025#define BCH_LAYOUTSELECT_TOG_CS13_SELECT_MASK (0xC000000U)
6026#define BCH_LAYOUTSELECT_TOG_CS13_SELECT_SHIFT (26U)
6027#define BCH_LAYOUTSELECT_TOG_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS13_SELECT_MASK)
6028#define BCH_LAYOUTSELECT_TOG_CS14_SELECT_MASK (0x30000000U)
6029#define BCH_LAYOUTSELECT_TOG_CS14_SELECT_SHIFT (28U)
6030#define BCH_LAYOUTSELECT_TOG_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS14_SELECT_MASK)
6031#define BCH_LAYOUTSELECT_TOG_CS15_SELECT_MASK (0xC0000000U)
6032#define BCH_LAYOUTSELECT_TOG_CS15_SELECT_SHIFT (30U)
6033#define BCH_LAYOUTSELECT_TOG_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_TOG_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_TOG_CS15_SELECT_MASK)
6034/*! @} */
6035
6036/*! @name FLASH0LAYOUT0 - Hardware BCH ECC Flash 0 Layout 0 Register */
6037/*! @{ */
6038#define BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
6039#define BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT (0U)
6040#define BCH_FLASH0LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK)
6041#define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
6042#define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
6043#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)
6044#define BCH_FLASH0LAYOUT0_ECC0_MASK (0xF800U)
6045#define BCH_FLASH0LAYOUT0_ECC0_SHIFT (11U)
6046/*! ECC0
6047 * 0b00000..No ECC to be performed
6048 * 0b00001..ECC 2 to be performed
6049 * 0b00010..ECC 4 to be performed
6050 * 0b11110..ECC 60 to be performed
6051 * 0b11111..ECC 62 to be performed
6052 */
6053#define BCH_FLASH0LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_ECC0_MASK)
6054#define BCH_FLASH0LAYOUT0_META_SIZE_MASK (0xFF0000U)
6055#define BCH_FLASH0LAYOUT0_META_SIZE_SHIFT (16U)
6056#define BCH_FLASH0LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_META_SIZE_MASK)
6057#define BCH_FLASH0LAYOUT0_NBLOCKS_MASK (0xFF000000U)
6058#define BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT (24U)
6059#define BCH_FLASH0LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_NBLOCKS_MASK)
6060/*! @} */
6061
6062/*! @name FLASH0LAYOUT0_SET - Hardware BCH ECC Flash 0 Layout 0 Register */
6063/*! @{ */
6064#define BCH_FLASH0LAYOUT0_SET_DATA0_SIZE_MASK (0x3FFU)
6065#define BCH_FLASH0LAYOUT0_SET_DATA0_SIZE_SHIFT (0U)
6066#define BCH_FLASH0LAYOUT0_SET_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_SET_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_SET_DATA0_SIZE_MASK)
6067#define BCH_FLASH0LAYOUT0_SET_GF13_0_GF14_1_MASK (0x400U)
6068#define BCH_FLASH0LAYOUT0_SET_GF13_0_GF14_1_SHIFT (10U)
6069#define BCH_FLASH0LAYOUT0_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT0_SET_GF13_0_GF14_1_MASK)
6070#define BCH_FLASH0LAYOUT0_SET_ECC0_MASK (0xF800U)
6071#define BCH_FLASH0LAYOUT0_SET_ECC0_SHIFT (11U)
6072/*! ECC0
6073 * 0b00000..No ECC to be performed
6074 * 0b00001..ECC 2 to be performed
6075 * 0b00010..ECC 4 to be performed
6076 * 0b11110..ECC 60 to be performed
6077 * 0b11111..ECC 62 to be performed
6078 */
6079#define BCH_FLASH0LAYOUT0_SET_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_SET_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_SET_ECC0_MASK)
6080#define BCH_FLASH0LAYOUT0_SET_META_SIZE_MASK (0xFF0000U)
6081#define BCH_FLASH0LAYOUT0_SET_META_SIZE_SHIFT (16U)
6082#define BCH_FLASH0LAYOUT0_SET_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_SET_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_SET_META_SIZE_MASK)
6083#define BCH_FLASH0LAYOUT0_SET_NBLOCKS_MASK (0xFF000000U)
6084#define BCH_FLASH0LAYOUT0_SET_NBLOCKS_SHIFT (24U)
6085#define BCH_FLASH0LAYOUT0_SET_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_SET_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_SET_NBLOCKS_MASK)
6086/*! @} */
6087
6088/*! @name FLASH0LAYOUT0_CLR - Hardware BCH ECC Flash 0 Layout 0 Register */
6089/*! @{ */
6090#define BCH_FLASH0LAYOUT0_CLR_DATA0_SIZE_MASK (0x3FFU)
6091#define BCH_FLASH0LAYOUT0_CLR_DATA0_SIZE_SHIFT (0U)
6092#define BCH_FLASH0LAYOUT0_CLR_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_CLR_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_CLR_DATA0_SIZE_MASK)
6093#define BCH_FLASH0LAYOUT0_CLR_GF13_0_GF14_1_MASK (0x400U)
6094#define BCH_FLASH0LAYOUT0_CLR_GF13_0_GF14_1_SHIFT (10U)
6095#define BCH_FLASH0LAYOUT0_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT0_CLR_GF13_0_GF14_1_MASK)
6096#define BCH_FLASH0LAYOUT0_CLR_ECC0_MASK (0xF800U)
6097#define BCH_FLASH0LAYOUT0_CLR_ECC0_SHIFT (11U)
6098/*! ECC0
6099 * 0b00000..No ECC to be performed
6100 * 0b00001..ECC 2 to be performed
6101 * 0b00010..ECC 4 to be performed
6102 * 0b11110..ECC 60 to be performed
6103 * 0b11111..ECC 62 to be performed
6104 */
6105#define BCH_FLASH0LAYOUT0_CLR_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_CLR_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_CLR_ECC0_MASK)
6106#define BCH_FLASH0LAYOUT0_CLR_META_SIZE_MASK (0xFF0000U)
6107#define BCH_FLASH0LAYOUT0_CLR_META_SIZE_SHIFT (16U)
6108#define BCH_FLASH0LAYOUT0_CLR_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_CLR_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_CLR_META_SIZE_MASK)
6109#define BCH_FLASH0LAYOUT0_CLR_NBLOCKS_MASK (0xFF000000U)
6110#define BCH_FLASH0LAYOUT0_CLR_NBLOCKS_SHIFT (24U)
6111#define BCH_FLASH0LAYOUT0_CLR_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_CLR_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_CLR_NBLOCKS_MASK)
6112/*! @} */
6113
6114/*! @name FLASH0LAYOUT0_TOG - Hardware BCH ECC Flash 0 Layout 0 Register */
6115/*! @{ */
6116#define BCH_FLASH0LAYOUT0_TOG_DATA0_SIZE_MASK (0x3FFU)
6117#define BCH_FLASH0LAYOUT0_TOG_DATA0_SIZE_SHIFT (0U)
6118#define BCH_FLASH0LAYOUT0_TOG_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_TOG_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_TOG_DATA0_SIZE_MASK)
6119#define BCH_FLASH0LAYOUT0_TOG_GF13_0_GF14_1_MASK (0x400U)
6120#define BCH_FLASH0LAYOUT0_TOG_GF13_0_GF14_1_SHIFT (10U)
6121#define BCH_FLASH0LAYOUT0_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT0_TOG_GF13_0_GF14_1_MASK)
6122#define BCH_FLASH0LAYOUT0_TOG_ECC0_MASK (0xF800U)
6123#define BCH_FLASH0LAYOUT0_TOG_ECC0_SHIFT (11U)
6124/*! ECC0
6125 * 0b00000..No ECC to be performed
6126 * 0b00001..ECC 2 to be performed
6127 * 0b00010..ECC 4 to be performed
6128 * 0b11110..ECC 60 to be performed
6129 * 0b11111..ECC 62 to be performed
6130 */
6131#define BCH_FLASH0LAYOUT0_TOG_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_TOG_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_TOG_ECC0_MASK)
6132#define BCH_FLASH0LAYOUT0_TOG_META_SIZE_MASK (0xFF0000U)
6133#define BCH_FLASH0LAYOUT0_TOG_META_SIZE_SHIFT (16U)
6134#define BCH_FLASH0LAYOUT0_TOG_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_TOG_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_TOG_META_SIZE_MASK)
6135#define BCH_FLASH0LAYOUT0_TOG_NBLOCKS_MASK (0xFF000000U)
6136#define BCH_FLASH0LAYOUT0_TOG_NBLOCKS_SHIFT (24U)
6137#define BCH_FLASH0LAYOUT0_TOG_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_TOG_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_TOG_NBLOCKS_MASK)
6138/*! @} */
6139
6140/*! @name FLASH0LAYOUT1 - Hardware BCH ECC Flash 0 Layout 1 Register */
6141/*! @{ */
6142#define BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
6143#define BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT (0U)
6144#define BCH_FLASH0LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK)
6145#define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
6146#define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
6147#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)
6148#define BCH_FLASH0LAYOUT1_ECCN_MASK (0xF800U)
6149#define BCH_FLASH0LAYOUT1_ECCN_SHIFT (11U)
6150/*! ECCN
6151 * 0b00000..No ECC to be performed
6152 * 0b00001..ECC 2 to be performed
6153 * 0b00010..ECC 4 to be performed
6154 * 0b11110..ECC 60 to be performed
6155 * 0b11111..ECC 62 to be performed
6156 */
6157#define BCH_FLASH0LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_ECCN_MASK)
6158#define BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
6159#define BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT (16U)
6160#define BCH_FLASH0LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK)
6161/*! @} */
6162
6163/*! @name FLASH0LAYOUT1_SET - Hardware BCH ECC Flash 0 Layout 1 Register */
6164/*! @{ */
6165#define BCH_FLASH0LAYOUT1_SET_DATAN_SIZE_MASK (0x3FFU)
6166#define BCH_FLASH0LAYOUT1_SET_DATAN_SIZE_SHIFT (0U)
6167#define BCH_FLASH0LAYOUT1_SET_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_SET_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_SET_DATAN_SIZE_MASK)
6168#define BCH_FLASH0LAYOUT1_SET_GF13_0_GF14_1_MASK (0x400U)
6169#define BCH_FLASH0LAYOUT1_SET_GF13_0_GF14_1_SHIFT (10U)
6170#define BCH_FLASH0LAYOUT1_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT1_SET_GF13_0_GF14_1_MASK)
6171#define BCH_FLASH0LAYOUT1_SET_ECCN_MASK (0xF800U)
6172#define BCH_FLASH0LAYOUT1_SET_ECCN_SHIFT (11U)
6173/*! ECCN
6174 * 0b00000..No ECC to be performed
6175 * 0b00001..ECC 2 to be performed
6176 * 0b00010..ECC 4 to be performed
6177 * 0b11110..ECC 60 to be performed
6178 * 0b11111..ECC 62 to be performed
6179 */
6180#define BCH_FLASH0LAYOUT1_SET_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_SET_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_SET_ECCN_MASK)
6181#define BCH_FLASH0LAYOUT1_SET_PAGE_SIZE_MASK (0xFFFF0000U)
6182#define BCH_FLASH0LAYOUT1_SET_PAGE_SIZE_SHIFT (16U)
6183#define BCH_FLASH0LAYOUT1_SET_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_SET_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_SET_PAGE_SIZE_MASK)
6184/*! @} */
6185
6186/*! @name FLASH0LAYOUT1_CLR - Hardware BCH ECC Flash 0 Layout 1 Register */
6187/*! @{ */
6188#define BCH_FLASH0LAYOUT1_CLR_DATAN_SIZE_MASK (0x3FFU)
6189#define BCH_FLASH0LAYOUT1_CLR_DATAN_SIZE_SHIFT (0U)
6190#define BCH_FLASH0LAYOUT1_CLR_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_CLR_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_CLR_DATAN_SIZE_MASK)
6191#define BCH_FLASH0LAYOUT1_CLR_GF13_0_GF14_1_MASK (0x400U)
6192#define BCH_FLASH0LAYOUT1_CLR_GF13_0_GF14_1_SHIFT (10U)
6193#define BCH_FLASH0LAYOUT1_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT1_CLR_GF13_0_GF14_1_MASK)
6194#define BCH_FLASH0LAYOUT1_CLR_ECCN_MASK (0xF800U)
6195#define BCH_FLASH0LAYOUT1_CLR_ECCN_SHIFT (11U)
6196/*! ECCN
6197 * 0b00000..No ECC to be performed
6198 * 0b00001..ECC 2 to be performed
6199 * 0b00010..ECC 4 to be performed
6200 * 0b11110..ECC 60 to be performed
6201 * 0b11111..ECC 62 to be performed
6202 */
6203#define BCH_FLASH0LAYOUT1_CLR_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_CLR_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_CLR_ECCN_MASK)
6204#define BCH_FLASH0LAYOUT1_CLR_PAGE_SIZE_MASK (0xFFFF0000U)
6205#define BCH_FLASH0LAYOUT1_CLR_PAGE_SIZE_SHIFT (16U)
6206#define BCH_FLASH0LAYOUT1_CLR_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_CLR_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_CLR_PAGE_SIZE_MASK)
6207/*! @} */
6208
6209/*! @name FLASH0LAYOUT1_TOG - Hardware BCH ECC Flash 0 Layout 1 Register */
6210/*! @{ */
6211#define BCH_FLASH0LAYOUT1_TOG_DATAN_SIZE_MASK (0x3FFU)
6212#define BCH_FLASH0LAYOUT1_TOG_DATAN_SIZE_SHIFT (0U)
6213#define BCH_FLASH0LAYOUT1_TOG_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_TOG_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_TOG_DATAN_SIZE_MASK)
6214#define BCH_FLASH0LAYOUT1_TOG_GF13_0_GF14_1_MASK (0x400U)
6215#define BCH_FLASH0LAYOUT1_TOG_GF13_0_GF14_1_SHIFT (10U)
6216#define BCH_FLASH0LAYOUT1_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT1_TOG_GF13_0_GF14_1_MASK)
6217#define BCH_FLASH0LAYOUT1_TOG_ECCN_MASK (0xF800U)
6218#define BCH_FLASH0LAYOUT1_TOG_ECCN_SHIFT (11U)
6219/*! ECCN
6220 * 0b00000..No ECC to be performed
6221 * 0b00001..ECC 2 to be performed
6222 * 0b00010..ECC 4 to be performed
6223 * 0b11110..ECC 60 to be performed
6224 * 0b11111..ECC 62 to be performed
6225 */
6226#define BCH_FLASH0LAYOUT1_TOG_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_TOG_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_TOG_ECCN_MASK)
6227#define BCH_FLASH0LAYOUT1_TOG_PAGE_SIZE_MASK (0xFFFF0000U)
6228#define BCH_FLASH0LAYOUT1_TOG_PAGE_SIZE_SHIFT (16U)
6229#define BCH_FLASH0LAYOUT1_TOG_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_TOG_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_TOG_PAGE_SIZE_MASK)
6230/*! @} */
6231
6232/*! @name FLASH1LAYOUT0 - Hardware BCH ECC Flash 1 Layout 0 Register */
6233/*! @{ */
6234#define BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
6235#define BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT (0U)
6236#define BCH_FLASH1LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK)
6237#define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
6238#define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
6239#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)
6240#define BCH_FLASH1LAYOUT0_ECC0_MASK (0xF800U)
6241#define BCH_FLASH1LAYOUT0_ECC0_SHIFT (11U)
6242/*! ECC0
6243 * 0b00000..No ECC to be performed
6244 * 0b00001..ECC 2 to be performed
6245 * 0b00010..ECC 4 to be performed
6246 * 0b11110..ECC 60 to be performed
6247 * 0b11111..ECC 62 to be performed
6248 */
6249#define BCH_FLASH1LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_ECC0_MASK)
6250#define BCH_FLASH1LAYOUT0_META_SIZE_MASK (0xFF0000U)
6251#define BCH_FLASH1LAYOUT0_META_SIZE_SHIFT (16U)
6252#define BCH_FLASH1LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_META_SIZE_MASK)
6253#define BCH_FLASH1LAYOUT0_NBLOCKS_MASK (0xFF000000U)
6254#define BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT (24U)
6255#define BCH_FLASH1LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_NBLOCKS_MASK)
6256/*! @} */
6257
6258/*! @name FLASH1LAYOUT0_SET - Hardware BCH ECC Flash 1 Layout 0 Register */
6259/*! @{ */
6260#define BCH_FLASH1LAYOUT0_SET_DATA0_SIZE_MASK (0x3FFU)
6261#define BCH_FLASH1LAYOUT0_SET_DATA0_SIZE_SHIFT (0U)
6262#define BCH_FLASH1LAYOUT0_SET_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_SET_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_SET_DATA0_SIZE_MASK)
6263#define BCH_FLASH1LAYOUT0_SET_GF13_0_GF14_1_MASK (0x400U)
6264#define BCH_FLASH1LAYOUT0_SET_GF13_0_GF14_1_SHIFT (10U)
6265#define BCH_FLASH1LAYOUT0_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT0_SET_GF13_0_GF14_1_MASK)
6266#define BCH_FLASH1LAYOUT0_SET_ECC0_MASK (0xF800U)
6267#define BCH_FLASH1LAYOUT0_SET_ECC0_SHIFT (11U)
6268/*! ECC0
6269 * 0b00000..No ECC to be performed
6270 * 0b00001..ECC 2 to be performed
6271 * 0b00010..ECC 4 to be performed
6272 * 0b11110..ECC 60 to be performed
6273 * 0b11111..ECC 62 to be performed
6274 */
6275#define BCH_FLASH1LAYOUT0_SET_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_SET_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_SET_ECC0_MASK)
6276#define BCH_FLASH1LAYOUT0_SET_META_SIZE_MASK (0xFF0000U)
6277#define BCH_FLASH1LAYOUT0_SET_META_SIZE_SHIFT (16U)
6278#define BCH_FLASH1LAYOUT0_SET_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_SET_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_SET_META_SIZE_MASK)
6279#define BCH_FLASH1LAYOUT0_SET_NBLOCKS_MASK (0xFF000000U)
6280#define BCH_FLASH1LAYOUT0_SET_NBLOCKS_SHIFT (24U)
6281#define BCH_FLASH1LAYOUT0_SET_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_SET_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_SET_NBLOCKS_MASK)
6282/*! @} */
6283
6284/*! @name FLASH1LAYOUT0_CLR - Hardware BCH ECC Flash 1 Layout 0 Register */
6285/*! @{ */
6286#define BCH_FLASH1LAYOUT0_CLR_DATA0_SIZE_MASK (0x3FFU)
6287#define BCH_FLASH1LAYOUT0_CLR_DATA0_SIZE_SHIFT (0U)
6288#define BCH_FLASH1LAYOUT0_CLR_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_CLR_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_CLR_DATA0_SIZE_MASK)
6289#define BCH_FLASH1LAYOUT0_CLR_GF13_0_GF14_1_MASK (0x400U)
6290#define BCH_FLASH1LAYOUT0_CLR_GF13_0_GF14_1_SHIFT (10U)
6291#define BCH_FLASH1LAYOUT0_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT0_CLR_GF13_0_GF14_1_MASK)
6292#define BCH_FLASH1LAYOUT0_CLR_ECC0_MASK (0xF800U)
6293#define BCH_FLASH1LAYOUT0_CLR_ECC0_SHIFT (11U)
6294/*! ECC0
6295 * 0b00000..No ECC to be performed
6296 * 0b00001..ECC 2 to be performed
6297 * 0b00010..ECC 4 to be performed
6298 * 0b11110..ECC 60 to be performed
6299 * 0b11111..ECC 62 to be performed
6300 */
6301#define BCH_FLASH1LAYOUT0_CLR_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_CLR_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_CLR_ECC0_MASK)
6302#define BCH_FLASH1LAYOUT0_CLR_META_SIZE_MASK (0xFF0000U)
6303#define BCH_FLASH1LAYOUT0_CLR_META_SIZE_SHIFT (16U)
6304#define BCH_FLASH1LAYOUT0_CLR_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_CLR_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_CLR_META_SIZE_MASK)
6305#define BCH_FLASH1LAYOUT0_CLR_NBLOCKS_MASK (0xFF000000U)
6306#define BCH_FLASH1LAYOUT0_CLR_NBLOCKS_SHIFT (24U)
6307#define BCH_FLASH1LAYOUT0_CLR_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_CLR_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_CLR_NBLOCKS_MASK)
6308/*! @} */
6309
6310/*! @name FLASH1LAYOUT0_TOG - Hardware BCH ECC Flash 1 Layout 0 Register */
6311/*! @{ */
6312#define BCH_FLASH1LAYOUT0_TOG_DATA0_SIZE_MASK (0x3FFU)
6313#define BCH_FLASH1LAYOUT0_TOG_DATA0_SIZE_SHIFT (0U)
6314#define BCH_FLASH1LAYOUT0_TOG_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_TOG_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_TOG_DATA0_SIZE_MASK)
6315#define BCH_FLASH1LAYOUT0_TOG_GF13_0_GF14_1_MASK (0x400U)
6316#define BCH_FLASH1LAYOUT0_TOG_GF13_0_GF14_1_SHIFT (10U)
6317#define BCH_FLASH1LAYOUT0_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT0_TOG_GF13_0_GF14_1_MASK)
6318#define BCH_FLASH1LAYOUT0_TOG_ECC0_MASK (0xF800U)
6319#define BCH_FLASH1LAYOUT0_TOG_ECC0_SHIFT (11U)
6320/*! ECC0
6321 * 0b00000..No ECC to be performed
6322 * 0b00001..ECC 2 to be performed
6323 * 0b00010..ECC 4 to be performed
6324 * 0b11110..ECC 60 to be performed
6325 * 0b11111..ECC 62 to be performed
6326 */
6327#define BCH_FLASH1LAYOUT0_TOG_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_TOG_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_TOG_ECC0_MASK)
6328#define BCH_FLASH1LAYOUT0_TOG_META_SIZE_MASK (0xFF0000U)
6329#define BCH_FLASH1LAYOUT0_TOG_META_SIZE_SHIFT (16U)
6330#define BCH_FLASH1LAYOUT0_TOG_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_TOG_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_TOG_META_SIZE_MASK)
6331#define BCH_FLASH1LAYOUT0_TOG_NBLOCKS_MASK (0xFF000000U)
6332#define BCH_FLASH1LAYOUT0_TOG_NBLOCKS_SHIFT (24U)
6333#define BCH_FLASH1LAYOUT0_TOG_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_TOG_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_TOG_NBLOCKS_MASK)
6334/*! @} */
6335
6336/*! @name FLASH1LAYOUT1 - Hardware BCH ECC Flash 1 Layout 1 Register */
6337/*! @{ */
6338#define BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
6339#define BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT (0U)
6340#define BCH_FLASH1LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK)
6341#define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
6342#define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
6343#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)
6344#define BCH_FLASH1LAYOUT1_ECCN_MASK (0xF800U)
6345#define BCH_FLASH1LAYOUT1_ECCN_SHIFT (11U)
6346/*! ECCN
6347 * 0b00000..No ECC to be performed
6348 * 0b00001..ECC 2 to be performed
6349 * 0b00010..ECC 4 to be performed
6350 * 0b11110..ECC 60 to be performed
6351 * 0b11111..ECC 62 to be performed
6352 */
6353#define BCH_FLASH1LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_ECCN_MASK)
6354#define BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
6355#define BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT (16U)
6356#define BCH_FLASH1LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK)
6357/*! @} */
6358
6359/*! @name FLASH1LAYOUT1_SET - Hardware BCH ECC Flash 1 Layout 1 Register */
6360/*! @{ */
6361#define BCH_FLASH1LAYOUT1_SET_DATAN_SIZE_MASK (0x3FFU)
6362#define BCH_FLASH1LAYOUT1_SET_DATAN_SIZE_SHIFT (0U)
6363#define BCH_FLASH1LAYOUT1_SET_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_SET_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_SET_DATAN_SIZE_MASK)
6364#define BCH_FLASH1LAYOUT1_SET_GF13_0_GF14_1_MASK (0x400U)
6365#define BCH_FLASH1LAYOUT1_SET_GF13_0_GF14_1_SHIFT (10U)
6366#define BCH_FLASH1LAYOUT1_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT1_SET_GF13_0_GF14_1_MASK)
6367#define BCH_FLASH1LAYOUT1_SET_ECCN_MASK (0xF800U)
6368#define BCH_FLASH1LAYOUT1_SET_ECCN_SHIFT (11U)
6369/*! ECCN
6370 * 0b00000..No ECC to be performed
6371 * 0b00001..ECC 2 to be performed
6372 * 0b00010..ECC 4 to be performed
6373 * 0b11110..ECC 60 to be performed
6374 * 0b11111..ECC 62 to be performed
6375 */
6376#define BCH_FLASH1LAYOUT1_SET_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_SET_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_SET_ECCN_MASK)
6377#define BCH_FLASH1LAYOUT1_SET_PAGE_SIZE_MASK (0xFFFF0000U)
6378#define BCH_FLASH1LAYOUT1_SET_PAGE_SIZE_SHIFT (16U)
6379#define BCH_FLASH1LAYOUT1_SET_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_SET_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_SET_PAGE_SIZE_MASK)
6380/*! @} */
6381
6382/*! @name FLASH1LAYOUT1_CLR - Hardware BCH ECC Flash 1 Layout 1 Register */
6383/*! @{ */
6384#define BCH_FLASH1LAYOUT1_CLR_DATAN_SIZE_MASK (0x3FFU)
6385#define BCH_FLASH1LAYOUT1_CLR_DATAN_SIZE_SHIFT (0U)
6386#define BCH_FLASH1LAYOUT1_CLR_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_CLR_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_CLR_DATAN_SIZE_MASK)
6387#define BCH_FLASH1LAYOUT1_CLR_GF13_0_GF14_1_MASK (0x400U)
6388#define BCH_FLASH1LAYOUT1_CLR_GF13_0_GF14_1_SHIFT (10U)
6389#define BCH_FLASH1LAYOUT1_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT1_CLR_GF13_0_GF14_1_MASK)
6390#define BCH_FLASH1LAYOUT1_CLR_ECCN_MASK (0xF800U)
6391#define BCH_FLASH1LAYOUT1_CLR_ECCN_SHIFT (11U)
6392/*! ECCN
6393 * 0b00000..No ECC to be performed
6394 * 0b00001..ECC 2 to be performed
6395 * 0b00010..ECC 4 to be performed
6396 * 0b11110..ECC 60 to be performed
6397 * 0b11111..ECC 62 to be performed
6398 */
6399#define BCH_FLASH1LAYOUT1_CLR_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_CLR_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_CLR_ECCN_MASK)
6400#define BCH_FLASH1LAYOUT1_CLR_PAGE_SIZE_MASK (0xFFFF0000U)
6401#define BCH_FLASH1LAYOUT1_CLR_PAGE_SIZE_SHIFT (16U)
6402#define BCH_FLASH1LAYOUT1_CLR_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_CLR_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_CLR_PAGE_SIZE_MASK)
6403/*! @} */
6404
6405/*! @name FLASH1LAYOUT1_TOG - Hardware BCH ECC Flash 1 Layout 1 Register */
6406/*! @{ */
6407#define BCH_FLASH1LAYOUT1_TOG_DATAN_SIZE_MASK (0x3FFU)
6408#define BCH_FLASH1LAYOUT1_TOG_DATAN_SIZE_SHIFT (0U)
6409#define BCH_FLASH1LAYOUT1_TOG_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_TOG_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_TOG_DATAN_SIZE_MASK)
6410#define BCH_FLASH1LAYOUT1_TOG_GF13_0_GF14_1_MASK (0x400U)
6411#define BCH_FLASH1LAYOUT1_TOG_GF13_0_GF14_1_SHIFT (10U)
6412#define BCH_FLASH1LAYOUT1_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT1_TOG_GF13_0_GF14_1_MASK)
6413#define BCH_FLASH1LAYOUT1_TOG_ECCN_MASK (0xF800U)
6414#define BCH_FLASH1LAYOUT1_TOG_ECCN_SHIFT (11U)
6415/*! ECCN
6416 * 0b00000..No ECC to be performed
6417 * 0b00001..ECC 2 to be performed
6418 * 0b00010..ECC 4 to be performed
6419 * 0b11110..ECC 60 to be performed
6420 * 0b11111..ECC 62 to be performed
6421 */
6422#define BCH_FLASH1LAYOUT1_TOG_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_TOG_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_TOG_ECCN_MASK)
6423#define BCH_FLASH1LAYOUT1_TOG_PAGE_SIZE_MASK (0xFFFF0000U)
6424#define BCH_FLASH1LAYOUT1_TOG_PAGE_SIZE_SHIFT (16U)
6425#define BCH_FLASH1LAYOUT1_TOG_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_TOG_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_TOG_PAGE_SIZE_MASK)
6426/*! @} */
6427
6428/*! @name FLASH2LAYOUT0 - Hardware BCH ECC Flash 2 Layout 0 Register */
6429/*! @{ */
6430#define BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
6431#define BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT (0U)
6432#define BCH_FLASH2LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK)
6433#define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
6434#define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
6435#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)
6436#define BCH_FLASH2LAYOUT0_ECC0_MASK (0xF800U)
6437#define BCH_FLASH2LAYOUT0_ECC0_SHIFT (11U)
6438/*! ECC0
6439 * 0b00000..No ECC to be performed
6440 * 0b00001..ECC 2 to be performed
6441 * 0b00010..ECC 4 to be performed
6442 * 0b11110..ECC 60 to be performed
6443 * 0b11111..ECC 62 to be performed
6444 */
6445#define BCH_FLASH2LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_ECC0_MASK)
6446#define BCH_FLASH2LAYOUT0_META_SIZE_MASK (0xFF0000U)
6447#define BCH_FLASH2LAYOUT0_META_SIZE_SHIFT (16U)
6448#define BCH_FLASH2LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_META_SIZE_MASK)
6449#define BCH_FLASH2LAYOUT0_NBLOCKS_MASK (0xFF000000U)
6450#define BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT (24U)
6451#define BCH_FLASH2LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_NBLOCKS_MASK)
6452/*! @} */
6453
6454/*! @name FLASH2LAYOUT0_SET - Hardware BCH ECC Flash 2 Layout 0 Register */
6455/*! @{ */
6456#define BCH_FLASH2LAYOUT0_SET_DATA0_SIZE_MASK (0x3FFU)
6457#define BCH_FLASH2LAYOUT0_SET_DATA0_SIZE_SHIFT (0U)
6458#define BCH_FLASH2LAYOUT0_SET_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_SET_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_SET_DATA0_SIZE_MASK)
6459#define BCH_FLASH2LAYOUT0_SET_GF13_0_GF14_1_MASK (0x400U)
6460#define BCH_FLASH2LAYOUT0_SET_GF13_0_GF14_1_SHIFT (10U)
6461#define BCH_FLASH2LAYOUT0_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT0_SET_GF13_0_GF14_1_MASK)
6462#define BCH_FLASH2LAYOUT0_SET_ECC0_MASK (0xF800U)
6463#define BCH_FLASH2LAYOUT0_SET_ECC0_SHIFT (11U)
6464/*! ECC0
6465 * 0b00000..No ECC to be performed
6466 * 0b00001..ECC 2 to be performed
6467 * 0b00010..ECC 4 to be performed
6468 * 0b11110..ECC 60 to be performed
6469 * 0b11111..ECC 62 to be performed
6470 */
6471#define BCH_FLASH2LAYOUT0_SET_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_SET_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_SET_ECC0_MASK)
6472#define BCH_FLASH2LAYOUT0_SET_META_SIZE_MASK (0xFF0000U)
6473#define BCH_FLASH2LAYOUT0_SET_META_SIZE_SHIFT (16U)
6474#define BCH_FLASH2LAYOUT0_SET_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_SET_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_SET_META_SIZE_MASK)
6475#define BCH_FLASH2LAYOUT0_SET_NBLOCKS_MASK (0xFF000000U)
6476#define BCH_FLASH2LAYOUT0_SET_NBLOCKS_SHIFT (24U)
6477#define BCH_FLASH2LAYOUT0_SET_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_SET_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_SET_NBLOCKS_MASK)
6478/*! @} */
6479
6480/*! @name FLASH2LAYOUT0_CLR - Hardware BCH ECC Flash 2 Layout 0 Register */
6481/*! @{ */
6482#define BCH_FLASH2LAYOUT0_CLR_DATA0_SIZE_MASK (0x3FFU)
6483#define BCH_FLASH2LAYOUT0_CLR_DATA0_SIZE_SHIFT (0U)
6484#define BCH_FLASH2LAYOUT0_CLR_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_CLR_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_CLR_DATA0_SIZE_MASK)
6485#define BCH_FLASH2LAYOUT0_CLR_GF13_0_GF14_1_MASK (0x400U)
6486#define BCH_FLASH2LAYOUT0_CLR_GF13_0_GF14_1_SHIFT (10U)
6487#define BCH_FLASH2LAYOUT0_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT0_CLR_GF13_0_GF14_1_MASK)
6488#define BCH_FLASH2LAYOUT0_CLR_ECC0_MASK (0xF800U)
6489#define BCH_FLASH2LAYOUT0_CLR_ECC0_SHIFT (11U)
6490/*! ECC0
6491 * 0b00000..No ECC to be performed
6492 * 0b00001..ECC 2 to be performed
6493 * 0b00010..ECC 4 to be performed
6494 * 0b11110..ECC 60 to be performed
6495 * 0b11111..ECC 62 to be performed
6496 */
6497#define BCH_FLASH2LAYOUT0_CLR_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_CLR_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_CLR_ECC0_MASK)
6498#define BCH_FLASH2LAYOUT0_CLR_META_SIZE_MASK (0xFF0000U)
6499#define BCH_FLASH2LAYOUT0_CLR_META_SIZE_SHIFT (16U)
6500#define BCH_FLASH2LAYOUT0_CLR_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_CLR_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_CLR_META_SIZE_MASK)
6501#define BCH_FLASH2LAYOUT0_CLR_NBLOCKS_MASK (0xFF000000U)
6502#define BCH_FLASH2LAYOUT0_CLR_NBLOCKS_SHIFT (24U)
6503#define BCH_FLASH2LAYOUT0_CLR_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_CLR_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_CLR_NBLOCKS_MASK)
6504/*! @} */
6505
6506/*! @name FLASH2LAYOUT0_TOG - Hardware BCH ECC Flash 2 Layout 0 Register */
6507/*! @{ */
6508#define BCH_FLASH2LAYOUT0_TOG_DATA0_SIZE_MASK (0x3FFU)
6509#define BCH_FLASH2LAYOUT0_TOG_DATA0_SIZE_SHIFT (0U)
6510#define BCH_FLASH2LAYOUT0_TOG_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_TOG_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_TOG_DATA0_SIZE_MASK)
6511#define BCH_FLASH2LAYOUT0_TOG_GF13_0_GF14_1_MASK (0x400U)
6512#define BCH_FLASH2LAYOUT0_TOG_GF13_0_GF14_1_SHIFT (10U)
6513#define BCH_FLASH2LAYOUT0_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT0_TOG_GF13_0_GF14_1_MASK)
6514#define BCH_FLASH2LAYOUT0_TOG_ECC0_MASK (0xF800U)
6515#define BCH_FLASH2LAYOUT0_TOG_ECC0_SHIFT (11U)
6516/*! ECC0
6517 * 0b00000..No ECC to be performed
6518 * 0b00001..ECC 2 to be performed
6519 * 0b00010..ECC 4 to be performed
6520 * 0b11110..ECC 60 to be performed
6521 * 0b11111..ECC 62 to be performed
6522 */
6523#define BCH_FLASH2LAYOUT0_TOG_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_TOG_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_TOG_ECC0_MASK)
6524#define BCH_FLASH2LAYOUT0_TOG_META_SIZE_MASK (0xFF0000U)
6525#define BCH_FLASH2LAYOUT0_TOG_META_SIZE_SHIFT (16U)
6526#define BCH_FLASH2LAYOUT0_TOG_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_TOG_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_TOG_META_SIZE_MASK)
6527#define BCH_FLASH2LAYOUT0_TOG_NBLOCKS_MASK (0xFF000000U)
6528#define BCH_FLASH2LAYOUT0_TOG_NBLOCKS_SHIFT (24U)
6529#define BCH_FLASH2LAYOUT0_TOG_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_TOG_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_TOG_NBLOCKS_MASK)
6530/*! @} */
6531
6532/*! @name FLASH2LAYOUT1 - Hardware BCH ECC Flash 2 Layout 1 Register */
6533/*! @{ */
6534#define BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
6535#define BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT (0U)
6536#define BCH_FLASH2LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK)
6537#define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
6538#define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
6539#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)
6540#define BCH_FLASH2LAYOUT1_ECCN_MASK (0xF800U)
6541#define BCH_FLASH2LAYOUT1_ECCN_SHIFT (11U)
6542/*! ECCN
6543 * 0b00000..No ECC to be performed
6544 * 0b00001..ECC 2 to be performed
6545 * 0b00010..ECC 4 to be performed
6546 * 0b11110..ECC 60 to be performed
6547 * 0b11111..ECC 62 to be performed
6548 */
6549#define BCH_FLASH2LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_ECCN_MASK)
6550#define BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
6551#define BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT (16U)
6552#define BCH_FLASH2LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK)
6553/*! @} */
6554
6555/*! @name FLASH2LAYOUT1_SET - Hardware BCH ECC Flash 2 Layout 1 Register */
6556/*! @{ */
6557#define BCH_FLASH2LAYOUT1_SET_DATAN_SIZE_MASK (0x3FFU)
6558#define BCH_FLASH2LAYOUT1_SET_DATAN_SIZE_SHIFT (0U)
6559#define BCH_FLASH2LAYOUT1_SET_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_SET_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_SET_DATAN_SIZE_MASK)
6560#define BCH_FLASH2LAYOUT1_SET_GF13_0_GF14_1_MASK (0x400U)
6561#define BCH_FLASH2LAYOUT1_SET_GF13_0_GF14_1_SHIFT (10U)
6562#define BCH_FLASH2LAYOUT1_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT1_SET_GF13_0_GF14_1_MASK)
6563#define BCH_FLASH2LAYOUT1_SET_ECCN_MASK (0xF800U)
6564#define BCH_FLASH2LAYOUT1_SET_ECCN_SHIFT (11U)
6565/*! ECCN
6566 * 0b00000..No ECC to be performed
6567 * 0b00001..ECC 2 to be performed
6568 * 0b00010..ECC 4 to be performed
6569 * 0b11110..ECC 60 to be performed
6570 * 0b11111..ECC 62 to be performed
6571 */
6572#define BCH_FLASH2LAYOUT1_SET_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_SET_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_SET_ECCN_MASK)
6573#define BCH_FLASH2LAYOUT1_SET_PAGE_SIZE_MASK (0xFFFF0000U)
6574#define BCH_FLASH2LAYOUT1_SET_PAGE_SIZE_SHIFT (16U)
6575#define BCH_FLASH2LAYOUT1_SET_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_SET_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_SET_PAGE_SIZE_MASK)
6576/*! @} */
6577
6578/*! @name FLASH2LAYOUT1_CLR - Hardware BCH ECC Flash 2 Layout 1 Register */
6579/*! @{ */
6580#define BCH_FLASH2LAYOUT1_CLR_DATAN_SIZE_MASK (0x3FFU)
6581#define BCH_FLASH2LAYOUT1_CLR_DATAN_SIZE_SHIFT (0U)
6582#define BCH_FLASH2LAYOUT1_CLR_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_CLR_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_CLR_DATAN_SIZE_MASK)
6583#define BCH_FLASH2LAYOUT1_CLR_GF13_0_GF14_1_MASK (0x400U)
6584#define BCH_FLASH2LAYOUT1_CLR_GF13_0_GF14_1_SHIFT (10U)
6585#define BCH_FLASH2LAYOUT1_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT1_CLR_GF13_0_GF14_1_MASK)
6586#define BCH_FLASH2LAYOUT1_CLR_ECCN_MASK (0xF800U)
6587#define BCH_FLASH2LAYOUT1_CLR_ECCN_SHIFT (11U)
6588/*! ECCN
6589 * 0b00000..No ECC to be performed
6590 * 0b00001..ECC 2 to be performed
6591 * 0b00010..ECC 4 to be performed
6592 * 0b11110..ECC 60 to be performed
6593 * 0b11111..ECC 62 to be performed
6594 */
6595#define BCH_FLASH2LAYOUT1_CLR_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_CLR_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_CLR_ECCN_MASK)
6596#define BCH_FLASH2LAYOUT1_CLR_PAGE_SIZE_MASK (0xFFFF0000U)
6597#define BCH_FLASH2LAYOUT1_CLR_PAGE_SIZE_SHIFT (16U)
6598#define BCH_FLASH2LAYOUT1_CLR_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_CLR_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_CLR_PAGE_SIZE_MASK)
6599/*! @} */
6600
6601/*! @name FLASH2LAYOUT1_TOG - Hardware BCH ECC Flash 2 Layout 1 Register */
6602/*! @{ */
6603#define BCH_FLASH2LAYOUT1_TOG_DATAN_SIZE_MASK (0x3FFU)
6604#define BCH_FLASH2LAYOUT1_TOG_DATAN_SIZE_SHIFT (0U)
6605#define BCH_FLASH2LAYOUT1_TOG_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_TOG_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_TOG_DATAN_SIZE_MASK)
6606#define BCH_FLASH2LAYOUT1_TOG_GF13_0_GF14_1_MASK (0x400U)
6607#define BCH_FLASH2LAYOUT1_TOG_GF13_0_GF14_1_SHIFT (10U)
6608#define BCH_FLASH2LAYOUT1_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT1_TOG_GF13_0_GF14_1_MASK)
6609#define BCH_FLASH2LAYOUT1_TOG_ECCN_MASK (0xF800U)
6610#define BCH_FLASH2LAYOUT1_TOG_ECCN_SHIFT (11U)
6611/*! ECCN
6612 * 0b00000..No ECC to be performed
6613 * 0b00001..ECC 2 to be performed
6614 * 0b00010..ECC 4 to be performed
6615 * 0b11110..ECC 60 to be performed
6616 * 0b11111..ECC 62 to be performed
6617 */
6618#define BCH_FLASH2LAYOUT1_TOG_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_TOG_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_TOG_ECCN_MASK)
6619#define BCH_FLASH2LAYOUT1_TOG_PAGE_SIZE_MASK (0xFFFF0000U)
6620#define BCH_FLASH2LAYOUT1_TOG_PAGE_SIZE_SHIFT (16U)
6621#define BCH_FLASH2LAYOUT1_TOG_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_TOG_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_TOG_PAGE_SIZE_MASK)
6622/*! @} */
6623
6624/*! @name FLASH3LAYOUT0 - Hardware BCH ECC Flash 3 Layout 0 Register */
6625/*! @{ */
6626#define BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK (0x3FFU)
6627#define BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT (0U)
6628#define BCH_FLASH3LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK)
6629#define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_MASK (0x400U)
6630#define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_SHIFT (10U)
6631#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)
6632#define BCH_FLASH3LAYOUT0_ECC0_MASK (0xF800U)
6633#define BCH_FLASH3LAYOUT0_ECC0_SHIFT (11U)
6634/*! ECC0
6635 * 0b00000..No ECC to be performed
6636 * 0b00001..ECC 2 to be performed
6637 * 0b00010..ECC 4 to be performed
6638 * 0b11110..ECC 60 to be performed
6639 * 0b11111..ECC 62 to be performed
6640 */
6641#define BCH_FLASH3LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_ECC0_MASK)
6642#define BCH_FLASH3LAYOUT0_META_SIZE_MASK (0xFF0000U)
6643#define BCH_FLASH3LAYOUT0_META_SIZE_SHIFT (16U)
6644#define BCH_FLASH3LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_META_SIZE_MASK)
6645#define BCH_FLASH3LAYOUT0_NBLOCKS_MASK (0xFF000000U)
6646#define BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT (24U)
6647#define BCH_FLASH3LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_NBLOCKS_MASK)
6648/*! @} */
6649
6650/*! @name FLASH3LAYOUT0_SET - Hardware BCH ECC Flash 3 Layout 0 Register */
6651/*! @{ */
6652#define BCH_FLASH3LAYOUT0_SET_DATA0_SIZE_MASK (0x3FFU)
6653#define BCH_FLASH3LAYOUT0_SET_DATA0_SIZE_SHIFT (0U)
6654#define BCH_FLASH3LAYOUT0_SET_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_SET_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_SET_DATA0_SIZE_MASK)
6655#define BCH_FLASH3LAYOUT0_SET_GF13_0_GF14_1_MASK (0x400U)
6656#define BCH_FLASH3LAYOUT0_SET_GF13_0_GF14_1_SHIFT (10U)
6657#define BCH_FLASH3LAYOUT0_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT0_SET_GF13_0_GF14_1_MASK)
6658#define BCH_FLASH3LAYOUT0_SET_ECC0_MASK (0xF800U)
6659#define BCH_FLASH3LAYOUT0_SET_ECC0_SHIFT (11U)
6660/*! ECC0
6661 * 0b00000..No ECC to be performed
6662 * 0b00001..ECC 2 to be performed
6663 * 0b00010..ECC 4 to be performed
6664 * 0b11110..ECC 60 to be performed
6665 * 0b11111..ECC 62 to be performed
6666 */
6667#define BCH_FLASH3LAYOUT0_SET_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_SET_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_SET_ECC0_MASK)
6668#define BCH_FLASH3LAYOUT0_SET_META_SIZE_MASK (0xFF0000U)
6669#define BCH_FLASH3LAYOUT0_SET_META_SIZE_SHIFT (16U)
6670#define BCH_FLASH3LAYOUT0_SET_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_SET_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_SET_META_SIZE_MASK)
6671#define BCH_FLASH3LAYOUT0_SET_NBLOCKS_MASK (0xFF000000U)
6672#define BCH_FLASH3LAYOUT0_SET_NBLOCKS_SHIFT (24U)
6673#define BCH_FLASH3LAYOUT0_SET_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_SET_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_SET_NBLOCKS_MASK)
6674/*! @} */
6675
6676/*! @name FLASH3LAYOUT0_CLR - Hardware BCH ECC Flash 3 Layout 0 Register */
6677/*! @{ */
6678#define BCH_FLASH3LAYOUT0_CLR_DATA0_SIZE_MASK (0x3FFU)
6679#define BCH_FLASH3LAYOUT0_CLR_DATA0_SIZE_SHIFT (0U)
6680#define BCH_FLASH3LAYOUT0_CLR_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_CLR_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_CLR_DATA0_SIZE_MASK)
6681#define BCH_FLASH3LAYOUT0_CLR_GF13_0_GF14_1_MASK (0x400U)
6682#define BCH_FLASH3LAYOUT0_CLR_GF13_0_GF14_1_SHIFT (10U)
6683#define BCH_FLASH3LAYOUT0_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT0_CLR_GF13_0_GF14_1_MASK)
6684#define BCH_FLASH3LAYOUT0_CLR_ECC0_MASK (0xF800U)
6685#define BCH_FLASH3LAYOUT0_CLR_ECC0_SHIFT (11U)
6686/*! ECC0
6687 * 0b00000..No ECC to be performed
6688 * 0b00001..ECC 2 to be performed
6689 * 0b00010..ECC 4 to be performed
6690 * 0b11110..ECC 60 to be performed
6691 * 0b11111..ECC 62 to be performed
6692 */
6693#define BCH_FLASH3LAYOUT0_CLR_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_CLR_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_CLR_ECC0_MASK)
6694#define BCH_FLASH3LAYOUT0_CLR_META_SIZE_MASK (0xFF0000U)
6695#define BCH_FLASH3LAYOUT0_CLR_META_SIZE_SHIFT (16U)
6696#define BCH_FLASH3LAYOUT0_CLR_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_CLR_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_CLR_META_SIZE_MASK)
6697#define BCH_FLASH3LAYOUT0_CLR_NBLOCKS_MASK (0xFF000000U)
6698#define BCH_FLASH3LAYOUT0_CLR_NBLOCKS_SHIFT (24U)
6699#define BCH_FLASH3LAYOUT0_CLR_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_CLR_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_CLR_NBLOCKS_MASK)
6700/*! @} */
6701
6702/*! @name FLASH3LAYOUT0_TOG - Hardware BCH ECC Flash 3 Layout 0 Register */
6703/*! @{ */
6704#define BCH_FLASH3LAYOUT0_TOG_DATA0_SIZE_MASK (0x3FFU)
6705#define BCH_FLASH3LAYOUT0_TOG_DATA0_SIZE_SHIFT (0U)
6706#define BCH_FLASH3LAYOUT0_TOG_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_TOG_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_TOG_DATA0_SIZE_MASK)
6707#define BCH_FLASH3LAYOUT0_TOG_GF13_0_GF14_1_MASK (0x400U)
6708#define BCH_FLASH3LAYOUT0_TOG_GF13_0_GF14_1_SHIFT (10U)
6709#define BCH_FLASH3LAYOUT0_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT0_TOG_GF13_0_GF14_1_MASK)
6710#define BCH_FLASH3LAYOUT0_TOG_ECC0_MASK (0xF800U)
6711#define BCH_FLASH3LAYOUT0_TOG_ECC0_SHIFT (11U)
6712/*! ECC0
6713 * 0b00000..No ECC to be performed
6714 * 0b00001..ECC 2 to be performed
6715 * 0b00010..ECC 4 to be performed
6716 * 0b11110..ECC 60 to be performed
6717 * 0b11111..ECC 62 to be performed
6718 */
6719#define BCH_FLASH3LAYOUT0_TOG_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_TOG_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_TOG_ECC0_MASK)
6720#define BCH_FLASH3LAYOUT0_TOG_META_SIZE_MASK (0xFF0000U)
6721#define BCH_FLASH3LAYOUT0_TOG_META_SIZE_SHIFT (16U)
6722#define BCH_FLASH3LAYOUT0_TOG_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_TOG_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_TOG_META_SIZE_MASK)
6723#define BCH_FLASH3LAYOUT0_TOG_NBLOCKS_MASK (0xFF000000U)
6724#define BCH_FLASH3LAYOUT0_TOG_NBLOCKS_SHIFT (24U)
6725#define BCH_FLASH3LAYOUT0_TOG_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_TOG_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_TOG_NBLOCKS_MASK)
6726/*! @} */
6727
6728/*! @name FLASH3LAYOUT1 - Hardware BCH ECC Flash 3 Layout 1 Register */
6729/*! @{ */
6730#define BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK (0x3FFU)
6731#define BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT (0U)
6732#define BCH_FLASH3LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK)
6733#define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_MASK (0x400U)
6734#define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_SHIFT (10U)
6735#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)
6736#define BCH_FLASH3LAYOUT1_ECCN_MASK (0xF800U)
6737#define BCH_FLASH3LAYOUT1_ECCN_SHIFT (11U)
6738/*! ECCN
6739 * 0b00000..No ECC to be performed
6740 * 0b00001..ECC 2 to be performed
6741 * 0b00010..ECC 4 to be performed
6742 * 0b11110..ECC 60 to be performed
6743 * 0b11111..ECC 62 to be performed
6744 */
6745#define BCH_FLASH3LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_ECCN_MASK)
6746#define BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U)
6747#define BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT (16U)
6748#define BCH_FLASH3LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK)
6749/*! @} */
6750
6751/*! @name FLASH3LAYOUT1_SET - Hardware BCH ECC Flash 3 Layout 1 Register */
6752/*! @{ */
6753#define BCH_FLASH3LAYOUT1_SET_DATAN_SIZE_MASK (0x3FFU)
6754#define BCH_FLASH3LAYOUT1_SET_DATAN_SIZE_SHIFT (0U)
6755#define BCH_FLASH3LAYOUT1_SET_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_SET_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_SET_DATAN_SIZE_MASK)
6756#define BCH_FLASH3LAYOUT1_SET_GF13_0_GF14_1_MASK (0x400U)
6757#define BCH_FLASH3LAYOUT1_SET_GF13_0_GF14_1_SHIFT (10U)
6758#define BCH_FLASH3LAYOUT1_SET_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_SET_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT1_SET_GF13_0_GF14_1_MASK)
6759#define BCH_FLASH3LAYOUT1_SET_ECCN_MASK (0xF800U)
6760#define BCH_FLASH3LAYOUT1_SET_ECCN_SHIFT (11U)
6761/*! ECCN
6762 * 0b00000..No ECC to be performed
6763 * 0b00001..ECC 2 to be performed
6764 * 0b00010..ECC 4 to be performed
6765 * 0b11110..ECC 60 to be performed
6766 * 0b11111..ECC 62 to be performed
6767 */
6768#define BCH_FLASH3LAYOUT1_SET_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_SET_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_SET_ECCN_MASK)
6769#define BCH_FLASH3LAYOUT1_SET_PAGE_SIZE_MASK (0xFFFF0000U)
6770#define BCH_FLASH3LAYOUT1_SET_PAGE_SIZE_SHIFT (16U)
6771#define BCH_FLASH3LAYOUT1_SET_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_SET_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_SET_PAGE_SIZE_MASK)
6772/*! @} */
6773
6774/*! @name FLASH3LAYOUT1_CLR - Hardware BCH ECC Flash 3 Layout 1 Register */
6775/*! @{ */
6776#define BCH_FLASH3LAYOUT1_CLR_DATAN_SIZE_MASK (0x3FFU)
6777#define BCH_FLASH3LAYOUT1_CLR_DATAN_SIZE_SHIFT (0U)
6778#define BCH_FLASH3LAYOUT1_CLR_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_CLR_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_CLR_DATAN_SIZE_MASK)
6779#define BCH_FLASH3LAYOUT1_CLR_GF13_0_GF14_1_MASK (0x400U)
6780#define BCH_FLASH3LAYOUT1_CLR_GF13_0_GF14_1_SHIFT (10U)
6781#define BCH_FLASH3LAYOUT1_CLR_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_CLR_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT1_CLR_GF13_0_GF14_1_MASK)
6782#define BCH_FLASH3LAYOUT1_CLR_ECCN_MASK (0xF800U)
6783#define BCH_FLASH3LAYOUT1_CLR_ECCN_SHIFT (11U)
6784/*! ECCN
6785 * 0b00000..No ECC to be performed
6786 * 0b00001..ECC 2 to be performed
6787 * 0b00010..ECC 4 to be performed
6788 * 0b11110..ECC 60 to be performed
6789 * 0b11111..ECC 62 to be performed
6790 */
6791#define BCH_FLASH3LAYOUT1_CLR_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_CLR_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_CLR_ECCN_MASK)
6792#define BCH_FLASH3LAYOUT1_CLR_PAGE_SIZE_MASK (0xFFFF0000U)
6793#define BCH_FLASH3LAYOUT1_CLR_PAGE_SIZE_SHIFT (16U)
6794#define BCH_FLASH3LAYOUT1_CLR_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_CLR_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_CLR_PAGE_SIZE_MASK)
6795/*! @} */
6796
6797/*! @name FLASH3LAYOUT1_TOG - Hardware BCH ECC Flash 3 Layout 1 Register */
6798/*! @{ */
6799#define BCH_FLASH3LAYOUT1_TOG_DATAN_SIZE_MASK (0x3FFU)
6800#define BCH_FLASH3LAYOUT1_TOG_DATAN_SIZE_SHIFT (0U)
6801#define BCH_FLASH3LAYOUT1_TOG_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_TOG_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_TOG_DATAN_SIZE_MASK)
6802#define BCH_FLASH3LAYOUT1_TOG_GF13_0_GF14_1_MASK (0x400U)
6803#define BCH_FLASH3LAYOUT1_TOG_GF13_0_GF14_1_SHIFT (10U)
6804#define BCH_FLASH3LAYOUT1_TOG_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_TOG_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT1_TOG_GF13_0_GF14_1_MASK)
6805#define BCH_FLASH3LAYOUT1_TOG_ECCN_MASK (0xF800U)
6806#define BCH_FLASH3LAYOUT1_TOG_ECCN_SHIFT (11U)
6807/*! ECCN
6808 * 0b00000..No ECC to be performed
6809 * 0b00001..ECC 2 to be performed
6810 * 0b00010..ECC 4 to be performed
6811 * 0b11110..ECC 60 to be performed
6812 * 0b11111..ECC 62 to be performed
6813 */
6814#define BCH_FLASH3LAYOUT1_TOG_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_TOG_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_TOG_ECCN_MASK)
6815#define BCH_FLASH3LAYOUT1_TOG_PAGE_SIZE_MASK (0xFFFF0000U)
6816#define BCH_FLASH3LAYOUT1_TOG_PAGE_SIZE_SHIFT (16U)
6817#define BCH_FLASH3LAYOUT1_TOG_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_TOG_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_TOG_PAGE_SIZE_MASK)
6818/*! @} */
6819
6820/*! @name DEBUG0 - Hardware BCH ECC Debug Register0 */
6821/*! @{ */
6822#define BCH_DEBUG0_DEBUG_REG_SELECT_MASK (0x3FU)
6823#define BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT (0U)
6824#define BCH_DEBUG0_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_DEBUG_REG_SELECT_MASK)
6825#define BCH_DEBUG0_RSVD0_MASK (0xC0U)
6826#define BCH_DEBUG0_RSVD0_SHIFT (6U)
6827#define BCH_DEBUG0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD0_SHIFT)) & BCH_DEBUG0_RSVD0_MASK)
6828#define BCH_DEBUG0_BM_KES_TEST_BYPASS_MASK (0x100U)
6829#define BCH_DEBUG0_BM_KES_TEST_BYPASS_SHIFT (8U)
6830/*! BM_KES_TEST_BYPASS
6831 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6832 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6833 */
6834#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)
6835#define BCH_DEBUG0_KES_DEBUG_STALL_MASK (0x200U)
6836#define BCH_DEBUG0_KES_DEBUG_STALL_SHIFT (9U)
6837/*! KES_DEBUG_STALL
6838 * 0b0..KES FSM proceeds to next block supplied by bus master.
6839 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
6840 */
6841#define BCH_DEBUG0_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STALL_MASK)
6842#define BCH_DEBUG0_KES_DEBUG_STEP_MASK (0x400U)
6843#define BCH_DEBUG0_KES_DEBUG_STEP_SHIFT (10U)
6844#define BCH_DEBUG0_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STEP_MASK)
6845#define BCH_DEBUG0_KES_STANDALONE_MASK (0x800U)
6846#define BCH_DEBUG0_KES_STANDALONE_SHIFT (11U)
6847/*! KES_STANDALONE
6848 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6849 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6850 */
6851#define BCH_DEBUG0_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_KES_STANDALONE_MASK)
6852#define BCH_DEBUG0_KES_DEBUG_KICK_MASK (0x1000U)
6853#define BCH_DEBUG0_KES_DEBUG_KICK_SHIFT (12U)
6854#define BCH_DEBUG0_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_KES_DEBUG_KICK_MASK)
6855#define BCH_DEBUG0_KES_DEBUG_MODE4K_MASK (0x2000U)
6856#define BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT (13U)
6857/*! KES_DEBUG_MODE4K
6858 * 0b1..Mode is set for 4K NAND pages.
6859 * 0b1..Mode is set for 2K NAND pages.
6860 */
6861#define BCH_DEBUG0_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_KES_DEBUG_MODE4K_MASK)
6862#define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
6863#define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
6864/*! KES_DEBUG_PAYLOAD_FLAG
6865 * 0b1..Payload is set for 512 bytes data block.
6866 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
6867 */
6868#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)
6869#define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
6870#define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
6871#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)
6872#define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
6873#define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
6874/*! KES_DEBUG_SYNDROME_SYMBOL
6875 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
6876 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
6877 */
6878#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)
6879#define BCH_DEBUG0_RSVD1_MASK (0xFE000000U)
6880#define BCH_DEBUG0_RSVD1_SHIFT (25U)
6881#define BCH_DEBUG0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD1_SHIFT)) & BCH_DEBUG0_RSVD1_MASK)
6882/*! @} */
6883
6884/*! @name DEBUG0_SET - Hardware BCH ECC Debug Register0 */
6885/*! @{ */
6886#define BCH_DEBUG0_SET_DEBUG_REG_SELECT_MASK (0x3FU)
6887#define BCH_DEBUG0_SET_DEBUG_REG_SELECT_SHIFT (0U)
6888#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)
6889#define BCH_DEBUG0_SET_RSVD0_MASK (0xC0U)
6890#define BCH_DEBUG0_SET_RSVD0_SHIFT (6U)
6891#define BCH_DEBUG0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD0_SHIFT)) & BCH_DEBUG0_SET_RSVD0_MASK)
6892#define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_MASK (0x100U)
6893#define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_SHIFT (8U)
6894/*! BM_KES_TEST_BYPASS
6895 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6896 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6897 */
6898#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)
6899#define BCH_DEBUG0_SET_KES_DEBUG_STALL_MASK (0x200U)
6900#define BCH_DEBUG0_SET_KES_DEBUG_STALL_SHIFT (9U)
6901/*! KES_DEBUG_STALL
6902 * 0b0..KES FSM proceeds to next block supplied by bus master.
6903 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
6904 */
6905#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)
6906#define BCH_DEBUG0_SET_KES_DEBUG_STEP_MASK (0x400U)
6907#define BCH_DEBUG0_SET_KES_DEBUG_STEP_SHIFT (10U)
6908#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)
6909#define BCH_DEBUG0_SET_KES_STANDALONE_MASK (0x800U)
6910#define BCH_DEBUG0_SET_KES_STANDALONE_SHIFT (11U)
6911/*! KES_STANDALONE
6912 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6913 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6914 */
6915#define BCH_DEBUG0_SET_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_SET_KES_STANDALONE_MASK)
6916#define BCH_DEBUG0_SET_KES_DEBUG_KICK_MASK (0x1000U)
6917#define BCH_DEBUG0_SET_KES_DEBUG_KICK_SHIFT (12U)
6918#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)
6919#define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_MASK (0x2000U)
6920#define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_SHIFT (13U)
6921/*! KES_DEBUG_MODE4K
6922 * 0b1..Mode is set for 4K NAND pages.
6923 * 0b1..Mode is set for 2K NAND pages.
6924 */
6925#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)
6926#define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
6927#define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
6928/*! KES_DEBUG_PAYLOAD_FLAG
6929 * 0b1..Payload is set for 512 bytes data block.
6930 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
6931 */
6932#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)
6933#define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
6934#define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
6935#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)
6936#define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
6937#define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
6938/*! KES_DEBUG_SYNDROME_SYMBOL
6939 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
6940 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
6941 */
6942#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)
6943#define BCH_DEBUG0_SET_RSVD1_MASK (0xFE000000U)
6944#define BCH_DEBUG0_SET_RSVD1_SHIFT (25U)
6945#define BCH_DEBUG0_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD1_SHIFT)) & BCH_DEBUG0_SET_RSVD1_MASK)
6946/*! @} */
6947
6948/*! @name DEBUG0_CLR - Hardware BCH ECC Debug Register0 */
6949/*! @{ */
6950#define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_MASK (0x3FU)
6951#define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_SHIFT (0U)
6952#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)
6953#define BCH_DEBUG0_CLR_RSVD0_MASK (0xC0U)
6954#define BCH_DEBUG0_CLR_RSVD0_SHIFT (6U)
6955#define BCH_DEBUG0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD0_SHIFT)) & BCH_DEBUG0_CLR_RSVD0_MASK)
6956#define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_MASK (0x100U)
6957#define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_SHIFT (8U)
6958/*! BM_KES_TEST_BYPASS
6959 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6960 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6961 */
6962#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)
6963#define BCH_DEBUG0_CLR_KES_DEBUG_STALL_MASK (0x200U)
6964#define BCH_DEBUG0_CLR_KES_DEBUG_STALL_SHIFT (9U)
6965/*! KES_DEBUG_STALL
6966 * 0b0..KES FSM proceeds to next block supplied by bus master.
6967 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
6968 */
6969#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)
6970#define BCH_DEBUG0_CLR_KES_DEBUG_STEP_MASK (0x400U)
6971#define BCH_DEBUG0_CLR_KES_DEBUG_STEP_SHIFT (10U)
6972#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)
6973#define BCH_DEBUG0_CLR_KES_STANDALONE_MASK (0x800U)
6974#define BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT (11U)
6975/*! KES_STANDALONE
6976 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
6977 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
6978 */
6979#define BCH_DEBUG0_CLR_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_CLR_KES_STANDALONE_MASK)
6980#define BCH_DEBUG0_CLR_KES_DEBUG_KICK_MASK (0x1000U)
6981#define BCH_DEBUG0_CLR_KES_DEBUG_KICK_SHIFT (12U)
6982#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)
6983#define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_MASK (0x2000U)
6984#define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_SHIFT (13U)
6985/*! KES_DEBUG_MODE4K
6986 * 0b1..Mode is set for 4K NAND pages.
6987 * 0b1..Mode is set for 2K NAND pages.
6988 */
6989#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)
6990#define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
6991#define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
6992/*! KES_DEBUG_PAYLOAD_FLAG
6993 * 0b1..Payload is set for 512 bytes data block.
6994 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
6995 */
6996#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)
6997#define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
6998#define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
6999#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)
7000#define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
7001#define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
7002/*! KES_DEBUG_SYNDROME_SYMBOL
7003 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
7004 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
7005 */
7006#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)
7007#define BCH_DEBUG0_CLR_RSVD1_MASK (0xFE000000U)
7008#define BCH_DEBUG0_CLR_RSVD1_SHIFT (25U)
7009#define BCH_DEBUG0_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD1_SHIFT)) & BCH_DEBUG0_CLR_RSVD1_MASK)
7010/*! @} */
7011
7012/*! @name DEBUG0_TOG - Hardware BCH ECC Debug Register0 */
7013/*! @{ */
7014#define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_MASK (0x3FU)
7015#define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_SHIFT (0U)
7016#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)
7017#define BCH_DEBUG0_TOG_RSVD0_MASK (0xC0U)
7018#define BCH_DEBUG0_TOG_RSVD0_SHIFT (6U)
7019#define BCH_DEBUG0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD0_SHIFT)) & BCH_DEBUG0_TOG_RSVD0_MASK)
7020#define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_MASK (0x100U)
7021#define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_SHIFT (8U)
7022/*! BM_KES_TEST_BYPASS
7023 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
7024 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
7025 */
7026#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)
7027#define BCH_DEBUG0_TOG_KES_DEBUG_STALL_MASK (0x200U)
7028#define BCH_DEBUG0_TOG_KES_DEBUG_STALL_SHIFT (9U)
7029/*! KES_DEBUG_STALL
7030 * 0b0..KES FSM proceeds to next block supplied by bus master.
7031 * 0b1..KES FSM waits after current equations are solved and the search engine is started.
7032 */
7033#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)
7034#define BCH_DEBUG0_TOG_KES_DEBUG_STEP_MASK (0x400U)
7035#define BCH_DEBUG0_TOG_KES_DEBUG_STEP_SHIFT (10U)
7036#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)
7037#define BCH_DEBUG0_TOG_KES_STANDALONE_MASK (0x800U)
7038#define BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT (11U)
7039/*! KES_STANDALONE
7040 * 0b0..Bus master address generator for SYND_GEN writes operates normally.
7041 * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block.
7042 */
7043#define BCH_DEBUG0_TOG_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_TOG_KES_STANDALONE_MASK)
7044#define BCH_DEBUG0_TOG_KES_DEBUG_KICK_MASK (0x1000U)
7045#define BCH_DEBUG0_TOG_KES_DEBUG_KICK_SHIFT (12U)
7046#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)
7047#define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_MASK (0x2000U)
7048#define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_SHIFT (13U)
7049/*! KES_DEBUG_MODE4K
7050 * 0b1..Mode is set for 4K NAND pages.
7051 * 0b1..Mode is set for 2K NAND pages.
7052 */
7053#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)
7054#define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U)
7055#define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U)
7056/*! KES_DEBUG_PAYLOAD_FLAG
7057 * 0b1..Payload is set for 512 bytes data block.
7058 * 0b1..Payload is set for 65 or 19 bytes auxiliary block.
7059 */
7060#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)
7061#define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_MASK (0x8000U)
7062#define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_SHIFT (15U)
7063#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)
7064#define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U)
7065#define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U)
7066/*! KES_DEBUG_SYNDROME_SYMBOL
7067 * 0b000000000..Bus master address generator for SYND_GEN writes operates normally.
7068 * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block.
7069 */
7070#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)
7071#define BCH_DEBUG0_TOG_RSVD1_MASK (0xFE000000U)
7072#define BCH_DEBUG0_TOG_RSVD1_SHIFT (25U)
7073#define BCH_DEBUG0_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD1_SHIFT)) & BCH_DEBUG0_TOG_RSVD1_MASK)
7074/*! @} */
7075
7076/*! @name DBGKESREAD - KES Debug Read Register */
7077/*! @{ */
7078#define BCH_DBGKESREAD_VALUES_MASK (0xFFFFFFFFU)
7079#define BCH_DBGKESREAD_VALUES_SHIFT (0U)
7080#define BCH_DBGKESREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_VALUES_SHIFT)) & BCH_DBGKESREAD_VALUES_MASK)
7081/*! @} */
7082
7083/*! @name DBGKESREAD_SET - KES Debug Read Register */
7084/*! @{ */
7085#define BCH_DBGKESREAD_SET_VALUES_MASK (0xFFFFFFFFU)
7086#define BCH_DBGKESREAD_SET_VALUES_SHIFT (0U)
7087#define BCH_DBGKESREAD_SET_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_SET_VALUES_SHIFT)) & BCH_DBGKESREAD_SET_VALUES_MASK)
7088/*! @} */
7089
7090/*! @name DBGKESREAD_CLR - KES Debug Read Register */
7091/*! @{ */
7092#define BCH_DBGKESREAD_CLR_VALUES_MASK (0xFFFFFFFFU)
7093#define BCH_DBGKESREAD_CLR_VALUES_SHIFT (0U)
7094#define BCH_DBGKESREAD_CLR_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_CLR_VALUES_SHIFT)) & BCH_DBGKESREAD_CLR_VALUES_MASK)
7095/*! @} */
7096
7097/*! @name DBGKESREAD_TOG - KES Debug Read Register */
7098/*! @{ */
7099#define BCH_DBGKESREAD_TOG_VALUES_MASK (0xFFFFFFFFU)
7100#define BCH_DBGKESREAD_TOG_VALUES_SHIFT (0U)
7101#define BCH_DBGKESREAD_TOG_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_TOG_VALUES_SHIFT)) & BCH_DBGKESREAD_TOG_VALUES_MASK)
7102/*! @} */
7103
7104/*! @name DBGCSFEREAD - Chien Search Debug Read Register */
7105/*! @{ */
7106#define BCH_DBGCSFEREAD_VALUES_MASK (0xFFFFFFFFU)
7107#define BCH_DBGCSFEREAD_VALUES_SHIFT (0U)
7108#define BCH_DBGCSFEREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_VALUES_SHIFT)) & BCH_DBGCSFEREAD_VALUES_MASK)
7109/*! @} */
7110
7111/*! @name DBGCSFEREAD_SET - Chien Search Debug Read Register */
7112/*! @{ */
7113#define BCH_DBGCSFEREAD_SET_VALUES_MASK (0xFFFFFFFFU)
7114#define BCH_DBGCSFEREAD_SET_VALUES_SHIFT (0U)
7115#define BCH_DBGCSFEREAD_SET_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_SET_VALUES_SHIFT)) & BCH_DBGCSFEREAD_SET_VALUES_MASK)
7116/*! @} */
7117
7118/*! @name DBGCSFEREAD_CLR - Chien Search Debug Read Register */
7119/*! @{ */
7120#define BCH_DBGCSFEREAD_CLR_VALUES_MASK (0xFFFFFFFFU)
7121#define BCH_DBGCSFEREAD_CLR_VALUES_SHIFT (0U)
7122#define BCH_DBGCSFEREAD_CLR_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_CLR_VALUES_SHIFT)) & BCH_DBGCSFEREAD_CLR_VALUES_MASK)
7123/*! @} */
7124
7125/*! @name DBGCSFEREAD_TOG - Chien Search Debug Read Register */
7126/*! @{ */
7127#define BCH_DBGCSFEREAD_TOG_VALUES_MASK (0xFFFFFFFFU)
7128#define BCH_DBGCSFEREAD_TOG_VALUES_SHIFT (0U)
7129#define BCH_DBGCSFEREAD_TOG_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_TOG_VALUES_SHIFT)) & BCH_DBGCSFEREAD_TOG_VALUES_MASK)
7130/*! @} */
7131
7132/*! @name DBGSYNDGENREAD - Syndrome Generator Debug Read Register */
7133/*! @{ */
7134#define BCH_DBGSYNDGENREAD_VALUES_MASK (0xFFFFFFFFU)
7135#define BCH_DBGSYNDGENREAD_VALUES_SHIFT (0U)
7136#define BCH_DBGSYNDGENREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_VALUES_MASK)
7137/*! @} */
7138
7139/*! @name DBGSYNDGENREAD_SET - Syndrome Generator Debug Read Register */
7140/*! @{ */
7141#define BCH_DBGSYNDGENREAD_SET_VALUES_MASK (0xFFFFFFFFU)
7142#define BCH_DBGSYNDGENREAD_SET_VALUES_SHIFT (0U)
7143#define BCH_DBGSYNDGENREAD_SET_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_SET_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_SET_VALUES_MASK)
7144/*! @} */
7145
7146/*! @name DBGSYNDGENREAD_CLR - Syndrome Generator Debug Read Register */
7147/*! @{ */
7148#define BCH_DBGSYNDGENREAD_CLR_VALUES_MASK (0xFFFFFFFFU)
7149#define BCH_DBGSYNDGENREAD_CLR_VALUES_SHIFT (0U)
7150#define BCH_DBGSYNDGENREAD_CLR_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_CLR_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_CLR_VALUES_MASK)
7151/*! @} */
7152
7153/*! @name DBGSYNDGENREAD_TOG - Syndrome Generator Debug Read Register */
7154/*! @{ */
7155#define BCH_DBGSYNDGENREAD_TOG_VALUES_MASK (0xFFFFFFFFU)
7156#define BCH_DBGSYNDGENREAD_TOG_VALUES_SHIFT (0U)
7157#define BCH_DBGSYNDGENREAD_TOG_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_TOG_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_TOG_VALUES_MASK)
7158/*! @} */
7159
7160/*! @name DBGAHBMREAD - Bus Master and ECC Controller Debug Read Register */
7161/*! @{ */
7162#define BCH_DBGAHBMREAD_VALUES_MASK (0xFFFFFFFFU)
7163#define BCH_DBGAHBMREAD_VALUES_SHIFT (0U)
7164#define BCH_DBGAHBMREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_VALUES_SHIFT)) & BCH_DBGAHBMREAD_VALUES_MASK)
7165/*! @} */
7166
7167/*! @name DBGAHBMREAD_SET - Bus Master and ECC Controller Debug Read Register */
7168/*! @{ */
7169#define BCH_DBGAHBMREAD_SET_VALUES_MASK (0xFFFFFFFFU)
7170#define BCH_DBGAHBMREAD_SET_VALUES_SHIFT (0U)
7171#define BCH_DBGAHBMREAD_SET_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_SET_VALUES_SHIFT)) & BCH_DBGAHBMREAD_SET_VALUES_MASK)
7172/*! @} */
7173
7174/*! @name DBGAHBMREAD_CLR - Bus Master and ECC Controller Debug Read Register */
7175/*! @{ */
7176#define BCH_DBGAHBMREAD_CLR_VALUES_MASK (0xFFFFFFFFU)
7177#define BCH_DBGAHBMREAD_CLR_VALUES_SHIFT (0U)
7178#define BCH_DBGAHBMREAD_CLR_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_CLR_VALUES_SHIFT)) & BCH_DBGAHBMREAD_CLR_VALUES_MASK)
7179/*! @} */
7180
7181/*! @name DBGAHBMREAD_TOG - Bus Master and ECC Controller Debug Read Register */
7182/*! @{ */
7183#define BCH_DBGAHBMREAD_TOG_VALUES_MASK (0xFFFFFFFFU)
7184#define BCH_DBGAHBMREAD_TOG_VALUES_SHIFT (0U)
7185#define BCH_DBGAHBMREAD_TOG_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_TOG_VALUES_SHIFT)) & BCH_DBGAHBMREAD_TOG_VALUES_MASK)
7186/*! @} */
7187
7188/*! @name BLOCKNAME - Block Name Register */
7189/*! @{ */
7190#define BCH_BLOCKNAME_NAME_MASK (0xFFFFFFFFU)
7191#define BCH_BLOCKNAME_NAME_SHIFT (0U)
7192#define BCH_BLOCKNAME_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_NAME_SHIFT)) & BCH_BLOCKNAME_NAME_MASK)
7193/*! @} */
7194
7195/*! @name BLOCKNAME_SET - Block Name Register */
7196/*! @{ */
7197#define BCH_BLOCKNAME_SET_NAME_MASK (0xFFFFFFFFU)
7198#define BCH_BLOCKNAME_SET_NAME_SHIFT (0U)
7199#define BCH_BLOCKNAME_SET_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_SET_NAME_SHIFT)) & BCH_BLOCKNAME_SET_NAME_MASK)
7200/*! @} */
7201
7202/*! @name BLOCKNAME_CLR - Block Name Register */
7203/*! @{ */
7204#define BCH_BLOCKNAME_CLR_NAME_MASK (0xFFFFFFFFU)
7205#define BCH_BLOCKNAME_CLR_NAME_SHIFT (0U)
7206#define BCH_BLOCKNAME_CLR_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_CLR_NAME_SHIFT)) & BCH_BLOCKNAME_CLR_NAME_MASK)
7207/*! @} */
7208
7209/*! @name BLOCKNAME_TOG - Block Name Register */
7210/*! @{ */
7211#define BCH_BLOCKNAME_TOG_NAME_MASK (0xFFFFFFFFU)
7212#define BCH_BLOCKNAME_TOG_NAME_SHIFT (0U)
7213#define BCH_BLOCKNAME_TOG_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_TOG_NAME_SHIFT)) & BCH_BLOCKNAME_TOG_NAME_MASK)
7214/*! @} */
7215
7216/*! @name VERSION - BCH Version Register */
7217/*! @{ */
7218#define BCH_VERSION_STEP_MASK (0xFFFFU)
7219#define BCH_VERSION_STEP_SHIFT (0U)
7220#define BCH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_STEP_SHIFT)) & BCH_VERSION_STEP_MASK)
7221#define BCH_VERSION_MINOR_MASK (0xFF0000U)
7222#define BCH_VERSION_MINOR_SHIFT (16U)
7223#define BCH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MINOR_SHIFT)) & BCH_VERSION_MINOR_MASK)
7224#define BCH_VERSION_MAJOR_MASK (0xFF000000U)
7225#define BCH_VERSION_MAJOR_SHIFT (24U)
7226#define BCH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MAJOR_SHIFT)) & BCH_VERSION_MAJOR_MASK)
7227/*! @} */
7228
7229/*! @name VERSION_SET - BCH Version Register */
7230/*! @{ */
7231#define BCH_VERSION_SET_STEP_MASK (0xFFFFU)
7232#define BCH_VERSION_SET_STEP_SHIFT (0U)
7233#define BCH_VERSION_SET_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_SET_STEP_SHIFT)) & BCH_VERSION_SET_STEP_MASK)
7234#define BCH_VERSION_SET_MINOR_MASK (0xFF0000U)
7235#define BCH_VERSION_SET_MINOR_SHIFT (16U)
7236#define BCH_VERSION_SET_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_SET_MINOR_SHIFT)) & BCH_VERSION_SET_MINOR_MASK)
7237#define BCH_VERSION_SET_MAJOR_MASK (0xFF000000U)
7238#define BCH_VERSION_SET_MAJOR_SHIFT (24U)
7239#define BCH_VERSION_SET_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_SET_MAJOR_SHIFT)) & BCH_VERSION_SET_MAJOR_MASK)
7240/*! @} */
7241
7242/*! @name VERSION_CLR - BCH Version Register */
7243/*! @{ */
7244#define BCH_VERSION_CLR_STEP_MASK (0xFFFFU)
7245#define BCH_VERSION_CLR_STEP_SHIFT (0U)
7246#define BCH_VERSION_CLR_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_CLR_STEP_SHIFT)) & BCH_VERSION_CLR_STEP_MASK)
7247#define BCH_VERSION_CLR_MINOR_MASK (0xFF0000U)
7248#define BCH_VERSION_CLR_MINOR_SHIFT (16U)
7249#define BCH_VERSION_CLR_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_CLR_MINOR_SHIFT)) & BCH_VERSION_CLR_MINOR_MASK)
7250#define BCH_VERSION_CLR_MAJOR_MASK (0xFF000000U)
7251#define BCH_VERSION_CLR_MAJOR_SHIFT (24U)
7252#define BCH_VERSION_CLR_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_CLR_MAJOR_SHIFT)) & BCH_VERSION_CLR_MAJOR_MASK)
7253/*! @} */
7254
7255/*! @name VERSION_TOG - BCH Version Register */
7256/*! @{ */
7257#define BCH_VERSION_TOG_STEP_MASK (0xFFFFU)
7258#define BCH_VERSION_TOG_STEP_SHIFT (0U)
7259#define BCH_VERSION_TOG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_TOG_STEP_SHIFT)) & BCH_VERSION_TOG_STEP_MASK)
7260#define BCH_VERSION_TOG_MINOR_MASK (0xFF0000U)
7261#define BCH_VERSION_TOG_MINOR_SHIFT (16U)
7262#define BCH_VERSION_TOG_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_TOG_MINOR_SHIFT)) & BCH_VERSION_TOG_MINOR_MASK)
7263#define BCH_VERSION_TOG_MAJOR_MASK (0xFF000000U)
7264#define BCH_VERSION_TOG_MAJOR_SHIFT (24U)
7265#define BCH_VERSION_TOG_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_TOG_MAJOR_SHIFT)) & BCH_VERSION_TOG_MAJOR_MASK)
7266/*! @} */
7267
7268/*! @name DEBUG1 - Hardware BCH ECC Debug Register 1 */
7269/*! @{ */
7270#define BCH_DEBUG1_ERASED_ZERO_COUNT_MASK (0x1FFU)
7271#define BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT (0U)
7272#define BCH_DEBUG1_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_ERASED_ZERO_COUNT_MASK)
7273#define BCH_DEBUG1_RSVD_MASK (0x7FFFFE00U)
7274#define BCH_DEBUG1_RSVD_SHIFT (9U)
7275#define BCH_DEBUG1_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_RSVD_SHIFT)) & BCH_DEBUG1_RSVD_MASK)
7276#define BCH_DEBUG1_DEBUG1_PREERASECHK_MASK (0x80000000U)
7277#define BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT (31U)
7278/*! DEBUG1_PREERASECHK
7279 * 0b0..Turn off pre-erase check
7280 * 0b1..Turn on pre-erase check
7281 */
7282#define BCH_DEBUG1_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_DEBUG1_PREERASECHK_MASK)
7283/*! @} */
7284
7285/*! @name DEBUG1_SET - Hardware BCH ECC Debug Register 1 */
7286/*! @{ */
7287#define BCH_DEBUG1_SET_ERASED_ZERO_COUNT_MASK (0x1FFU)
7288#define BCH_DEBUG1_SET_ERASED_ZERO_COUNT_SHIFT (0U)
7289#define BCH_DEBUG1_SET_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_SET_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_SET_ERASED_ZERO_COUNT_MASK)
7290#define BCH_DEBUG1_SET_RSVD_MASK (0x7FFFFE00U)
7291#define BCH_DEBUG1_SET_RSVD_SHIFT (9U)
7292#define BCH_DEBUG1_SET_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_SET_RSVD_SHIFT)) & BCH_DEBUG1_SET_RSVD_MASK)
7293#define BCH_DEBUG1_SET_DEBUG1_PREERASECHK_MASK (0x80000000U)
7294#define BCH_DEBUG1_SET_DEBUG1_PREERASECHK_SHIFT (31U)
7295/*! DEBUG1_PREERASECHK
7296 * 0b0..Turn off pre-erase check
7297 * 0b1..Turn on pre-erase check
7298 */
7299#define BCH_DEBUG1_SET_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_SET_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_SET_DEBUG1_PREERASECHK_MASK)
7300/*! @} */
7301
7302/*! @name DEBUG1_CLR - Hardware BCH ECC Debug Register 1 */
7303/*! @{ */
7304#define BCH_DEBUG1_CLR_ERASED_ZERO_COUNT_MASK (0x1FFU)
7305#define BCH_DEBUG1_CLR_ERASED_ZERO_COUNT_SHIFT (0U)
7306#define BCH_DEBUG1_CLR_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_CLR_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_CLR_ERASED_ZERO_COUNT_MASK)
7307#define BCH_DEBUG1_CLR_RSVD_MASK (0x7FFFFE00U)
7308#define BCH_DEBUG1_CLR_RSVD_SHIFT (9U)
7309#define BCH_DEBUG1_CLR_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_CLR_RSVD_SHIFT)) & BCH_DEBUG1_CLR_RSVD_MASK)
7310#define BCH_DEBUG1_CLR_DEBUG1_PREERASECHK_MASK (0x80000000U)
7311#define BCH_DEBUG1_CLR_DEBUG1_PREERASECHK_SHIFT (31U)
7312/*! DEBUG1_PREERASECHK
7313 * 0b0..Turn off pre-erase check
7314 * 0b1..Turn on pre-erase check
7315 */
7316#define BCH_DEBUG1_CLR_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_CLR_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_CLR_DEBUG1_PREERASECHK_MASK)
7317/*! @} */
7318
7319/*! @name DEBUG1_TOG - Hardware BCH ECC Debug Register 1 */
7320/*! @{ */
7321#define BCH_DEBUG1_TOG_ERASED_ZERO_COUNT_MASK (0x1FFU)
7322#define BCH_DEBUG1_TOG_ERASED_ZERO_COUNT_SHIFT (0U)
7323#define BCH_DEBUG1_TOG_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_TOG_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_TOG_ERASED_ZERO_COUNT_MASK)
7324#define BCH_DEBUG1_TOG_RSVD_MASK (0x7FFFFE00U)
7325#define BCH_DEBUG1_TOG_RSVD_SHIFT (9U)
7326#define BCH_DEBUG1_TOG_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_TOG_RSVD_SHIFT)) & BCH_DEBUG1_TOG_RSVD_MASK)
7327#define BCH_DEBUG1_TOG_DEBUG1_PREERASECHK_MASK (0x80000000U)
7328#define BCH_DEBUG1_TOG_DEBUG1_PREERASECHK_SHIFT (31U)
7329/*! DEBUG1_PREERASECHK
7330 * 0b0..Turn off pre-erase check
7331 * 0b1..Turn on pre-erase check
7332 */
7333#define BCH_DEBUG1_TOG_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_TOG_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_TOG_DEBUG1_PREERASECHK_MASK)
7334/*! @} */
7335
7336
7337/*!
7338 * @}
7339 */ /* end of group BCH_Register_Masks */
7340
7341
7342/* BCH - Peripheral instance base addresses */
7343/** Peripheral BCH base address */
7344#define BCH_BASE (0x33004000u)
7345/** Peripheral BCH base pointer */
7346#define BCH ((BCH_Type *)BCH_BASE)
7347/** Array initializer of BCH peripheral base addresses */
7348#define BCH_BASE_ADDRS { BCH_BASE }
7349/** Array initializer of BCH peripheral base pointers */
7350#define BCH_BASE_PTRS { BCH }
7351/** Interrupt vectors for the BCH peripheral type */
7352#define BCH_IRQS { BCH_IRQn }
7353
7354/*!
7355 * @}
7356 */ /* end of group BCH_Peripheral_Access_Layer */
7357
7358
7359/* ----------------------------------------------------------------------------
7360 -- BLK_CTL Peripheral Access Layer
7361 ---------------------------------------------------------------------------- */
7362
7363/*!
7364 * @addtogroup BLK_CTL_Peripheral_Access_Layer BLK_CTL Peripheral Access Layer
7365 * @{
7366 */
7367
7368/** BLK_CTL - Register Layout Typedef */
7369typedef struct {
7370 struct { /* offset: 0x0 */
7371 __IO uint32_t RW; /**< Reset Control, offset: 0x0 */
7372 __IO uint32_t SET; /**< Reset Control, offset: 0x4 */
7373 __IO uint32_t CLR; /**< Reset Control, offset: 0x8 */
7374 __IO uint32_t TOG; /**< Reset Control, offset: 0xC */
7375 } RESET_CTRL;
7376 struct { /* offset: 0x10 */
7377 __IO uint32_t RW; /**< Control, offset: 0x10 */
7378 __IO uint32_t SET; /**< Control, offset: 0x14 */
7379 __IO uint32_t CLR; /**< Control, offset: 0x18 */
7380 __IO uint32_t TOG; /**< Control, offset: 0x1C */
7381 } CONTROL0;
7382 struct { /* offset: 0x20 */
7383 __IO uint32_t RW; /**< Spare Control0, offset: 0x20 */
7384 __IO uint32_t SET; /**< Spare Control0, offset: 0x24 */
7385 __IO uint32_t CLR; /**< Spare Control0, offset: 0x28 */
7386 __IO uint32_t TOG; /**< Spare Control0, offset: 0x2C */
7387 } SPARE_CTRL0;
7388 struct { /* offset: 0x30 */
7389 __IO uint32_t RW; /**< Spare Control1, offset: 0x30 */
7390 __IO uint32_t SET; /**< Spare Control1, offset: 0x34 */
7391 __IO uint32_t CLR; /**< Spare Control1, offset: 0x38 */
7392 __IO uint32_t TOG; /**< Spare Control1, offset: 0x3C */
7393 } SPARE_CTRL1;
7394 struct { /* offset: 0x40 */
7395 __I uint32_t RW; /**< Spare Status0, offset: 0x40 */
7396 __I uint32_t SET; /**< Spare Status0, offset: 0x44 */
7397 __I uint32_t CLR; /**< Spare Status0, offset: 0x48 */
7398 __I uint32_t TOG; /**< Spare Status0, offset: 0x4C */
7399 } SPARE_STATUS0;
7400} BLK_CTL_Type;
7401
7402/* ----------------------------------------------------------------------------
7403 -- BLK_CTL Register Masks
7404 ---------------------------------------------------------------------------- */
7405
7406/*!
7407 * @addtogroup BLK_CTL_Register_Masks BLK_CTL Register Masks
7408 * @{
7409 */
7410
7411/*! @name RESET_CTRL - Reset Control */
7412/*! @{ */
7413#define BLK_CTL_RESET_CTRL_B_CLK_RESETN_MASK (0x1U)
7414#define BLK_CTL_RESET_CTRL_B_CLK_RESETN_SHIFT (0U)
7415#define BLK_CTL_RESET_CTRL_B_CLK_RESETN(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_RESET_CTRL_B_CLK_RESETN_SHIFT)) & BLK_CTL_RESET_CTRL_B_CLK_RESETN_MASK)
7416#define BLK_CTL_RESET_CTRL_APB_CLK_RESETN_MASK (0x2U)
7417#define BLK_CTL_RESET_CTRL_APB_CLK_RESETN_SHIFT (1U)
7418#define BLK_CTL_RESET_CTRL_APB_CLK_RESETN(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_RESET_CTRL_APB_CLK_RESETN_SHIFT)) & BLK_CTL_RESET_CTRL_APB_CLK_RESETN_MASK)
7419#define BLK_CTL_RESET_CTRL_P_CLK_RESETN_MASK (0x4U)
7420#define BLK_CTL_RESET_CTRL_P_CLK_RESETN_SHIFT (2U)
7421#define BLK_CTL_RESET_CTRL_P_CLK_RESETN(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_RESET_CTRL_P_CLK_RESETN_SHIFT)) & BLK_CTL_RESET_CTRL_P_CLK_RESETN_MASK)
7422#define BLK_CTL_RESET_CTRL_RTR_CLK_RESETN_MASK (0x8U)
7423#define BLK_CTL_RESET_CTRL_RTR_CLK_RESETN_SHIFT (3U)
7424#define BLK_CTL_RESET_CTRL_RTR_CLK_RESETN(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_RESET_CTRL_RTR_CLK_RESETN_SHIFT)) & BLK_CTL_RESET_CTRL_RTR_CLK_RESETN_MASK)
7425#define BLK_CTL_RESET_CTRL_SPARE_CLK_RESETN_MASK (0xFF0000U)
7426#define BLK_CTL_RESET_CTRL_SPARE_CLK_RESETN_SHIFT (16U)
7427#define BLK_CTL_RESET_CTRL_SPARE_CLK_RESETN(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_RESET_CTRL_SPARE_CLK_RESETN_SHIFT)) & BLK_CTL_RESET_CTRL_SPARE_CLK_RESETN_MASK)
7428/*! @} */
7429
7430/*! @name CONTROL0 - Control */
7431/*! @{ */
7432#define BLK_CTL_CONTROL0_DISPMIX_REFCLK_SEL_MASK (0x30U)
7433#define BLK_CTL_CONTROL0_DISPMIX_REFCLK_SEL_SHIFT (4U)
7434#define BLK_CTL_CONTROL0_DISPMIX_REFCLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_CONTROL0_DISPMIX_REFCLK_SEL_SHIFT)) & BLK_CTL_CONTROL0_DISPMIX_REFCLK_SEL_MASK)
7435#define BLK_CTL_CONTROL0_DISPMIX_PIXCLK_SEL_MASK (0x100U)
7436#define BLK_CTL_CONTROL0_DISPMIX_PIXCLK_SEL_SHIFT (8U)
7437#define BLK_CTL_CONTROL0_DISPMIX_PIXCLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_CONTROL0_DISPMIX_PIXCLK_SEL_SHIFT)) & BLK_CTL_CONTROL0_DISPMIX_PIXCLK_SEL_MASK)
7438/*! @} */
7439
7440/*! @name SPARE_CTRL0 - Spare Control0 */
7441/*! @{ */
7442#define BLK_CTL_SPARE_CTRL0_SPARE_CTRL_MASK (0xFFFFFFFFU)
7443#define BLK_CTL_SPARE_CTRL0_SPARE_CTRL_SHIFT (0U)
7444#define BLK_CTL_SPARE_CTRL0_SPARE_CTRL(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_SPARE_CTRL0_SPARE_CTRL_SHIFT)) & BLK_CTL_SPARE_CTRL0_SPARE_CTRL_MASK)
7445/*! @} */
7446
7447/*! @name SPARE_CTRL1 - Spare Control1 */
7448/*! @{ */
7449#define BLK_CTL_SPARE_CTRL1_SPARE_CTRL_MASK (0xFFFFFFFFU)
7450#define BLK_CTL_SPARE_CTRL1_SPARE_CTRL_SHIFT (0U)
7451#define BLK_CTL_SPARE_CTRL1_SPARE_CTRL(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_SPARE_CTRL1_SPARE_CTRL_SHIFT)) & BLK_CTL_SPARE_CTRL1_SPARE_CTRL_MASK)
7452/*! @} */
7453
7454/*! @name SPARE_STATUS0 - Spare Status0 */
7455/*! @{ */
7456#define BLK_CTL_SPARE_STATUS0_SPARE_STATUS_MASK (0xFFFFFFFFU)
7457#define BLK_CTL_SPARE_STATUS0_SPARE_STATUS_SHIFT (0U)
7458#define BLK_CTL_SPARE_STATUS0_SPARE_STATUS(x) (((uint32_t)(((uint32_t)(x)) << BLK_CTL_SPARE_STATUS0_SPARE_STATUS_SHIFT)) & BLK_CTL_SPARE_STATUS0_SPARE_STATUS_MASK)
7459/*! @} */
7460
7461
7462/*!
7463 * @}
7464 */ /* end of group BLK_CTL_Register_Masks */
7465
7466
7467/* BLK_CTL - Peripheral instance base addresses */
7468/** Peripheral DCSS__BLK_CTL base address */
7469#define DCSS__BLK_CTL_BASE (0x32E2F000u)
7470/** Peripheral DCSS__BLK_CTL base pointer */
7471#define DCSS__BLK_CTL ((BLK_CTL_Type *)DCSS__BLK_CTL_BASE)
7472/** Array initializer of BLK_CTL peripheral base addresses */
7473#define BLK_CTL_BASE_ADDRS { DCSS__BLK_CTL_BASE }
7474/** Array initializer of BLK_CTL peripheral base pointers */
7475#define BLK_CTL_BASE_PTRS { DCSS__BLK_CTL }
7476
7477/*!
7478 * @}
7479 */ /* end of group BLK_CTL_Peripheral_Access_Layer */
7480
7481
7482/* ----------------------------------------------------------------------------
7483 -- CCM Peripheral Access Layer
7484 ---------------------------------------------------------------------------- */
7485
7486/*!
7487 * @addtogroup CCM_Peripheral_Access_Layer CCM Peripheral Access Layer
7488 * @{
7489 */
7490
7491/** CCM - Register Layout Typedef */
7492typedef struct {
7493 __IO uint32_t GPR0; /**< General Purpose Register, offset: 0x0 */
7494 __IO uint32_t GPR0_SET; /**< General Purpose Register, offset: 0x4 */
7495 __IO uint32_t GPR0_CLR; /**< General Purpose Register, offset: 0x8 */
7496 __IO uint32_t GPR0_TOG; /**< General Purpose Register, offset: 0xC */
7497 uint8_t RESERVED_0[2032];
7498 struct { /* offset: 0x800, array step: 0x10 */
7499 __IO uint32_t PLL_CTRL; /**< CCM PLL Control Register, array offset: 0x800, array step: 0x10 */
7500 __IO uint32_t PLL_CTRL_SET; /**< CCM PLL Control Register, array offset: 0x804, array step: 0x10 */
7501 __IO uint32_t PLL_CTRL_CLR; /**< CCM PLL Control Register, array offset: 0x808, array step: 0x10 */
7502 __IO uint32_t PLL_CTRL_TOG; /**< CCM PLL Control Register, array offset: 0x80C, array step: 0x10 */
7503 } PLL_CTRL[39];
7504 uint8_t RESERVED_1[13712];
7505 struct { /* offset: 0x4000, array step: 0x10 */
7506 __IO uint32_t CCGR; /**< CCM Clock Gating Register, array offset: 0x4000, array step: 0x10 */
7507 __IO uint32_t CCGR_SET; /**< CCM Clock Gating Register, array offset: 0x4004, array step: 0x10 */
7508 __IO uint32_t CCGR_CLR; /**< CCM Clock Gating Register, array offset: 0x4008, array step: 0x10 */
7509 __IO uint32_t CCGR_TOG; /**< CCM Clock Gating Register, array offset: 0x400C, array step: 0x10 */
7510 } CCGR[191];
7511 uint8_t RESERVED_2[13328];
7512 struct { /* offset: 0x8000, array step: 0x80 */
7513 __IO uint32_t TARGET_ROOT; /**< Target Register, array offset: 0x8000, array step: 0x80 */
7514 __IO uint32_t TARGET_ROOT_SET; /**< Target Register, array offset: 0x8004, array step: 0x80 */
7515 __IO uint32_t TARGET_ROOT_CLR; /**< Target Register, array offset: 0x8008, array step: 0x80 */
7516 __IO uint32_t TARGET_ROOT_TOG; /**< Target Register, array offset: 0x800C, array step: 0x80 */
7517 __IO uint32_t MISC; /**< Miscellaneous Register, array offset: 0x8010, array step: 0x80 */
7518 __IO uint32_t MISC_ROOT_SET; /**< Miscellaneous Register, array offset: 0x8014, array step: 0x80 */
7519 __IO uint32_t MISC_ROOT_CLR; /**< Miscellaneous Register, array offset: 0x8018, array step: 0x80 */
7520 __IO uint32_t MISC_ROOT_TOG; /**< Miscellaneous Register, array offset: 0x801C, array step: 0x80 */
7521 __IO uint32_t POST; /**< Post Divider Register, array offset: 0x8020, array step: 0x80 */
7522 __IO uint32_t POST_ROOT_SET; /**< Post Divider Register, array offset: 0x8024, array step: 0x80 */
7523 __IO uint32_t POST_ROOT_CLR; /**< Post Divider Register, array offset: 0x8028, array step: 0x80 */
7524 __IO uint32_t POST_ROOT_TOG; /**< Post Divider Register, array offset: 0x802C, array step: 0x80 */
7525 __IO uint32_t PRE; /**< Pre Divider Register, array offset: 0x8030, array step: 0x80 */
7526 __IO uint32_t PRE_ROOT_SET; /**< Pre Divider Register, array offset: 0x8034, array step: 0x80 */
7527 __IO uint32_t PRE_ROOT_CLR; /**< Pre Divider Register, array offset: 0x8038, array step: 0x80 */
7528 __IO uint32_t PRE_ROOT_TOG; /**< Pre Divider Register, array offset: 0x803C, array step: 0x80 */
7529 uint8_t RESERVED_0[48];
7530 __IO uint32_t ACCESS_CTRL; /**< Access Control Register, array offset: 0x8070, array step: 0x80 */
7531 __IO uint32_t ACCESS_CTRL_ROOT_SET; /**< Access Control Register, array offset: 0x8074, array step: 0x80 */
7532 __IO uint32_t ACCESS_CTRL_ROOT_CLR; /**< Access Control Register, array offset: 0x8078, array step: 0x80 */
7533 __IO uint32_t ACCESS_CTRL_ROOT_TOG; /**< Access Control Register, array offset: 0x807C, array step: 0x80 */
7534 } ROOT[142];
7535} CCM_Type;
7536
7537/* ----------------------------------------------------------------------------
7538 -- CCM Register Masks
7539 ---------------------------------------------------------------------------- */
7540
7541/*!
7542 * @addtogroup CCM_Register_Masks CCM Register Masks
7543 * @{
7544 */
7545
7546/*! @name GPR0 - General Purpose Register */
7547/*! @{ */
7548#define CCM_GPR0_GP0_MASK (0xFFFFFFFFU)
7549#define CCM_GPR0_GP0_SHIFT (0U)
7550#define CCM_GPR0_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_GP0_SHIFT)) & CCM_GPR0_GP0_MASK)
7551/*! @} */
7552
7553/*! @name GPR0_SET - General Purpose Register */
7554/*! @{ */
7555#define CCM_GPR0_SET_GP0_MASK (0xFFFFFFFFU)
7556#define CCM_GPR0_SET_GP0_SHIFT (0U)
7557#define CCM_GPR0_SET_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_SET_GP0_SHIFT)) & CCM_GPR0_SET_GP0_MASK)
7558/*! @} */
7559
7560/*! @name GPR0_CLR - General Purpose Register */
7561/*! @{ */
7562#define CCM_GPR0_CLR_GP0_MASK (0xFFFFFFFFU)
7563#define CCM_GPR0_CLR_GP0_SHIFT (0U)
7564#define CCM_GPR0_CLR_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_CLR_GP0_SHIFT)) & CCM_GPR0_CLR_GP0_MASK)
7565/*! @} */
7566
7567/*! @name GPR0_TOG - General Purpose Register */
7568/*! @{ */
7569#define CCM_GPR0_TOG_GP0_MASK (0xFFFFFFFFU)
7570#define CCM_GPR0_TOG_GP0_SHIFT (0U)
7571#define CCM_GPR0_TOG_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_TOG_GP0_SHIFT)) & CCM_GPR0_TOG_GP0_MASK)
7572/*! @} */
7573
7574/*! @name PLL_CTRL - CCM PLL Control Register */
7575/*! @{ */
7576#define CCM_PLL_CTRL_SETTING0_MASK (0x3U)
7577#define CCM_PLL_CTRL_SETTING0_SHIFT (0U)
7578/*! SETTING0
7579 * 0b00..Domain clocks not needed
7580 * 0b01..Domain clocks needed when in RUN
7581 * 0b10..Domain clocks needed when in RUN and WAIT
7582 * 0b11..Domain clocks needed all the time
7583 */
7584#define CCM_PLL_CTRL_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING0_SHIFT)) & CCM_PLL_CTRL_SETTING0_MASK)
7585#define CCM_PLL_CTRL_SETTING1_MASK (0x30U)
7586#define CCM_PLL_CTRL_SETTING1_SHIFT (4U)
7587/*! SETTING1
7588 * 0b00..Domain clocks not needed
7589 * 0b01..Domain clocks needed when in RUN
7590 * 0b10..Domain clocks needed when in RUN and WAIT
7591 * 0b11..Domain clocks needed all the time
7592 */
7593#define CCM_PLL_CTRL_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING1_SHIFT)) & CCM_PLL_CTRL_SETTING1_MASK)
7594#define CCM_PLL_CTRL_SETTING2_MASK (0x300U)
7595#define CCM_PLL_CTRL_SETTING2_SHIFT (8U)
7596/*! SETTING2
7597 * 0b00..Domain clocks not needed
7598 * 0b01..Domain clocks needed when in RUN
7599 * 0b10..Domain clocks needed when in RUN and WAIT
7600 * 0b11..Domain clocks needed all the time
7601 */
7602#define CCM_PLL_CTRL_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING2_SHIFT)) & CCM_PLL_CTRL_SETTING2_MASK)
7603#define CCM_PLL_CTRL_SETTING3_MASK (0x3000U)
7604#define CCM_PLL_CTRL_SETTING3_SHIFT (12U)
7605/*! SETTING3
7606 * 0b00..Domain clocks not needed
7607 * 0b01..Domain clocks needed when in RUN
7608 * 0b10..Domain clocks needed when in RUN and WAIT
7609 * 0b11..Domain clocks needed all the time
7610 */
7611#define CCM_PLL_CTRL_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING3_SHIFT)) & CCM_PLL_CTRL_SETTING3_MASK)
7612/*! @} */
7613
7614/* The count of CCM_PLL_CTRL */
7615#define CCM_PLL_CTRL_COUNT (39U)
7616
7617/*! @name PLL_CTRL_SET - CCM PLL Control Register */
7618/*! @{ */
7619#define CCM_PLL_CTRL_SET_SETTING0_MASK (0x3U)
7620#define CCM_PLL_CTRL_SET_SETTING0_SHIFT (0U)
7621/*! SETTING0
7622 * 0b00..Domain clocks not needed
7623 * 0b01..Domain clocks needed when in RUN
7624 * 0b10..Domain clocks needed when in RUN and WAIT
7625 * 0b11..Domain clocks needed all the time
7626 */
7627#define CCM_PLL_CTRL_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING0_SHIFT)) & CCM_PLL_CTRL_SET_SETTING0_MASK)
7628#define CCM_PLL_CTRL_SET_SETTING1_MASK (0x30U)
7629#define CCM_PLL_CTRL_SET_SETTING1_SHIFT (4U)
7630/*! SETTING1
7631 * 0b00..Domain clocks not needed
7632 * 0b01..Domain clocks needed when in RUN
7633 * 0b10..Domain clocks needed when in RUN and WAIT
7634 * 0b11..Domain clocks needed all the time
7635 */
7636#define CCM_PLL_CTRL_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING1_SHIFT)) & CCM_PLL_CTRL_SET_SETTING1_MASK)
7637#define CCM_PLL_CTRL_SET_SETTING2_MASK (0x300U)
7638#define CCM_PLL_CTRL_SET_SETTING2_SHIFT (8U)
7639/*! SETTING2
7640 * 0b00..Domain clocks not needed
7641 * 0b01..Domain clocks needed when in RUN
7642 * 0b10..Domain clocks needed when in RUN and WAIT
7643 * 0b11..Domain clocks needed all the time
7644 */
7645#define CCM_PLL_CTRL_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING2_SHIFT)) & CCM_PLL_CTRL_SET_SETTING2_MASK)
7646#define CCM_PLL_CTRL_SET_SETTING3_MASK (0x3000U)
7647#define CCM_PLL_CTRL_SET_SETTING3_SHIFT (12U)
7648/*! SETTING3
7649 * 0b00..Domain clocks not needed
7650 * 0b01..Domain clocks needed when in RUN
7651 * 0b10..Domain clocks needed when in RUN and WAIT
7652 * 0b11..Domain clocks needed all the time
7653 */
7654#define CCM_PLL_CTRL_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING3_SHIFT)) & CCM_PLL_CTRL_SET_SETTING3_MASK)
7655/*! @} */
7656
7657/* The count of CCM_PLL_CTRL_SET */
7658#define CCM_PLL_CTRL_SET_COUNT (39U)
7659
7660/*! @name PLL_CTRL_CLR - CCM PLL Control Register */
7661/*! @{ */
7662#define CCM_PLL_CTRL_CLR_SETTING0_MASK (0x3U)
7663#define CCM_PLL_CTRL_CLR_SETTING0_SHIFT (0U)
7664/*! SETTING0
7665 * 0b00..Domain clocks not needed
7666 * 0b01..Domain clocks needed when in RUN
7667 * 0b10..Domain clocks needed when in RUN and WAIT
7668 * 0b11..Domain clocks needed all the time
7669 */
7670#define CCM_PLL_CTRL_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING0_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING0_MASK)
7671#define CCM_PLL_CTRL_CLR_SETTING1_MASK (0x30U)
7672#define CCM_PLL_CTRL_CLR_SETTING1_SHIFT (4U)
7673/*! SETTING1
7674 * 0b00..Domain clocks not needed
7675 * 0b01..Domain clocks needed when in RUN
7676 * 0b10..Domain clocks needed when in RUN and WAIT
7677 * 0b11..Domain clocks needed all the time
7678 */
7679#define CCM_PLL_CTRL_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING1_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING1_MASK)
7680#define CCM_PLL_CTRL_CLR_SETTING2_MASK (0x300U)
7681#define CCM_PLL_CTRL_CLR_SETTING2_SHIFT (8U)
7682/*! SETTING2
7683 * 0b00..Domain clocks not needed
7684 * 0b01..Domain clocks needed when in RUN
7685 * 0b10..Domain clocks needed when in RUN and WAIT
7686 * 0b11..Domain clocks needed all the time
7687 */
7688#define CCM_PLL_CTRL_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING2_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING2_MASK)
7689#define CCM_PLL_CTRL_CLR_SETTING3_MASK (0x3000U)
7690#define CCM_PLL_CTRL_CLR_SETTING3_SHIFT (12U)
7691/*! SETTING3
7692 * 0b00..Domain clocks not needed
7693 * 0b01..Domain clocks needed when in RUN
7694 * 0b10..Domain clocks needed when in RUN and WAIT
7695 * 0b11..Domain clocks needed all the time
7696 */
7697#define CCM_PLL_CTRL_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING3_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING3_MASK)
7698/*! @} */
7699
7700/* The count of CCM_PLL_CTRL_CLR */
7701#define CCM_PLL_CTRL_CLR_COUNT (39U)
7702
7703/*! @name PLL_CTRL_TOG - CCM PLL Control Register */
7704/*! @{ */
7705#define CCM_PLL_CTRL_TOG_SETTING0_MASK (0x3U)
7706#define CCM_PLL_CTRL_TOG_SETTING0_SHIFT (0U)
7707/*! SETTING0
7708 * 0b00..Domain clocks not needed
7709 * 0b01..Domain clocks needed when in RUN
7710 * 0b10..Domain clocks needed when in RUN and WAIT
7711 * 0b11..Domain clocks needed all the time
7712 */
7713#define CCM_PLL_CTRL_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING0_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING0_MASK)
7714#define CCM_PLL_CTRL_TOG_SETTING1_MASK (0x30U)
7715#define CCM_PLL_CTRL_TOG_SETTING1_SHIFT (4U)
7716/*! SETTING1
7717 * 0b00..Domain clocks not needed
7718 * 0b01..Domain clocks needed when in RUN
7719 * 0b10..Domain clocks needed when in RUN and WAIT
7720 * 0b11..Domain clocks needed all the time
7721 */
7722#define CCM_PLL_CTRL_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING1_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING1_MASK)
7723#define CCM_PLL_CTRL_TOG_SETTING2_MASK (0x300U)
7724#define CCM_PLL_CTRL_TOG_SETTING2_SHIFT (8U)
7725/*! SETTING2
7726 * 0b00..Domain clocks not needed
7727 * 0b01..Domain clocks needed when in RUN
7728 * 0b10..Domain clocks needed when in RUN and WAIT
7729 * 0b11..Domain clocks needed all the time
7730 */
7731#define CCM_PLL_CTRL_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING2_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING2_MASK)
7732#define CCM_PLL_CTRL_TOG_SETTING3_MASK (0x3000U)
7733#define CCM_PLL_CTRL_TOG_SETTING3_SHIFT (12U)
7734/*! SETTING3
7735 * 0b00..Domain clocks not needed
7736 * 0b01..Domain clocks needed when in RUN
7737 * 0b10..Domain clocks needed when in RUN and WAIT
7738 * 0b11..Domain clocks needed all the time
7739 */
7740#define CCM_PLL_CTRL_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING3_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING3_MASK)
7741/*! @} */
7742
7743/* The count of CCM_PLL_CTRL_TOG */
7744#define CCM_PLL_CTRL_TOG_COUNT (39U)
7745
7746/*! @name CCGR - CCM Clock Gating Register */
7747/*! @{ */
7748#define CCM_CCGR_SETTING0_MASK (0x3U)
7749#define CCM_CCGR_SETTING0_SHIFT (0U)
7750/*! SETTING0
7751 * 0b00..Domain clocks not needed
7752 * 0b01..Domain clocks needed when in RUN
7753 * 0b10..Domain clocks needed when in RUN and WAIT
7754 * 0b11..Domain clocks needed all the time
7755 */
7756#define CCM_CCGR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING0_SHIFT)) & CCM_CCGR_SETTING0_MASK)
7757#define CCM_CCGR_SETTING1_MASK (0x30U)
7758#define CCM_CCGR_SETTING1_SHIFT (4U)
7759/*! SETTING1
7760 * 0b00..Domain clocks not needed
7761 * 0b01..Domain clocks needed when in RUN
7762 * 0b10..Domain clocks needed when in RUN and WAIT
7763 * 0b11..Domain clocks needed all the time
7764 */
7765#define CCM_CCGR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING1_SHIFT)) & CCM_CCGR_SETTING1_MASK)
7766#define CCM_CCGR_SETTING2_MASK (0x300U)
7767#define CCM_CCGR_SETTING2_SHIFT (8U)
7768/*! SETTING2
7769 * 0b00..Domain clocks not needed
7770 * 0b01..Domain clocks needed when in RUN
7771 * 0b10..Domain clocks needed when in RUN and WAIT
7772 * 0b11..Domain clocks needed all the time
7773 */
7774#define CCM_CCGR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING2_SHIFT)) & CCM_CCGR_SETTING2_MASK)
7775#define CCM_CCGR_SETTING3_MASK (0x3000U)
7776#define CCM_CCGR_SETTING3_SHIFT (12U)
7777/*! SETTING3
7778 * 0b00..Domain clocks not needed
7779 * 0b01..Domain clocks needed when in RUN
7780 * 0b10..Domain clocks needed when in RUN and WAIT
7781 * 0b11..Domain clocks needed all the time
7782 */
7783#define CCM_CCGR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING3_SHIFT)) & CCM_CCGR_SETTING3_MASK)
7784/*! @} */
7785
7786/* The count of CCM_CCGR */
7787#define CCM_CCGR_COUNT (191U)
7788
7789/*! @name CCGR_SET - CCM Clock Gating Register */
7790/*! @{ */
7791#define CCM_CCGR_SET_SETTING0_MASK (0x3U)
7792#define CCM_CCGR_SET_SETTING0_SHIFT (0U)
7793/*! SETTING0
7794 * 0b00..Domain clocks not needed
7795 * 0b01..Domain clocks needed when in RUN
7796 * 0b10..Domain clocks needed when in RUN and WAIT
7797 * 0b11..Domain clocks needed all the time
7798 */
7799#define CCM_CCGR_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING0_SHIFT)) & CCM_CCGR_SET_SETTING0_MASK)
7800#define CCM_CCGR_SET_SETTING1_MASK (0x30U)
7801#define CCM_CCGR_SET_SETTING1_SHIFT (4U)
7802/*! SETTING1
7803 * 0b00..Domain clocks not needed
7804 * 0b01..Domain clocks needed when in RUN
7805 * 0b10..Domain clocks needed when in RUN and WAIT
7806 * 0b11..Domain clocks needed all the time
7807 */
7808#define CCM_CCGR_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING1_SHIFT)) & CCM_CCGR_SET_SETTING1_MASK)
7809#define CCM_CCGR_SET_SETTING2_MASK (0x300U)
7810#define CCM_CCGR_SET_SETTING2_SHIFT (8U)
7811/*! SETTING2
7812 * 0b00..Domain clocks not needed
7813 * 0b01..Domain clocks needed when in RUN
7814 * 0b10..Domain clocks needed when in RUN and WAIT
7815 * 0b11..Domain clocks needed all the time
7816 */
7817#define CCM_CCGR_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING2_SHIFT)) & CCM_CCGR_SET_SETTING2_MASK)
7818#define CCM_CCGR_SET_SETTING3_MASK (0x3000U)
7819#define CCM_CCGR_SET_SETTING3_SHIFT (12U)
7820/*! SETTING3
7821 * 0b00..Domain clocks not needed
7822 * 0b01..Domain clocks needed when in RUN
7823 * 0b10..Domain clocks needed when in RUN and WAIT
7824 * 0b11..Domain clocks needed all the time
7825 */
7826#define CCM_CCGR_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING3_SHIFT)) & CCM_CCGR_SET_SETTING3_MASK)
7827/*! @} */
7828
7829/* The count of CCM_CCGR_SET */
7830#define CCM_CCGR_SET_COUNT (191U)
7831
7832/*! @name CCGR_CLR - CCM Clock Gating Register */
7833/*! @{ */
7834#define CCM_CCGR_CLR_SETTING0_MASK (0x3U)
7835#define CCM_CCGR_CLR_SETTING0_SHIFT (0U)
7836/*! SETTING0
7837 * 0b00..Domain clocks not needed
7838 * 0b01..Domain clocks needed when in RUN
7839 * 0b10..Domain clocks needed when in RUN and WAIT
7840 * 0b11..Domain clocks needed all the time
7841 */
7842#define CCM_CCGR_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING0_SHIFT)) & CCM_CCGR_CLR_SETTING0_MASK)
7843#define CCM_CCGR_CLR_SETTING1_MASK (0x30U)
7844#define CCM_CCGR_CLR_SETTING1_SHIFT (4U)
7845/*! SETTING1
7846 * 0b00..Domain clocks not needed
7847 * 0b01..Domain clocks needed when in RUN
7848 * 0b10..Domain clocks needed when in RUN and WAIT
7849 * 0b11..Domain clocks needed all the time
7850 */
7851#define CCM_CCGR_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING1_SHIFT)) & CCM_CCGR_CLR_SETTING1_MASK)
7852#define CCM_CCGR_CLR_SETTING2_MASK (0x300U)
7853#define CCM_CCGR_CLR_SETTING2_SHIFT (8U)
7854/*! SETTING2
7855 * 0b00..Domain clocks not needed
7856 * 0b01..Domain clocks needed when in RUN
7857 * 0b10..Domain clocks needed when in RUN and WAIT
7858 * 0b11..Domain clocks needed all the time
7859 */
7860#define CCM_CCGR_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING2_SHIFT)) & CCM_CCGR_CLR_SETTING2_MASK)
7861#define CCM_CCGR_CLR_SETTING3_MASK (0x3000U)
7862#define CCM_CCGR_CLR_SETTING3_SHIFT (12U)
7863/*! SETTING3
7864 * 0b00..Domain clocks not needed
7865 * 0b01..Domain clocks needed when in RUN
7866 * 0b10..Domain clocks needed when in RUN and WAIT
7867 * 0b11..Domain clocks needed all the time
7868 */
7869#define CCM_CCGR_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING3_SHIFT)) & CCM_CCGR_CLR_SETTING3_MASK)
7870/*! @} */
7871
7872/* The count of CCM_CCGR_CLR */
7873#define CCM_CCGR_CLR_COUNT (191U)
7874
7875/*! @name CCGR_TOG - CCM Clock Gating Register */
7876/*! @{ */
7877#define CCM_CCGR_TOG_SETTING0_MASK (0x3U)
7878#define CCM_CCGR_TOG_SETTING0_SHIFT (0U)
7879/*! SETTING0
7880 * 0b00..Domain clocks not needed
7881 * 0b01..Domain clocks needed when in RUN
7882 * 0b10..Domain clocks needed when in RUN and WAIT
7883 * 0b11..Domain clocks needed all the time
7884 */
7885#define CCM_CCGR_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING0_SHIFT)) & CCM_CCGR_TOG_SETTING0_MASK)
7886#define CCM_CCGR_TOG_SETTING1_MASK (0x30U)
7887#define CCM_CCGR_TOG_SETTING1_SHIFT (4U)
7888/*! SETTING1
7889 * 0b00..Domain clocks not needed
7890 * 0b01..Domain clocks needed when in RUN
7891 * 0b10..Domain clocks needed when in RUN and WAIT
7892 * 0b11..Domain clocks needed all the time
7893 */
7894#define CCM_CCGR_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING1_SHIFT)) & CCM_CCGR_TOG_SETTING1_MASK)
7895#define CCM_CCGR_TOG_SETTING2_MASK (0x300U)
7896#define CCM_CCGR_TOG_SETTING2_SHIFT (8U)
7897/*! SETTING2
7898 * 0b00..Domain clocks not needed
7899 * 0b01..Domain clocks needed when in RUN
7900 * 0b10..Domain clocks needed when in RUN and WAIT
7901 * 0b11..Domain clocks needed all the time
7902 */
7903#define CCM_CCGR_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING2_SHIFT)) & CCM_CCGR_TOG_SETTING2_MASK)
7904#define CCM_CCGR_TOG_SETTING3_MASK (0x3000U)
7905#define CCM_CCGR_TOG_SETTING3_SHIFT (12U)
7906/*! SETTING3
7907 * 0b00..Domain clocks not needed
7908 * 0b01..Domain clocks needed when in RUN
7909 * 0b10..Domain clocks needed when in RUN and WAIT
7910 * 0b11..Domain clocks needed all the time
7911 */
7912#define CCM_CCGR_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING3_SHIFT)) & CCM_CCGR_TOG_SETTING3_MASK)
7913/*! @} */
7914
7915/* The count of CCM_CCGR_TOG */
7916#define CCM_CCGR_TOG_COUNT (191U)
7917
7918/*! @name TARGET_ROOT - Target Register */
7919/*! @{ */
7920#define CCM_TARGET_ROOT_POST_PODF_MASK (0x3FU)
7921#define CCM_TARGET_ROOT_POST_PODF_SHIFT (0U)
7922/*! POST_PODF
7923 * 0b000000..Divide by 1
7924 * 0b000001..Divide by 2
7925 * 0b000010..Divide by 3
7926 * 0b000011..Divide by 4
7927 * 0b000100..Divide by 5
7928 * 0b000101..Divide by 6
7929 * 0b111111..Divide by 64
7930 */
7931#define CCM_TARGET_ROOT_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_POST_PODF_MASK)
7932#define CCM_TARGET_ROOT_PRE_PODF_MASK (0x70000U)
7933#define CCM_TARGET_ROOT_PRE_PODF_SHIFT (16U)
7934/*! PRE_PODF
7935 * 0b000..Divide by 1
7936 * 0b001..Divide by 2
7937 * 0b010..Divide by 3
7938 * 0b011..Divide by 4
7939 * 0b100..Divide by 5
7940 * 0b101..Divide by 6
7941 * 0b110..Divide by 7
7942 * 0b111..Divide by 8
7943 */
7944#define CCM_TARGET_ROOT_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_PRE_PODF_MASK)
7945#define CCM_TARGET_ROOT_MUX_MASK (0x7000000U)
7946#define CCM_TARGET_ROOT_MUX_SHIFT (24U)
7947#define CCM_TARGET_ROOT_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_MUX_SHIFT)) & CCM_TARGET_ROOT_MUX_MASK)
7948#define CCM_TARGET_ROOT_ENABLE_MASK (0x10000000U)
7949#define CCM_TARGET_ROOT_ENABLE_SHIFT (28U)
7950/*! ENABLE
7951 * 0b0..clock root is OFF
7952 * 0b1..clock root is ON
7953 */
7954#define CCM_TARGET_ROOT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_ENABLE_SHIFT)) & CCM_TARGET_ROOT_ENABLE_MASK)
7955/*! @} */
7956
7957/* The count of CCM_TARGET_ROOT */
7958#define CCM_TARGET_ROOT_COUNT (142U)
7959
7960/*! @name TARGET_ROOT_SET - Target Register */
7961/*! @{ */
7962#define CCM_TARGET_ROOT_SET_POST_PODF_MASK (0x3FU)
7963#define CCM_TARGET_ROOT_SET_POST_PODF_SHIFT (0U)
7964/*! POST_PODF
7965 * 0b000000..Divide by 1
7966 * 0b000001..Divide by 2
7967 * 0b000010..Divide by 3
7968 * 0b000011..Divide by 4
7969 * 0b000100..Divide by 5
7970 * 0b000101..Divide by 6
7971 * 0b111111..Divide by 64
7972 */
7973#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)
7974#define CCM_TARGET_ROOT_SET_PRE_PODF_MASK (0x70000U)
7975#define CCM_TARGET_ROOT_SET_PRE_PODF_SHIFT (16U)
7976/*! PRE_PODF
7977 * 0b000..Divide by 1
7978 * 0b001..Divide by 2
7979 * 0b010..Divide by 3
7980 * 0b011..Divide by 4
7981 * 0b100..Divide by 5
7982 * 0b101..Divide by 6
7983 * 0b110..Divide by 7
7984 * 0b111..Divide by 8
7985 */
7986#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)
7987#define CCM_TARGET_ROOT_SET_MUX_MASK (0x7000000U)
7988#define CCM_TARGET_ROOT_SET_MUX_SHIFT (24U)
7989#define CCM_TARGET_ROOT_SET_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_MUX_SHIFT)) & CCM_TARGET_ROOT_SET_MUX_MASK)
7990#define CCM_TARGET_ROOT_SET_ENABLE_MASK (0x10000000U)
7991#define CCM_TARGET_ROOT_SET_ENABLE_SHIFT (28U)
7992/*! ENABLE
7993 * 0b0..clock root is OFF
7994 * 0b1..clock root is ON
7995 */
7996#define CCM_TARGET_ROOT_SET_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_ENABLE_SHIFT)) & CCM_TARGET_ROOT_SET_ENABLE_MASK)
7997/*! @} */
7998
7999/* The count of CCM_TARGET_ROOT_SET */
8000#define CCM_TARGET_ROOT_SET_COUNT (142U)
8001
8002/*! @name TARGET_ROOT_CLR - Target Register */
8003/*! @{ */
8004#define CCM_TARGET_ROOT_CLR_POST_PODF_MASK (0x3FU)
8005#define CCM_TARGET_ROOT_CLR_POST_PODF_SHIFT (0U)
8006/*! POST_PODF
8007 * 0b000000..Divide by 1
8008 * 0b000001..Divide by 2
8009 * 0b000010..Divide by 3
8010 * 0b000011..Divide by 4
8011 * 0b000100..Divide by 5
8012 * 0b000101..Divide by 6
8013 * 0b111111..Divide by 64
8014 */
8015#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)
8016#define CCM_TARGET_ROOT_CLR_PRE_PODF_MASK (0x70000U)
8017#define CCM_TARGET_ROOT_CLR_PRE_PODF_SHIFT (16U)
8018/*! PRE_PODF
8019 * 0b000..Divide by 1
8020 * 0b001..Divide by 2
8021 * 0b010..Divide by 3
8022 * 0b011..Divide by 4
8023 * 0b100..Divide by 5
8024 * 0b101..Divide by 6
8025 * 0b110..Divide by 7
8026 * 0b111..Divide by 8
8027 */
8028#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)
8029#define CCM_TARGET_ROOT_CLR_MUX_MASK (0x7000000U)
8030#define CCM_TARGET_ROOT_CLR_MUX_SHIFT (24U)
8031#define CCM_TARGET_ROOT_CLR_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_MUX_SHIFT)) & CCM_TARGET_ROOT_CLR_MUX_MASK)
8032#define CCM_TARGET_ROOT_CLR_ENABLE_MASK (0x10000000U)
8033#define CCM_TARGET_ROOT_CLR_ENABLE_SHIFT (28U)
8034/*! ENABLE
8035 * 0b0..clock root is OFF
8036 * 0b1..clock root is ON
8037 */
8038#define CCM_TARGET_ROOT_CLR_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_ENABLE_SHIFT)) & CCM_TARGET_ROOT_CLR_ENABLE_MASK)
8039/*! @} */
8040
8041/* The count of CCM_TARGET_ROOT_CLR */
8042#define CCM_TARGET_ROOT_CLR_COUNT (142U)
8043
8044/*! @name TARGET_ROOT_TOG - Target Register */
8045/*! @{ */
8046#define CCM_TARGET_ROOT_TOG_POST_PODF_MASK (0x3FU)
8047#define CCM_TARGET_ROOT_TOG_POST_PODF_SHIFT (0U)
8048/*! POST_PODF
8049 * 0b000000..Divide by 1
8050 * 0b000001..Divide by 2
8051 * 0b000010..Divide by 3
8052 * 0b000011..Divide by 4
8053 * 0b000100..Divide by 5
8054 * 0b000101..Divide by 6
8055 * 0b111111..Divide by 64
8056 */
8057#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)
8058#define CCM_TARGET_ROOT_TOG_PRE_PODF_MASK (0x70000U)
8059#define CCM_TARGET_ROOT_TOG_PRE_PODF_SHIFT (16U)
8060/*! PRE_PODF
8061 * 0b000..Divide by 1
8062 * 0b001..Divide by 2
8063 * 0b010..Divide by 3
8064 * 0b011..Divide by 4
8065 * 0b100..Divide by 5
8066 * 0b101..Divide by 6
8067 * 0b110..Divide by 7
8068 * 0b111..Divide by 8
8069 */
8070#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)
8071#define CCM_TARGET_ROOT_TOG_MUX_MASK (0x7000000U)
8072#define CCM_TARGET_ROOT_TOG_MUX_SHIFT (24U)
8073#define CCM_TARGET_ROOT_TOG_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_MUX_SHIFT)) & CCM_TARGET_ROOT_TOG_MUX_MASK)
8074#define CCM_TARGET_ROOT_TOG_ENABLE_MASK (0x10000000U)
8075#define CCM_TARGET_ROOT_TOG_ENABLE_SHIFT (28U)
8076/*! ENABLE
8077 * 0b0..clock root is OFF
8078 * 0b1..clock root is ON
8079 */
8080#define CCM_TARGET_ROOT_TOG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_ENABLE_SHIFT)) & CCM_TARGET_ROOT_TOG_ENABLE_MASK)
8081/*! @} */
8082
8083/* The count of CCM_TARGET_ROOT_TOG */
8084#define CCM_TARGET_ROOT_TOG_COUNT (142U)
8085
8086/*! @name MISC - Miscellaneous Register */
8087/*! @{ */
8088#define CCM_MISC_AUTHEN_FAIL_MASK (0x1U)
8089#define CCM_MISC_AUTHEN_FAIL_SHIFT (0U)
8090#define CCM_MISC_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_AUTHEN_FAIL_SHIFT)) & CCM_MISC_AUTHEN_FAIL_MASK)
8091#define CCM_MISC_TIMEOUT_MASK (0x10U)
8092#define CCM_MISC_TIMEOUT_SHIFT (4U)
8093#define CCM_MISC_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_TIMEOUT_SHIFT)) & CCM_MISC_TIMEOUT_MASK)
8094#define CCM_MISC_VIOLATE_MASK (0x100U)
8095#define CCM_MISC_VIOLATE_SHIFT (8U)
8096#define CCM_MISC_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_VIOLATE_SHIFT)) & CCM_MISC_VIOLATE_MASK)
8097/*! @} */
8098
8099/* The count of CCM_MISC */
8100#define CCM_MISC_COUNT (142U)
8101
8102/*! @name MISC_ROOT_SET - Miscellaneous Register */
8103/*! @{ */
8104#define CCM_MISC_ROOT_SET_AUTHEN_FAIL_MASK (0x1U)
8105#define CCM_MISC_ROOT_SET_AUTHEN_FAIL_SHIFT (0U)
8106#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)
8107#define CCM_MISC_ROOT_SET_TIMEOUT_MASK (0x10U)
8108#define CCM_MISC_ROOT_SET_TIMEOUT_SHIFT (4U)
8109#define CCM_MISC_ROOT_SET_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_SET_TIMEOUT_MASK)
8110#define CCM_MISC_ROOT_SET_VIOLATE_MASK (0x100U)
8111#define CCM_MISC_ROOT_SET_VIOLATE_SHIFT (8U)
8112#define CCM_MISC_ROOT_SET_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_VIOLATE_SHIFT)) & CCM_MISC_ROOT_SET_VIOLATE_MASK)
8113/*! @} */
8114
8115/* The count of CCM_MISC_ROOT_SET */
8116#define CCM_MISC_ROOT_SET_COUNT (142U)
8117
8118/*! @name MISC_ROOT_CLR - Miscellaneous Register */
8119/*! @{ */
8120#define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_MASK (0x1U)
8121#define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_SHIFT (0U)
8122#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)
8123#define CCM_MISC_ROOT_CLR_TIMEOUT_MASK (0x10U)
8124#define CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT (4U)
8125#define CCM_MISC_ROOT_CLR_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_CLR_TIMEOUT_MASK)
8126#define CCM_MISC_ROOT_CLR_VIOLATE_MASK (0x100U)
8127#define CCM_MISC_ROOT_CLR_VIOLATE_SHIFT (8U)
8128#define CCM_MISC_ROOT_CLR_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_VIOLATE_SHIFT)) & CCM_MISC_ROOT_CLR_VIOLATE_MASK)
8129/*! @} */
8130
8131/* The count of CCM_MISC_ROOT_CLR */
8132#define CCM_MISC_ROOT_CLR_COUNT (142U)
8133
8134/*! @name MISC_ROOT_TOG - Miscellaneous Register */
8135/*! @{ */
8136#define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_MASK (0x1U)
8137#define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_SHIFT (0U)
8138#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)
8139#define CCM_MISC_ROOT_TOG_TIMEOUT_MASK (0x10U)
8140#define CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT (4U)
8141#define CCM_MISC_ROOT_TOG_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_TOG_TIMEOUT_MASK)
8142#define CCM_MISC_ROOT_TOG_VIOLATE_MASK (0x100U)
8143#define CCM_MISC_ROOT_TOG_VIOLATE_SHIFT (8U)
8144#define CCM_MISC_ROOT_TOG_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_VIOLATE_SHIFT)) & CCM_MISC_ROOT_TOG_VIOLATE_MASK)
8145/*! @} */
8146
8147/* The count of CCM_MISC_ROOT_TOG */
8148#define CCM_MISC_ROOT_TOG_COUNT (142U)
8149
8150/*! @name POST - Post Divider Register */
8151/*! @{ */
8152#define CCM_POST_POST_PODF_MASK (0x3FU)
8153#define CCM_POST_POST_PODF_SHIFT (0U)
8154/*! POST_PODF
8155 * 0b000000..Divide by 1
8156 * 0b000001..Divide by 2
8157 * 0b000010..Divide by 3
8158 * 0b000011..Divide by 4
8159 * 0b000100..Divide by 5
8160 * 0b000101..Divide by 6
8161 * 0b111111..Divide by 64
8162 */
8163#define CCM_POST_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_POST_PODF_SHIFT)) & CCM_POST_POST_PODF_MASK)
8164#define CCM_POST_BUSY1_MASK (0x80U)
8165#define CCM_POST_BUSY1_SHIFT (7U)
8166#define CCM_POST_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY1_SHIFT)) & CCM_POST_BUSY1_MASK)
8167#define CCM_POST_SELECT_MASK (0x10000000U)
8168#define CCM_POST_SELECT_SHIFT (28U)
8169/*! SELECT
8170 * 0b0..select branch A
8171 * 0b1..select branch B
8172 */
8173#define CCM_POST_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_SELECT_SHIFT)) & CCM_POST_SELECT_MASK)
8174#define CCM_POST_BUSY2_MASK (0x80000000U)
8175#define CCM_POST_BUSY2_SHIFT (31U)
8176#define CCM_POST_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY2_SHIFT)) & CCM_POST_BUSY2_MASK)
8177/*! @} */
8178
8179/* The count of CCM_POST */
8180#define CCM_POST_COUNT (142U)
8181
8182/*! @name POST_ROOT_SET - Post Divider Register */
8183/*! @{ */
8184#define CCM_POST_ROOT_SET_POST_PODF_MASK (0x3FU)
8185#define CCM_POST_ROOT_SET_POST_PODF_SHIFT (0U)
8186/*! POST_PODF
8187 * 0b000000..Divide by 1
8188 * 0b000001..Divide by 2
8189 * 0b000010..Divide by 3
8190 * 0b000011..Divide by 4
8191 * 0b000100..Divide by 5
8192 * 0b000101..Divide by 6
8193 * 0b111111..Divide by 64
8194 */
8195#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)
8196#define CCM_POST_ROOT_SET_BUSY1_MASK (0x80U)
8197#define CCM_POST_ROOT_SET_BUSY1_SHIFT (7U)
8198#define CCM_POST_ROOT_SET_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY1_SHIFT)) & CCM_POST_ROOT_SET_BUSY1_MASK)
8199#define CCM_POST_ROOT_SET_SELECT_MASK (0x10000000U)
8200#define CCM_POST_ROOT_SET_SELECT_SHIFT (28U)
8201/*! SELECT
8202 * 0b0..select branch A
8203 * 0b1..select branch B
8204 */
8205#define CCM_POST_ROOT_SET_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_SELECT_SHIFT)) & CCM_POST_ROOT_SET_SELECT_MASK)
8206#define CCM_POST_ROOT_SET_BUSY2_MASK (0x80000000U)
8207#define CCM_POST_ROOT_SET_BUSY2_SHIFT (31U)
8208#define CCM_POST_ROOT_SET_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY2_SHIFT)) & CCM_POST_ROOT_SET_BUSY2_MASK)
8209/*! @} */
8210
8211/* The count of CCM_POST_ROOT_SET */
8212#define CCM_POST_ROOT_SET_COUNT (142U)
8213
8214/*! @name POST_ROOT_CLR - Post Divider Register */
8215/*! @{ */
8216#define CCM_POST_ROOT_CLR_POST_PODF_MASK (0x3FU)
8217#define CCM_POST_ROOT_CLR_POST_PODF_SHIFT (0U)
8218/*! POST_PODF
8219 * 0b000000..Divide by 1
8220 * 0b000001..Divide by 2
8221 * 0b000010..Divide by 3
8222 * 0b000011..Divide by 4
8223 * 0b000100..Divide by 5
8224 * 0b000101..Divide by 6
8225 * 0b111111..Divide by 64
8226 */
8227#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)
8228#define CCM_POST_ROOT_CLR_BUSY1_MASK (0x80U)
8229#define CCM_POST_ROOT_CLR_BUSY1_SHIFT (7U)
8230#define CCM_POST_ROOT_CLR_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY1_SHIFT)) & CCM_POST_ROOT_CLR_BUSY1_MASK)
8231#define CCM_POST_ROOT_CLR_SELECT_MASK (0x10000000U)
8232#define CCM_POST_ROOT_CLR_SELECT_SHIFT (28U)
8233/*! SELECT
8234 * 0b0..select branch A
8235 * 0b1..select branch B
8236 */
8237#define CCM_POST_ROOT_CLR_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_SELECT_SHIFT)) & CCM_POST_ROOT_CLR_SELECT_MASK)
8238#define CCM_POST_ROOT_CLR_BUSY2_MASK (0x80000000U)
8239#define CCM_POST_ROOT_CLR_BUSY2_SHIFT (31U)
8240#define CCM_POST_ROOT_CLR_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY2_SHIFT)) & CCM_POST_ROOT_CLR_BUSY2_MASK)
8241/*! @} */
8242
8243/* The count of CCM_POST_ROOT_CLR */
8244#define CCM_POST_ROOT_CLR_COUNT (142U)
8245
8246/*! @name POST_ROOT_TOG - Post Divider Register */
8247/*! @{ */
8248#define CCM_POST_ROOT_TOG_POST_PODF_MASK (0x3FU)
8249#define CCM_POST_ROOT_TOG_POST_PODF_SHIFT (0U)
8250/*! POST_PODF
8251 * 0b000000..Divide by 1
8252 * 0b000001..Divide by 2
8253 * 0b000010..Divide by 3
8254 * 0b000011..Divide by 4
8255 * 0b000100..Divide by 5
8256 * 0b000101..Divide by 6
8257 * 0b111111..Divide by 64
8258 */
8259#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)
8260#define CCM_POST_ROOT_TOG_BUSY1_MASK (0x80U)
8261#define CCM_POST_ROOT_TOG_BUSY1_SHIFT (7U)
8262#define CCM_POST_ROOT_TOG_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY1_SHIFT)) & CCM_POST_ROOT_TOG_BUSY1_MASK)
8263#define CCM_POST_ROOT_TOG_SELECT_MASK (0x10000000U)
8264#define CCM_POST_ROOT_TOG_SELECT_SHIFT (28U)
8265/*! SELECT
8266 * 0b0..select branch A
8267 * 0b1..select branch B
8268 */
8269#define CCM_POST_ROOT_TOG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_SELECT_SHIFT)) & CCM_POST_ROOT_TOG_SELECT_MASK)
8270#define CCM_POST_ROOT_TOG_BUSY2_MASK (0x80000000U)
8271#define CCM_POST_ROOT_TOG_BUSY2_SHIFT (31U)
8272#define CCM_POST_ROOT_TOG_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY2_SHIFT)) & CCM_POST_ROOT_TOG_BUSY2_MASK)
8273/*! @} */
8274
8275/* The count of CCM_POST_ROOT_TOG */
8276#define CCM_POST_ROOT_TOG_COUNT (142U)
8277
8278/*! @name PRE - Pre Divider Register */
8279/*! @{ */
8280#define CCM_PRE_PRE_PODF_B_MASK (0x7U)
8281#define CCM_PRE_PRE_PODF_B_SHIFT (0U)
8282/*! PRE_PODF_B
8283 * 0b000..Divide by 1
8284 * 0b001..Divide by 2
8285 * 0b010..Divide by 3
8286 * 0b011..Divide by 4
8287 * 0b100..Divide by 5
8288 * 0b101..Divide by 6
8289 * 0b110..Divide by 7
8290 * 0b111..Divide by 8
8291 */
8292#define CCM_PRE_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_PRE_PODF_B_SHIFT)) & CCM_PRE_PRE_PODF_B_MASK)
8293#define CCM_PRE_BUSY0_MASK (0x8U)
8294#define CCM_PRE_BUSY0_SHIFT (3U)
8295#define CCM_PRE_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY0_SHIFT)) & CCM_PRE_BUSY0_MASK)
8296#define CCM_PRE_MUX_B_MASK (0x700U)
8297#define CCM_PRE_MUX_B_SHIFT (8U)
8298#define CCM_PRE_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_MUX_B_SHIFT)) & CCM_PRE_MUX_B_MASK)
8299#define CCM_PRE_EN_B_MASK (0x1000U)
8300#define CCM_PRE_EN_B_SHIFT (12U)
8301/*! EN_B
8302 * 0b0..Clock shutdown
8303 * 0b1..Clock ON
8304 */
8305#define CCM_PRE_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_EN_B_SHIFT)) & CCM_PRE_EN_B_MASK)
8306#define CCM_PRE_BUSY1_MASK (0x8000U)
8307#define CCM_PRE_BUSY1_SHIFT (15U)
8308#define CCM_PRE_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY1_SHIFT)) & CCM_PRE_BUSY1_MASK)