diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM2/MIMX8MM2_cm4.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM2/MIMX8MM2_cm4.h | 65947 |
1 files changed, 65947 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM2/MIMX8MM2_cm4.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM2/MIMX8MM2_cm4.h new file mode 100644 index 000000000..8127cbdd8 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM2/MIMX8MM2_cm4.h | |||
@@ -0,0 +1,65947 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Processors: MIMX8MM2CVTKZ | ||
4 | ** MIMX8MM2DVTLZ | ||
5 | ** | ||
6 | ** Compilers: GNU C Compiler | ||
7 | ** IAR ANSI C/C++ Compiler for ARM | ||
8 | ** Keil ARM C/C++ Compiler | ||
9 | ** | ||
10 | ** Reference manual: MX8MMRM, Rev. 0, 02/2019 | ||
11 | ** Version: rev. 4.0, 2019-02-18 | ||
12 | ** Build: b190228 | ||
13 | ** | ||
14 | ** Abstract: | ||
15 | ** CMSIS Peripheral Access Layer for MIMX8MM2_cm4 | ||
16 | ** | ||
17 | ** Copyright 1997-2016 Freescale Semiconductor, Inc. | ||
18 | ** Copyright 2016-2019 NXP | ||
19 | ** All rights reserved. | ||
20 | ** | ||
21 | ** SPDX-License-Identifier: BSD-3-Clause | ||
22 | ** | ||
23 | ** http: www.nxp.com | ||
24 | ** mail: [email protected] | ||
25 | ** | ||
26 | ** Revisions: | ||
27 | ** - rev. 1.0 (2018-03-26) | ||
28 | ** Initial version. | ||
29 | ** - rev. 2.0 (2018-07-20) | ||
30 | ** Rev.A Header EAR | ||
31 | ** - rev. 3.0 (2018-10-24) | ||
32 | ** Rev.B Header PRC | ||
33 | ** - rev. 4.0 (2019-02-18) | ||
34 | ** Rev.0 Header RFP | ||
35 | ** | ||
36 | ** ################################################################### | ||
37 | */ | ||
38 | |||
39 | /*! | ||
40 | * @file MIMX8MM2_cm4.h | ||
41 | * @version 4.0 | ||
42 | * @date 2019-02-18 | ||
43 | * @brief CMSIS Peripheral Access Layer for MIMX8MM2_cm4 | ||
44 | * | ||
45 | * CMSIS Peripheral Access Layer for MIMX8MM2_cm4 | ||
46 | */ | ||
47 | |||
48 | #ifndef _MIMX8MM2_CM4_H_ | ||
49 | #define _MIMX8MM2_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 | |||
70 | typedef enum IRQn { | ||
71 | /* Auxiliary constants */ | ||
72 | NotAvail_IRQn = -128, /**< Not available device specific interrupt */ | ||
73 | |||
74 | /* Core interrupts */ | ||
75 | NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */ | ||
76 | HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */ | ||
77 | MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */ | ||
78 | BusFault_IRQn = -11, /**< Cortex-M4 Bus Fault Interrupt */ | ||
79 | UsageFault_IRQn = -10, /**< Cortex-M4 Usage Fault Interrupt */ | ||
80 | SVCall_IRQn = -5, /**< Cortex-M4 SV Call Interrupt */ | ||
81 | DebugMonitor_IRQn = -4, /**< Cortex-M4 Debug Monitor Interrupt */ | ||
82 | PendSV_IRQn = -2, /**< Cortex-M4 Pend SV Interrupt */ | ||
83 | SysTick_IRQn = -1, /**< Cortex-M4 System Tick Interrupt */ | ||
84 | |||
85 | /* Device specific interrupts */ | ||
86 | GPR_IRQ_IRQn = 0, /**< GPR Interrupt. Used to notify cores on exception condition while boot. */ | ||
87 | DAP_IRQn = 1, /**< DAP Interrupt */ | ||
88 | SDMA1_IRQn = 2, /**< AND of all 48 SDMA1 interrupts (events) from all the channels */ | ||
89 | GPU3D_IRQn = 3, /**< GPU3D Interrupt */ | ||
90 | SNVS_IRQn = 4, /**< ON-OFF button press shorter than 5 seconds (pulse event) */ | ||
91 | LCDIF_IRQn = 5, /**< LCDIF Interrupt */ | ||
92 | SPDIF1_IRQn = 6, /**< SPDIF1 RZX/TX Interrupt */ | ||
93 | VPU_G1_IRQn = 7, /**< VPU G1 Decoder Interrupt */ | ||
94 | VPU_G2_IRQn = 8, /**< VPU G2 Decoder Interrupt */ | ||
95 | QOS_IRQn = 9, /**< QOS interrupt */ | ||
96 | WDOG3_IRQn = 10, /**< Watchdog Timer reset */ | ||
97 | HS_CP1_IRQn = 11, /**< HS Interrupt Request */ | ||
98 | APBHDMA_IRQn = 12, /**< GPMI operation channel 0-3 description complete interrupt */ | ||
99 | Reserved29_IRQn = 13, /**< Reserved */ | ||
100 | BCH_IRQn = 14, /**< BCH operation complete interrupt */ | ||
101 | GPMI_IRQn = 15, /**< GPMI operation TIMEOUT ERROR interrupt */ | ||
102 | CSI1_IRQn = 16, /**< CSI Interrupt */ | ||
103 | MIPI_CSI1_IRQn = 17, /**< MIPI CSI Interrupt */ | ||
104 | MIPI_DSI_IRQn = 18, /**< MIPI DSI Interrupt */ | ||
105 | SNVS_Consolidated_IRQn = 19, /**< SRTC Consolidated Interrupt. Non TZ. */ | ||
106 | SNVS_Security_IRQn = 20, /**< SRTC Security Interrupt. TZ. */ | ||
107 | CSU_IRQn = 21, /**< CSU Interrupt Request. Indicates to the processor that one or more alarm inputs were asserted. */ | ||
108 | USDHC1_IRQn = 22, /**< uSDHC1 Enhanced SDHC Interrupt Request */ | ||
109 | USDHC2_IRQn = 23, /**< uSDHC2 Enhanced SDHC Interrupt Request */ | ||
110 | USDHC3_IRQn = 24, /**< uSDHC3 Enhanced SDHC Interrupt Request */ | ||
111 | GPU2D_IRQn = 25, /**< GPU2D Interrupt */ | ||
112 | UART1_IRQn = 26, /**< UART-1 ORed interrupt */ | ||
113 | UART2_IRQn = 27, /**< UART-2 ORed interrupt */ | ||
114 | UART3_IRQn = 28, /**< UART-3 ORed interrupt */ | ||
115 | UART4_IRQn = 29, /**< UART-4 ORed interrupt */ | ||
116 | VPU_H1_IRQn = 30, /**< VPU H1 Encoder Interrupt */ | ||
117 | ECSPI1_IRQn = 31, /**< ECSPI1 interrupt request line to the core. */ | ||
118 | ECSPI2_IRQn = 32, /**< ECSPI2 interrupt request line to the core. */ | ||
119 | ECSPI3_IRQn = 33, /**< ECSPI3 interrupt request line to the core. */ | ||
120 | SDMA3_IRQn = 34, /**< AND of all 48 SDMA3 interrupts (events) from all the channels */ | ||
121 | I2C1_IRQn = 35, /**< I2C-1 Interrupt */ | ||
122 | I2C2_IRQn = 36, /**< I2C-2 Interrupt */ | ||
123 | I2C3_IRQn = 37, /**< I2C-3 Interrupt */ | ||
124 | I2C4_IRQn = 38, /**< I2C-4 Interrupt */ | ||
125 | RDC_IRQn = 39, /**< RDC interrupt */ | ||
126 | USB1_IRQn = 40, /**< USB1 Interrupt */ | ||
127 | USB2_IRQn = 41, /**< USB1 Interrupt */ | ||
128 | Reserved58_IRQn = 42, /**< Reserved interrupt */ | ||
129 | Reserved59_IRQn = 43, /**< Reserved interrupt */ | ||
130 | PDM_HWVAD_EVENT_IRQn = 44, /**< Digital Microphone interface voice activity detector event interrupt */ | ||
131 | PDM_HWVAD_ERROR_IRQn = 45, /**< Digital Microphone interface voice activity detector error interrupt */ | ||
132 | GPT6_IRQn = 46, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
133 | SCTR_IRQ0_IRQn = 47, /**< System Counter Interrupt 0 */ | ||
134 | SCTR_IRQ1_IRQn = 48, /**< System Counter Interrupt 1 */ | ||
135 | TEMPMON_LOW_IRQn = 49, /**< TempSensor (Temperature low alarm). */ | ||
136 | I2S3_IRQn = 50, /**< SAI3 Receive / Transmit Interrupt */ | ||
137 | GPT5_IRQn = 51, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
138 | GPT4_IRQn = 52, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
139 | GPT3_IRQn = 53, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
140 | GPT2_IRQn = 54, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
141 | GPT1_IRQn = 55, /**< OR of GPT Rollover interrupt line, Input Capture 1 and 2 lines, Output Compare 1, 2, and 3 Interrupt lines */ | ||
142 | GPIO1_INT7_IRQn = 56, /**< Active HIGH Interrupt from INT7 from GPIO */ | ||
143 | GPIO1_INT6_IRQn = 57, /**< Active HIGH Interrupt from INT6 from GPIO */ | ||
144 | GPIO1_INT5_IRQn = 58, /**< Active HIGH Interrupt from INT5 from GPIO */ | ||
145 | GPIO1_INT4_IRQn = 59, /**< Active HIGH Interrupt from INT4 from GPIO */ | ||
146 | GPIO1_INT3_IRQn = 60, /**< Active HIGH Interrupt from INT3 from GPIO */ | ||
147 | GPIO1_INT2_IRQn = 61, /**< Active HIGH Interrupt from INT2 from GPIO */ | ||
148 | GPIO1_INT1_IRQn = 62, /**< Active HIGH Interrupt from INT1 from GPIO */ | ||
149 | GPIO1_INT0_IRQn = 63, /**< Active HIGH Interrupt from INT0 from GPIO */ | ||
150 | GPIO1_Combined_0_15_IRQn = 64, /**< Combined interrupt indication for GPIO1 signal 0 throughout 15 */ | ||
151 | GPIO1_Combined_16_31_IRQn = 65, /**< Combined interrupt indication for GPIO1 signal 16 throughout 31 */ | ||
152 | GPIO2_Combined_0_15_IRQn = 66, /**< Combined interrupt indication for GPIO2 signal 0 throughout 15 */ | ||
153 | GPIO2_Combined_16_31_IRQn = 67, /**< Combined interrupt indication for GPIO2 signal 16 throughout 31 */ | ||
154 | GPIO3_Combined_0_15_IRQn = 68, /**< Combined interrupt indication for GPIO3 signal 0 throughout 15 */ | ||
155 | GPIO3_Combined_16_31_IRQn = 69, /**< Combined interrupt indication for GPIO3 signal 16 throughout 31 */ | ||
156 | GPIO4_Combined_0_15_IRQn = 70, /**< Combined interrupt indication for GPIO4 signal 0 throughout 15 */ | ||
157 | GPIO4_Combined_16_31_IRQn = 71, /**< Combined interrupt indication for GPIO4 signal 16 throughout 31 */ | ||
158 | GPIO5_Combined_0_15_IRQn = 72, /**< Combined interrupt indication for GPIO5 signal 0 throughout 15 */ | ||
159 | GPIO5_Combined_16_31_IRQn = 73, /**< Combined interrupt indication for GPIO5 signal 16 throughout 31 */ | ||
160 | Reserved90_IRQn = 74, /**< Reserved interrupt */ | ||
161 | Reserved91_IRQn = 75, /**< Reserved interrupt */ | ||
162 | Reserved92_IRQn = 76, /**< Reserved interrupt */ | ||
163 | Reserved93_IRQn = 77, /**< Reserved interrupt */ | ||
164 | WDOG1_IRQn = 78, /**< Watchdog Timer reset */ | ||
165 | WDOG2_IRQn = 79, /**< Watchdog Timer reset */ | ||
166 | Reserved96_IRQn = 80, /**< Reserved interrupt */ | ||
167 | PWM1_IRQn = 81, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */ | ||
168 | PWM2_IRQn = 82, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */ | ||
169 | PWM3_IRQn = 83, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */ | ||
170 | PWM4_IRQn = 84, /**< Cumulative interrupt line. OR of Rollover Interrupt line, Compare Interrupt line and FIFO Waterlevel crossing interrupt line. */ | ||
171 | CCM_IRQ1_IRQn = 85, /**< CCM Interrupt Request 1 */ | ||
172 | CCM_IRQ2_IRQn = 86, /**< CCM Interrupt Request 2 */ | ||
173 | GPC_IRQn = 87, /**< GPC Interrupt Request 1 */ | ||
174 | MU_A53_IRQn = 88, /**< Interrupt to A53 */ | ||
175 | SRC_IRQn = 89, /**< SRC interrupt request */ | ||
176 | I2S56_IRQn = 90, /**< SAI5/6 Receive / Transmit Interrupt */ | ||
177 | RTIC_IRQn = 91, /**< RTIC Interrupt */ | ||
178 | CPU_PerformanceUnit_IRQn = 92, /**< Performance Unit Interrupts from Cheetah (interrnally: PMUIRQ[n] */ | ||
179 | CPU_CTI_Trigger_IRQn = 93, /**< CTI trigger outputs (internal: nCTIIRQ[n] */ | ||
180 | SRC_Combined_IRQn = 94, /**< Combined CPU wdog interrupts (4x) out of SRC. */ | ||
181 | I2S1_IRQn = 95, /**< SAI1 Receive / Transmit Interrupt */ | ||
182 | I2S2_IRQn = 96, /**< SAI2 Receive / Transmit Interrupt */ | ||
183 | MU_M4_IRQn = 97, /**< Interrupt to M4 */ | ||
184 | DDR_PerformanceMonitor_IRQn = 98, /**< ddr Interrupt for performance monitor */ | ||
185 | DDR_IRQn = 99, /**< ddr Interrupt */ | ||
186 | Reserved116_IRQn = 100, /**< Reserved interrupt */ | ||
187 | CPU_Error_AXI_IRQn = 101, /**< CPU Error indicator for AXI transaction with a write response error condition */ | ||
188 | CPU_Error_L2RAM_IRQn = 102, /**< CPU Error indicator for L2 RAM double-bit ECC error */ | ||
189 | SDMA2_IRQn = 103, /**< AND of all 48 SDMA2 interrupts (events) from all the channels */ | ||
190 | SJC_IRQn = 104, /**< Interrupt triggered by SJC register */ | ||
191 | CAAM_IRQ0_IRQn = 105, /**< CAAM interrupt queue for JQ */ | ||
192 | CAAM_IRQ1_IRQn = 106, /**< CAAM interrupt queue for JQ */ | ||
193 | QSPI_IRQn = 107, /**< QSPI Interrupt */ | ||
194 | TZASC_IRQn = 108, /**< TZASC (PL380) interrupt */ | ||
195 | PDM_EVENT_IRQn = 109, /**< Digital Microphone interface interrupt */ | ||
196 | PDM_ERROR_IRQn = 110, /**< Digital Microphone interface error interrupt */ | ||
197 | Reserved127_IRQn = 111, /**< Reserved interrupt */ | ||
198 | PERFMON1_IRQn = 112, /**< General Interrupt */ | ||
199 | PERFMON2_IRQn = 113, /**< General Interrupt */ | ||
200 | CAAM_IRQ2_IRQn = 114, /**< CAAM interrupt queue for JQ */ | ||
201 | CAAM_ERROR_IRQn = 115, /**< Recoverable error interrupt */ | ||
202 | HS_CP0_IRQn = 116, /**< HS Interrupt Request */ | ||
203 | Reserved133_IRQn = 117, /**< Reserved interrupt */ | ||
204 | ENET_MAC0_Rx_Tx_Done1_IRQn = 118, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */ | ||
205 | ENET_MAC0_Rx_Tx_Done2_IRQn = 119, /**< MAC 0 Receive / Trasmit Frame / Buffer Done */ | ||
206 | ENET_IRQn = 120, /**< MAC 0 IRQ */ | ||
207 | ENET_1588_IRQn = 121, /**< MAC 0 1588 Timer Interrupt - synchronous */ | ||
208 | PCIE_CTRL1_IRQ0_IRQn = 122, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */ | ||
209 | PCIE_CTRL1_IRQ1_IRQn = 123, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */ | ||
210 | PCIE_CTRL1_IRQ2_IRQn = 124, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */ | ||
211 | PCIE_CTRL1_IRQ3_IRQn = 125, /**< Coming from GLUE logic, of set / reset FF, driven by PCIE signals. */ | ||
212 | Reserved142_IRQn = 126, /**< Reserved */ | ||
213 | PCIE_CTRL1_IRQn = 127 /**< Channels [63:32] interrupts requests */ | ||
214 | } IRQn_Type; | ||
215 | |||
216 | /*! | ||
217 | * @} | ||
218 | */ /* end of group Interrupt_vector_numbers */ | ||
219 | |||
220 | |||
221 | /* ---------------------------------------------------------------------------- | ||
222 | -- Cortex M4 Core Configuration | ||
223 | ---------------------------------------------------------------------------- */ | ||
224 | |||
225 | /*! | ||
226 | * @addtogroup Cortex_Core_Configuration Cortex M4 Core Configuration | ||
227 | * @{ | ||
228 | */ | ||
229 | |||
230 | #define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */ | ||
231 | #define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */ | ||
232 | #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */ | ||
233 | #define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */ | ||
234 | |||
235 | #include "core_cm4.h" /* Core Peripheral Access Layer */ | ||
236 | #include "system_MIMX8MM2_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 | */ | ||
266 | typedef 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 | */ | ||
422 | typedef 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 | */ | ||
587 | typedef enum _iomuxc_select_input | ||
588 | { | ||
589 | kIOMUXC_CCM_PMIC_READY_SELECT_INPUT = 0U, /**< IOMUXC select input index */ | ||
590 | kIOMUXC_ENET1_MDIO_SELECT_INPUT = 1U, /**< IOMUXC select input index */ | ||
591 | kIOMUXC_SAI1_RX_SYNC_SELECT_INPUT = 2U, /**< IOMUXC select input index */ | ||
592 | kIOMUXC_SAI1_TX_BCLK_SELECT_INPUT = 3U, /**< IOMUXC select input index */ | ||
593 | kIOMUXC_SAI1_TX_SYNC_SELECT_INPUT = 4U, /**< IOMUXC select input index */ | ||
594 | kIOMUXC_SAI5_RX_BCLK_SELECT_INPUT = 5U, /**< IOMUXC select input index */ | ||
595 | kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_0 = 6U, /**< IOMUXC select input index */ | ||
596 | kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_1 = 7U, /**< IOMUXC select input index */ | ||
597 | kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_2 = 8U, /**< IOMUXC select input index */ | ||
598 | kIOMUXC_SAI5_RX_DATA_SELECT_INPUT_3 = 9U, /**< IOMUXC select input index */ | ||
599 | kIOMUXC_SAI5_RX_SYNC_SELECT_INPUT = 10U, /**< IOMUXC select input index */ | ||
600 | kIOMUXC_SAI5_TX_BCLK_SELECT_INPUT = 11U, /**< IOMUXC select input index */ | ||
601 | kIOMUXC_SAI5_TX_SYNC_SELECT_INPUT = 12U, /**< IOMUXC select input index */ | ||
602 | kIOMUXC_UART1_RTS_B_SELECT_INPUT = 13U, /**< IOMUXC select input index */ | ||
603 | kIOMUXC_UART1_RXD_SELECT_INPUT = 14U, /**< IOMUXC select input index */ | ||
604 | kIOMUXC_UART2_RTS_B_SELECT_INPUT = 15U, /**< IOMUXC select input index */ | ||
605 | kIOMUXC_UART2_RXD_SELECT_INPUT = 16U, /**< IOMUXC select input index */ | ||
606 | kIOMUXC_UART3_RTS_B_SELECT_INPUT = 17U, /**< IOMUXC select input index */ | ||
607 | kIOMUXC_UART3_RXD_SELECT_INPUT = 18U, /**< IOMUXC select input index */ | ||
608 | kIOMUXC_UART4_RTS_B_SELECT_INPUT = 19U, /**< IOMUXC select input index */ | ||
609 | kIOMUXC_UART4_RXD_SELECT_INPUT = 20U, /**< IOMUXC select input index */ | ||
610 | kIOMUXC_SAI6_RX_BCLK_SELECT_INPUT = 21U, /**< IOMUXC select input index */ | ||
611 | kIOMUXC_SAI6_RX_DATA_SELECT_INPUT_0 = 22U, /**< IOMUXC select input index */ | ||
612 | kIOMUXC_SAI6_RX_SYNC_SELECT_INPUT = 23U, /**< IOMUXC select input index */ | ||
613 | kIOMUXC_SAI6_TX_BCLK_SELECT_INPUT = 24U, /**< IOMUXC select input index */ | ||
614 | kIOMUXC_SAI6_TX_SYNC_SELECT_INPUT = 25U, /**< IOMUXC select input index */ | ||
615 | kIOMUXC_PCIE1_CLKREQ_B_SELECT_INPUT = 26U, /**< IOMUXC select input index */ | ||
616 | kIOMUXC_SAI5_MCLK_SELECT_INPUT = 28U, /**< IOMUXC select input index */ | ||
617 | kIOMUXC_SAI6_MCLK_SELECT_INPUT = 29U, /**< IOMUXC select input index */ | ||
618 | kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_0 = 30U, /**< IOMUXC select input index */ | ||
619 | kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_1 = 31U, /**< IOMUXC select input index */ | ||
620 | kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_2 = 32U, /**< IOMUXC select input index */ | ||
621 | kIOMUXC_PDM_BIT_STREAM_SELECT_INPUT_3 = 33U, /**< IOMUXC select input index */ | ||
622 | kIOMUXC_USDHC3_CD_B_SELECT_INPUT = 34U, /**< IOMUXC select input index */ | ||
623 | kIOMUXC_USDHC3_WP_SELECT_INPUT = 35U, /**< IOMUXC select input index */ | ||
624 | } iomuxc_select_input_t; | ||
625 | |||
626 | /*! | ||
627 | * @addtogroup rdc_mapping | ||
628 | * @{ | ||
629 | */ | ||
630 | |||
631 | /******************************************************************************* | ||
632 | * Definitions | ||
633 | ******************************************************************************/ | ||
634 | |||
635 | /*! | ||
636 | * @brief Structure for the RDC mapping | ||
637 | * | ||
638 | * Defines the structure for the RDC resource collections. | ||
639 | */ | ||
640 | |||
641 | typedef enum _rdc_master | ||
642 | { | ||
643 | kRDC_Master_A53 = 0U, /**< ARM Cortex-A53 RDC Master */ | ||
644 | kRDC_Master_M4 = 1U, /**< ARM Cortex-M4 RDC Master */ | ||
645 | kRDC_Master_PCIE_CTRL1 = 2U, /**< PCIE CTRL1 RDC Master */ | ||
646 | kRDC_Master_SDMA3_PERIPH = 3U, /**< SDMA3 PERIPHERAL RDC Master */ | ||
647 | kRDC_Master_VPU = 4U, /**< VPU RDC Master */ | ||
648 | kRDC_Master_LCDIF = 5U, /**< LCDIF RDC Master */ | ||
649 | kRDC_Master_CSI = 6U, /**< CSI PORT RDC Master */ | ||
650 | kRDC_Master_SDMA3_BURST = 7U, /**< SDMA3 BURST RDC Master */ | ||
651 | kRDC_Master_Coresight = 8U, /**< CORESIGHT RDC Master */ | ||
652 | kRDC_Master_DAP = 9U, /**< DAP RDC Master */ | ||
653 | kRDC_Master_CAAM = 10U, /**< CAAM RDC Master */ | ||
654 | kRDC_Master_SDMA1_PERIPH = 11U, /**< SDMA1 PERIPHERAL RDC Master */ | ||
655 | kRDC_Master_SDMA1_BURST = 12U, /**< SDMA1 BURST RDC Master */ | ||
656 | kRDC_Master_APBHDMA = 13U, /**< APBH DMA RDC Master */ | ||
657 | kRDC_Master_RAWNAND = 14U, /**< RAW NAND RDC Master */ | ||
658 | kRDC_Master_USDHC1 = 15U, /**< USDHC1 RDC Master */ | ||
659 | kRDC_Master_USDHC2 = 16U, /**< USDHC2 RDC Master */ | ||
660 | kRDC_Master_USDHC3 = 17U, /**< USDHC3 RDC Master */ | ||
661 | kRDC_Master_GPU = 18U, /**< GPU RDC Master */ | ||
662 | kRDC_Master_USB1 = 19U, /**< USB1 RDC Master */ | ||
663 | kRDC_Master_USB2 = 20U, /**< USB2 RDC Master */ | ||
664 | kRDC_Master_TESTPORT = 21U, /**< TESTPORT RDC Master */ | ||
665 | kRDC_Master_ENET1TX = 22U, /**< ENET1 TX RDC Master */ | ||
666 | kRDC_Master_ENET1RX = 23U, /**< ENET1 RX RDC Master */ | ||
667 | kRDC_Master_SDMA2_PERIPH = 24U, /**< SDMA2 PERIPH RDC Master */ | ||
668 | kRDC_Master_SDMA2_BURST = 24U, /**< SDMA2 BURST RDC Master */ | ||
669 | kRDC_Master_SDMA2_SPBA2 = 24U, /**< SDMA2 to SPBA2 RDC Master */ | ||
670 | kRDC_Master_SDMA3_SPBA2 = 25U, /**< SDMA3 to SPBA2 RDC Master */ | ||
671 | kRDC_Master_SDMA1_SPBA1 = 26U, /**< SDMA1 to SPBA1 RDC Master */ | ||
672 | } rdc_master_t; | ||
673 | |||
674 | typedef enum _rdc_mem | ||
675 | { | ||
676 | kRDC_Mem_MRC0_0 = 0U, /**< MMDC/DRAM. Region resolution 4KB. */ | ||
677 | kRDC_Mem_MRC0_1 = 1U, | ||
678 | kRDC_Mem_MRC0_2 = 2U, | ||
679 | kRDC_Mem_MRC0_3 = 3U, | ||
680 | kRDC_Mem_MRC0_4 = 4U, | ||
681 | kRDC_Mem_MRC0_5 = 5U, | ||
682 | kRDC_Mem_MRC0_6 = 6U, | ||
683 | kRDC_Mem_MRC0_7 = 7U, | ||
684 | kRDC_Mem_MRC1_0 = 8U, /**< QSPI. Region resolution 4KB. */ | ||
685 | kRDC_Mem_MRC1_1 = 9U, | ||
686 | kRDC_Mem_MRC1_2 = 10U, | ||
687 | kRDC_Mem_MRC1_3 = 11U, | ||
688 | kRDC_Mem_MRC1_4 = 12U, | ||
689 | kRDC_Mem_MRC1_5 = 13U, | ||
690 | kRDC_Mem_MRC1_6 = 14U, | ||
691 | kRDC_Mem_MRC1_7 = 15U, | ||
692 | kRDC_Mem_MRC2_0 = 16U, /**< PCIE1. Region resolution 4KB. */ | ||
693 | kRDC_Mem_MRC2_1 = 17U, | ||
694 | kRDC_Mem_MRC2_2 = 18U, | ||
695 | kRDC_Mem_MRC2_3 = 19U, | ||
696 | kRDC_Mem_MRC2_4 = 20U, | ||
697 | kRDC_Mem_MRC2_5 = 21U, | ||
698 | kRDC_Mem_MRC2_6 = 22U, | ||
699 | kRDC_Mem_MRC2_7 = 23U, | ||
700 | kRDC_Mem_MRC3_0 = 24U, /**< OCRAM. Region resolution 128B. */ | ||
701 | kRDC_Mem_MRC3_1 = 25U, | ||
702 | kRDC_Mem_MRC3_2 = 26U, | ||
703 | kRDC_Mem_MRC3_3 = 27U, | ||
704 | kRDC_Mem_MRC3_4 = 28U, | ||
705 | kRDC_Mem_MRC4_0 = 29U, /**< OCRAM_S. Region resolution 128B. */ | ||
706 | kRDC_Mem_MRC4_1 = 30U, | ||
707 | kRDC_Mem_MRC4_2 = 31U, | ||
708 | kRDC_Mem_MRC4_3 = 32U, | ||
709 | kRDC_Mem_MRC4_4 = 33U, | ||
710 | kRDC_Mem_MRC5_0 = 34U, /**< TCM. Region resolution 128B. */ | ||
711 | kRDC_Mem_MRC5_1 = 35U, | ||
712 | kRDC_Mem_MRC5_2 = 36U, | ||
713 | kRDC_Mem_MRC5_3 = 37U, | ||
714 | kRDC_Mem_MRC5_4 = 38U, | ||
715 | kRDC_Mem_MRC6_0 = 39U, /**< GIC. Region resolution 4KB. */ | ||
716 | kRDC_Mem_MRC6_1 = 40U, | ||
717 | kRDC_Mem_MRC6_2 = 41U, | ||
718 | kRDC_Mem_MRC6_3 = 42U, | ||
719 | kRDC_Mem_MRC7_0 = 43U, /**< GPU. Region resolution 4KB. */ | ||
720 | kRDC_Mem_MRC7_1 = 44U, | ||
721 | kRDC_Mem_MRC7_2 = 45U, | ||
722 | kRDC_Mem_MRC7_3 = 46U, | ||
723 | kRDC_Mem_MRC8_4 = 47U, | ||
724 | kRDC_Mem_MRC8_5 = 48U, | ||
725 | kRDC_Mem_MRC8_6 = 49U, | ||
726 | kRDC_Mem_MRC8_7 = 50U, | ||
727 | kRDC_Mem_MRC9_0 = 51U, /**< VPU(Decoder). Region resolution 4KB. */ | ||
728 | kRDC_Mem_MRC9_1 = 52U, | ||
729 | kRDC_Mem_MRC9_2 = 53U, | ||
730 | kRDC_Mem_MRC9_3 = 54U, | ||
731 | kRDC_Mem_MRC10_0 = 55U, /**< DEBUG(DAP). Region resolution 4KB. */ | ||
732 | kRDC_Mem_MRC10_1 = 56U, | ||
733 | kRDC_Mem_MRC10_2 = 57U, | ||
734 | kRDC_Mem_MRC10_3 = 58U, | ||
735 | kRDC_Mem_MRC11_0 = 59U, /**< DDRC(REG). Region resolution 4KB. */ | ||
736 | kRDC_Mem_MRC11_1 = 60U, | ||
737 | kRDC_Mem_MRC11_2 = 61U, | ||
738 | kRDC_Mem_MRC11_3 = 62U, | ||
739 | kRDC_Mem_MRC11_4 = 63U, | ||
740 | } rdc_mem_t; | ||
741 | |||
742 | typedef enum _rdc_periph | ||
743 | { | ||
744 | kRDC_Periph_GPIO1 = 0U, /**< GPIO1 RDC Peripheral */ | ||
745 | kRDC_Periph_GPIO2 = 1U, /**< GPIO2 RDC Peripheral */ | ||
746 | kRDC_Periph_GPIO3 = 2U, /**< GPIO3 RDC Peripheral */ | ||
747 | kRDC_Periph_GPIO4 = 3U, /**< GPIO4 RDC Peripheral */ | ||
748 | kRDC_Periph_GPIO5 = 4U, /**< GPIO5 RDC Peripheral */ | ||
749 | kRDC_Periph_ANA_TSENSOR = 6U, /**< ANA_TSENSOR RDC Peripheral */ | ||
750 | kRDC_Periph_ANA_OSC = 7U, /**< ANA_OSC RDC Peripheral */ | ||
751 | kRDC_Periph_WDOG1 = 8U, /**< WDOG1 RDC Peripheral */ | ||
752 | kRDC_Periph_WDOG2 = 9U, /**< WDOG2 RDC Peripheral */ | ||
753 | kRDC_Periph_WDOG3 = 10U, /**< WDOG3 RDC Peripheral */ | ||
754 | kRDC_Periph_SDMA3 = 11U, /**< SDMA3 RDC Peripheral */ | ||
755 | kRDC_Periph_SDMA2 = 12U, /**< SDMA2 RDC Peripheral */ | ||
756 | kRDC_Periph_GPT1 = 13U, /**< GPT1 RDC Peripheral */ | ||
757 | kRDC_Periph_GPT2 = 14U, /**< GPT2 RDC Peripheral */ | ||
758 | kRDC_Periph_GPT3 = 15U, /**< GPT3 RDC Peripheral */ | ||
759 | kRDC_Periph_ROMCP = 17U, /**< ROMCP RDC Peripheral */ | ||
760 | kRDC_Periph_IOMUXC = 19U, /**< IOMUXC RDC Peripheral */ | ||
761 | kRDC_Periph_IOMUXC_GPR = 20U, /**< IOMUXC_GPR RDC Peripheral */ | ||
762 | kRDC_Periph_OCOTP_CTRL = 21U, /**< OCOTP_CTRL RDC Peripheral */ | ||
763 | kRDC_Periph_ANA_PLL = 22U, /**< ANA_PLL RDC Peripheral */ | ||
764 | kRDC_Periph_SNVS_HP = 23U, /**< SNVS_HP GPR RDC Peripheral */ | ||
765 | kRDC_Periph_CCM = 24U, /**< CCM RDC Peripheral */ | ||
766 | kRDC_Periph_SRC = 25U, /**< SRC RDC Peripheral */ | ||
767 | kRDC_Periph_GPC = 26U, /**< GPC RDC Peripheral */ | ||
768 | kRDC_Periph_SEMAPHORE1 = 27U, /**< SEMAPHORE1 RDC Peripheral */ | ||
769 | kRDC_Periph_SEMAPHORE2 = 28U, /**< SEMAPHORE2 RDC Peripheral */ | ||
770 | kRDC_Periph_RDC = 29U, /**< RDC RDC Peripheral */ | ||
771 | kRDC_Periph_CSU = 30U, /**< CSU RDC Peripheral */ | ||
772 | kRDC_Periph_LCDIF = 32U, /**< LCDIF RDC Peripheral */ | ||
773 | kRDC_Periph_MIPI_DSI = 33U, /**< MIPI_DSI RDC Peripheral */ | ||
774 | kRDC_Periph_CSI = 34U, /**< CSI RDC Peripheral */ | ||
775 | kRDC_Periph_MIPI_CSI = 35U, /**< MIPI_CSI RDC Peripheral */ | ||
776 | kRDC_Periph_USB1 = 36U, /**< USB1 RDC Peripheral */ | ||
777 | kRDC_Periph_PWM1 = 38U, /**< PWM1 RDC Peripheral */ | ||
778 | kRDC_Periph_PWM2 = 39U, /**< PWM2 RDC Peripheral */ | ||
779 | kRDC_Periph_PWM3 = 40U, /**< PWM3 RDC Peripheral */ | ||
780 | kRDC_Periph_PWM4 = 41U, /**< PWM4 RDC Peripheral */ | ||
781 | kRDC_Periph_SYS_COUNTER_RD = 42U, /**< System counter read RDC Peripheral */ | ||
782 | kRDC_Periph_SYS_COUNTER_CMP = 43U, /**< System counter compare RDC Peripheral */ | ||
783 | kRDC_Periph_SYS_COUNTER_CTRL = 44U, /**< System counter control RDC Peripheral */ | ||
784 | kRDC_Periph_GPT6 = 46U, /**< GPT6 RDC Peripheral */ | ||
785 | kRDC_Periph_GPT5 = 47U, /**< GPT5 RDC Peripheral */ | ||
786 | kRDC_Periph_GPT4 = 48U, /**< GPT4 RDC Peripheral */ | ||
787 | kRDC_Periph_TZASC = 56U, /**< TZASC RDC Peripheral */ | ||
788 | kRDC_Periph_USB2 = 59U, /**< USB2 RDC Peripheral */ | ||
789 | kRDC_Periph_PERFMON1 = 60U, /**< PERFMON1 RDC Peripheral */ | ||
790 | kRDC_Periph_PERFMON2 = 61U, /**< PERFMON2 RDC Peripheral */ | ||
791 | kRDC_Periph_PLATFORM_CTRL = 62U, /**< PLATFORM_CTRL RDC Peripheral */ | ||
792 | kRDC_Periph_QOSC = 63U, /**< QOSC RDC Peripheral */ | ||
793 | kRDC_Periph_I2C1 = 66U, /**< I2C1 RDC Peripheral */ | ||
794 | kRDC_Periph_I2C2 = 67U, /**< I2C2 RDC Peripheral */ | ||
795 | kRDC_Periph_I2C3 = 68U, /**< I2C3 RDC Peripheral */ | ||
796 | kRDC_Periph_I2C4 = 69U, /**< I2C4 RDC Peripheral */ | ||
797 | kRDC_Periph_UART4 = 70U, /**< UART4 RDC Peripheral */ | ||
798 | kRDC_Periph_MU_A = 74U, /**< MU_A RDC Peripheral */ | ||
799 | kRDC_Periph_MU_B = 75U, /**< MU_B RDC Peripheral */ | ||
800 | kRDC_Periph_SEMAPHORE_HS = 76U, /**< SEMAPHORE_HS RDC Peripheral */ | ||
801 | kRDC_Periph_SAI1 = 78U, /**< SAI1 RDC Peripheral */ | ||
802 | kRDC_Periph_SAI2_ACCESS = 79U, /**< SAI2 RDC Peripheral Access Control */ | ||
803 | kRDC_Periph_SAI3_ACCESS = 80U, /**< SAI3 RDC Peripheral Access Control */ | ||
804 | kRDC_Periph_SAI6_LPM = 80U, /**< SAI6 RDC Low Power Mode Control */ | ||
805 | kRDC_Periph_SAI5_LPM = 81U, /**< SAI5 RDC Low Power Mode Control */ | ||
806 | kRDC_Periph_SAI5_ACCESS = 82U, /**< SAI5 RDC Peripheral Access Control */ | ||
807 | kRDC_Periph_SAI6_ACCESS = 83U, /**< SAI6 RDC Peripheral Access Control */ | ||
808 | kRDC_Periph_USDHC1 = 84U, /**< USDHC1 RDC Peripheral */ | ||
809 | kRDC_Periph_USDHC2 = 85U, /**< USDHC2 RDC Peripheral */ | ||
810 | kRDC_Periph_USDHC3 = 86U, /**< USDHC3 RDC Peripheral */ | ||
811 | kRDC_Periph_PCIE_PHY1 = 88U, /**< PCIE_PHY1 RDC Peripheral */ | ||
812 | kRDC_Periph_SPBA2 = 90U, /**< SPBA2 RDC Peripheral */ | ||
813 | kRDC_Periph_QSPI = 91U, /**< QSPI RDC Peripheral */ | ||
814 | kRDC_Periph_SDMA1 = 93U, /**< SDMA1 RDC Peripheral */ | ||
815 | kRDC_Periph_ENET1 = 94U, /**< ENET1 RDC Peripheral */ | ||
816 | kRDC_Periph_SPDIF1 = 97U, /**< SPDIF1 RDC Peripheral */ | ||
817 | kRDC_Periph_ECSPI1 = 98U, /**< ECSPI1 RDC Peripheral */ | ||
818 | kRDC_Periph_ECSPI2 = 99U, /**< ECSPI2 RDC Peripheral */ | ||
819 | kRDC_Periph_ECSPI3 = 100U, /**< ECSPI3 RDC Peripheral */ | ||
820 | kRDC_Periph_MICFIL = 101U, /**< MICFIL RDC Peripheral */ | ||
821 | kRDC_Periph_UART1 = 102U, /**< UART1 RDC Peripheral */ | ||
822 | kRDC_Periph_UART3 = 104U, /**< UART3 RDC Peripheral */ | ||
823 | kRDC_Periph_UART2 = 105U, /**< UART2 RDC Peripheral */ | ||
824 | kRDC_Periph_SPDIF2 = 106U, /**< SPDIF2 RDC Peripheral */ | ||
825 | kRDC_Periph_SAI2_LPM = 107U, /**< SAI2 RDC Low Power Mode Control */ | ||
826 | kRDC_Periph_SAI3_LPM = 108U, /**< SAI3 RDC Low Power Mode Control */ | ||
827 | kRDC_Periph_SPBA1 = 111U, /**< SPBA1 RDC Peripheral */ | ||
828 | kRDC_Periph_CAAM = 114U, /**< CAAM RDC Peripheral */ | ||
829 | } rdc_periph_t; | ||
830 | |||
831 | /* @} */ | ||
832 | |||
833 | |||
834 | /*! | ||
835 | * @} | ||
836 | */ /* end of group Mapping_Information */ | ||
837 | |||
838 | |||
839 | /* ---------------------------------------------------------------------------- | ||
840 | -- Device Peripheral Access Layer | ||
841 | ---------------------------------------------------------------------------- */ | ||
842 | |||
843 | /*! | ||
844 | * @addtogroup Peripheral_access_layer Device Peripheral Access Layer | ||
845 | * @{ | ||
846 | */ | ||
847 | |||
848 | |||
849 | /* | ||
850 | ** Start of section using anonymous unions | ||
851 | */ | ||
852 | |||
853 | #if defined(__ARMCC_VERSION) | ||
854 | #if (__ARMCC_VERSION >= 6010050) | ||
855 | #pragma clang diagnostic push | ||
856 | #else | ||
857 | #pragma push | ||
858 | #pragma anon_unions | ||
859 | #endif | ||
860 | #elif defined(__GNUC__) | ||
861 | /* anonymous unions are enabled by default */ | ||
862 | #elif defined(__IAR_SYSTEMS_ICC__) | ||
863 | #pragma language=extended | ||
864 | #else | ||
865 | #error Not supported compiler type | ||
866 | #endif | ||
867 | |||
868 | /* ---------------------------------------------------------------------------- | ||
869 | -- AIPSTZ Peripheral Access Layer | ||
870 | ---------------------------------------------------------------------------- */ | ||
871 | |||
872 | /*! | ||
873 | * @addtogroup AIPSTZ_Peripheral_Access_Layer AIPSTZ Peripheral Access Layer | ||
874 | * @{ | ||
875 | */ | ||
876 | |||
877 | /** AIPSTZ - Register Layout Typedef */ | ||
878 | typedef struct { | ||
879 | __IO uint32_t MPR; /**< Master Priviledge Registers, offset: 0x0 */ | ||
880 | uint8_t RESERVED_0[60]; | ||
881 | __IO uint32_t OPACR; /**< Off-Platform Peripheral Access Control Registers, offset: 0x40 */ | ||
882 | __IO uint32_t OPACR1; /**< Off-Platform Peripheral Access Control Registers, offset: 0x44 */ | ||
883 | __IO uint32_t OPACR2; /**< Off-Platform Peripheral Access Control Registers, offset: 0x48 */ | ||
884 | __IO uint32_t OPACR3; /**< Off-Platform Peripheral Access Control Registers, offset: 0x4C */ | ||
885 | __IO uint32_t OPACR4; /**< Off-Platform Peripheral Access Control Registers, offset: 0x50 */ | ||
886 | } AIPSTZ_Type; | ||
887 | |||
888 | /* ---------------------------------------------------------------------------- | ||
889 | -- AIPSTZ Register Masks | ||
890 | ---------------------------------------------------------------------------- */ | ||
891 | |||
892 | /*! | ||
893 | * @addtogroup AIPSTZ_Register_Masks AIPSTZ Register Masks | ||
894 | * @{ | ||
895 | */ | ||
896 | |||
897 | /*! @name MPR - Master Priviledge Registers */ | ||
898 | /*! @{ */ | ||
899 | #define AIPSTZ_MPR_MPROT5_MASK (0xF00U) | ||
900 | #define AIPSTZ_MPR_MPROT5_SHIFT (8U) | ||
901 | /*! MPROT5 | ||
902 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute. | ||
903 | * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access. | ||
904 | * 0bxx0x..This master is not trusted for write accesses. | ||
905 | * 0bxx1x..This master is trusted for write accesses. | ||
906 | * 0bx0xx..This master is not trusted for read accesses. | ||
907 | * 0bx1xx..This master is trusted for read accesses. | ||
908 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
909 | */ | ||
910 | #define AIPSTZ_MPR_MPROT5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT5_SHIFT)) & AIPSTZ_MPR_MPROT5_MASK) | ||
911 | #define AIPSTZ_MPR_MPROT3_MASK (0xF0000U) | ||
912 | #define AIPSTZ_MPR_MPROT3_SHIFT (16U) | ||
913 | /*! MPROT3 | ||
914 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute. | ||
915 | * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access. | ||
916 | * 0bxx0x..This master is not trusted for write accesses. | ||
917 | * 0bxx1x..This master is trusted for write accesses. | ||
918 | * 0bx0xx..This master is not trusted for read accesses. | ||
919 | * 0bx1xx..This master is trusted for read accesses. | ||
920 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
921 | */ | ||
922 | #define AIPSTZ_MPR_MPROT3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT3_SHIFT)) & AIPSTZ_MPR_MPROT3_MASK) | ||
923 | #define AIPSTZ_MPR_MPROT2_MASK (0xF00000U) | ||
924 | #define AIPSTZ_MPR_MPROT2_SHIFT (20U) | ||
925 | /*! MPROT2 | ||
926 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute. | ||
927 | * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access. | ||
928 | * 0bxx0x..This master is not trusted for write accesses. | ||
929 | * 0bxx1x..This master is trusted for write accesses. | ||
930 | * 0bx0xx..This master is not trusted for read accesses. | ||
931 | * 0bx1xx..This master is trusted for read accesses. | ||
932 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
933 | */ | ||
934 | #define AIPSTZ_MPR_MPROT2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT2_SHIFT)) & AIPSTZ_MPR_MPROT2_MASK) | ||
935 | #define AIPSTZ_MPR_MPROT1_MASK (0xF000000U) | ||
936 | #define AIPSTZ_MPR_MPROT1_SHIFT (24U) | ||
937 | /*! MPROT1 | ||
938 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute. | ||
939 | * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access. | ||
940 | * 0bxx0x..This master is not trusted for write accesses. | ||
941 | * 0bxx1x..This master is trusted for write accesses. | ||
942 | * 0bx0xx..This master is not trusted for read accesses. | ||
943 | * 0bx1xx..This master is trusted for read accesses. | ||
944 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
945 | */ | ||
946 | #define AIPSTZ_MPR_MPROT1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT1_SHIFT)) & AIPSTZ_MPR_MPROT1_MASK) | ||
947 | #define AIPSTZ_MPR_MPROT0_MASK (0xF0000000U) | ||
948 | #define AIPSTZ_MPR_MPROT0_SHIFT (28U) | ||
949 | /*! MPROT0 | ||
950 | * 0bxxx0..Accesses from this master are forced to user-mode (ips_supervisor_access is forced to zero) regardless of the hprot[1] access attribute. | ||
951 | * 0bxxx1..Accesses from this master are not forced to user-mode. The hprot[1] access attribute is used directly to determine ips_supervisor_access. | ||
952 | * 0bxx0x..This master is not trusted for write accesses. | ||
953 | * 0bxx1x..This master is trusted for write accesses. | ||
954 | * 0bx0xx..This master is not trusted for read accesses. | ||
955 | * 0bx1xx..This master is trusted for read accesses. | ||
956 | * 0b1xxx..Write accesses from this master are allowed to be buffered | ||
957 | */ | ||
958 | #define AIPSTZ_MPR_MPROT0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_MPR_MPROT0_SHIFT)) & AIPSTZ_MPR_MPROT0_MASK) | ||
959 | /*! @} */ | ||
960 | |||
961 | /*! @name OPACR - Off-Platform Peripheral Access Control Registers */ | ||
962 | /*! @{ */ | ||
963 | #define AIPSTZ_OPACR_OPAC7_MASK (0xFU) | ||
964 | #define AIPSTZ_OPACR_OPAC7_SHIFT (0U) | ||
965 | /*! OPAC7 | ||
966 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
967 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
968 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
969 | * 0bxx0x..This peripheral allows write accesses. | ||
970 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
971 | * error response and no peripheral access is initiated on the IPS bus. | ||
972 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
973 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
974 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
975 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
976 | * on the IPS bus. | ||
977 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
978 | */ | ||
979 | #define AIPSTZ_OPACR_OPAC7(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC7_SHIFT)) & AIPSTZ_OPACR_OPAC7_MASK) | ||
980 | #define AIPSTZ_OPACR_OPAC6_MASK (0xF0U) | ||
981 | #define AIPSTZ_OPACR_OPAC6_SHIFT (4U) | ||
982 | /*! OPAC6 | ||
983 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
984 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
985 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
986 | * 0bxx0x..This peripheral allows write accesses. | ||
987 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
988 | * error response and no peripheral access is initiated on the IPS bus. | ||
989 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
990 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
991 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
992 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
993 | * on the IPS bus. | ||
994 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
995 | */ | ||
996 | #define AIPSTZ_OPACR_OPAC6(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC6_SHIFT)) & AIPSTZ_OPACR_OPAC6_MASK) | ||
997 | #define AIPSTZ_OPACR_OPAC5_MASK (0xF00U) | ||
998 | #define AIPSTZ_OPACR_OPAC5_SHIFT (8U) | ||
999 | /*! OPAC5 | ||
1000 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1001 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1002 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1003 | * 0bxx0x..This peripheral allows write accesses. | ||
1004 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1005 | * error response and no peripheral access is initiated on the IPS bus. | ||
1006 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1007 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1008 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1009 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1010 | * on the IPS bus. | ||
1011 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1012 | */ | ||
1013 | #define AIPSTZ_OPACR_OPAC5(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC5_SHIFT)) & AIPSTZ_OPACR_OPAC5_MASK) | ||
1014 | #define AIPSTZ_OPACR_OPAC4_MASK (0xF000U) | ||
1015 | #define AIPSTZ_OPACR_OPAC4_SHIFT (12U) | ||
1016 | /*! OPAC4 | ||
1017 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1018 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1019 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1020 | * 0bxx0x..This peripheral allows write accesses. | ||
1021 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1022 | * error response and no peripheral access is initiated on the IPS bus. | ||
1023 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1024 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1025 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1026 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1027 | * on the IPS bus. | ||
1028 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1029 | */ | ||
1030 | #define AIPSTZ_OPACR_OPAC4(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC4_SHIFT)) & AIPSTZ_OPACR_OPAC4_MASK) | ||
1031 | #define AIPSTZ_OPACR_OPAC3_MASK (0xF0000U) | ||
1032 | #define AIPSTZ_OPACR_OPAC3_SHIFT (16U) | ||
1033 | /*! OPAC3 | ||
1034 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1035 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1036 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1037 | * 0bxx0x..This peripheral allows write accesses. | ||
1038 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1039 | * error response and no peripheral access is initiated on the IPS bus. | ||
1040 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1041 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1042 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1043 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1044 | * on the IPS bus. | ||
1045 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1046 | */ | ||
1047 | #define AIPSTZ_OPACR_OPAC3(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC3_SHIFT)) & AIPSTZ_OPACR_OPAC3_MASK) | ||
1048 | #define AIPSTZ_OPACR_OPAC2_MASK (0xF00000U) | ||
1049 | #define AIPSTZ_OPACR_OPAC2_SHIFT (20U) | ||
1050 | /*! OPAC2 | ||
1051 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1052 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1053 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1054 | * 0bxx0x..This peripheral allows write accesses. | ||
1055 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1056 | * error response and no peripheral access is initiated on the IPS bus. | ||
1057 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1058 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1059 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1060 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1061 | * on the IPS bus. | ||
1062 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1063 | */ | ||
1064 | #define AIPSTZ_OPACR_OPAC2(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC2_SHIFT)) & AIPSTZ_OPACR_OPAC2_MASK) | ||
1065 | #define AIPSTZ_OPACR_OPAC1_MASK (0xF000000U) | ||
1066 | #define AIPSTZ_OPACR_OPAC1_SHIFT (24U) | ||
1067 | /*! OPAC1 | ||
1068 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1069 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1070 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1071 | * 0bxx0x..This peripheral allows write accesses. | ||
1072 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1073 | * error response and no peripheral access is initiated on the IPS bus. | ||
1074 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1075 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1076 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1077 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1078 | * on the IPS bus. | ||
1079 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1080 | */ | ||
1081 | #define AIPSTZ_OPACR_OPAC1(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC1_SHIFT)) & AIPSTZ_OPACR_OPAC1_MASK) | ||
1082 | #define AIPSTZ_OPACR_OPAC0_MASK (0xF0000000U) | ||
1083 | #define AIPSTZ_OPACR_OPAC0_SHIFT (28U) | ||
1084 | /*! OPAC0 | ||
1085 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1086 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1087 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1088 | * 0bxx0x..This peripheral allows write accesses. | ||
1089 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1090 | * error response and no peripheral access is initiated on the IPS bus. | ||
1091 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1092 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1093 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1094 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1095 | * on the IPS bus. | ||
1096 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1097 | */ | ||
1098 | #define AIPSTZ_OPACR_OPAC0(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR_OPAC0_SHIFT)) & AIPSTZ_OPACR_OPAC0_MASK) | ||
1099 | /*! @} */ | ||
1100 | |||
1101 | /*! @name OPACR1 - Off-Platform Peripheral Access Control Registers */ | ||
1102 | /*! @{ */ | ||
1103 | #define AIPSTZ_OPACR1_OPAC15_MASK (0xFU) | ||
1104 | #define AIPSTZ_OPACR1_OPAC15_SHIFT (0U) | ||
1105 | /*! OPAC15 | ||
1106 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1107 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1108 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1109 | * 0bxx0x..This peripheral allows write accesses. | ||
1110 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1111 | * error response and no peripheral access is initiated on the IPS bus. | ||
1112 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1113 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1114 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1115 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1116 | * on the IPS bus. | ||
1117 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1118 | */ | ||
1119 | #define AIPSTZ_OPACR1_OPAC15(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC15_SHIFT)) & AIPSTZ_OPACR1_OPAC15_MASK) | ||
1120 | #define AIPSTZ_OPACR1_OPAC14_MASK (0xF0U) | ||
1121 | #define AIPSTZ_OPACR1_OPAC14_SHIFT (4U) | ||
1122 | /*! OPAC14 | ||
1123 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1124 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1125 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1126 | * 0bxx0x..This peripheral allows write accesses. | ||
1127 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1128 | * error response and no peripheral access is initiated on the IPS bus. | ||
1129 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1130 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1131 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1132 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1133 | * on the IPS bus. | ||
1134 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1135 | */ | ||
1136 | #define AIPSTZ_OPACR1_OPAC14(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC14_SHIFT)) & AIPSTZ_OPACR1_OPAC14_MASK) | ||
1137 | #define AIPSTZ_OPACR1_OPAC13_MASK (0xF00U) | ||
1138 | #define AIPSTZ_OPACR1_OPAC13_SHIFT (8U) | ||
1139 | /*! OPAC13 | ||
1140 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1141 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1142 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1143 | * 0bxx0x..This peripheral allows write accesses. | ||
1144 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1145 | * error response and no peripheral access is initiated on the IPS bus. | ||
1146 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1147 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1148 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1149 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1150 | * on the IPS bus. | ||
1151 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1152 | */ | ||
1153 | #define AIPSTZ_OPACR1_OPAC13(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC13_SHIFT)) & AIPSTZ_OPACR1_OPAC13_MASK) | ||
1154 | #define AIPSTZ_OPACR1_OPAC12_MASK (0xF000U) | ||
1155 | #define AIPSTZ_OPACR1_OPAC12_SHIFT (12U) | ||
1156 | /*! OPAC12 | ||
1157 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1158 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1159 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1160 | * 0bxx0x..This peripheral allows write accesses. | ||
1161 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1162 | * error response and no peripheral access is initiated on the IPS bus. | ||
1163 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1164 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1165 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1166 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1167 | * on the IPS bus. | ||
1168 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1169 | */ | ||
1170 | #define AIPSTZ_OPACR1_OPAC12(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC12_SHIFT)) & AIPSTZ_OPACR1_OPAC12_MASK) | ||
1171 | #define AIPSTZ_OPACR1_OPAC11_MASK (0xF0000U) | ||
1172 | #define AIPSTZ_OPACR1_OPAC11_SHIFT (16U) | ||
1173 | /*! OPAC11 | ||
1174 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1175 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1176 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1177 | * 0bxx0x..This peripheral allows write accesses. | ||
1178 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1179 | * error response and no peripheral access is initiated on the IPS bus. | ||
1180 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1181 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1182 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1183 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1184 | * on the IPS bus. | ||
1185 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1186 | */ | ||
1187 | #define AIPSTZ_OPACR1_OPAC11(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC11_SHIFT)) & AIPSTZ_OPACR1_OPAC11_MASK) | ||
1188 | #define AIPSTZ_OPACR1_OPAC10_MASK (0xF00000U) | ||
1189 | #define AIPSTZ_OPACR1_OPAC10_SHIFT (20U) | ||
1190 | /*! OPAC10 | ||
1191 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1192 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1193 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1194 | * 0bxx0x..This peripheral allows write accesses. | ||
1195 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1196 | * error response and no peripheral access is initiated on the IPS bus. | ||
1197 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1198 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1199 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1200 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1201 | * on the IPS bus. | ||
1202 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1203 | */ | ||
1204 | #define AIPSTZ_OPACR1_OPAC10(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC10_SHIFT)) & AIPSTZ_OPACR1_OPAC10_MASK) | ||
1205 | #define AIPSTZ_OPACR1_OPAC9_MASK (0xF000000U) | ||
1206 | #define AIPSTZ_OPACR1_OPAC9_SHIFT (24U) | ||
1207 | /*! OPAC9 | ||
1208 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1209 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1210 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1211 | * 0bxx0x..This peripheral allows write accesses. | ||
1212 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1213 | * error response and no peripheral access is initiated on the IPS bus. | ||
1214 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1215 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1216 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1217 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1218 | * on the IPS bus. | ||
1219 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1220 | */ | ||
1221 | #define AIPSTZ_OPACR1_OPAC9(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC9_SHIFT)) & AIPSTZ_OPACR1_OPAC9_MASK) | ||
1222 | #define AIPSTZ_OPACR1_OPAC8_MASK (0xF0000000U) | ||
1223 | #define AIPSTZ_OPACR1_OPAC8_SHIFT (28U) | ||
1224 | /*! OPAC8 | ||
1225 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1226 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1227 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1228 | * 0bxx0x..This peripheral allows write accesses. | ||
1229 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1230 | * error response and no peripheral access is initiated on the IPS bus. | ||
1231 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1232 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1233 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1234 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1235 | * on the IPS bus. | ||
1236 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1237 | */ | ||
1238 | #define AIPSTZ_OPACR1_OPAC8(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR1_OPAC8_SHIFT)) & AIPSTZ_OPACR1_OPAC8_MASK) | ||
1239 | /*! @} */ | ||
1240 | |||
1241 | /*! @name OPACR2 - Off-Platform Peripheral Access Control Registers */ | ||
1242 | /*! @{ */ | ||
1243 | #define AIPSTZ_OPACR2_OPAC23_MASK (0xFU) | ||
1244 | #define AIPSTZ_OPACR2_OPAC23_SHIFT (0U) | ||
1245 | /*! OPAC23 | ||
1246 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1247 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1248 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1249 | * 0bxx0x..This peripheral allows write accesses. | ||
1250 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1251 | * error response and no peripheral access is initiated on the IPS bus. | ||
1252 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1253 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1254 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1255 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1256 | * on the IPS bus. | ||
1257 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1258 | */ | ||
1259 | #define AIPSTZ_OPACR2_OPAC23(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC23_SHIFT)) & AIPSTZ_OPACR2_OPAC23_MASK) | ||
1260 | #define AIPSTZ_OPACR2_OPAC22_MASK (0xF0U) | ||
1261 | #define AIPSTZ_OPACR2_OPAC22_SHIFT (4U) | ||
1262 | /*! OPAC22 | ||
1263 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1264 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1265 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1266 | * 0bxx0x..This peripheral allows write accesses. | ||
1267 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1268 | * error response and no peripheral access is initiated on the IPS bus. | ||
1269 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1270 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1271 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1272 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1273 | * on the IPS bus. | ||
1274 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1275 | */ | ||
1276 | #define AIPSTZ_OPACR2_OPAC22(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC22_SHIFT)) & AIPSTZ_OPACR2_OPAC22_MASK) | ||
1277 | #define AIPSTZ_OPACR2_OPAC21_MASK (0xF00U) | ||
1278 | #define AIPSTZ_OPACR2_OPAC21_SHIFT (8U) | ||
1279 | /*! OPAC21 | ||
1280 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1281 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1282 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1283 | * 0bxx0x..This peripheral allows write accesses. | ||
1284 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1285 | * error response and no peripheral access is initiated on the IPS bus. | ||
1286 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1287 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1288 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1289 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1290 | * on the IPS bus. | ||
1291 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1292 | */ | ||
1293 | #define AIPSTZ_OPACR2_OPAC21(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC21_SHIFT)) & AIPSTZ_OPACR2_OPAC21_MASK) | ||
1294 | #define AIPSTZ_OPACR2_OPAC20_MASK (0xF000U) | ||
1295 | #define AIPSTZ_OPACR2_OPAC20_SHIFT (12U) | ||
1296 | /*! OPAC20 | ||
1297 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1298 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1299 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1300 | * 0bxx0x..This peripheral allows write accesses. | ||
1301 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1302 | * error response and no peripheral access is initiated on the IPS bus. | ||
1303 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1304 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1305 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1306 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1307 | * on the IPS bus. | ||
1308 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1309 | */ | ||
1310 | #define AIPSTZ_OPACR2_OPAC20(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC20_SHIFT)) & AIPSTZ_OPACR2_OPAC20_MASK) | ||
1311 | #define AIPSTZ_OPACR2_OPAC19_MASK (0xF0000U) | ||
1312 | #define AIPSTZ_OPACR2_OPAC19_SHIFT (16U) | ||
1313 | /*! OPAC19 | ||
1314 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1315 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1316 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1317 | * 0bxx0x..This peripheral allows write accesses. | ||
1318 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1319 | * error response and no peripheral access is initiated on the IPS bus. | ||
1320 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1321 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1322 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1323 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1324 | * on the IPS bus. | ||
1325 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1326 | */ | ||
1327 | #define AIPSTZ_OPACR2_OPAC19(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC19_SHIFT)) & AIPSTZ_OPACR2_OPAC19_MASK) | ||
1328 | #define AIPSTZ_OPACR2_OPAC18_MASK (0xF00000U) | ||
1329 | #define AIPSTZ_OPACR2_OPAC18_SHIFT (20U) | ||
1330 | /*! OPAC18 | ||
1331 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1332 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1333 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1334 | * 0bxx0x..This peripheral allows write accesses. | ||
1335 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1336 | * error response and no peripheral access is initiated on the IPS bus. | ||
1337 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1338 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1339 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1340 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1341 | * on the IPS bus. | ||
1342 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1343 | */ | ||
1344 | #define AIPSTZ_OPACR2_OPAC18(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC18_SHIFT)) & AIPSTZ_OPACR2_OPAC18_MASK) | ||
1345 | #define AIPSTZ_OPACR2_OPAC17_MASK (0xF000000U) | ||
1346 | #define AIPSTZ_OPACR2_OPAC17_SHIFT (24U) | ||
1347 | /*! OPAC17 | ||
1348 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1349 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1350 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1351 | * 0bxx0x..This peripheral allows write accesses. | ||
1352 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1353 | * error response and no peripheral access is initiated on the IPS bus. | ||
1354 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1355 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1356 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1357 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1358 | * on the IPS bus. | ||
1359 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1360 | */ | ||
1361 | #define AIPSTZ_OPACR2_OPAC17(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC17_SHIFT)) & AIPSTZ_OPACR2_OPAC17_MASK) | ||
1362 | #define AIPSTZ_OPACR2_OPAC16_MASK (0xF0000000U) | ||
1363 | #define AIPSTZ_OPACR2_OPAC16_SHIFT (28U) | ||
1364 | /*! OPAC16 | ||
1365 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1366 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1367 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1368 | * 0bxx0x..This peripheral allows write accesses. | ||
1369 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1370 | * error response and no peripheral access is initiated on the IPS bus. | ||
1371 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1372 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1373 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1374 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1375 | * on the IPS bus. | ||
1376 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1377 | */ | ||
1378 | #define AIPSTZ_OPACR2_OPAC16(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR2_OPAC16_SHIFT)) & AIPSTZ_OPACR2_OPAC16_MASK) | ||
1379 | /*! @} */ | ||
1380 | |||
1381 | /*! @name OPACR3 - Off-Platform Peripheral Access Control Registers */ | ||
1382 | /*! @{ */ | ||
1383 | #define AIPSTZ_OPACR3_OPAC31_MASK (0xFU) | ||
1384 | #define AIPSTZ_OPACR3_OPAC31_SHIFT (0U) | ||
1385 | /*! OPAC31 | ||
1386 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1387 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1388 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1389 | * 0bxx0x..This peripheral allows write accesses. | ||
1390 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1391 | * error response and no peripheral access is initiated on the IPS bus. | ||
1392 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1393 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1394 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1395 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1396 | * on the IPS bus. | ||
1397 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1398 | */ | ||
1399 | #define AIPSTZ_OPACR3_OPAC31(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC31_SHIFT)) & AIPSTZ_OPACR3_OPAC31_MASK) | ||
1400 | #define AIPSTZ_OPACR3_OPAC30_MASK (0xF0U) | ||
1401 | #define AIPSTZ_OPACR3_OPAC30_SHIFT (4U) | ||
1402 | /*! OPAC30 | ||
1403 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1404 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1405 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1406 | * 0bxx0x..This peripheral allows write accesses. | ||
1407 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1408 | * error response and no peripheral access is initiated on the IPS bus. | ||
1409 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1410 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1411 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1412 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1413 | * on the IPS bus. | ||
1414 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1415 | */ | ||
1416 | #define AIPSTZ_OPACR3_OPAC30(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC30_SHIFT)) & AIPSTZ_OPACR3_OPAC30_MASK) | ||
1417 | #define AIPSTZ_OPACR3_OPAC29_MASK (0xF00U) | ||
1418 | #define AIPSTZ_OPACR3_OPAC29_SHIFT (8U) | ||
1419 | /*! OPAC29 | ||
1420 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1421 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1422 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1423 | * 0bxx0x..This peripheral allows write accesses. | ||
1424 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1425 | * error response and no peripheral access is initiated on the IPS bus. | ||
1426 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1427 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1428 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1429 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1430 | * on the IPS bus. | ||
1431 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1432 | */ | ||
1433 | #define AIPSTZ_OPACR3_OPAC29(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC29_SHIFT)) & AIPSTZ_OPACR3_OPAC29_MASK) | ||
1434 | #define AIPSTZ_OPACR3_OPAC28_MASK (0xF000U) | ||
1435 | #define AIPSTZ_OPACR3_OPAC28_SHIFT (12U) | ||
1436 | /*! OPAC28 | ||
1437 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1438 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1439 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1440 | * 0bxx0x..This peripheral allows write accesses. | ||
1441 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1442 | * error response and no peripheral access is initiated on the IPS bus. | ||
1443 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1444 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1445 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1446 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1447 | * on the IPS bus. | ||
1448 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1449 | */ | ||
1450 | #define AIPSTZ_OPACR3_OPAC28(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC28_SHIFT)) & AIPSTZ_OPACR3_OPAC28_MASK) | ||
1451 | #define AIPSTZ_OPACR3_OPAC27_MASK (0xF0000U) | ||
1452 | #define AIPSTZ_OPACR3_OPAC27_SHIFT (16U) | ||
1453 | /*! OPAC27 | ||
1454 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1455 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1456 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1457 | * 0bxx0x..This peripheral allows write accesses. | ||
1458 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1459 | * error response and no peripheral access is initiated on the IPS bus. | ||
1460 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1461 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1462 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1463 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1464 | * on the IPS bus. | ||
1465 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1466 | */ | ||
1467 | #define AIPSTZ_OPACR3_OPAC27(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC27_SHIFT)) & AIPSTZ_OPACR3_OPAC27_MASK) | ||
1468 | #define AIPSTZ_OPACR3_OPAC26_MASK (0xF00000U) | ||
1469 | #define AIPSTZ_OPACR3_OPAC26_SHIFT (20U) | ||
1470 | /*! OPAC26 | ||
1471 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1472 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1473 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1474 | * 0bxx0x..This peripheral allows write accesses. | ||
1475 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1476 | * error response and no peripheral access is initiated on the IPS bus. | ||
1477 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1478 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1479 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1480 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1481 | * on the IPS bus. | ||
1482 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1483 | */ | ||
1484 | #define AIPSTZ_OPACR3_OPAC26(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC26_SHIFT)) & AIPSTZ_OPACR3_OPAC26_MASK) | ||
1485 | #define AIPSTZ_OPACR3_OPAC25_MASK (0xF000000U) | ||
1486 | #define AIPSTZ_OPACR3_OPAC25_SHIFT (24U) | ||
1487 | /*! OPAC25 | ||
1488 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1489 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1490 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1491 | * 0bxx0x..This peripheral allows write accesses. | ||
1492 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1493 | * error response and no peripheral access is initiated on the IPS bus. | ||
1494 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1495 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1496 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1497 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1498 | * on the IPS bus. | ||
1499 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1500 | */ | ||
1501 | #define AIPSTZ_OPACR3_OPAC25(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC25_SHIFT)) & AIPSTZ_OPACR3_OPAC25_MASK) | ||
1502 | #define AIPSTZ_OPACR3_OPAC24_MASK (0xF0000000U) | ||
1503 | #define AIPSTZ_OPACR3_OPAC24_SHIFT (28U) | ||
1504 | /*! OPAC24 | ||
1505 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1506 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1507 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1508 | * 0bxx0x..This peripheral allows write accesses. | ||
1509 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1510 | * error response and no peripheral access is initiated on the IPS bus. | ||
1511 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1512 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1513 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1514 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1515 | * on the IPS bus. | ||
1516 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1517 | */ | ||
1518 | #define AIPSTZ_OPACR3_OPAC24(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR3_OPAC24_SHIFT)) & AIPSTZ_OPACR3_OPAC24_MASK) | ||
1519 | /*! @} */ | ||
1520 | |||
1521 | /*! @name OPACR4 - Off-Platform Peripheral Access Control Registers */ | ||
1522 | /*! @{ */ | ||
1523 | #define AIPSTZ_OPACR4_OPAC33_MASK (0xF000000U) | ||
1524 | #define AIPSTZ_OPACR4_OPAC33_SHIFT (24U) | ||
1525 | /*! OPAC33 | ||
1526 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1527 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1528 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1529 | * 0bxx0x..This peripheral allows write accesses. | ||
1530 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1531 | * error response and no peripheral access is initiated on the IPS bus. | ||
1532 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1533 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1534 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1535 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1536 | * on the IPS bus. | ||
1537 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1538 | */ | ||
1539 | #define AIPSTZ_OPACR4_OPAC33(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC33_SHIFT)) & AIPSTZ_OPACR4_OPAC33_MASK) | ||
1540 | #define AIPSTZ_OPACR4_OPAC32_MASK (0xF0000000U) | ||
1541 | #define AIPSTZ_OPACR4_OPAC32_SHIFT (28U) | ||
1542 | /*! OPAC32 | ||
1543 | * 0bxxx0..Accesses from an untrusted master are allowed. | ||
1544 | * 0bxxx1..Accesses from an untrusted master are not allowed. If an access is attempted by an untrusted master, | ||
1545 | * the access is terminated with an error response and no peripheral access is initiated on the IPS bus. | ||
1546 | * 0bxx0x..This peripheral allows write accesses. | ||
1547 | * 0bxx1x..This peripheral is write protected. If a write access is attempted, the access is terminated with an | ||
1548 | * error response and no peripheral access is initiated on the IPS bus. | ||
1549 | * 0bx0xx..This peripheral does not require supervisor privilege level for accesses. | ||
1550 | * 0bx1xx..This peripheral requires supervisor privilege level for accesses. The master privilege level must | ||
1551 | * indicate supervisor via the hprot[1] access attribute, and the MPROTx[MPL] control bit for the master must | ||
1552 | * be set. If not, the access is terminated with an error response and no peripheral access is initiated | ||
1553 | * on the IPS bus. | ||
1554 | * 0b1xxx..Write accesses to this peripheral are allowed to be buffered by the AIPSTZ. | ||
1555 | */ | ||
1556 | #define AIPSTZ_OPACR4_OPAC32(x) (((uint32_t)(((uint32_t)(x)) << AIPSTZ_OPACR4_OPAC32_SHIFT)) & AIPSTZ_OPACR4_OPAC32_MASK) | ||
1557 | /*! @} */ | ||
1558 | |||
1559 | |||
1560 | /*! | ||
1561 | * @} | ||
1562 | */ /* end of group AIPSTZ_Register_Masks */ | ||
1563 | |||
1564 | |||
1565 | /* AIPSTZ - Peripheral instance base addresses */ | ||
1566 | /** Peripheral AIPSTZ base address */ | ||
1567 | #define AIPSTZ_BASE (0x30000000u) | ||
1568 | /** Peripheral AIPSTZ base pointer */ | ||
1569 | #define AIPSTZ ((AIPSTZ_Type *)AIPSTZ_BASE) | ||
1570 | /** Array initializer of AIPSTZ peripheral base addresses */ | ||
1571 | #define AIPSTZ_BASE_ADDRS { AIPSTZ_BASE } | ||
1572 | /** Array initializer of AIPSTZ peripheral base pointers */ | ||
1573 | #define AIPSTZ_BASE_PTRS { AIPSTZ } | ||
1574 | |||
1575 | /*! | ||
1576 | * @} | ||
1577 | */ /* end of group AIPSTZ_Peripheral_Access_Layer */ | ||
1578 | |||
1579 | |||
1580 | /* ---------------------------------------------------------------------------- | ||
1581 | -- APBH Peripheral Access Layer | ||
1582 | ---------------------------------------------------------------------------- */ | ||
1583 | |||
1584 | /*! | ||
1585 | * @addtogroup APBH_Peripheral_Access_Layer APBH Peripheral Access Layer | ||
1586 | * @{ | ||
1587 | */ | ||
1588 | |||
1589 | /** APBH - Register Layout Typedef */ | ||
1590 | typedef struct { | ||
1591 | __IO uint32_t CTRL0; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x0 */ | ||
1592 | __IO uint32_t CTRL0_SET; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x4 */ | ||
1593 | __IO uint32_t CTRL0_CLR; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0x8 */ | ||
1594 | __IO uint32_t CTRL0_TOG; /**< AHB to APBH Bridge Control and Status Register 0, offset: 0xC */ | ||
1595 | __IO uint32_t CTRL1; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x10 */ | ||
1596 | __IO uint32_t CTRL1_SET; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x14 */ | ||
1597 | __IO uint32_t CTRL1_CLR; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x18 */ | ||
1598 | __IO uint32_t CTRL1_TOG; /**< AHB to APBH Bridge Control and Status Register 1, offset: 0x1C */ | ||
1599 | __IO uint32_t CTRL2; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x20 */ | ||
1600 | __IO uint32_t CTRL2_SET; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x24 */ | ||
1601 | __IO uint32_t CTRL2_CLR; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x28 */ | ||
1602 | __IO uint32_t CTRL2_TOG; /**< AHB to APBH Bridge Control and Status Register 2, offset: 0x2C */ | ||
1603 | __IO uint32_t CHANNEL_CTRL; /**< AHB to APBH Bridge Channel Register, offset: 0x30 */ | ||
1604 | __IO uint32_t CHANNEL_CTRL_SET; /**< AHB to APBH Bridge Channel Register, offset: 0x34 */ | ||
1605 | __IO uint32_t CHANNEL_CTRL_CLR; /**< AHB to APBH Bridge Channel Register, offset: 0x38 */ | ||
1606 | __IO uint32_t CHANNEL_CTRL_TOG; /**< AHB to APBH Bridge Channel Register, offset: 0x3C */ | ||
1607 | uint32_t DEVSEL; /**< AHB to APBH DMA Device Assignment Register, offset: 0x40 */ | ||
1608 | uint8_t RESERVED_0[12]; | ||
1609 | __IO uint32_t DMA_BURST_SIZE; /**< AHB to APBH DMA burst size, offset: 0x50 */ | ||
1610 | uint8_t RESERVED_1[12]; | ||
1611 | __IO uint32_t DEBUGr; /**< AHB to APBH DMA Debug Register, offset: 0x60 */ | ||
1612 | uint8_t RESERVED_2[156]; | ||
1613 | struct { /* offset: 0x100, array step: 0x70 */ | ||
1614 | __I uint32_t CH_CURCMDAR; /**< APBH DMA Channel n Current Command Address Register, array offset: 0x100, array step: 0x70 */ | ||
1615 | uint8_t RESERVED_0[12]; | ||
1616 | __IO uint32_t CH_NXTCMDAR; /**< APBH DMA Channel n Next Command Address Register, array offset: 0x110, array step: 0x70 */ | ||
1617 | uint8_t RESERVED_1[12]; | ||
1618 | __I uint32_t CH_CMD; /**< APBH DMA Channel n Command Register, array offset: 0x120, array step: 0x70 */ | ||
1619 | uint8_t RESERVED_2[12]; | ||
1620 | __I uint32_t CH_BAR; /**< APBH DMA Channel n Buffer Address Register, array offset: 0x130, array step: 0x70 */ | ||
1621 | uint8_t RESERVED_3[12]; | ||
1622 | __IO uint32_t CH_SEMA; /**< APBH DMA Channel n Semaphore Register, array offset: 0x140, array step: 0x70 */ | ||
1623 | uint8_t RESERVED_4[12]; | ||
1624 | __I uint32_t CH_DEBUG1; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x150, array step: 0x70 */ | ||
1625 | uint8_t RESERVED_5[12]; | ||
1626 | __I uint32_t CH_DEBUG2; /**< AHB to APBH DMA Channel n Debug Information, array offset: 0x160, array step: 0x70 */ | ||
1627 | uint8_t RESERVED_6[12]; | ||
1628 | } CH_CFGn[16]; | ||
1629 | __I uint32_t VERSION; /**< APBH Bridge Version Register, offset: 0x800 */ | ||
1630 | } APBH_Type; | ||
1631 | |||
1632 | /* ---------------------------------------------------------------------------- | ||
1633 | -- APBH Register Masks | ||
1634 | ---------------------------------------------------------------------------- */ | ||
1635 | |||
1636 | /*! | ||
1637 | * @addtogroup APBH_Register_Masks APBH Register Masks | ||
1638 | * @{ | ||
1639 | */ | ||
1640 | |||
1641 | /*! @name CTRL0 - AHB to APBH Bridge Control and Status Register 0 */ | ||
1642 | /*! @{ */ | ||
1643 | #define APBH_CTRL0_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1644 | #define APBH_CTRL0_CLKGATE_CHANNEL_SHIFT (0U) | ||
1645 | /*! CLKGATE_CHANNEL | ||
1646 | * 0b0000000000000001..NAND0 | ||
1647 | * 0b0000000000000010..NAND1 | ||
1648 | * 0b0000000000000100..NAND2 | ||
1649 | * 0b0000000000001000..NAND3 | ||
1650 | * 0b0000000000010000..NAND4 | ||
1651 | * 0b0000000000100000..NAND5 | ||
1652 | * 0b0000000001000000..NAND6 | ||
1653 | * 0b0000000010000000..NAND7 | ||
1654 | * 0b0000000100000000..SSP | ||
1655 | */ | ||
1656 | #define APBH_CTRL0_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLKGATE_CHANNEL_MASK) | ||
1657 | #define APBH_CTRL0_RSVD0_MASK (0xFFF0000U) | ||
1658 | #define APBH_CTRL0_RSVD0_SHIFT (16U) | ||
1659 | #define APBH_CTRL0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_RSVD0_SHIFT)) & APBH_CTRL0_RSVD0_MASK) | ||
1660 | #define APBH_CTRL0_APB_BURST_EN_MASK (0x10000000U) | ||
1661 | #define APBH_CTRL0_APB_BURST_EN_SHIFT (28U) | ||
1662 | #define APBH_CTRL0_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_APB_BURST_EN_SHIFT)) & APBH_CTRL0_APB_BURST_EN_MASK) | ||
1663 | #define APBH_CTRL0_AHB_BURST8_EN_MASK (0x20000000U) | ||
1664 | #define APBH_CTRL0_AHB_BURST8_EN_SHIFT (29U) | ||
1665 | #define APBH_CTRL0_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_AHB_BURST8_EN_MASK) | ||
1666 | #define APBH_CTRL0_CLKGATE_MASK (0x40000000U) | ||
1667 | #define APBH_CTRL0_CLKGATE_SHIFT (30U) | ||
1668 | #define APBH_CTRL0_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLKGATE_SHIFT)) & APBH_CTRL0_CLKGATE_MASK) | ||
1669 | #define APBH_CTRL0_SFTRST_MASK (0x80000000U) | ||
1670 | #define APBH_CTRL0_SFTRST_SHIFT (31U) | ||
1671 | #define APBH_CTRL0_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SFTRST_SHIFT)) & APBH_CTRL0_SFTRST_MASK) | ||
1672 | /*! @} */ | ||
1673 | |||
1674 | /*! @name CTRL0_SET - AHB to APBH Bridge Control and Status Register 0 */ | ||
1675 | /*! @{ */ | ||
1676 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1677 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT (0U) | ||
1678 | /*! CLKGATE_CHANNEL | ||
1679 | * 0b0000000000000001..NAND0 | ||
1680 | * 0b0000000000000010..NAND1 | ||
1681 | * 0b0000000000000100..NAND2 | ||
1682 | * 0b0000000000001000..NAND3 | ||
1683 | * 0b0000000000010000..NAND4 | ||
1684 | * 0b0000000000100000..NAND5 | ||
1685 | * 0b0000000001000000..NAND6 | ||
1686 | * 0b0000000010000000..NAND7 | ||
1687 | * 0b0000000100000000..SSP | ||
1688 | */ | ||
1689 | #define APBH_CTRL0_SET_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_SET_CLKGATE_CHANNEL_MASK) | ||
1690 | #define APBH_CTRL0_SET_RSVD0_MASK (0xFFF0000U) | ||
1691 | #define APBH_CTRL0_SET_RSVD0_SHIFT (16U) | ||
1692 | #define APBH_CTRL0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_RSVD0_SHIFT)) & APBH_CTRL0_SET_RSVD0_MASK) | ||
1693 | #define APBH_CTRL0_SET_APB_BURST_EN_MASK (0x10000000U) | ||
1694 | #define APBH_CTRL0_SET_APB_BURST_EN_SHIFT (28U) | ||
1695 | #define APBH_CTRL0_SET_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_APB_BURST_EN_SHIFT)) & APBH_CTRL0_SET_APB_BURST_EN_MASK) | ||
1696 | #define APBH_CTRL0_SET_AHB_BURST8_EN_MASK (0x20000000U) | ||
1697 | #define APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT (29U) | ||
1698 | #define APBH_CTRL0_SET_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_SET_AHB_BURST8_EN_MASK) | ||
1699 | #define APBH_CTRL0_SET_CLKGATE_MASK (0x40000000U) | ||
1700 | #define APBH_CTRL0_SET_CLKGATE_SHIFT (30U) | ||
1701 | #define APBH_CTRL0_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_CLKGATE_SHIFT)) & APBH_CTRL0_SET_CLKGATE_MASK) | ||
1702 | #define APBH_CTRL0_SET_SFTRST_MASK (0x80000000U) | ||
1703 | #define APBH_CTRL0_SET_SFTRST_SHIFT (31U) | ||
1704 | #define APBH_CTRL0_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_SET_SFTRST_SHIFT)) & APBH_CTRL0_SET_SFTRST_MASK) | ||
1705 | /*! @} */ | ||
1706 | |||
1707 | /*! @name CTRL0_CLR - AHB to APBH Bridge Control and Status Register 0 */ | ||
1708 | /*! @{ */ | ||
1709 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1710 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT (0U) | ||
1711 | /*! CLKGATE_CHANNEL | ||
1712 | * 0b0000000000000001..NAND0 | ||
1713 | * 0b0000000000000010..NAND1 | ||
1714 | * 0b0000000000000100..NAND2 | ||
1715 | * 0b0000000000001000..NAND3 | ||
1716 | * 0b0000000000010000..NAND4 | ||
1717 | * 0b0000000000100000..NAND5 | ||
1718 | * 0b0000000001000000..NAND6 | ||
1719 | * 0b0000000010000000..NAND7 | ||
1720 | * 0b0000000100000000..SSP | ||
1721 | */ | ||
1722 | #define APBH_CTRL0_CLR_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_CHANNEL_MASK) | ||
1723 | #define APBH_CTRL0_CLR_RSVD0_MASK (0xFFF0000U) | ||
1724 | #define APBH_CTRL0_CLR_RSVD0_SHIFT (16U) | ||
1725 | #define APBH_CTRL0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_RSVD0_SHIFT)) & APBH_CTRL0_CLR_RSVD0_MASK) | ||
1726 | #define APBH_CTRL0_CLR_APB_BURST_EN_MASK (0x10000000U) | ||
1727 | #define APBH_CTRL0_CLR_APB_BURST_EN_SHIFT (28U) | ||
1728 | #define APBH_CTRL0_CLR_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_APB_BURST_EN_SHIFT)) & APBH_CTRL0_CLR_APB_BURST_EN_MASK) | ||
1729 | #define APBH_CTRL0_CLR_AHB_BURST8_EN_MASK (0x20000000U) | ||
1730 | #define APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT (29U) | ||
1731 | #define APBH_CTRL0_CLR_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_CLR_AHB_BURST8_EN_MASK) | ||
1732 | #define APBH_CTRL0_CLR_CLKGATE_MASK (0x40000000U) | ||
1733 | #define APBH_CTRL0_CLR_CLKGATE_SHIFT (30U) | ||
1734 | #define APBH_CTRL0_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_CLKGATE_SHIFT)) & APBH_CTRL0_CLR_CLKGATE_MASK) | ||
1735 | #define APBH_CTRL0_CLR_SFTRST_MASK (0x80000000U) | ||
1736 | #define APBH_CTRL0_CLR_SFTRST_SHIFT (31U) | ||
1737 | #define APBH_CTRL0_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_CLR_SFTRST_SHIFT)) & APBH_CTRL0_CLR_SFTRST_MASK) | ||
1738 | /*! @} */ | ||
1739 | |||
1740 | /*! @name CTRL0_TOG - AHB to APBH Bridge Control and Status Register 0 */ | ||
1741 | /*! @{ */ | ||
1742 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK (0xFFFFU) | ||
1743 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT (0U) | ||
1744 | /*! CLKGATE_CHANNEL | ||
1745 | * 0b0000000000000001..NAND0 | ||
1746 | * 0b0000000000000010..NAND1 | ||
1747 | * 0b0000000000000100..NAND2 | ||
1748 | * 0b0000000000001000..NAND3 | ||
1749 | * 0b0000000000010000..NAND4 | ||
1750 | * 0b0000000000100000..NAND5 | ||
1751 | * 0b0000000001000000..NAND6 | ||
1752 | * 0b0000000010000000..NAND7 | ||
1753 | * 0b0000000100000000..SSP | ||
1754 | */ | ||
1755 | #define APBH_CTRL0_TOG_CLKGATE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_CHANNEL_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_CHANNEL_MASK) | ||
1756 | #define APBH_CTRL0_TOG_RSVD0_MASK (0xFFF0000U) | ||
1757 | #define APBH_CTRL0_TOG_RSVD0_SHIFT (16U) | ||
1758 | #define APBH_CTRL0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_RSVD0_SHIFT)) & APBH_CTRL0_TOG_RSVD0_MASK) | ||
1759 | #define APBH_CTRL0_TOG_APB_BURST_EN_MASK (0x10000000U) | ||
1760 | #define APBH_CTRL0_TOG_APB_BURST_EN_SHIFT (28U) | ||
1761 | #define APBH_CTRL0_TOG_APB_BURST_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_APB_BURST_EN_SHIFT)) & APBH_CTRL0_TOG_APB_BURST_EN_MASK) | ||
1762 | #define APBH_CTRL0_TOG_AHB_BURST8_EN_MASK (0x20000000U) | ||
1763 | #define APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT (29U) | ||
1764 | #define APBH_CTRL0_TOG_AHB_BURST8_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_AHB_BURST8_EN_SHIFT)) & APBH_CTRL0_TOG_AHB_BURST8_EN_MASK) | ||
1765 | #define APBH_CTRL0_TOG_CLKGATE_MASK (0x40000000U) | ||
1766 | #define APBH_CTRL0_TOG_CLKGATE_SHIFT (30U) | ||
1767 | #define APBH_CTRL0_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_CLKGATE_SHIFT)) & APBH_CTRL0_TOG_CLKGATE_MASK) | ||
1768 | #define APBH_CTRL0_TOG_SFTRST_MASK (0x80000000U) | ||
1769 | #define APBH_CTRL0_TOG_SFTRST_SHIFT (31U) | ||
1770 | #define APBH_CTRL0_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL0_TOG_SFTRST_SHIFT)) & APBH_CTRL0_TOG_SFTRST_MASK) | ||
1771 | /*! @} */ | ||
1772 | |||
1773 | /*! @name CTRL1 - AHB to APBH Bridge Control and Status Register 1 */ | ||
1774 | /*! @{ */ | ||
1775 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
1776 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
1777 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_MASK) | ||
1778 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
1779 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
1780 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_MASK) | ||
1781 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
1782 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
1783 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_MASK) | ||
1784 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
1785 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
1786 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_MASK) | ||
1787 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
1788 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
1789 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_MASK) | ||
1790 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
1791 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
1792 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_MASK) | ||
1793 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
1794 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
1795 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_MASK) | ||
1796 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
1797 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
1798 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_MASK) | ||
1799 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
1800 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
1801 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_MASK) | ||
1802 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
1803 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
1804 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_MASK) | ||
1805 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
1806 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
1807 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_MASK) | ||
1808 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
1809 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
1810 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_MASK) | ||
1811 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
1812 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
1813 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_MASK) | ||
1814 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
1815 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
1816 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_MASK) | ||
1817 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
1818 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
1819 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_MASK) | ||
1820 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
1821 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
1822 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_MASK) | ||
1823 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
1824 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
1825 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
1826 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
1827 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
1828 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
1829 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
1830 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
1831 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
1832 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
1833 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
1834 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
1835 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
1836 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
1837 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
1838 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
1839 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
1840 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
1841 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
1842 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
1843 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
1844 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
1845 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
1846 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
1847 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
1848 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
1849 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
1850 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
1851 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
1852 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
1853 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
1854 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
1855 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
1856 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
1857 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
1858 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
1859 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
1860 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
1861 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
1862 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
1863 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
1864 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
1865 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
1866 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
1867 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
1868 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
1869 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
1870 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
1871 | /*! @} */ | ||
1872 | |||
1873 | /*! @name CTRL1_SET - AHB to APBH Bridge Control and Status Register 1 */ | ||
1874 | /*! @{ */ | ||
1875 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
1876 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
1877 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_MASK) | ||
1878 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
1879 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
1880 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_MASK) | ||
1881 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
1882 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
1883 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_MASK) | ||
1884 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
1885 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
1886 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_MASK) | ||
1887 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
1888 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
1889 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_MASK) | ||
1890 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
1891 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
1892 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_MASK) | ||
1893 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
1894 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
1895 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_MASK) | ||
1896 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
1897 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
1898 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_MASK) | ||
1899 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
1900 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
1901 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_MASK) | ||
1902 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
1903 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
1904 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_MASK) | ||
1905 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
1906 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
1907 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_MASK) | ||
1908 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
1909 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
1910 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_MASK) | ||
1911 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
1912 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
1913 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_MASK) | ||
1914 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
1915 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
1916 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_MASK) | ||
1917 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
1918 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
1919 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_MASK) | ||
1920 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
1921 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
1922 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_MASK) | ||
1923 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
1924 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
1925 | #define APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
1926 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
1927 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
1928 | #define APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
1929 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
1930 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
1931 | #define APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
1932 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
1933 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
1934 | #define APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
1935 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
1936 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
1937 | #define APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
1938 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
1939 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
1940 | #define APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
1941 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
1942 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
1943 | #define APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
1944 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
1945 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
1946 | #define APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
1947 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
1948 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
1949 | #define APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
1950 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
1951 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
1952 | #define APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
1953 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
1954 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
1955 | #define APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
1956 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
1957 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
1958 | #define APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
1959 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
1960 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
1961 | #define APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
1962 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
1963 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
1964 | #define APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
1965 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
1966 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
1967 | #define APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
1968 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
1969 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
1970 | #define APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_SET_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
1971 | /*! @} */ | ||
1972 | |||
1973 | /*! @name CTRL1_CLR - AHB to APBH Bridge Control and Status Register 1 */ | ||
1974 | /*! @{ */ | ||
1975 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
1976 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
1977 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_MASK) | ||
1978 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
1979 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
1980 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_MASK) | ||
1981 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
1982 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
1983 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_MASK) | ||
1984 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
1985 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
1986 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_MASK) | ||
1987 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
1988 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
1989 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_MASK) | ||
1990 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
1991 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
1992 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_MASK) | ||
1993 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
1994 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
1995 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_MASK) | ||
1996 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
1997 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
1998 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_MASK) | ||
1999 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
2000 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
2001 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_MASK) | ||
2002 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
2003 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
2004 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_MASK) | ||
2005 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
2006 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
2007 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_MASK) | ||
2008 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
2009 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
2010 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_MASK) | ||
2011 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
2012 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
2013 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_MASK) | ||
2014 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
2015 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
2016 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_MASK) | ||
2017 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
2018 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
2019 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_MASK) | ||
2020 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
2021 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
2022 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_MASK) | ||
2023 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
2024 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
2025 | #define APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
2026 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
2027 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
2028 | #define APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
2029 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
2030 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
2031 | #define APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
2032 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
2033 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
2034 | #define APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
2035 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
2036 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
2037 | #define APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
2038 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
2039 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
2040 | #define APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
2041 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
2042 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
2043 | #define APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
2044 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
2045 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
2046 | #define APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
2047 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
2048 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
2049 | #define APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
2050 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
2051 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
2052 | #define APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
2053 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
2054 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
2055 | #define APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
2056 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
2057 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
2058 | #define APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
2059 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
2060 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
2061 | #define APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
2062 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
2063 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
2064 | #define APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
2065 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
2066 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
2067 | #define APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
2068 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
2069 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
2070 | #define APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_CLR_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
2071 | /*! @} */ | ||
2072 | |||
2073 | /*! @name CTRL1_TOG - AHB to APBH Bridge Control and Status Register 1 */ | ||
2074 | /*! @{ */ | ||
2075 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK (0x1U) | ||
2076 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT (0U) | ||
2077 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_MASK) | ||
2078 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK (0x2U) | ||
2079 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT (1U) | ||
2080 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_MASK) | ||
2081 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK (0x4U) | ||
2082 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT (2U) | ||
2083 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_MASK) | ||
2084 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK (0x8U) | ||
2085 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT (3U) | ||
2086 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_MASK) | ||
2087 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK (0x10U) | ||
2088 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT (4U) | ||
2089 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_MASK) | ||
2090 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK (0x20U) | ||
2091 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT (5U) | ||
2092 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_MASK) | ||
2093 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK (0x40U) | ||
2094 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT (6U) | ||
2095 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_MASK) | ||
2096 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK (0x80U) | ||
2097 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT (7U) | ||
2098 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_MASK) | ||
2099 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK (0x100U) | ||
2100 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT (8U) | ||
2101 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_MASK) | ||
2102 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK (0x200U) | ||
2103 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT (9U) | ||
2104 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_MASK) | ||
2105 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK (0x400U) | ||
2106 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT (10U) | ||
2107 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_MASK) | ||
2108 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK (0x800U) | ||
2109 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT (11U) | ||
2110 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_MASK) | ||
2111 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK (0x1000U) | ||
2112 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT (12U) | ||
2113 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_MASK) | ||
2114 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK (0x2000U) | ||
2115 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT (13U) | ||
2116 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_MASK) | ||
2117 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK (0x4000U) | ||
2118 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT (14U) | ||
2119 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_MASK) | ||
2120 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK (0x8000U) | ||
2121 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT (15U) | ||
2122 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_SHIFT)) & APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_MASK) | ||
2123 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK (0x10000U) | ||
2124 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT (16U) | ||
2125 | #define APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH0_CMDCMPLT_IRQ_EN_MASK) | ||
2126 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK (0x20000U) | ||
2127 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT (17U) | ||
2128 | #define APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH1_CMDCMPLT_IRQ_EN_MASK) | ||
2129 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK (0x40000U) | ||
2130 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT (18U) | ||
2131 | #define APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH2_CMDCMPLT_IRQ_EN_MASK) | ||
2132 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK (0x80000U) | ||
2133 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT (19U) | ||
2134 | #define APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH3_CMDCMPLT_IRQ_EN_MASK) | ||
2135 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK (0x100000U) | ||
2136 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT (20U) | ||
2137 | #define APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH4_CMDCMPLT_IRQ_EN_MASK) | ||
2138 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK (0x200000U) | ||
2139 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT (21U) | ||
2140 | #define APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH5_CMDCMPLT_IRQ_EN_MASK) | ||
2141 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK (0x400000U) | ||
2142 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT (22U) | ||
2143 | #define APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH6_CMDCMPLT_IRQ_EN_MASK) | ||
2144 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK (0x800000U) | ||
2145 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT (23U) | ||
2146 | #define APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH7_CMDCMPLT_IRQ_EN_MASK) | ||
2147 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK (0x1000000U) | ||
2148 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT (24U) | ||
2149 | #define APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH8_CMDCMPLT_IRQ_EN_MASK) | ||
2150 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK (0x2000000U) | ||
2151 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT (25U) | ||
2152 | #define APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH9_CMDCMPLT_IRQ_EN_MASK) | ||
2153 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK (0x4000000U) | ||
2154 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT (26U) | ||
2155 | #define APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH10_CMDCMPLT_IRQ_EN_MASK) | ||
2156 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK (0x8000000U) | ||
2157 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT (27U) | ||
2158 | #define APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH11_CMDCMPLT_IRQ_EN_MASK) | ||
2159 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK (0x10000000U) | ||
2160 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT (28U) | ||
2161 | #define APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH12_CMDCMPLT_IRQ_EN_MASK) | ||
2162 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK (0x20000000U) | ||
2163 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT (29U) | ||
2164 | #define APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH13_CMDCMPLT_IRQ_EN_MASK) | ||
2165 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK (0x40000000U) | ||
2166 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT (30U) | ||
2167 | #define APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH14_CMDCMPLT_IRQ_EN_MASK) | ||
2168 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK (0x80000000U) | ||
2169 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT (31U) | ||
2170 | #define APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_SHIFT)) & APBH_CTRL1_TOG_CH15_CMDCMPLT_IRQ_EN_MASK) | ||
2171 | /*! @} */ | ||
2172 | |||
2173 | /*! @name CTRL2 - AHB to APBH Bridge Control and Status Register 2 */ | ||
2174 | /*! @{ */ | ||
2175 | #define APBH_CTRL2_CH0_ERROR_IRQ_MASK (0x1U) | ||
2176 | #define APBH_CTRL2_CH0_ERROR_IRQ_SHIFT (0U) | ||
2177 | #define APBH_CTRL2_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH0_ERROR_IRQ_MASK) | ||
2178 | #define APBH_CTRL2_CH1_ERROR_IRQ_MASK (0x2U) | ||
2179 | #define APBH_CTRL2_CH1_ERROR_IRQ_SHIFT (1U) | ||
2180 | #define APBH_CTRL2_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH1_ERROR_IRQ_MASK) | ||
2181 | #define APBH_CTRL2_CH2_ERROR_IRQ_MASK (0x4U) | ||
2182 | #define APBH_CTRL2_CH2_ERROR_IRQ_SHIFT (2U) | ||
2183 | #define APBH_CTRL2_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH2_ERROR_IRQ_MASK) | ||
2184 | #define APBH_CTRL2_CH3_ERROR_IRQ_MASK (0x8U) | ||
2185 | #define APBH_CTRL2_CH3_ERROR_IRQ_SHIFT (3U) | ||
2186 | #define APBH_CTRL2_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH3_ERROR_IRQ_MASK) | ||
2187 | #define APBH_CTRL2_CH4_ERROR_IRQ_MASK (0x10U) | ||
2188 | #define APBH_CTRL2_CH4_ERROR_IRQ_SHIFT (4U) | ||
2189 | #define APBH_CTRL2_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH4_ERROR_IRQ_MASK) | ||
2190 | #define APBH_CTRL2_CH5_ERROR_IRQ_MASK (0x20U) | ||
2191 | #define APBH_CTRL2_CH5_ERROR_IRQ_SHIFT (5U) | ||
2192 | #define APBH_CTRL2_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH5_ERROR_IRQ_MASK) | ||
2193 | #define APBH_CTRL2_CH6_ERROR_IRQ_MASK (0x40U) | ||
2194 | #define APBH_CTRL2_CH6_ERROR_IRQ_SHIFT (6U) | ||
2195 | #define APBH_CTRL2_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH6_ERROR_IRQ_MASK) | ||
2196 | #define APBH_CTRL2_CH7_ERROR_IRQ_MASK (0x80U) | ||
2197 | #define APBH_CTRL2_CH7_ERROR_IRQ_SHIFT (7U) | ||
2198 | #define APBH_CTRL2_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH7_ERROR_IRQ_MASK) | ||
2199 | #define APBH_CTRL2_CH8_ERROR_IRQ_MASK (0x100U) | ||
2200 | #define APBH_CTRL2_CH8_ERROR_IRQ_SHIFT (8U) | ||
2201 | #define APBH_CTRL2_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH8_ERROR_IRQ_MASK) | ||
2202 | #define APBH_CTRL2_CH9_ERROR_IRQ_MASK (0x200U) | ||
2203 | #define APBH_CTRL2_CH9_ERROR_IRQ_SHIFT (9U) | ||
2204 | #define APBH_CTRL2_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH9_ERROR_IRQ_MASK) | ||
2205 | #define APBH_CTRL2_CH10_ERROR_IRQ_MASK (0x400U) | ||
2206 | #define APBH_CTRL2_CH10_ERROR_IRQ_SHIFT (10U) | ||
2207 | #define APBH_CTRL2_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH10_ERROR_IRQ_MASK) | ||
2208 | #define APBH_CTRL2_CH11_ERROR_IRQ_MASK (0x800U) | ||
2209 | #define APBH_CTRL2_CH11_ERROR_IRQ_SHIFT (11U) | ||
2210 | #define APBH_CTRL2_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH11_ERROR_IRQ_MASK) | ||
2211 | #define APBH_CTRL2_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2212 | #define APBH_CTRL2_CH12_ERROR_IRQ_SHIFT (12U) | ||
2213 | #define APBH_CTRL2_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH12_ERROR_IRQ_MASK) | ||
2214 | #define APBH_CTRL2_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2215 | #define APBH_CTRL2_CH13_ERROR_IRQ_SHIFT (13U) | ||
2216 | #define APBH_CTRL2_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH13_ERROR_IRQ_MASK) | ||
2217 | #define APBH_CTRL2_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2218 | #define APBH_CTRL2_CH14_ERROR_IRQ_SHIFT (14U) | ||
2219 | #define APBH_CTRL2_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH14_ERROR_IRQ_MASK) | ||
2220 | #define APBH_CTRL2_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2221 | #define APBH_CTRL2_CH15_ERROR_IRQ_SHIFT (15U) | ||
2222 | #define APBH_CTRL2_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CH15_ERROR_IRQ_MASK) | ||
2223 | #define APBH_CTRL2_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2224 | #define APBH_CTRL2_CH0_ERROR_STATUS_SHIFT (16U) | ||
2225 | /*! CH0_ERROR_STATUS | ||
2226 | * 0b0..An early termination from the device causes error IRQ. | ||
2227 | * 0b1..An AHB bus error causes error IRQ. | ||
2228 | */ | ||
2229 | #define APBH_CTRL2_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH0_ERROR_STATUS_MASK) | ||
2230 | #define APBH_CTRL2_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2231 | #define APBH_CTRL2_CH1_ERROR_STATUS_SHIFT (17U) | ||
2232 | /*! CH1_ERROR_STATUS | ||
2233 | * 0b0..An early termination from the device causes error IRQ. | ||
2234 | * 0b1..An AHB bus error causes error IRQ. | ||
2235 | */ | ||
2236 | #define APBH_CTRL2_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH1_ERROR_STATUS_MASK) | ||
2237 | #define APBH_CTRL2_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2238 | #define APBH_CTRL2_CH2_ERROR_STATUS_SHIFT (18U) | ||
2239 | /*! CH2_ERROR_STATUS | ||
2240 | * 0b0..An early termination from the device causes error IRQ. | ||
2241 | * 0b1..An AHB bus error causes error IRQ. | ||
2242 | */ | ||
2243 | #define APBH_CTRL2_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH2_ERROR_STATUS_MASK) | ||
2244 | #define APBH_CTRL2_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2245 | #define APBH_CTRL2_CH3_ERROR_STATUS_SHIFT (19U) | ||
2246 | /*! CH3_ERROR_STATUS | ||
2247 | * 0b0..An early termination from the device causes error IRQ. | ||
2248 | * 0b1..An AHB bus error causes error IRQ. | ||
2249 | */ | ||
2250 | #define APBH_CTRL2_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH3_ERROR_STATUS_MASK) | ||
2251 | #define APBH_CTRL2_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2252 | #define APBH_CTRL2_CH4_ERROR_STATUS_SHIFT (20U) | ||
2253 | /*! CH4_ERROR_STATUS | ||
2254 | * 0b0..An early termination from the device causes error IRQ. | ||
2255 | * 0b1..An AHB bus error causes error IRQ. | ||
2256 | */ | ||
2257 | #define APBH_CTRL2_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH4_ERROR_STATUS_MASK) | ||
2258 | #define APBH_CTRL2_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2259 | #define APBH_CTRL2_CH5_ERROR_STATUS_SHIFT (21U) | ||
2260 | /*! CH5_ERROR_STATUS | ||
2261 | * 0b0..An early termination from the device causes error IRQ. | ||
2262 | * 0b1..An AHB bus error causes error IRQ. | ||
2263 | */ | ||
2264 | #define APBH_CTRL2_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH5_ERROR_STATUS_MASK) | ||
2265 | #define APBH_CTRL2_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2266 | #define APBH_CTRL2_CH6_ERROR_STATUS_SHIFT (22U) | ||
2267 | /*! CH6_ERROR_STATUS | ||
2268 | * 0b0..An early termination from the device causes error IRQ. | ||
2269 | * 0b1..An AHB bus error causes error IRQ. | ||
2270 | */ | ||
2271 | #define APBH_CTRL2_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH6_ERROR_STATUS_MASK) | ||
2272 | #define APBH_CTRL2_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2273 | #define APBH_CTRL2_CH7_ERROR_STATUS_SHIFT (23U) | ||
2274 | /*! CH7_ERROR_STATUS | ||
2275 | * 0b0..An early termination from the device causes error IRQ. | ||
2276 | * 0b1..An AHB bus error causes error IRQ. | ||
2277 | */ | ||
2278 | #define APBH_CTRL2_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH7_ERROR_STATUS_MASK) | ||
2279 | #define APBH_CTRL2_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2280 | #define APBH_CTRL2_CH8_ERROR_STATUS_SHIFT (24U) | ||
2281 | /*! CH8_ERROR_STATUS | ||
2282 | * 0b0..An early termination from the device causes error IRQ. | ||
2283 | * 0b1..An AHB bus error causes error IRQ. | ||
2284 | */ | ||
2285 | #define APBH_CTRL2_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH8_ERROR_STATUS_MASK) | ||
2286 | #define APBH_CTRL2_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2287 | #define APBH_CTRL2_CH9_ERROR_STATUS_SHIFT (25U) | ||
2288 | /*! CH9_ERROR_STATUS | ||
2289 | * 0b0..An early termination from the device causes error IRQ. | ||
2290 | * 0b1..An AHB bus error causes error IRQ. | ||
2291 | */ | ||
2292 | #define APBH_CTRL2_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH9_ERROR_STATUS_MASK) | ||
2293 | #define APBH_CTRL2_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2294 | #define APBH_CTRL2_CH10_ERROR_STATUS_SHIFT (26U) | ||
2295 | /*! CH10_ERROR_STATUS | ||
2296 | * 0b0..An early termination from the device causes error IRQ. | ||
2297 | * 0b1..An AHB bus error causes error IRQ. | ||
2298 | */ | ||
2299 | #define APBH_CTRL2_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH10_ERROR_STATUS_MASK) | ||
2300 | #define APBH_CTRL2_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2301 | #define APBH_CTRL2_CH11_ERROR_STATUS_SHIFT (27U) | ||
2302 | /*! CH11_ERROR_STATUS | ||
2303 | * 0b0..An early termination from the device causes error IRQ. | ||
2304 | * 0b1..An AHB bus error causes error IRQ. | ||
2305 | */ | ||
2306 | #define APBH_CTRL2_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH11_ERROR_STATUS_MASK) | ||
2307 | #define APBH_CTRL2_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2308 | #define APBH_CTRL2_CH12_ERROR_STATUS_SHIFT (28U) | ||
2309 | /*! CH12_ERROR_STATUS | ||
2310 | * 0b0..An early termination from the device causes error IRQ. | ||
2311 | * 0b1..An AHB bus error causes error IRQ. | ||
2312 | */ | ||
2313 | #define APBH_CTRL2_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH12_ERROR_STATUS_MASK) | ||
2314 | #define APBH_CTRL2_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2315 | #define APBH_CTRL2_CH13_ERROR_STATUS_SHIFT (29U) | ||
2316 | /*! CH13_ERROR_STATUS | ||
2317 | * 0b0..An early termination from the device causes error IRQ. | ||
2318 | * 0b1..An AHB bus error causes error IRQ. | ||
2319 | */ | ||
2320 | #define APBH_CTRL2_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH13_ERROR_STATUS_MASK) | ||
2321 | #define APBH_CTRL2_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2322 | #define APBH_CTRL2_CH14_ERROR_STATUS_SHIFT (30U) | ||
2323 | /*! CH14_ERROR_STATUS | ||
2324 | * 0b0..An early termination from the device causes error IRQ. | ||
2325 | * 0b1..An AHB bus error causes error IRQ. | ||
2326 | */ | ||
2327 | #define APBH_CTRL2_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH14_ERROR_STATUS_MASK) | ||
2328 | #define APBH_CTRL2_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2329 | #define APBH_CTRL2_CH15_ERROR_STATUS_SHIFT (31U) | ||
2330 | /*! CH15_ERROR_STATUS | ||
2331 | * 0b0..An early termination from the device causes error IRQ. | ||
2332 | * 0b1..An AHB bus error causes error IRQ. | ||
2333 | */ | ||
2334 | #define APBH_CTRL2_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CH15_ERROR_STATUS_MASK) | ||
2335 | /*! @} */ | ||
2336 | |||
2337 | /*! @name CTRL2_SET - AHB to APBH Bridge Control and Status Register 2 */ | ||
2338 | /*! @{ */ | ||
2339 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK (0x1U) | ||
2340 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT (0U) | ||
2341 | #define APBH_CTRL2_SET_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_IRQ_MASK) | ||
2342 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK (0x2U) | ||
2343 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT (1U) | ||
2344 | #define APBH_CTRL2_SET_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_IRQ_MASK) | ||
2345 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK (0x4U) | ||
2346 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT (2U) | ||
2347 | #define APBH_CTRL2_SET_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_IRQ_MASK) | ||
2348 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK (0x8U) | ||
2349 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT (3U) | ||
2350 | #define APBH_CTRL2_SET_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_IRQ_MASK) | ||
2351 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK (0x10U) | ||
2352 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT (4U) | ||
2353 | #define APBH_CTRL2_SET_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_IRQ_MASK) | ||
2354 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK (0x20U) | ||
2355 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT (5U) | ||
2356 | #define APBH_CTRL2_SET_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_IRQ_MASK) | ||
2357 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK (0x40U) | ||
2358 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT (6U) | ||
2359 | #define APBH_CTRL2_SET_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_IRQ_MASK) | ||
2360 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK (0x80U) | ||
2361 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT (7U) | ||
2362 | #define APBH_CTRL2_SET_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_IRQ_MASK) | ||
2363 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK (0x100U) | ||
2364 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT (8U) | ||
2365 | #define APBH_CTRL2_SET_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_IRQ_MASK) | ||
2366 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK (0x200U) | ||
2367 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT (9U) | ||
2368 | #define APBH_CTRL2_SET_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_IRQ_MASK) | ||
2369 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK (0x400U) | ||
2370 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT (10U) | ||
2371 | #define APBH_CTRL2_SET_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_IRQ_MASK) | ||
2372 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK (0x800U) | ||
2373 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT (11U) | ||
2374 | #define APBH_CTRL2_SET_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_IRQ_MASK) | ||
2375 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2376 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT (12U) | ||
2377 | #define APBH_CTRL2_SET_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_IRQ_MASK) | ||
2378 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2379 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT (13U) | ||
2380 | #define APBH_CTRL2_SET_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_IRQ_MASK) | ||
2381 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2382 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT (14U) | ||
2383 | #define APBH_CTRL2_SET_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_IRQ_MASK) | ||
2384 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2385 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT (15U) | ||
2386 | #define APBH_CTRL2_SET_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_IRQ_MASK) | ||
2387 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2388 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT (16U) | ||
2389 | /*! CH0_ERROR_STATUS | ||
2390 | * 0b0..An early termination from the device causes error IRQ. | ||
2391 | * 0b1..An AHB bus error causes error IRQ. | ||
2392 | */ | ||
2393 | #define APBH_CTRL2_SET_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH0_ERROR_STATUS_MASK) | ||
2394 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2395 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT (17U) | ||
2396 | /*! CH1_ERROR_STATUS | ||
2397 | * 0b0..An early termination from the device causes error IRQ. | ||
2398 | * 0b1..An AHB bus error causes error IRQ. | ||
2399 | */ | ||
2400 | #define APBH_CTRL2_SET_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH1_ERROR_STATUS_MASK) | ||
2401 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2402 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT (18U) | ||
2403 | /*! CH2_ERROR_STATUS | ||
2404 | * 0b0..An early termination from the device causes error IRQ. | ||
2405 | * 0b1..An AHB bus error causes error IRQ. | ||
2406 | */ | ||
2407 | #define APBH_CTRL2_SET_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH2_ERROR_STATUS_MASK) | ||
2408 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2409 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT (19U) | ||
2410 | /*! CH3_ERROR_STATUS | ||
2411 | * 0b0..An early termination from the device causes error IRQ. | ||
2412 | * 0b1..An AHB bus error causes error IRQ. | ||
2413 | */ | ||
2414 | #define APBH_CTRL2_SET_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH3_ERROR_STATUS_MASK) | ||
2415 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2416 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT (20U) | ||
2417 | /*! CH4_ERROR_STATUS | ||
2418 | * 0b0..An early termination from the device causes error IRQ. | ||
2419 | * 0b1..An AHB bus error causes error IRQ. | ||
2420 | */ | ||
2421 | #define APBH_CTRL2_SET_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH4_ERROR_STATUS_MASK) | ||
2422 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2423 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT (21U) | ||
2424 | /*! CH5_ERROR_STATUS | ||
2425 | * 0b0..An early termination from the device causes error IRQ. | ||
2426 | * 0b1..An AHB bus error causes error IRQ. | ||
2427 | */ | ||
2428 | #define APBH_CTRL2_SET_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH5_ERROR_STATUS_MASK) | ||
2429 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2430 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT (22U) | ||
2431 | /*! CH6_ERROR_STATUS | ||
2432 | * 0b0..An early termination from the device causes error IRQ. | ||
2433 | * 0b1..An AHB bus error causes error IRQ. | ||
2434 | */ | ||
2435 | #define APBH_CTRL2_SET_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH6_ERROR_STATUS_MASK) | ||
2436 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2437 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT (23U) | ||
2438 | /*! CH7_ERROR_STATUS | ||
2439 | * 0b0..An early termination from the device causes error IRQ. | ||
2440 | * 0b1..An AHB bus error causes error IRQ. | ||
2441 | */ | ||
2442 | #define APBH_CTRL2_SET_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH7_ERROR_STATUS_MASK) | ||
2443 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2444 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT (24U) | ||
2445 | /*! CH8_ERROR_STATUS | ||
2446 | * 0b0..An early termination from the device causes error IRQ. | ||
2447 | * 0b1..An AHB bus error causes error IRQ. | ||
2448 | */ | ||
2449 | #define APBH_CTRL2_SET_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH8_ERROR_STATUS_MASK) | ||
2450 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2451 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT (25U) | ||
2452 | /*! CH9_ERROR_STATUS | ||
2453 | * 0b0..An early termination from the device causes error IRQ. | ||
2454 | * 0b1..An AHB bus error causes error IRQ. | ||
2455 | */ | ||
2456 | #define APBH_CTRL2_SET_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH9_ERROR_STATUS_MASK) | ||
2457 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2458 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT (26U) | ||
2459 | /*! CH10_ERROR_STATUS | ||
2460 | * 0b0..An early termination from the device causes error IRQ. | ||
2461 | * 0b1..An AHB bus error causes error IRQ. | ||
2462 | */ | ||
2463 | #define APBH_CTRL2_SET_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH10_ERROR_STATUS_MASK) | ||
2464 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2465 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT (27U) | ||
2466 | /*! CH11_ERROR_STATUS | ||
2467 | * 0b0..An early termination from the device causes error IRQ. | ||
2468 | * 0b1..An AHB bus error causes error IRQ. | ||
2469 | */ | ||
2470 | #define APBH_CTRL2_SET_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH11_ERROR_STATUS_MASK) | ||
2471 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2472 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT (28U) | ||
2473 | /*! CH12_ERROR_STATUS | ||
2474 | * 0b0..An early termination from the device causes error IRQ. | ||
2475 | * 0b1..An AHB bus error causes error IRQ. | ||
2476 | */ | ||
2477 | #define APBH_CTRL2_SET_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH12_ERROR_STATUS_MASK) | ||
2478 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2479 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT (29U) | ||
2480 | /*! CH13_ERROR_STATUS | ||
2481 | * 0b0..An early termination from the device causes error IRQ. | ||
2482 | * 0b1..An AHB bus error causes error IRQ. | ||
2483 | */ | ||
2484 | #define APBH_CTRL2_SET_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH13_ERROR_STATUS_MASK) | ||
2485 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2486 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT (30U) | ||
2487 | /*! CH14_ERROR_STATUS | ||
2488 | * 0b0..An early termination from the device causes error IRQ. | ||
2489 | * 0b1..An AHB bus error causes error IRQ. | ||
2490 | */ | ||
2491 | #define APBH_CTRL2_SET_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH14_ERROR_STATUS_MASK) | ||
2492 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2493 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT (31U) | ||
2494 | /*! CH15_ERROR_STATUS | ||
2495 | * 0b0..An early termination from the device causes error IRQ. | ||
2496 | * 0b1..An AHB bus error causes error IRQ. | ||
2497 | */ | ||
2498 | #define APBH_CTRL2_SET_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_SET_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_SET_CH15_ERROR_STATUS_MASK) | ||
2499 | /*! @} */ | ||
2500 | |||
2501 | /*! @name CTRL2_CLR - AHB to APBH Bridge Control and Status Register 2 */ | ||
2502 | /*! @{ */ | ||
2503 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK (0x1U) | ||
2504 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT (0U) | ||
2505 | #define APBH_CTRL2_CLR_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_IRQ_MASK) | ||
2506 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK (0x2U) | ||
2507 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT (1U) | ||
2508 | #define APBH_CTRL2_CLR_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_IRQ_MASK) | ||
2509 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK (0x4U) | ||
2510 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT (2U) | ||
2511 | #define APBH_CTRL2_CLR_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_IRQ_MASK) | ||
2512 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK (0x8U) | ||
2513 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT (3U) | ||
2514 | #define APBH_CTRL2_CLR_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_IRQ_MASK) | ||
2515 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK (0x10U) | ||
2516 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT (4U) | ||
2517 | #define APBH_CTRL2_CLR_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_IRQ_MASK) | ||
2518 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK (0x20U) | ||
2519 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT (5U) | ||
2520 | #define APBH_CTRL2_CLR_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_IRQ_MASK) | ||
2521 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK (0x40U) | ||
2522 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT (6U) | ||
2523 | #define APBH_CTRL2_CLR_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_IRQ_MASK) | ||
2524 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK (0x80U) | ||
2525 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT (7U) | ||
2526 | #define APBH_CTRL2_CLR_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_IRQ_MASK) | ||
2527 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK (0x100U) | ||
2528 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT (8U) | ||
2529 | #define APBH_CTRL2_CLR_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_IRQ_MASK) | ||
2530 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK (0x200U) | ||
2531 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT (9U) | ||
2532 | #define APBH_CTRL2_CLR_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_IRQ_MASK) | ||
2533 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK (0x400U) | ||
2534 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT (10U) | ||
2535 | #define APBH_CTRL2_CLR_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_IRQ_MASK) | ||
2536 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK (0x800U) | ||
2537 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT (11U) | ||
2538 | #define APBH_CTRL2_CLR_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_IRQ_MASK) | ||
2539 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2540 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT (12U) | ||
2541 | #define APBH_CTRL2_CLR_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_IRQ_MASK) | ||
2542 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2543 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT (13U) | ||
2544 | #define APBH_CTRL2_CLR_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_IRQ_MASK) | ||
2545 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2546 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT (14U) | ||
2547 | #define APBH_CTRL2_CLR_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_IRQ_MASK) | ||
2548 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2549 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT (15U) | ||
2550 | #define APBH_CTRL2_CLR_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_IRQ_MASK) | ||
2551 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2552 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT (16U) | ||
2553 | /*! CH0_ERROR_STATUS | ||
2554 | * 0b0..An early termination from the device causes error IRQ. | ||
2555 | * 0b1..An AHB bus error causes error IRQ. | ||
2556 | */ | ||
2557 | #define APBH_CTRL2_CLR_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH0_ERROR_STATUS_MASK) | ||
2558 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2559 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT (17U) | ||
2560 | /*! CH1_ERROR_STATUS | ||
2561 | * 0b0..An early termination from the device causes error IRQ. | ||
2562 | * 0b1..An AHB bus error causes error IRQ. | ||
2563 | */ | ||
2564 | #define APBH_CTRL2_CLR_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH1_ERROR_STATUS_MASK) | ||
2565 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2566 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT (18U) | ||
2567 | /*! CH2_ERROR_STATUS | ||
2568 | * 0b0..An early termination from the device causes error IRQ. | ||
2569 | * 0b1..An AHB bus error causes error IRQ. | ||
2570 | */ | ||
2571 | #define APBH_CTRL2_CLR_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH2_ERROR_STATUS_MASK) | ||
2572 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2573 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT (19U) | ||
2574 | /*! CH3_ERROR_STATUS | ||
2575 | * 0b0..An early termination from the device causes error IRQ. | ||
2576 | * 0b1..An AHB bus error causes error IRQ. | ||
2577 | */ | ||
2578 | #define APBH_CTRL2_CLR_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH3_ERROR_STATUS_MASK) | ||
2579 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2580 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT (20U) | ||
2581 | /*! CH4_ERROR_STATUS | ||
2582 | * 0b0..An early termination from the device causes error IRQ. | ||
2583 | * 0b1..An AHB bus error causes error IRQ. | ||
2584 | */ | ||
2585 | #define APBH_CTRL2_CLR_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH4_ERROR_STATUS_MASK) | ||
2586 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2587 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT (21U) | ||
2588 | /*! CH5_ERROR_STATUS | ||
2589 | * 0b0..An early termination from the device causes error IRQ. | ||
2590 | * 0b1..An AHB bus error causes error IRQ. | ||
2591 | */ | ||
2592 | #define APBH_CTRL2_CLR_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH5_ERROR_STATUS_MASK) | ||
2593 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2594 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT (22U) | ||
2595 | /*! CH6_ERROR_STATUS | ||
2596 | * 0b0..An early termination from the device causes error IRQ. | ||
2597 | * 0b1..An AHB bus error causes error IRQ. | ||
2598 | */ | ||
2599 | #define APBH_CTRL2_CLR_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH6_ERROR_STATUS_MASK) | ||
2600 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2601 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT (23U) | ||
2602 | /*! CH7_ERROR_STATUS | ||
2603 | * 0b0..An early termination from the device causes error IRQ. | ||
2604 | * 0b1..An AHB bus error causes error IRQ. | ||
2605 | */ | ||
2606 | #define APBH_CTRL2_CLR_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH7_ERROR_STATUS_MASK) | ||
2607 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2608 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT (24U) | ||
2609 | /*! CH8_ERROR_STATUS | ||
2610 | * 0b0..An early termination from the device causes error IRQ. | ||
2611 | * 0b1..An AHB bus error causes error IRQ. | ||
2612 | */ | ||
2613 | #define APBH_CTRL2_CLR_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH8_ERROR_STATUS_MASK) | ||
2614 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2615 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT (25U) | ||
2616 | /*! CH9_ERROR_STATUS | ||
2617 | * 0b0..An early termination from the device causes error IRQ. | ||
2618 | * 0b1..An AHB bus error causes error IRQ. | ||
2619 | */ | ||
2620 | #define APBH_CTRL2_CLR_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH9_ERROR_STATUS_MASK) | ||
2621 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2622 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT (26U) | ||
2623 | /*! CH10_ERROR_STATUS | ||
2624 | * 0b0..An early termination from the device causes error IRQ. | ||
2625 | * 0b1..An AHB bus error causes error IRQ. | ||
2626 | */ | ||
2627 | #define APBH_CTRL2_CLR_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH10_ERROR_STATUS_MASK) | ||
2628 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2629 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT (27U) | ||
2630 | /*! CH11_ERROR_STATUS | ||
2631 | * 0b0..An early termination from the device causes error IRQ. | ||
2632 | * 0b1..An AHB bus error causes error IRQ. | ||
2633 | */ | ||
2634 | #define APBH_CTRL2_CLR_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH11_ERROR_STATUS_MASK) | ||
2635 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2636 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT (28U) | ||
2637 | /*! CH12_ERROR_STATUS | ||
2638 | * 0b0..An early termination from the device causes error IRQ. | ||
2639 | * 0b1..An AHB bus error causes error IRQ. | ||
2640 | */ | ||
2641 | #define APBH_CTRL2_CLR_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH12_ERROR_STATUS_MASK) | ||
2642 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2643 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT (29U) | ||
2644 | /*! CH13_ERROR_STATUS | ||
2645 | * 0b0..An early termination from the device causes error IRQ. | ||
2646 | * 0b1..An AHB bus error causes error IRQ. | ||
2647 | */ | ||
2648 | #define APBH_CTRL2_CLR_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH13_ERROR_STATUS_MASK) | ||
2649 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2650 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT (30U) | ||
2651 | /*! CH14_ERROR_STATUS | ||
2652 | * 0b0..An early termination from the device causes error IRQ. | ||
2653 | * 0b1..An AHB bus error causes error IRQ. | ||
2654 | */ | ||
2655 | #define APBH_CTRL2_CLR_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH14_ERROR_STATUS_MASK) | ||
2656 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2657 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT (31U) | ||
2658 | /*! CH15_ERROR_STATUS | ||
2659 | * 0b0..An early termination from the device causes error IRQ. | ||
2660 | * 0b1..An AHB bus error causes error IRQ. | ||
2661 | */ | ||
2662 | #define APBH_CTRL2_CLR_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_CLR_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_CLR_CH15_ERROR_STATUS_MASK) | ||
2663 | /*! @} */ | ||
2664 | |||
2665 | /*! @name CTRL2_TOG - AHB to APBH Bridge Control and Status Register 2 */ | ||
2666 | /*! @{ */ | ||
2667 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK (0x1U) | ||
2668 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT (0U) | ||
2669 | #define APBH_CTRL2_TOG_CH0_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_IRQ_MASK) | ||
2670 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK (0x2U) | ||
2671 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT (1U) | ||
2672 | #define APBH_CTRL2_TOG_CH1_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_IRQ_MASK) | ||
2673 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK (0x4U) | ||
2674 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT (2U) | ||
2675 | #define APBH_CTRL2_TOG_CH2_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_IRQ_MASK) | ||
2676 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK (0x8U) | ||
2677 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT (3U) | ||
2678 | #define APBH_CTRL2_TOG_CH3_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_IRQ_MASK) | ||
2679 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK (0x10U) | ||
2680 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT (4U) | ||
2681 | #define APBH_CTRL2_TOG_CH4_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_IRQ_MASK) | ||
2682 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK (0x20U) | ||
2683 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT (5U) | ||
2684 | #define APBH_CTRL2_TOG_CH5_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_IRQ_MASK) | ||
2685 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK (0x40U) | ||
2686 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT (6U) | ||
2687 | #define APBH_CTRL2_TOG_CH6_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_IRQ_MASK) | ||
2688 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK (0x80U) | ||
2689 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT (7U) | ||
2690 | #define APBH_CTRL2_TOG_CH7_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_IRQ_MASK) | ||
2691 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK (0x100U) | ||
2692 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT (8U) | ||
2693 | #define APBH_CTRL2_TOG_CH8_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_IRQ_MASK) | ||
2694 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK (0x200U) | ||
2695 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT (9U) | ||
2696 | #define APBH_CTRL2_TOG_CH9_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_IRQ_MASK) | ||
2697 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK (0x400U) | ||
2698 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT (10U) | ||
2699 | #define APBH_CTRL2_TOG_CH10_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_IRQ_MASK) | ||
2700 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK (0x800U) | ||
2701 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT (11U) | ||
2702 | #define APBH_CTRL2_TOG_CH11_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_IRQ_MASK) | ||
2703 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK (0x1000U) | ||
2704 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT (12U) | ||
2705 | #define APBH_CTRL2_TOG_CH12_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_IRQ_MASK) | ||
2706 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK (0x2000U) | ||
2707 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT (13U) | ||
2708 | #define APBH_CTRL2_TOG_CH13_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_IRQ_MASK) | ||
2709 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK (0x4000U) | ||
2710 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT (14U) | ||
2711 | #define APBH_CTRL2_TOG_CH14_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_IRQ_MASK) | ||
2712 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK (0x8000U) | ||
2713 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT (15U) | ||
2714 | #define APBH_CTRL2_TOG_CH15_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_IRQ_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_IRQ_MASK) | ||
2715 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK (0x10000U) | ||
2716 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT (16U) | ||
2717 | /*! CH0_ERROR_STATUS | ||
2718 | * 0b0..An early termination from the device causes error IRQ. | ||
2719 | * 0b1..An AHB bus error causes error IRQ. | ||
2720 | */ | ||
2721 | #define APBH_CTRL2_TOG_CH0_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH0_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH0_ERROR_STATUS_MASK) | ||
2722 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK (0x20000U) | ||
2723 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT (17U) | ||
2724 | /*! CH1_ERROR_STATUS | ||
2725 | * 0b0..An early termination from the device causes error IRQ. | ||
2726 | * 0b1..An AHB bus error causes error IRQ. | ||
2727 | */ | ||
2728 | #define APBH_CTRL2_TOG_CH1_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH1_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH1_ERROR_STATUS_MASK) | ||
2729 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK (0x40000U) | ||
2730 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT (18U) | ||
2731 | /*! CH2_ERROR_STATUS | ||
2732 | * 0b0..An early termination from the device causes error IRQ. | ||
2733 | * 0b1..An AHB bus error causes error IRQ. | ||
2734 | */ | ||
2735 | #define APBH_CTRL2_TOG_CH2_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH2_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH2_ERROR_STATUS_MASK) | ||
2736 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK (0x80000U) | ||
2737 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT (19U) | ||
2738 | /*! CH3_ERROR_STATUS | ||
2739 | * 0b0..An early termination from the device causes error IRQ. | ||
2740 | * 0b1..An AHB bus error causes error IRQ. | ||
2741 | */ | ||
2742 | #define APBH_CTRL2_TOG_CH3_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH3_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH3_ERROR_STATUS_MASK) | ||
2743 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK (0x100000U) | ||
2744 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT (20U) | ||
2745 | /*! CH4_ERROR_STATUS | ||
2746 | * 0b0..An early termination from the device causes error IRQ. | ||
2747 | * 0b1..An AHB bus error causes error IRQ. | ||
2748 | */ | ||
2749 | #define APBH_CTRL2_TOG_CH4_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH4_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH4_ERROR_STATUS_MASK) | ||
2750 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK (0x200000U) | ||
2751 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT (21U) | ||
2752 | /*! CH5_ERROR_STATUS | ||
2753 | * 0b0..An early termination from the device causes error IRQ. | ||
2754 | * 0b1..An AHB bus error causes error IRQ. | ||
2755 | */ | ||
2756 | #define APBH_CTRL2_TOG_CH5_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH5_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH5_ERROR_STATUS_MASK) | ||
2757 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK (0x400000U) | ||
2758 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT (22U) | ||
2759 | /*! CH6_ERROR_STATUS | ||
2760 | * 0b0..An early termination from the device causes error IRQ. | ||
2761 | * 0b1..An AHB bus error causes error IRQ. | ||
2762 | */ | ||
2763 | #define APBH_CTRL2_TOG_CH6_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH6_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH6_ERROR_STATUS_MASK) | ||
2764 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK (0x800000U) | ||
2765 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT (23U) | ||
2766 | /*! CH7_ERROR_STATUS | ||
2767 | * 0b0..An early termination from the device causes error IRQ. | ||
2768 | * 0b1..An AHB bus error causes error IRQ. | ||
2769 | */ | ||
2770 | #define APBH_CTRL2_TOG_CH7_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH7_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH7_ERROR_STATUS_MASK) | ||
2771 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK (0x1000000U) | ||
2772 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT (24U) | ||
2773 | /*! CH8_ERROR_STATUS | ||
2774 | * 0b0..An early termination from the device causes error IRQ. | ||
2775 | * 0b1..An AHB bus error causes error IRQ. | ||
2776 | */ | ||
2777 | #define APBH_CTRL2_TOG_CH8_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH8_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH8_ERROR_STATUS_MASK) | ||
2778 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK (0x2000000U) | ||
2779 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT (25U) | ||
2780 | /*! CH9_ERROR_STATUS | ||
2781 | * 0b0..An early termination from the device causes error IRQ. | ||
2782 | * 0b1..An AHB bus error causes error IRQ. | ||
2783 | */ | ||
2784 | #define APBH_CTRL2_TOG_CH9_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH9_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH9_ERROR_STATUS_MASK) | ||
2785 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK (0x4000000U) | ||
2786 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT (26U) | ||
2787 | /*! CH10_ERROR_STATUS | ||
2788 | * 0b0..An early termination from the device causes error IRQ. | ||
2789 | * 0b1..An AHB bus error causes error IRQ. | ||
2790 | */ | ||
2791 | #define APBH_CTRL2_TOG_CH10_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH10_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH10_ERROR_STATUS_MASK) | ||
2792 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK (0x8000000U) | ||
2793 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT (27U) | ||
2794 | /*! CH11_ERROR_STATUS | ||
2795 | * 0b0..An early termination from the device causes error IRQ. | ||
2796 | * 0b1..An AHB bus error causes error IRQ. | ||
2797 | */ | ||
2798 | #define APBH_CTRL2_TOG_CH11_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH11_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH11_ERROR_STATUS_MASK) | ||
2799 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK (0x10000000U) | ||
2800 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT (28U) | ||
2801 | /*! CH12_ERROR_STATUS | ||
2802 | * 0b0..An early termination from the device causes error IRQ. | ||
2803 | * 0b1..An AHB bus error causes error IRQ. | ||
2804 | */ | ||
2805 | #define APBH_CTRL2_TOG_CH12_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH12_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH12_ERROR_STATUS_MASK) | ||
2806 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK (0x20000000U) | ||
2807 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT (29U) | ||
2808 | /*! CH13_ERROR_STATUS | ||
2809 | * 0b0..An early termination from the device causes error IRQ. | ||
2810 | * 0b1..An AHB bus error causes error IRQ. | ||
2811 | */ | ||
2812 | #define APBH_CTRL2_TOG_CH13_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH13_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH13_ERROR_STATUS_MASK) | ||
2813 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK (0x40000000U) | ||
2814 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT (30U) | ||
2815 | /*! CH14_ERROR_STATUS | ||
2816 | * 0b0..An early termination from the device causes error IRQ. | ||
2817 | * 0b1..An AHB bus error causes error IRQ. | ||
2818 | */ | ||
2819 | #define APBH_CTRL2_TOG_CH14_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH14_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH14_ERROR_STATUS_MASK) | ||
2820 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK (0x80000000U) | ||
2821 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT (31U) | ||
2822 | /*! CH15_ERROR_STATUS | ||
2823 | * 0b0..An early termination from the device causes error IRQ. | ||
2824 | * 0b1..An AHB bus error causes error IRQ. | ||
2825 | */ | ||
2826 | #define APBH_CTRL2_TOG_CH15_ERROR_STATUS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CTRL2_TOG_CH15_ERROR_STATUS_SHIFT)) & APBH_CTRL2_TOG_CH15_ERROR_STATUS_MASK) | ||
2827 | /*! @} */ | ||
2828 | |||
2829 | /*! @name CHANNEL_CTRL - AHB to APBH Bridge Channel Register */ | ||
2830 | /*! @{ */ | ||
2831 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
2832 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT (0U) | ||
2833 | /*! FREEZE_CHANNEL | ||
2834 | * 0b0000000000000001..NAND0 | ||
2835 | * 0b0000000000000010..NAND1 | ||
2836 | * 0b0000000000000100..NAND2 | ||
2837 | * 0b0000000000001000..NAND3 | ||
2838 | * 0b0000000000010000..NAND4 | ||
2839 | * 0b0000000000100000..NAND5 | ||
2840 | * 0b0000000001000000..NAND6 | ||
2841 | * 0b0000000010000000..NAND7 | ||
2842 | * 0b0000000100000000..SSP | ||
2843 | */ | ||
2844 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK) | ||
2845 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
2846 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT (16U) | ||
2847 | /*! RESET_CHANNEL | ||
2848 | * 0b0000000000000001..NAND0 | ||
2849 | * 0b0000000000000010..NAND1 | ||
2850 | * 0b0000000000000100..NAND2 | ||
2851 | * 0b0000000000001000..NAND3 | ||
2852 | * 0b0000000000010000..NAND4 | ||
2853 | * 0b0000000000100000..NAND5 | ||
2854 | * 0b0000000001000000..NAND6 | ||
2855 | * 0b0000000010000000..NAND7 | ||
2856 | * 0b0000000100000000..SSP | ||
2857 | */ | ||
2858 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK) | ||
2859 | /*! @} */ | ||
2860 | |||
2861 | /*! @name CHANNEL_CTRL_SET - AHB to APBH Bridge Channel Register */ | ||
2862 | /*! @{ */ | ||
2863 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
2864 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT (0U) | ||
2865 | /*! FREEZE_CHANNEL | ||
2866 | * 0b0000000000000001..NAND0 | ||
2867 | * 0b0000000000000010..NAND1 | ||
2868 | * 0b0000000000000100..NAND2 | ||
2869 | * 0b0000000000001000..NAND3 | ||
2870 | * 0b0000000000010000..NAND4 | ||
2871 | * 0b0000000000100000..NAND5 | ||
2872 | * 0b0000000001000000..NAND6 | ||
2873 | * 0b0000000010000000..NAND7 | ||
2874 | * 0b0000000100000000..SSP | ||
2875 | */ | ||
2876 | #define APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_SET_FREEZE_CHANNEL_MASK) | ||
2877 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
2878 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT (16U) | ||
2879 | /*! RESET_CHANNEL | ||
2880 | * 0b0000000000000001..NAND0 | ||
2881 | * 0b0000000000000010..NAND1 | ||
2882 | * 0b0000000000000100..NAND2 | ||
2883 | * 0b0000000000001000..NAND3 | ||
2884 | * 0b0000000000010000..NAND4 | ||
2885 | * 0b0000000000100000..NAND5 | ||
2886 | * 0b0000000001000000..NAND6 | ||
2887 | * 0b0000000010000000..NAND7 | ||
2888 | * 0b0000000100000000..SSP | ||
2889 | */ | ||
2890 | #define APBH_CHANNEL_CTRL_SET_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_SET_RESET_CHANNEL_MASK) | ||
2891 | /*! @} */ | ||
2892 | |||
2893 | /*! @name CHANNEL_CTRL_CLR - AHB to APBH Bridge Channel Register */ | ||
2894 | /*! @{ */ | ||
2895 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
2896 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT (0U) | ||
2897 | /*! FREEZE_CHANNEL | ||
2898 | * 0b0000000000000001..NAND0 | ||
2899 | * 0b0000000000000010..NAND1 | ||
2900 | * 0b0000000000000100..NAND2 | ||
2901 | * 0b0000000000001000..NAND3 | ||
2902 | * 0b0000000000010000..NAND4 | ||
2903 | * 0b0000000000100000..NAND5 | ||
2904 | * 0b0000000001000000..NAND6 | ||
2905 | * 0b0000000010000000..NAND7 | ||
2906 | * 0b0000000100000000..SSP | ||
2907 | */ | ||
2908 | #define APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_CLR_FREEZE_CHANNEL_MASK) | ||
2909 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
2910 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT (16U) | ||
2911 | /*! RESET_CHANNEL | ||
2912 | * 0b0000000000000001..NAND0 | ||
2913 | * 0b0000000000000010..NAND1 | ||
2914 | * 0b0000000000000100..NAND2 | ||
2915 | * 0b0000000000001000..NAND3 | ||
2916 | * 0b0000000000010000..NAND4 | ||
2917 | * 0b0000000000100000..NAND5 | ||
2918 | * 0b0000000001000000..NAND6 | ||
2919 | * 0b0000000010000000..NAND7 | ||
2920 | * 0b0000000100000000..SSP | ||
2921 | */ | ||
2922 | #define APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_CLR_RESET_CHANNEL_MASK) | ||
2923 | /*! @} */ | ||
2924 | |||
2925 | /*! @name CHANNEL_CTRL_TOG - AHB to APBH Bridge Channel Register */ | ||
2926 | /*! @{ */ | ||
2927 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK (0xFFFFU) | ||
2928 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT (0U) | ||
2929 | /*! FREEZE_CHANNEL | ||
2930 | * 0b0000000000000001..NAND0 | ||
2931 | * 0b0000000000000010..NAND1 | ||
2932 | * 0b0000000000000100..NAND2 | ||
2933 | * 0b0000000000001000..NAND3 | ||
2934 | * 0b0000000000010000..NAND4 | ||
2935 | * 0b0000000000100000..NAND5 | ||
2936 | * 0b0000000001000000..NAND6 | ||
2937 | * 0b0000000010000000..NAND7 | ||
2938 | * 0b0000000100000000..SSP | ||
2939 | */ | ||
2940 | #define APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_TOG_FREEZE_CHANNEL_MASK) | ||
2941 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK (0xFFFF0000U) | ||
2942 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT (16U) | ||
2943 | /*! RESET_CHANNEL | ||
2944 | * 0b0000000000000001..NAND0 | ||
2945 | * 0b0000000000000010..NAND1 | ||
2946 | * 0b0000000000000100..NAND2 | ||
2947 | * 0b0000000000001000..NAND3 | ||
2948 | * 0b0000000000010000..NAND4 | ||
2949 | * 0b0000000000100000..NAND5 | ||
2950 | * 0b0000000001000000..NAND6 | ||
2951 | * 0b0000000010000000..NAND7 | ||
2952 | * 0b0000000100000000..SSP | ||
2953 | */ | ||
2954 | #define APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_SHIFT)) & APBH_CHANNEL_CTRL_TOG_RESET_CHANNEL_MASK) | ||
2955 | /*! @} */ | ||
2956 | |||
2957 | /*! @name DMA_BURST_SIZE - AHB to APBH DMA burst size */ | ||
2958 | /*! @{ */ | ||
2959 | #define APBH_DMA_BURST_SIZE_CH0_MASK (0x3U) | ||
2960 | #define APBH_DMA_BURST_SIZE_CH0_SHIFT (0U) | ||
2961 | #define APBH_DMA_BURST_SIZE_CH0(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH0_SHIFT)) & APBH_DMA_BURST_SIZE_CH0_MASK) | ||
2962 | #define APBH_DMA_BURST_SIZE_CH1_MASK (0xCU) | ||
2963 | #define APBH_DMA_BURST_SIZE_CH1_SHIFT (2U) | ||
2964 | #define APBH_DMA_BURST_SIZE_CH1(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH1_SHIFT)) & APBH_DMA_BURST_SIZE_CH1_MASK) | ||
2965 | #define APBH_DMA_BURST_SIZE_CH2_MASK (0x30U) | ||
2966 | #define APBH_DMA_BURST_SIZE_CH2_SHIFT (4U) | ||
2967 | #define APBH_DMA_BURST_SIZE_CH2(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH2_SHIFT)) & APBH_DMA_BURST_SIZE_CH2_MASK) | ||
2968 | #define APBH_DMA_BURST_SIZE_CH3_MASK (0xC0U) | ||
2969 | #define APBH_DMA_BURST_SIZE_CH3_SHIFT (6U) | ||
2970 | #define APBH_DMA_BURST_SIZE_CH3(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH3_SHIFT)) & APBH_DMA_BURST_SIZE_CH3_MASK) | ||
2971 | #define APBH_DMA_BURST_SIZE_CH4_MASK (0x300U) | ||
2972 | #define APBH_DMA_BURST_SIZE_CH4_SHIFT (8U) | ||
2973 | #define APBH_DMA_BURST_SIZE_CH4(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH4_SHIFT)) & APBH_DMA_BURST_SIZE_CH4_MASK) | ||
2974 | #define APBH_DMA_BURST_SIZE_CH5_MASK (0xC00U) | ||
2975 | #define APBH_DMA_BURST_SIZE_CH5_SHIFT (10U) | ||
2976 | #define APBH_DMA_BURST_SIZE_CH5(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH5_SHIFT)) & APBH_DMA_BURST_SIZE_CH5_MASK) | ||
2977 | #define APBH_DMA_BURST_SIZE_CH6_MASK (0x3000U) | ||
2978 | #define APBH_DMA_BURST_SIZE_CH6_SHIFT (12U) | ||
2979 | #define APBH_DMA_BURST_SIZE_CH6(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH6_SHIFT)) & APBH_DMA_BURST_SIZE_CH6_MASK) | ||
2980 | #define APBH_DMA_BURST_SIZE_CH7_MASK (0xC000U) | ||
2981 | #define APBH_DMA_BURST_SIZE_CH7_SHIFT (14U) | ||
2982 | #define APBH_DMA_BURST_SIZE_CH7(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH7_SHIFT)) & APBH_DMA_BURST_SIZE_CH7_MASK) | ||
2983 | #define APBH_DMA_BURST_SIZE_CH8_MASK (0x30000U) | ||
2984 | #define APBH_DMA_BURST_SIZE_CH8_SHIFT (16U) | ||
2985 | /*! CH8 | ||
2986 | * 0b00..BURST0 | ||
2987 | * 0b01..BURST4 | ||
2988 | * 0b10..BURST8 | ||
2989 | */ | ||
2990 | #define APBH_DMA_BURST_SIZE_CH8(x) (((uint32_t)(((uint32_t)(x)) << APBH_DMA_BURST_SIZE_CH8_SHIFT)) & APBH_DMA_BURST_SIZE_CH8_MASK) | ||
2991 | /*! @} */ | ||
2992 | |||
2993 | /*! @name DEBUG - AHB to APBH DMA Debug Register */ | ||
2994 | /*! @{ */ | ||
2995 | #define APBH_DEBUG_GPMI_ONE_FIFO_MASK (0x1U) | ||
2996 | #define APBH_DEBUG_GPMI_ONE_FIFO_SHIFT (0U) | ||
2997 | #define APBH_DEBUG_GPMI_ONE_FIFO(x) (((uint32_t)(((uint32_t)(x)) << APBH_DEBUG_GPMI_ONE_FIFO_SHIFT)) & APBH_DEBUG_GPMI_ONE_FIFO_MASK) | ||
2998 | /*! @} */ | ||
2999 | |||
3000 | /*! @name CH_CURCMDAR - APBH DMA Channel n Current Command Address Register */ | ||
3001 | /*! @{ */ | ||
3002 | #define APBH_CH_CURCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU) | ||
3003 | #define APBH_CH_CURCMDAR_CMD_ADDR_SHIFT (0U) | ||
3004 | #define APBH_CH_CURCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CURCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_CURCMDAR_CMD_ADDR_MASK) | ||
3005 | /*! @} */ | ||
3006 | |||
3007 | /* The count of APBH_CH_CURCMDAR */ | ||
3008 | #define APBH_CH_CURCMDAR_COUNT (16U) | ||
3009 | |||
3010 | /*! @name CH_NXTCMDAR - APBH DMA Channel n Next Command Address Register */ | ||
3011 | /*! @{ */ | ||
3012 | #define APBH_CH_NXTCMDAR_CMD_ADDR_MASK (0xFFFFFFFFU) | ||
3013 | #define APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT (0U) | ||
3014 | #define APBH_CH_NXTCMDAR_CMD_ADDR(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_NXTCMDAR_CMD_ADDR_SHIFT)) & APBH_CH_NXTCMDAR_CMD_ADDR_MASK) | ||
3015 | /*! @} */ | ||
3016 | |||
3017 | /* The count of APBH_CH_NXTCMDAR */ | ||
3018 | #define APBH_CH_NXTCMDAR_COUNT (16U) | ||
3019 | |||
3020 | /*! @name CH_CMD - APBH DMA Channel n Command Register */ | ||
3021 | /*! @{ */ | ||
3022 | #define APBH_CH_CMD_COMMAND_MASK (0x3U) | ||
3023 | #define APBH_CH_CMD_COMMAND_SHIFT (0U) | ||
3024 | /*! COMMAND | ||
3025 | * 0b00..Perform any requested PIO word transfers but terminate command before any DMA transfer. | ||
3026 | * 0b01..Perform any requested PIO word transfers and then perform a DMA transfer from the peripheral for the specified number of bytes. | ||
3027 | * 0b10..Perform any requested PIO word transfers and then perform a DMA transfer to the peripheral for the specified number of bytes. | ||
3028 | * 0b11..Perform any requested PIO word transfers and then perform a conditional branch to the next chained | ||
3029 | * device. Follow the NEXCMD_ADDR pointer if the perpheral sense is true. Follow the BUFFER_ADDRESS as a chain | ||
3030 | * pointer if the peripheral sense line is false. | ||
3031 | */ | ||
3032 | #define APBH_CH_CMD_COMMAND(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_COMMAND_SHIFT)) & APBH_CH_CMD_COMMAND_MASK) | ||
3033 | #define APBH_CH_CMD_CHAIN_MASK (0x4U) | ||
3034 | #define APBH_CH_CMD_CHAIN_SHIFT (2U) | ||
3035 | #define APBH_CH_CMD_CHAIN(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CHAIN_SHIFT)) & APBH_CH_CMD_CHAIN_MASK) | ||
3036 | #define APBH_CH_CMD_IRQONCMPLT_MASK (0x8U) | ||
3037 | #define APBH_CH_CMD_IRQONCMPLT_SHIFT (3U) | ||
3038 | #define APBH_CH_CMD_IRQONCMPLT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_IRQONCMPLT_SHIFT)) & APBH_CH_CMD_IRQONCMPLT_MASK) | ||
3039 | #define APBH_CH_CMD_NANDLOCK_MASK (0x10U) | ||
3040 | #define APBH_CH_CMD_NANDLOCK_SHIFT (4U) | ||
3041 | #define APBH_CH_CMD_NANDLOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDLOCK_SHIFT)) & APBH_CH_CMD_NANDLOCK_MASK) | ||
3042 | #define APBH_CH_CMD_NANDWAIT4READY_MASK (0x20U) | ||
3043 | #define APBH_CH_CMD_NANDWAIT4READY_SHIFT (5U) | ||
3044 | #define APBH_CH_CMD_NANDWAIT4READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_NANDWAIT4READY_SHIFT)) & APBH_CH_CMD_NANDWAIT4READY_MASK) | ||
3045 | #define APBH_CH_CMD_SEMAPHORE_MASK (0x40U) | ||
3046 | #define APBH_CH_CMD_SEMAPHORE_SHIFT (6U) | ||
3047 | #define APBH_CH_CMD_SEMAPHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_SEMAPHORE_SHIFT)) & APBH_CH_CMD_SEMAPHORE_MASK) | ||
3048 | #define APBH_CH_CMD_WAIT4ENDCMD_MASK (0x80U) | ||
3049 | #define APBH_CH_CMD_WAIT4ENDCMD_SHIFT (7U) | ||
3050 | #define APBH_CH_CMD_WAIT4ENDCMD(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_WAIT4ENDCMD_SHIFT)) & APBH_CH_CMD_WAIT4ENDCMD_MASK) | ||
3051 | #define APBH_CH_CMD_HALTONTERMINATE_MASK (0x100U) | ||
3052 | #define APBH_CH_CMD_HALTONTERMINATE_SHIFT (8U) | ||
3053 | #define APBH_CH_CMD_HALTONTERMINATE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_HALTONTERMINATE_SHIFT)) & APBH_CH_CMD_HALTONTERMINATE_MASK) | ||
3054 | #define APBH_CH_CMD_CMDWORDS_MASK (0xF000U) | ||
3055 | #define APBH_CH_CMD_CMDWORDS_SHIFT (12U) | ||
3056 | #define APBH_CH_CMD_CMDWORDS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_CMDWORDS_SHIFT)) & APBH_CH_CMD_CMDWORDS_MASK) | ||
3057 | #define APBH_CH_CMD_XFER_COUNT_MASK (0xFFFF0000U) | ||
3058 | #define APBH_CH_CMD_XFER_COUNT_SHIFT (16U) | ||
3059 | #define APBH_CH_CMD_XFER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_CMD_XFER_COUNT_SHIFT)) & APBH_CH_CMD_XFER_COUNT_MASK) | ||
3060 | /*! @} */ | ||
3061 | |||
3062 | /* The count of APBH_CH_CMD */ | ||
3063 | #define APBH_CH_CMD_COUNT (16U) | ||
3064 | |||
3065 | /*! @name CH_BAR - APBH DMA Channel n Buffer Address Register */ | ||
3066 | /*! @{ */ | ||
3067 | #define APBH_CH_BAR_ADDRESS_MASK (0xFFFFFFFFU) | ||
3068 | #define APBH_CH_BAR_ADDRESS_SHIFT (0U) | ||
3069 | #define APBH_CH_BAR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_BAR_ADDRESS_SHIFT)) & APBH_CH_BAR_ADDRESS_MASK) | ||
3070 | /*! @} */ | ||
3071 | |||
3072 | /* The count of APBH_CH_BAR */ | ||
3073 | #define APBH_CH_BAR_COUNT (16U) | ||
3074 | |||
3075 | /*! @name CH_SEMA - APBH DMA Channel n Semaphore Register */ | ||
3076 | /*! @{ */ | ||
3077 | #define APBH_CH_SEMA_INCREMENT_SEMA_MASK (0xFFU) | ||
3078 | #define APBH_CH_SEMA_INCREMENT_SEMA_SHIFT (0U) | ||
3079 | #define APBH_CH_SEMA_INCREMENT_SEMA(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_INCREMENT_SEMA_SHIFT)) & APBH_CH_SEMA_INCREMENT_SEMA_MASK) | ||
3080 | #define APBH_CH_SEMA_PHORE_MASK (0xFF0000U) | ||
3081 | #define APBH_CH_SEMA_PHORE_SHIFT (16U) | ||
3082 | #define APBH_CH_SEMA_PHORE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_SEMA_PHORE_SHIFT)) & APBH_CH_SEMA_PHORE_MASK) | ||
3083 | /*! @} */ | ||
3084 | |||
3085 | /* The count of APBH_CH_SEMA */ | ||
3086 | #define APBH_CH_SEMA_COUNT (16U) | ||
3087 | |||
3088 | /*! @name CH_DEBUG1 - AHB to APBH DMA Channel n Debug Information */ | ||
3089 | /*! @{ */ | ||
3090 | #define APBH_CH_DEBUG1_STATEMACHINE_MASK (0x1FU) | ||
3091 | #define APBH_CH_DEBUG1_STATEMACHINE_SHIFT (0U) | ||
3092 | /*! STATEMACHINE | ||
3093 | * 0b00000..This is the idle state of the DMA state machine. | ||
3094 | * 0b00001..State in which the DMA is waiting to receive the first word of a command. | ||
3095 | * 0b00010..State in which the DMA is waiting to receive the third word of a command. | ||
3096 | * 0b00011..State in which the DMA is waiting to receive the second word of a command. | ||
3097 | * 0b00100..The state machine processes the descriptor command field in this state and branches accordingly. | ||
3098 | * 0b00101..The state machine waits in this state for the PIO APB cycles to complete. | ||
3099 | * 0b00110..State in which the DMA is waiting to receive the fourth word of a command, or waiting to receive the | ||
3100 | * PIO words when PIO count is greater than 1. | ||
3101 | * 0b00111..This state determines whether another PIO cycle needs to occur before starting DMA transfers. | ||
3102 | * 0b01000..During a read transfers, the state machine enters this state waiting for the last bytes to be pushed out on the APB. | ||
3103 | * 0b01001..When an AHB read request occurs, the state machine waits in this state for the AHB transfer to complete. | ||
3104 | * 0b01100..During DMA Write transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel. | ||
3105 | * 0b01101..During DMA Read transfers, the state machine waits in this state until the AHB master arbiter accepts the request from this channel. | ||
3106 | * 0b01110..Upon completion of the DMA transfers, this state checks the value of the Chain bit and branches accordingly. | ||
3107 | * 0b01111..The state machine goes to this state after the DMA transfers are complete, and determines what step to take next. | ||
3108 | * 0b10100..When a terminate signal is set, the state machine enters this state until the current AHB transfer is completed. | ||
3109 | * 0b10101..When the Wait for Command End bit is set, the state machine enters this state until the DMA device indicates that the command is complete. | ||
3110 | * 0b11100..During DMA Write transfers, the state machine waits in this state until the AHB master completes the write to the AHB memory space. | ||
3111 | * 0b11101..If HALTONTERMINATE is set and a terminate signal is set, the state machine enters this state and | ||
3112 | * effectively halts. A channel reset is required to exit this state | ||
3113 | * 0b11110..If the Chain bit is a 0, the state machine enters this state and effectively halts. | ||
3114 | * 0b11111..When the NAND Wait for Ready bit is set, the state machine enters this state until the GPMI device | ||
3115 | * indicates that the external device is ready. | ||
3116 | */ | ||
3117 | #define APBH_CH_DEBUG1_STATEMACHINE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_STATEMACHINE_SHIFT)) & APBH_CH_DEBUG1_STATEMACHINE_MASK) | ||
3118 | #define APBH_CH_DEBUG1_RSVD1_MASK (0xFFFE0U) | ||
3119 | #define APBH_CH_DEBUG1_RSVD1_SHIFT (5U) | ||
3120 | #define APBH_CH_DEBUG1_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RSVD1_SHIFT)) & APBH_CH_DEBUG1_RSVD1_MASK) | ||
3121 | #define APBH_CH_DEBUG1_WR_FIFO_FULL_MASK (0x100000U) | ||
3122 | #define APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT (20U) | ||
3123 | #define APBH_CH_DEBUG1_WR_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_FULL_MASK) | ||
3124 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK (0x200000U) | ||
3125 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT (21U) | ||
3126 | #define APBH_CH_DEBUG1_WR_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_WR_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_WR_FIFO_EMPTY_MASK) | ||
3127 | #define APBH_CH_DEBUG1_RD_FIFO_FULL_MASK (0x400000U) | ||
3128 | #define APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT (22U) | ||
3129 | #define APBH_CH_DEBUG1_RD_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_FULL_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_FULL_MASK) | ||
3130 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK (0x800000U) | ||
3131 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT (23U) | ||
3132 | #define APBH_CH_DEBUG1_RD_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_RD_FIFO_EMPTY_SHIFT)) & APBH_CH_DEBUG1_RD_FIFO_EMPTY_MASK) | ||
3133 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK (0x1000000U) | ||
3134 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT (24U) | ||
3135 | #define APBH_CH_DEBUG1_NEXTCMDADDRVALID(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_NEXTCMDADDRVALID_SHIFT)) & APBH_CH_DEBUG1_NEXTCMDADDRVALID_MASK) | ||
3136 | #define APBH_CH_DEBUG1_LOCK_MASK (0x2000000U) | ||
3137 | #define APBH_CH_DEBUG1_LOCK_SHIFT (25U) | ||
3138 | #define APBH_CH_DEBUG1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_LOCK_SHIFT)) & APBH_CH_DEBUG1_LOCK_MASK) | ||
3139 | #define APBH_CH_DEBUG1_READY_MASK (0x4000000U) | ||
3140 | #define APBH_CH_DEBUG1_READY_SHIFT (26U) | ||
3141 | #define APBH_CH_DEBUG1_READY(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_READY_SHIFT)) & APBH_CH_DEBUG1_READY_MASK) | ||
3142 | #define APBH_CH_DEBUG1_SENSE_MASK (0x8000000U) | ||
3143 | #define APBH_CH_DEBUG1_SENSE_SHIFT (27U) | ||
3144 | #define APBH_CH_DEBUG1_SENSE(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_SENSE_SHIFT)) & APBH_CH_DEBUG1_SENSE_MASK) | ||
3145 | #define APBH_CH_DEBUG1_END_MASK (0x10000000U) | ||
3146 | #define APBH_CH_DEBUG1_END_SHIFT (28U) | ||
3147 | #define APBH_CH_DEBUG1_END(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_END_SHIFT)) & APBH_CH_DEBUG1_END_MASK) | ||
3148 | #define APBH_CH_DEBUG1_KICK_MASK (0x20000000U) | ||
3149 | #define APBH_CH_DEBUG1_KICK_SHIFT (29U) | ||
3150 | #define APBH_CH_DEBUG1_KICK(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_KICK_SHIFT)) & APBH_CH_DEBUG1_KICK_MASK) | ||
3151 | #define APBH_CH_DEBUG1_BURST_MASK (0x40000000U) | ||
3152 | #define APBH_CH_DEBUG1_BURST_SHIFT (30U) | ||
3153 | #define APBH_CH_DEBUG1_BURST(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_BURST_SHIFT)) & APBH_CH_DEBUG1_BURST_MASK) | ||
3154 | #define APBH_CH_DEBUG1_REQ_MASK (0x80000000U) | ||
3155 | #define APBH_CH_DEBUG1_REQ_SHIFT (31U) | ||
3156 | #define APBH_CH_DEBUG1_REQ(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG1_REQ_SHIFT)) & APBH_CH_DEBUG1_REQ_MASK) | ||
3157 | /*! @} */ | ||
3158 | |||
3159 | /* The count of APBH_CH_DEBUG1 */ | ||
3160 | #define APBH_CH_DEBUG1_COUNT (16U) | ||
3161 | |||
3162 | /*! @name CH_DEBUG2 - AHB to APBH DMA Channel n Debug Information */ | ||
3163 | /*! @{ */ | ||
3164 | #define APBH_CH_DEBUG2_AHB_BYTES_MASK (0xFFFFU) | ||
3165 | #define APBH_CH_DEBUG2_AHB_BYTES_SHIFT (0U) | ||
3166 | #define APBH_CH_DEBUG2_AHB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_AHB_BYTES_SHIFT)) & APBH_CH_DEBUG2_AHB_BYTES_MASK) | ||
3167 | #define APBH_CH_DEBUG2_APB_BYTES_MASK (0xFFFF0000U) | ||
3168 | #define APBH_CH_DEBUG2_APB_BYTES_SHIFT (16U) | ||
3169 | #define APBH_CH_DEBUG2_APB_BYTES(x) (((uint32_t)(((uint32_t)(x)) << APBH_CH_DEBUG2_APB_BYTES_SHIFT)) & APBH_CH_DEBUG2_APB_BYTES_MASK) | ||
3170 | /*! @} */ | ||
3171 | |||
3172 | /* The count of APBH_CH_DEBUG2 */ | ||
3173 | #define APBH_CH_DEBUG2_COUNT (16U) | ||
3174 | |||
3175 | /*! @name VERSION - APBH Bridge Version Register */ | ||
3176 | /*! @{ */ | ||
3177 | #define APBH_VERSION_STEP_MASK (0xFFFFU) | ||
3178 | #define APBH_VERSION_STEP_SHIFT (0U) | ||
3179 | #define APBH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_STEP_SHIFT)) & APBH_VERSION_STEP_MASK) | ||
3180 | #define APBH_VERSION_MINOR_MASK (0xFF0000U) | ||
3181 | #define APBH_VERSION_MINOR_SHIFT (16U) | ||
3182 | #define APBH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MINOR_SHIFT)) & APBH_VERSION_MINOR_MASK) | ||
3183 | #define APBH_VERSION_MAJOR_MASK (0xFF000000U) | ||
3184 | #define APBH_VERSION_MAJOR_SHIFT (24U) | ||
3185 | #define APBH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << APBH_VERSION_MAJOR_SHIFT)) & APBH_VERSION_MAJOR_MASK) | ||
3186 | /*! @} */ | ||
3187 | |||
3188 | |||
3189 | /*! | ||
3190 | * @} | ||
3191 | */ /* end of group APBH_Register_Masks */ | ||
3192 | |||
3193 | |||
3194 | /* APBH - Peripheral instance base addresses */ | ||
3195 | /** Peripheral APBH base address */ | ||
3196 | #define APBH_BASE (0x33000000u) | ||
3197 | /** Peripheral APBH base pointer */ | ||
3198 | #define APBH ((APBH_Type *)APBH_BASE) | ||
3199 | /** Array initializer of APBH peripheral base addresses */ | ||
3200 | #define APBH_BASE_ADDRS { APBH_BASE } | ||
3201 | /** Array initializer of APBH peripheral base pointers */ | ||
3202 | #define APBH_BASE_PTRS { APBH } | ||
3203 | /** Interrupt vectors for the APBH peripheral type */ | ||
3204 | #define APBH_IRQS { APBHDMA_IRQn } | ||
3205 | |||
3206 | /*! | ||
3207 | * @} | ||
3208 | */ /* end of group APBH_Peripheral_Access_Layer */ | ||
3209 | |||
3210 | |||
3211 | /* ---------------------------------------------------------------------------- | ||
3212 | -- BCH Peripheral Access Layer | ||
3213 | ---------------------------------------------------------------------------- */ | ||
3214 | |||
3215 | /*! | ||
3216 | * @addtogroup BCH_Peripheral_Access_Layer BCH Peripheral Access Layer | ||
3217 | * @{ | ||
3218 | */ | ||
3219 | |||
3220 | /** BCH - Register Layout Typedef */ | ||
3221 | typedef struct { | ||
3222 | __IO uint32_t CTRL; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x0 */ | ||
3223 | __IO uint32_t CTRL_SET; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x4 */ | ||
3224 | __IO uint32_t CTRL_CLR; /**< Hardware BCH ECC Accelerator Control Register, offset: 0x8 */ | ||
3225 | __IO uint32_t CTRL_TOG; /**< Hardware BCH ECC Accelerator Control Register, offset: 0xC */ | ||
3226 | __I uint32_t STATUS0; /**< Hardware ECC Accelerator Status Register 0, offset: 0x10 */ | ||
3227 | uint8_t RESERVED_0[12]; | ||
3228 | __IO uint32_t MODE; /**< Hardware ECC Accelerator Mode Register, offset: 0x20 */ | ||
3229 | uint8_t RESERVED_1[12]; | ||
3230 | __IO uint32_t ENCODEPTR; /**< Hardware BCH ECC Loopback Encode Buffer Register, offset: 0x30 */ | ||
3231 | uint8_t RESERVED_2[12]; | ||
3232 | __IO uint32_t DATAPTR; /**< Hardware BCH ECC Loopback Data Buffer Register, offset: 0x40 */ | ||
3233 | uint8_t RESERVED_3[12]; | ||
3234 | __IO uint32_t METAPTR; /**< Hardware BCH ECC Loopback Metadata Buffer Register, offset: 0x50 */ | ||
3235 | uint8_t RESERVED_4[28]; | ||
3236 | __IO uint32_t LAYOUTSELECT; /**< Hardware ECC Accelerator Layout Select Register, offset: 0x70 */ | ||
3237 | uint8_t RESERVED_5[12]; | ||
3238 | __IO uint32_t FLASH0LAYOUT0; /**< Hardware BCH ECC Flash 0 Layout 0 Register, offset: 0x80 */ | ||
3239 | uint8_t RESERVED_6[12]; | ||
3240 | __IO uint32_t FLASH0LAYOUT1; /**< Hardware BCH ECC Flash 0 Layout 1 Register, offset: 0x90 */ | ||
3241 | uint8_t RESERVED_7[12]; | ||
3242 | __IO uint32_t FLASH1LAYOUT0; /**< Hardware BCH ECC Flash 1 Layout 0 Register, offset: 0xA0 */ | ||
3243 | uint8_t RESERVED_8[12]; | ||
3244 | __IO uint32_t FLASH1LAYOUT1; /**< Hardware BCH ECC Flash 1 Layout 1 Register, offset: 0xB0 */ | ||
3245 | uint8_t RESERVED_9[12]; | ||
3246 | __IO uint32_t FLASH2LAYOUT0; /**< Hardware BCH ECC Flash 2 Layout 0 Register, offset: 0xC0 */ | ||
3247 | uint8_t RESERVED_10[12]; | ||
3248 | __IO uint32_t FLASH2LAYOUT1; /**< Hardware BCH ECC Flash 2 Layout 1 Register, offset: 0xD0 */ | ||
3249 | uint8_t RESERVED_11[12]; | ||
3250 | __IO uint32_t FLASH3LAYOUT0; /**< Hardware BCH ECC Flash 3 Layout 0 Register, offset: 0xE0 */ | ||
3251 | uint8_t RESERVED_12[12]; | ||
3252 | __IO uint32_t FLASH3LAYOUT1; /**< Hardware BCH ECC Flash 3 Layout 1 Register, offset: 0xF0 */ | ||
3253 | uint8_t RESERVED_13[12]; | ||
3254 | __IO uint32_t DEBUG0; /**< Hardware BCH ECC Debug Register0, offset: 0x100 */ | ||
3255 | __IO uint32_t DEBUG0_SET; /**< Hardware BCH ECC Debug Register0, offset: 0x104 */ | ||
3256 | __IO uint32_t DEBUG0_CLR; /**< Hardware BCH ECC Debug Register0, offset: 0x108 */ | ||
3257 | __IO uint32_t DEBUG0_TOG; /**< Hardware BCH ECC Debug Register0, offset: 0x10C */ | ||
3258 | __I uint32_t DBGKESREAD; /**< KES Debug Read Register, offset: 0x110 */ | ||
3259 | uint8_t RESERVED_14[12]; | ||
3260 | __I uint32_t DBGCSFEREAD; /**< Chien Search Debug Read Register, offset: 0x120 */ | ||
3261 | uint8_t RESERVED_15[12]; | ||
3262 | __I uint32_t DBGSYNDGENREAD; /**< Syndrome Generator Debug Read Register, offset: 0x130 */ | ||
3263 | uint8_t RESERVED_16[12]; | ||
3264 | __I uint32_t DBGAHBMREAD; /**< Bus Master and ECC Controller Debug Read Register, offset: 0x140 */ | ||
3265 | uint8_t RESERVED_17[12]; | ||
3266 | __I uint32_t BLOCKNAME; /**< Block Name Register, offset: 0x150 */ | ||
3267 | uint8_t RESERVED_18[12]; | ||
3268 | __I uint32_t VERSION; /**< BCH Version Register, offset: 0x160 */ | ||
3269 | uint8_t RESERVED_19[12]; | ||
3270 | __IO uint32_t DEBUG1; /**< Hardware BCH ECC Debug Register 1, offset: 0x170 */ | ||
3271 | } BCH_Type; | ||
3272 | |||
3273 | /* ---------------------------------------------------------------------------- | ||
3274 | -- BCH Register Masks | ||
3275 | ---------------------------------------------------------------------------- */ | ||
3276 | |||
3277 | /*! | ||
3278 | * @addtogroup BCH_Register_Masks BCH Register Masks | ||
3279 | * @{ | ||
3280 | */ | ||
3281 | |||
3282 | /*! @name CTRL - Hardware BCH ECC Accelerator Control Register */ | ||
3283 | /*! @{ */ | ||
3284 | #define BCH_CTRL_COMPLETE_IRQ_MASK (0x1U) | ||
3285 | #define BCH_CTRL_COMPLETE_IRQ_SHIFT (0U) | ||
3286 | #define BCH_CTRL_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_MASK) | ||
3287 | #define BCH_CTRL_RSVD0_MASK (0x2U) | ||
3288 | #define BCH_CTRL_RSVD0_SHIFT (1U) | ||
3289 | #define BCH_CTRL_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD0_SHIFT)) & BCH_CTRL_RSVD0_MASK) | ||
3290 | #define BCH_CTRL_DEBUG_STALL_IRQ_MASK (0x4U) | ||
3291 | #define BCH_CTRL_DEBUG_STALL_IRQ_SHIFT (2U) | ||
3292 | #define BCH_CTRL_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_DEBUG_STALL_IRQ_MASK) | ||
3293 | #define BCH_CTRL_BM_ERROR_IRQ_MASK (0x8U) | ||
3294 | #define BCH_CTRL_BM_ERROR_IRQ_SHIFT (3U) | ||
3295 | #define BCH_CTRL_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_BM_ERROR_IRQ_MASK) | ||
3296 | #define BCH_CTRL_RSVD1_MASK (0xF0U) | ||
3297 | #define BCH_CTRL_RSVD1_SHIFT (4U) | ||
3298 | #define BCH_CTRL_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD1_SHIFT)) & BCH_CTRL_RSVD1_MASK) | ||
3299 | #define BCH_CTRL_COMPLETE_IRQ_EN_MASK (0x100U) | ||
3300 | #define BCH_CTRL_COMPLETE_IRQ_EN_SHIFT (8U) | ||
3301 | #define BCH_CTRL_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_COMPLETE_IRQ_EN_MASK) | ||
3302 | #define BCH_CTRL_RSVD2_MASK (0x200U) | ||
3303 | #define BCH_CTRL_RSVD2_SHIFT (9U) | ||
3304 | #define BCH_CTRL_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD2_SHIFT)) & BCH_CTRL_RSVD2_MASK) | ||
3305 | #define BCH_CTRL_DEBUG_STALL_IRQ_EN_MASK (0x400U) | ||
3306 | #define BCH_CTRL_DEBUG_STALL_IRQ_EN_SHIFT (10U) | ||
3307 | #define BCH_CTRL_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_DEBUG_STALL_IRQ_EN_MASK) | ||
3308 | #define BCH_CTRL_RSVD3_MASK (0xF800U) | ||
3309 | #define BCH_CTRL_RSVD3_SHIFT (11U) | ||
3310 | #define BCH_CTRL_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD3_SHIFT)) & BCH_CTRL_RSVD3_MASK) | ||
3311 | #define BCH_CTRL_M2M_ENABLE_MASK (0x10000U) | ||
3312 | #define BCH_CTRL_M2M_ENABLE_SHIFT (16U) | ||
3313 | #define BCH_CTRL_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENABLE_SHIFT)) & BCH_CTRL_M2M_ENABLE_MASK) | ||
3314 | #define BCH_CTRL_M2M_ENCODE_MASK (0x20000U) | ||
3315 | #define BCH_CTRL_M2M_ENCODE_SHIFT (17U) | ||
3316 | #define BCH_CTRL_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_ENCODE_SHIFT)) & BCH_CTRL_M2M_ENCODE_MASK) | ||
3317 | #define BCH_CTRL_M2M_LAYOUT_MASK (0xC0000U) | ||
3318 | #define BCH_CTRL_M2M_LAYOUT_SHIFT (18U) | ||
3319 | #define BCH_CTRL_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_M2M_LAYOUT_SHIFT)) & BCH_CTRL_M2M_LAYOUT_MASK) | ||
3320 | #define BCH_CTRL_RSVD4_MASK (0x300000U) | ||
3321 | #define BCH_CTRL_RSVD4_SHIFT (20U) | ||
3322 | #define BCH_CTRL_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD4_SHIFT)) & BCH_CTRL_RSVD4_MASK) | ||
3323 | #define BCH_CTRL_DEBUGSYNDROME_MASK (0x400000U) | ||
3324 | #define BCH_CTRL_DEBUGSYNDROME_SHIFT (22U) | ||
3325 | #define BCH_CTRL_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_DEBUGSYNDROME_MASK) | ||
3326 | #define BCH_CTRL_RSVD5_MASK (0x3F800000U) | ||
3327 | #define BCH_CTRL_RSVD5_SHIFT (23U) | ||
3328 | #define BCH_CTRL_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_RSVD5_SHIFT)) & BCH_CTRL_RSVD5_MASK) | ||
3329 | #define BCH_CTRL_CLKGATE_MASK (0x40000000U) | ||
3330 | #define BCH_CTRL_CLKGATE_SHIFT (30U) | ||
3331 | /*! CLKGATE | ||
3332 | * 0b0..Allow BCH to operate normally. | ||
3333 | * 0b1..Do not clock BCH gates in order to minimize power consumption. | ||
3334 | */ | ||
3335 | #define BCH_CTRL_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLKGATE_SHIFT)) & BCH_CTRL_CLKGATE_MASK) | ||
3336 | #define BCH_CTRL_SFTRST_MASK (0x80000000U) | ||
3337 | #define BCH_CTRL_SFTRST_SHIFT (31U) | ||
3338 | /*! SFTRST | ||
3339 | * 0b0..Allow BCH to operate normally. | ||
3340 | * 0b1..Hold BCH in reset. | ||
3341 | */ | ||
3342 | #define BCH_CTRL_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SFTRST_SHIFT)) & BCH_CTRL_SFTRST_MASK) | ||
3343 | /*! @} */ | ||
3344 | |||
3345 | /*! @name CTRL_SET - Hardware BCH ECC Accelerator Control Register */ | ||
3346 | /*! @{ */ | ||
3347 | #define BCH_CTRL_SET_COMPLETE_IRQ_MASK (0x1U) | ||
3348 | #define BCH_CTRL_SET_COMPLETE_IRQ_SHIFT (0U) | ||
3349 | #define BCH_CTRL_SET_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_SET_COMPLETE_IRQ_MASK) | ||
3350 | #define BCH_CTRL_SET_RSVD0_MASK (0x2U) | ||
3351 | #define BCH_CTRL_SET_RSVD0_SHIFT (1U) | ||
3352 | #define BCH_CTRL_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD0_SHIFT)) & BCH_CTRL_SET_RSVD0_MASK) | ||
3353 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ_MASK (0x4U) | ||
3354 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ_SHIFT (2U) | ||
3355 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_SET_DEBUG_STALL_IRQ_MASK) | ||
3356 | #define BCH_CTRL_SET_BM_ERROR_IRQ_MASK (0x8U) | ||
3357 | #define BCH_CTRL_SET_BM_ERROR_IRQ_SHIFT (3U) | ||
3358 | #define BCH_CTRL_SET_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_SET_BM_ERROR_IRQ_MASK) | ||
3359 | #define BCH_CTRL_SET_RSVD1_MASK (0xF0U) | ||
3360 | #define BCH_CTRL_SET_RSVD1_SHIFT (4U) | ||
3361 | #define BCH_CTRL_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD1_SHIFT)) & BCH_CTRL_SET_RSVD1_MASK) | ||
3362 | #define BCH_CTRL_SET_COMPLETE_IRQ_EN_MASK (0x100U) | ||
3363 | #define BCH_CTRL_SET_COMPLETE_IRQ_EN_SHIFT (8U) | ||
3364 | #define BCH_CTRL_SET_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_SET_COMPLETE_IRQ_EN_MASK) | ||
3365 | #define BCH_CTRL_SET_RSVD2_MASK (0x200U) | ||
3366 | #define BCH_CTRL_SET_RSVD2_SHIFT (9U) | ||
3367 | #define BCH_CTRL_SET_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD2_SHIFT)) & BCH_CTRL_SET_RSVD2_MASK) | ||
3368 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_MASK (0x400U) | ||
3369 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_SHIFT (10U) | ||
3370 | #define BCH_CTRL_SET_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_SET_DEBUG_STALL_IRQ_EN_MASK) | ||
3371 | #define BCH_CTRL_SET_RSVD3_MASK (0xF800U) | ||
3372 | #define BCH_CTRL_SET_RSVD3_SHIFT (11U) | ||
3373 | #define BCH_CTRL_SET_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD3_SHIFT)) & BCH_CTRL_SET_RSVD3_MASK) | ||
3374 | #define BCH_CTRL_SET_M2M_ENABLE_MASK (0x10000U) | ||
3375 | #define BCH_CTRL_SET_M2M_ENABLE_SHIFT (16U) | ||
3376 | #define BCH_CTRL_SET_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENABLE_SHIFT)) & BCH_CTRL_SET_M2M_ENABLE_MASK) | ||
3377 | #define BCH_CTRL_SET_M2M_ENCODE_MASK (0x20000U) | ||
3378 | #define BCH_CTRL_SET_M2M_ENCODE_SHIFT (17U) | ||
3379 | #define BCH_CTRL_SET_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_ENCODE_SHIFT)) & BCH_CTRL_SET_M2M_ENCODE_MASK) | ||
3380 | #define BCH_CTRL_SET_M2M_LAYOUT_MASK (0xC0000U) | ||
3381 | #define BCH_CTRL_SET_M2M_LAYOUT_SHIFT (18U) | ||
3382 | #define BCH_CTRL_SET_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_M2M_LAYOUT_SHIFT)) & BCH_CTRL_SET_M2M_LAYOUT_MASK) | ||
3383 | #define BCH_CTRL_SET_RSVD4_MASK (0x300000U) | ||
3384 | #define BCH_CTRL_SET_RSVD4_SHIFT (20U) | ||
3385 | #define BCH_CTRL_SET_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD4_SHIFT)) & BCH_CTRL_SET_RSVD4_MASK) | ||
3386 | #define BCH_CTRL_SET_DEBUGSYNDROME_MASK (0x400000U) | ||
3387 | #define BCH_CTRL_SET_DEBUGSYNDROME_SHIFT (22U) | ||
3388 | #define BCH_CTRL_SET_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_SET_DEBUGSYNDROME_MASK) | ||
3389 | #define BCH_CTRL_SET_RSVD5_MASK (0x3F800000U) | ||
3390 | #define BCH_CTRL_SET_RSVD5_SHIFT (23U) | ||
3391 | #define BCH_CTRL_SET_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_RSVD5_SHIFT)) & BCH_CTRL_SET_RSVD5_MASK) | ||
3392 | #define BCH_CTRL_SET_CLKGATE_MASK (0x40000000U) | ||
3393 | #define BCH_CTRL_SET_CLKGATE_SHIFT (30U) | ||
3394 | /*! CLKGATE | ||
3395 | * 0b0..Allow BCH to operate normally. | ||
3396 | * 0b1..Do not clock BCH gates in order to minimize power consumption. | ||
3397 | */ | ||
3398 | #define BCH_CTRL_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_CLKGATE_SHIFT)) & BCH_CTRL_SET_CLKGATE_MASK) | ||
3399 | #define BCH_CTRL_SET_SFTRST_MASK (0x80000000U) | ||
3400 | #define BCH_CTRL_SET_SFTRST_SHIFT (31U) | ||
3401 | /*! SFTRST | ||
3402 | * 0b0..Allow BCH to operate normally. | ||
3403 | * 0b1..Hold BCH in reset. | ||
3404 | */ | ||
3405 | #define BCH_CTRL_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_SET_SFTRST_SHIFT)) & BCH_CTRL_SET_SFTRST_MASK) | ||
3406 | /*! @} */ | ||
3407 | |||
3408 | /*! @name CTRL_CLR - Hardware BCH ECC Accelerator Control Register */ | ||
3409 | /*! @{ */ | ||
3410 | #define BCH_CTRL_CLR_COMPLETE_IRQ_MASK (0x1U) | ||
3411 | #define BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT (0U) | ||
3412 | #define BCH_CTRL_CLR_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_CLR_COMPLETE_IRQ_MASK) | ||
3413 | #define BCH_CTRL_CLR_RSVD0_MASK (0x2U) | ||
3414 | #define BCH_CTRL_CLR_RSVD0_SHIFT (1U) | ||
3415 | #define BCH_CTRL_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD0_SHIFT)) & BCH_CTRL_CLR_RSVD0_MASK) | ||
3416 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ_MASK (0x4U) | ||
3417 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ_SHIFT (2U) | ||
3418 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_CLR_DEBUG_STALL_IRQ_MASK) | ||
3419 | #define BCH_CTRL_CLR_BM_ERROR_IRQ_MASK (0x8U) | ||
3420 | #define BCH_CTRL_CLR_BM_ERROR_IRQ_SHIFT (3U) | ||
3421 | #define BCH_CTRL_CLR_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_CLR_BM_ERROR_IRQ_MASK) | ||
3422 | #define BCH_CTRL_CLR_RSVD1_MASK (0xF0U) | ||
3423 | #define BCH_CTRL_CLR_RSVD1_SHIFT (4U) | ||
3424 | #define BCH_CTRL_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD1_SHIFT)) & BCH_CTRL_CLR_RSVD1_MASK) | ||
3425 | #define BCH_CTRL_CLR_COMPLETE_IRQ_EN_MASK (0x100U) | ||
3426 | #define BCH_CTRL_CLR_COMPLETE_IRQ_EN_SHIFT (8U) | ||
3427 | #define BCH_CTRL_CLR_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_CLR_COMPLETE_IRQ_EN_MASK) | ||
3428 | #define BCH_CTRL_CLR_RSVD2_MASK (0x200U) | ||
3429 | #define BCH_CTRL_CLR_RSVD2_SHIFT (9U) | ||
3430 | #define BCH_CTRL_CLR_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD2_SHIFT)) & BCH_CTRL_CLR_RSVD2_MASK) | ||
3431 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_MASK (0x400U) | ||
3432 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_SHIFT (10U) | ||
3433 | #define BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_CLR_DEBUG_STALL_IRQ_EN_MASK) | ||
3434 | #define BCH_CTRL_CLR_RSVD3_MASK (0xF800U) | ||
3435 | #define BCH_CTRL_CLR_RSVD3_SHIFT (11U) | ||
3436 | #define BCH_CTRL_CLR_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD3_SHIFT)) & BCH_CTRL_CLR_RSVD3_MASK) | ||
3437 | #define BCH_CTRL_CLR_M2M_ENABLE_MASK (0x10000U) | ||
3438 | #define BCH_CTRL_CLR_M2M_ENABLE_SHIFT (16U) | ||
3439 | #define BCH_CTRL_CLR_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENABLE_SHIFT)) & BCH_CTRL_CLR_M2M_ENABLE_MASK) | ||
3440 | #define BCH_CTRL_CLR_M2M_ENCODE_MASK (0x20000U) | ||
3441 | #define BCH_CTRL_CLR_M2M_ENCODE_SHIFT (17U) | ||
3442 | #define BCH_CTRL_CLR_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_ENCODE_SHIFT)) & BCH_CTRL_CLR_M2M_ENCODE_MASK) | ||
3443 | #define BCH_CTRL_CLR_M2M_LAYOUT_MASK (0xC0000U) | ||
3444 | #define BCH_CTRL_CLR_M2M_LAYOUT_SHIFT (18U) | ||
3445 | #define BCH_CTRL_CLR_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_M2M_LAYOUT_SHIFT)) & BCH_CTRL_CLR_M2M_LAYOUT_MASK) | ||
3446 | #define BCH_CTRL_CLR_RSVD4_MASK (0x300000U) | ||
3447 | #define BCH_CTRL_CLR_RSVD4_SHIFT (20U) | ||
3448 | #define BCH_CTRL_CLR_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD4_SHIFT)) & BCH_CTRL_CLR_RSVD4_MASK) | ||
3449 | #define BCH_CTRL_CLR_DEBUGSYNDROME_MASK (0x400000U) | ||
3450 | #define BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT (22U) | ||
3451 | #define BCH_CTRL_CLR_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_CLR_DEBUGSYNDROME_MASK) | ||
3452 | #define BCH_CTRL_CLR_RSVD5_MASK (0x3F800000U) | ||
3453 | #define BCH_CTRL_CLR_RSVD5_SHIFT (23U) | ||
3454 | #define BCH_CTRL_CLR_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_RSVD5_SHIFT)) & BCH_CTRL_CLR_RSVD5_MASK) | ||
3455 | #define BCH_CTRL_CLR_CLKGATE_MASK (0x40000000U) | ||
3456 | #define BCH_CTRL_CLR_CLKGATE_SHIFT (30U) | ||
3457 | /*! CLKGATE | ||
3458 | * 0b0..Allow BCH to operate normally. | ||
3459 | * 0b1..Do not clock BCH gates in order to minimize power consumption. | ||
3460 | */ | ||
3461 | #define BCH_CTRL_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_CLKGATE_SHIFT)) & BCH_CTRL_CLR_CLKGATE_MASK) | ||
3462 | #define BCH_CTRL_CLR_SFTRST_MASK (0x80000000U) | ||
3463 | #define BCH_CTRL_CLR_SFTRST_SHIFT (31U) | ||
3464 | /*! SFTRST | ||
3465 | * 0b0..Allow BCH to operate normally. | ||
3466 | * 0b1..Hold BCH in reset. | ||
3467 | */ | ||
3468 | #define BCH_CTRL_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_CLR_SFTRST_SHIFT)) & BCH_CTRL_CLR_SFTRST_MASK) | ||
3469 | /*! @} */ | ||
3470 | |||
3471 | /*! @name CTRL_TOG - Hardware BCH ECC Accelerator Control Register */ | ||
3472 | /*! @{ */ | ||
3473 | #define BCH_CTRL_TOG_COMPLETE_IRQ_MASK (0x1U) | ||
3474 | #define BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT (0U) | ||
3475 | #define BCH_CTRL_TOG_COMPLETE_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_COMPLETE_IRQ_SHIFT)) & BCH_CTRL_TOG_COMPLETE_IRQ_MASK) | ||
3476 | #define BCH_CTRL_TOG_RSVD0_MASK (0x2U) | ||
3477 | #define BCH_CTRL_TOG_RSVD0_SHIFT (1U) | ||
3478 | #define BCH_CTRL_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD0_SHIFT)) & BCH_CTRL_TOG_RSVD0_MASK) | ||
3479 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ_MASK (0x4U) | ||
3480 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ_SHIFT (2U) | ||
3481 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUG_STALL_IRQ_SHIFT)) & BCH_CTRL_TOG_DEBUG_STALL_IRQ_MASK) | ||
3482 | #define BCH_CTRL_TOG_BM_ERROR_IRQ_MASK (0x8U) | ||
3483 | #define BCH_CTRL_TOG_BM_ERROR_IRQ_SHIFT (3U) | ||
3484 | #define BCH_CTRL_TOG_BM_ERROR_IRQ(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_BM_ERROR_IRQ_SHIFT)) & BCH_CTRL_TOG_BM_ERROR_IRQ_MASK) | ||
3485 | #define BCH_CTRL_TOG_RSVD1_MASK (0xF0U) | ||
3486 | #define BCH_CTRL_TOG_RSVD1_SHIFT (4U) | ||
3487 | #define BCH_CTRL_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD1_SHIFT)) & BCH_CTRL_TOG_RSVD1_MASK) | ||
3488 | #define BCH_CTRL_TOG_COMPLETE_IRQ_EN_MASK (0x100U) | ||
3489 | #define BCH_CTRL_TOG_COMPLETE_IRQ_EN_SHIFT (8U) | ||
3490 | #define BCH_CTRL_TOG_COMPLETE_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_COMPLETE_IRQ_EN_SHIFT)) & BCH_CTRL_TOG_COMPLETE_IRQ_EN_MASK) | ||
3491 | #define BCH_CTRL_TOG_RSVD2_MASK (0x200U) | ||
3492 | #define BCH_CTRL_TOG_RSVD2_SHIFT (9U) | ||
3493 | #define BCH_CTRL_TOG_RSVD2(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD2_SHIFT)) & BCH_CTRL_TOG_RSVD2_MASK) | ||
3494 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_MASK (0x400U) | ||
3495 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_SHIFT (10U) | ||
3496 | #define BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_SHIFT)) & BCH_CTRL_TOG_DEBUG_STALL_IRQ_EN_MASK) | ||
3497 | #define BCH_CTRL_TOG_RSVD3_MASK (0xF800U) | ||
3498 | #define BCH_CTRL_TOG_RSVD3_SHIFT (11U) | ||
3499 | #define BCH_CTRL_TOG_RSVD3(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD3_SHIFT)) & BCH_CTRL_TOG_RSVD3_MASK) | ||
3500 | #define BCH_CTRL_TOG_M2M_ENABLE_MASK (0x10000U) | ||
3501 | #define BCH_CTRL_TOG_M2M_ENABLE_SHIFT (16U) | ||
3502 | #define BCH_CTRL_TOG_M2M_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENABLE_SHIFT)) & BCH_CTRL_TOG_M2M_ENABLE_MASK) | ||
3503 | #define BCH_CTRL_TOG_M2M_ENCODE_MASK (0x20000U) | ||
3504 | #define BCH_CTRL_TOG_M2M_ENCODE_SHIFT (17U) | ||
3505 | #define BCH_CTRL_TOG_M2M_ENCODE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_ENCODE_SHIFT)) & BCH_CTRL_TOG_M2M_ENCODE_MASK) | ||
3506 | #define BCH_CTRL_TOG_M2M_LAYOUT_MASK (0xC0000U) | ||
3507 | #define BCH_CTRL_TOG_M2M_LAYOUT_SHIFT (18U) | ||
3508 | #define BCH_CTRL_TOG_M2M_LAYOUT(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_M2M_LAYOUT_SHIFT)) & BCH_CTRL_TOG_M2M_LAYOUT_MASK) | ||
3509 | #define BCH_CTRL_TOG_RSVD4_MASK (0x300000U) | ||
3510 | #define BCH_CTRL_TOG_RSVD4_SHIFT (20U) | ||
3511 | #define BCH_CTRL_TOG_RSVD4(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD4_SHIFT)) & BCH_CTRL_TOG_RSVD4_MASK) | ||
3512 | #define BCH_CTRL_TOG_DEBUGSYNDROME_MASK (0x400000U) | ||
3513 | #define BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT (22U) | ||
3514 | #define BCH_CTRL_TOG_DEBUGSYNDROME(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_DEBUGSYNDROME_SHIFT)) & BCH_CTRL_TOG_DEBUGSYNDROME_MASK) | ||
3515 | #define BCH_CTRL_TOG_RSVD5_MASK (0x3F800000U) | ||
3516 | #define BCH_CTRL_TOG_RSVD5_SHIFT (23U) | ||
3517 | #define BCH_CTRL_TOG_RSVD5(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_RSVD5_SHIFT)) & BCH_CTRL_TOG_RSVD5_MASK) | ||
3518 | #define BCH_CTRL_TOG_CLKGATE_MASK (0x40000000U) | ||
3519 | #define BCH_CTRL_TOG_CLKGATE_SHIFT (30U) | ||
3520 | /*! CLKGATE | ||
3521 | * 0b0..Allow BCH to operate normally. | ||
3522 | * 0b1..Do not clock BCH gates in order to minimize power consumption. | ||
3523 | */ | ||
3524 | #define BCH_CTRL_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_CLKGATE_SHIFT)) & BCH_CTRL_TOG_CLKGATE_MASK) | ||
3525 | #define BCH_CTRL_TOG_SFTRST_MASK (0x80000000U) | ||
3526 | #define BCH_CTRL_TOG_SFTRST_SHIFT (31U) | ||
3527 | /*! SFTRST | ||
3528 | * 0b0..Allow BCH to operate normally. | ||
3529 | * 0b1..Hold BCH in reset. | ||
3530 | */ | ||
3531 | #define BCH_CTRL_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << BCH_CTRL_TOG_SFTRST_SHIFT)) & BCH_CTRL_TOG_SFTRST_MASK) | ||
3532 | /*! @} */ | ||
3533 | |||
3534 | /*! @name STATUS0 - Hardware ECC Accelerator Status Register 0 */ | ||
3535 | /*! @{ */ | ||
3536 | #define BCH_STATUS0_RSVD0_MASK (0x3U) | ||
3537 | #define BCH_STATUS0_RSVD0_SHIFT (0U) | ||
3538 | #define BCH_STATUS0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD0_SHIFT)) & BCH_STATUS0_RSVD0_MASK) | ||
3539 | #define BCH_STATUS0_UNCORRECTABLE_MASK (0x4U) | ||
3540 | #define BCH_STATUS0_UNCORRECTABLE_SHIFT (2U) | ||
3541 | #define BCH_STATUS0_UNCORRECTABLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_UNCORRECTABLE_SHIFT)) & BCH_STATUS0_UNCORRECTABLE_MASK) | ||
3542 | #define BCH_STATUS0_CORRECTED_MASK (0x8U) | ||
3543 | #define BCH_STATUS0_CORRECTED_SHIFT (3U) | ||
3544 | #define BCH_STATUS0_CORRECTED(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_CORRECTED_SHIFT)) & BCH_STATUS0_CORRECTED_MASK) | ||
3545 | #define BCH_STATUS0_ALLONES_MASK (0x10U) | ||
3546 | #define BCH_STATUS0_ALLONES_SHIFT (4U) | ||
3547 | #define BCH_STATUS0_ALLONES(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_ALLONES_SHIFT)) & BCH_STATUS0_ALLONES_MASK) | ||
3548 | #define BCH_STATUS0_RSVD1_MASK (0xE0U) | ||
3549 | #define BCH_STATUS0_RSVD1_SHIFT (5U) | ||
3550 | #define BCH_STATUS0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_RSVD1_SHIFT)) & BCH_STATUS0_RSVD1_MASK) | ||
3551 | #define BCH_STATUS0_STATUS_BLK0_MASK (0xFF00U) | ||
3552 | #define BCH_STATUS0_STATUS_BLK0_SHIFT (8U) | ||
3553 | /*! STATUS_BLK0 | ||
3554 | * 0b00000000..No errors found on block. | ||
3555 | * 0b00000001..One error found on block. | ||
3556 | * 0b00000010..One errors found on block. | ||
3557 | * 0b00000011..One errors found on block. | ||
3558 | * 0b00000100..One errors found on block. | ||
3559 | * 0b11111110..Block exhibited uncorrectable errors. | ||
3560 | * 0b11111111..Page is erased. | ||
3561 | */ | ||
3562 | #define BCH_STATUS0_STATUS_BLK0(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_STATUS_BLK0_SHIFT)) & BCH_STATUS0_STATUS_BLK0_MASK) | ||
3563 | #define BCH_STATUS0_COMPLETED_CE_MASK (0xF0000U) | ||
3564 | #define BCH_STATUS0_COMPLETED_CE_SHIFT (16U) | ||
3565 | #define BCH_STATUS0_COMPLETED_CE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_COMPLETED_CE_SHIFT)) & BCH_STATUS0_COMPLETED_CE_MASK) | ||
3566 | #define BCH_STATUS0_HANDLE_MASK (0xFFF00000U) | ||
3567 | #define BCH_STATUS0_HANDLE_SHIFT (20U) | ||
3568 | #define BCH_STATUS0_HANDLE(x) (((uint32_t)(((uint32_t)(x)) << BCH_STATUS0_HANDLE_SHIFT)) & BCH_STATUS0_HANDLE_MASK) | ||
3569 | /*! @} */ | ||
3570 | |||
3571 | /*! @name MODE - Hardware ECC Accelerator Mode Register */ | ||
3572 | /*! @{ */ | ||
3573 | #define BCH_MODE_ERASE_THRESHOLD_MASK (0xFFU) | ||
3574 | #define BCH_MODE_ERASE_THRESHOLD_SHIFT (0U) | ||
3575 | #define BCH_MODE_ERASE_THRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_ERASE_THRESHOLD_SHIFT)) & BCH_MODE_ERASE_THRESHOLD_MASK) | ||
3576 | #define BCH_MODE_RSVD_MASK (0xFFFFFF00U) | ||
3577 | #define BCH_MODE_RSVD_SHIFT (8U) | ||
3578 | #define BCH_MODE_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_MODE_RSVD_SHIFT)) & BCH_MODE_RSVD_MASK) | ||
3579 | /*! @} */ | ||
3580 | |||
3581 | /*! @name ENCODEPTR - Hardware BCH ECC Loopback Encode Buffer Register */ | ||
3582 | /*! @{ */ | ||
3583 | #define BCH_ENCODEPTR_ADDR_MASK (0xFFFFFFFFU) | ||
3584 | #define BCH_ENCODEPTR_ADDR_SHIFT (0U) | ||
3585 | #define BCH_ENCODEPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_ENCODEPTR_ADDR_SHIFT)) & BCH_ENCODEPTR_ADDR_MASK) | ||
3586 | /*! @} */ | ||
3587 | |||
3588 | /*! @name DATAPTR - Hardware BCH ECC Loopback Data Buffer Register */ | ||
3589 | /*! @{ */ | ||
3590 | #define BCH_DATAPTR_ADDR_MASK (0xFFFFFFFFU) | ||
3591 | #define BCH_DATAPTR_ADDR_SHIFT (0U) | ||
3592 | #define BCH_DATAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_DATAPTR_ADDR_SHIFT)) & BCH_DATAPTR_ADDR_MASK) | ||
3593 | /*! @} */ | ||
3594 | |||
3595 | /*! @name METAPTR - Hardware BCH ECC Loopback Metadata Buffer Register */ | ||
3596 | /*! @{ */ | ||
3597 | #define BCH_METAPTR_ADDR_MASK (0xFFFFFFFFU) | ||
3598 | #define BCH_METAPTR_ADDR_SHIFT (0U) | ||
3599 | #define BCH_METAPTR_ADDR(x) (((uint32_t)(((uint32_t)(x)) << BCH_METAPTR_ADDR_SHIFT)) & BCH_METAPTR_ADDR_MASK) | ||
3600 | /*! @} */ | ||
3601 | |||
3602 | /*! @name LAYOUTSELECT - Hardware ECC Accelerator Layout Select Register */ | ||
3603 | /*! @{ */ | ||
3604 | #define BCH_LAYOUTSELECT_CS0_SELECT_MASK (0x3U) | ||
3605 | #define BCH_LAYOUTSELECT_CS0_SELECT_SHIFT (0U) | ||
3606 | #define BCH_LAYOUTSELECT_CS0_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS0_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS0_SELECT_MASK) | ||
3607 | #define BCH_LAYOUTSELECT_CS1_SELECT_MASK (0xCU) | ||
3608 | #define BCH_LAYOUTSELECT_CS1_SELECT_SHIFT (2U) | ||
3609 | #define BCH_LAYOUTSELECT_CS1_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS1_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS1_SELECT_MASK) | ||
3610 | #define BCH_LAYOUTSELECT_CS2_SELECT_MASK (0x30U) | ||
3611 | #define BCH_LAYOUTSELECT_CS2_SELECT_SHIFT (4U) | ||
3612 | #define BCH_LAYOUTSELECT_CS2_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS2_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS2_SELECT_MASK) | ||
3613 | #define BCH_LAYOUTSELECT_CS3_SELECT_MASK (0xC0U) | ||
3614 | #define BCH_LAYOUTSELECT_CS3_SELECT_SHIFT (6U) | ||
3615 | #define BCH_LAYOUTSELECT_CS3_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS3_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS3_SELECT_MASK) | ||
3616 | #define BCH_LAYOUTSELECT_CS4_SELECT_MASK (0x300U) | ||
3617 | #define BCH_LAYOUTSELECT_CS4_SELECT_SHIFT (8U) | ||
3618 | #define BCH_LAYOUTSELECT_CS4_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS4_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS4_SELECT_MASK) | ||
3619 | #define BCH_LAYOUTSELECT_CS5_SELECT_MASK (0xC00U) | ||
3620 | #define BCH_LAYOUTSELECT_CS5_SELECT_SHIFT (10U) | ||
3621 | #define BCH_LAYOUTSELECT_CS5_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS5_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS5_SELECT_MASK) | ||
3622 | #define BCH_LAYOUTSELECT_CS6_SELECT_MASK (0x3000U) | ||
3623 | #define BCH_LAYOUTSELECT_CS6_SELECT_SHIFT (12U) | ||
3624 | #define BCH_LAYOUTSELECT_CS6_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS6_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS6_SELECT_MASK) | ||
3625 | #define BCH_LAYOUTSELECT_CS7_SELECT_MASK (0xC000U) | ||
3626 | #define BCH_LAYOUTSELECT_CS7_SELECT_SHIFT (14U) | ||
3627 | #define BCH_LAYOUTSELECT_CS7_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS7_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS7_SELECT_MASK) | ||
3628 | #define BCH_LAYOUTSELECT_CS8_SELECT_MASK (0x30000U) | ||
3629 | #define BCH_LAYOUTSELECT_CS8_SELECT_SHIFT (16U) | ||
3630 | #define BCH_LAYOUTSELECT_CS8_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS8_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS8_SELECT_MASK) | ||
3631 | #define BCH_LAYOUTSELECT_CS9_SELECT_MASK (0xC0000U) | ||
3632 | #define BCH_LAYOUTSELECT_CS9_SELECT_SHIFT (18U) | ||
3633 | #define BCH_LAYOUTSELECT_CS9_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS9_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS9_SELECT_MASK) | ||
3634 | #define BCH_LAYOUTSELECT_CS10_SELECT_MASK (0x300000U) | ||
3635 | #define BCH_LAYOUTSELECT_CS10_SELECT_SHIFT (20U) | ||
3636 | #define BCH_LAYOUTSELECT_CS10_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS10_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS10_SELECT_MASK) | ||
3637 | #define BCH_LAYOUTSELECT_CS11_SELECT_MASK (0xC00000U) | ||
3638 | #define BCH_LAYOUTSELECT_CS11_SELECT_SHIFT (22U) | ||
3639 | #define BCH_LAYOUTSELECT_CS11_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS11_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS11_SELECT_MASK) | ||
3640 | #define BCH_LAYOUTSELECT_CS12_SELECT_MASK (0x3000000U) | ||
3641 | #define BCH_LAYOUTSELECT_CS12_SELECT_SHIFT (24U) | ||
3642 | #define BCH_LAYOUTSELECT_CS12_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS12_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS12_SELECT_MASK) | ||
3643 | #define BCH_LAYOUTSELECT_CS13_SELECT_MASK (0xC000000U) | ||
3644 | #define BCH_LAYOUTSELECT_CS13_SELECT_SHIFT (26U) | ||
3645 | #define BCH_LAYOUTSELECT_CS13_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS13_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS13_SELECT_MASK) | ||
3646 | #define BCH_LAYOUTSELECT_CS14_SELECT_MASK (0x30000000U) | ||
3647 | #define BCH_LAYOUTSELECT_CS14_SELECT_SHIFT (28U) | ||
3648 | #define BCH_LAYOUTSELECT_CS14_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS14_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS14_SELECT_MASK) | ||
3649 | #define BCH_LAYOUTSELECT_CS15_SELECT_MASK (0xC0000000U) | ||
3650 | #define BCH_LAYOUTSELECT_CS15_SELECT_SHIFT (30U) | ||
3651 | #define BCH_LAYOUTSELECT_CS15_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_LAYOUTSELECT_CS15_SELECT_SHIFT)) & BCH_LAYOUTSELECT_CS15_SELECT_MASK) | ||
3652 | /*! @} */ | ||
3653 | |||
3654 | /*! @name FLASH0LAYOUT0 - Hardware BCH ECC Flash 0 Layout 0 Register */ | ||
3655 | /*! @{ */ | ||
3656 | #define BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK (0x3FFU) | ||
3657 | #define BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT (0U) | ||
3658 | #define BCH_FLASH0LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_DATA0_SIZE_MASK) | ||
3659 | #define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_MASK (0x400U) | ||
3660 | #define BCH_FLASH0LAYOUT0_GF13_0_GF14_1_SHIFT (10U) | ||
3661 | #define BCH_FLASH0LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT0_GF13_0_GF14_1_MASK) | ||
3662 | #define BCH_FLASH0LAYOUT0_ECC0_MASK (0xF800U) | ||
3663 | #define BCH_FLASH0LAYOUT0_ECC0_SHIFT (11U) | ||
3664 | /*! ECC0 | ||
3665 | * 0b00000..No ECC to be performed | ||
3666 | * 0b00001..ECC 2 to be performed | ||
3667 | * 0b00010..ECC 4 to be performed | ||
3668 | * 0b11110..ECC 60 to be performed | ||
3669 | * 0b11111..ECC 62 to be performed | ||
3670 | */ | ||
3671 | #define BCH_FLASH0LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_ECC0_SHIFT)) & BCH_FLASH0LAYOUT0_ECC0_MASK) | ||
3672 | #define BCH_FLASH0LAYOUT0_META_SIZE_MASK (0xFF0000U) | ||
3673 | #define BCH_FLASH0LAYOUT0_META_SIZE_SHIFT (16U) | ||
3674 | #define BCH_FLASH0LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH0LAYOUT0_META_SIZE_MASK) | ||
3675 | #define BCH_FLASH0LAYOUT0_NBLOCKS_MASK (0xFF000000U) | ||
3676 | #define BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT (24U) | ||
3677 | #define BCH_FLASH0LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH0LAYOUT0_NBLOCKS_MASK) | ||
3678 | /*! @} */ | ||
3679 | |||
3680 | /*! @name FLASH0LAYOUT1 - Hardware BCH ECC Flash 0 Layout 1 Register */ | ||
3681 | /*! @{ */ | ||
3682 | #define BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK (0x3FFU) | ||
3683 | #define BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT (0U) | ||
3684 | #define BCH_FLASH0LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_DATAN_SIZE_MASK) | ||
3685 | #define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_MASK (0x400U) | ||
3686 | #define BCH_FLASH0LAYOUT1_GF13_0_GF14_1_SHIFT (10U) | ||
3687 | #define BCH_FLASH0LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH0LAYOUT1_GF13_0_GF14_1_MASK) | ||
3688 | #define BCH_FLASH0LAYOUT1_ECCN_MASK (0xF800U) | ||
3689 | #define BCH_FLASH0LAYOUT1_ECCN_SHIFT (11U) | ||
3690 | /*! ECCN | ||
3691 | * 0b00000..No ECC to be performed | ||
3692 | * 0b00001..ECC 2 to be performed | ||
3693 | * 0b00010..ECC 4 to be performed | ||
3694 | * 0b11110..ECC 60 to be performed | ||
3695 | * 0b11111..ECC 62 to be performed | ||
3696 | */ | ||
3697 | #define BCH_FLASH0LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_ECCN_SHIFT)) & BCH_FLASH0LAYOUT1_ECCN_MASK) | ||
3698 | #define BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U) | ||
3699 | #define BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT (16U) | ||
3700 | #define BCH_FLASH0LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH0LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH0LAYOUT1_PAGE_SIZE_MASK) | ||
3701 | /*! @} */ | ||
3702 | |||
3703 | /*! @name FLASH1LAYOUT0 - Hardware BCH ECC Flash 1 Layout 0 Register */ | ||
3704 | /*! @{ */ | ||
3705 | #define BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK (0x3FFU) | ||
3706 | #define BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT (0U) | ||
3707 | #define BCH_FLASH1LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_DATA0_SIZE_MASK) | ||
3708 | #define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_MASK (0x400U) | ||
3709 | #define BCH_FLASH1LAYOUT0_GF13_0_GF14_1_SHIFT (10U) | ||
3710 | #define BCH_FLASH1LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT0_GF13_0_GF14_1_MASK) | ||
3711 | #define BCH_FLASH1LAYOUT0_ECC0_MASK (0xF800U) | ||
3712 | #define BCH_FLASH1LAYOUT0_ECC0_SHIFT (11U) | ||
3713 | /*! ECC0 | ||
3714 | * 0b00000..No ECC to be performed | ||
3715 | * 0b00001..ECC 2 to be performed | ||
3716 | * 0b00010..ECC 4 to be performed | ||
3717 | * 0b11110..ECC 60 to be performed | ||
3718 | * 0b11111..ECC 62 to be performed | ||
3719 | */ | ||
3720 | #define BCH_FLASH1LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_ECC0_SHIFT)) & BCH_FLASH1LAYOUT0_ECC0_MASK) | ||
3721 | #define BCH_FLASH1LAYOUT0_META_SIZE_MASK (0xFF0000U) | ||
3722 | #define BCH_FLASH1LAYOUT0_META_SIZE_SHIFT (16U) | ||
3723 | #define BCH_FLASH1LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH1LAYOUT0_META_SIZE_MASK) | ||
3724 | #define BCH_FLASH1LAYOUT0_NBLOCKS_MASK (0xFF000000U) | ||
3725 | #define BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT (24U) | ||
3726 | #define BCH_FLASH1LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH1LAYOUT0_NBLOCKS_MASK) | ||
3727 | /*! @} */ | ||
3728 | |||
3729 | /*! @name FLASH1LAYOUT1 - Hardware BCH ECC Flash 1 Layout 1 Register */ | ||
3730 | /*! @{ */ | ||
3731 | #define BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK (0x3FFU) | ||
3732 | #define BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT (0U) | ||
3733 | #define BCH_FLASH1LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_DATAN_SIZE_MASK) | ||
3734 | #define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_MASK (0x400U) | ||
3735 | #define BCH_FLASH1LAYOUT1_GF13_0_GF14_1_SHIFT (10U) | ||
3736 | #define BCH_FLASH1LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH1LAYOUT1_GF13_0_GF14_1_MASK) | ||
3737 | #define BCH_FLASH1LAYOUT1_ECCN_MASK (0xF800U) | ||
3738 | #define BCH_FLASH1LAYOUT1_ECCN_SHIFT (11U) | ||
3739 | /*! ECCN | ||
3740 | * 0b00000..No ECC to be performed | ||
3741 | * 0b00001..ECC 2 to be performed | ||
3742 | * 0b00010..ECC 4 to be performed | ||
3743 | * 0b11110..ECC 60 to be performed | ||
3744 | * 0b11111..ECC 62 to be performed | ||
3745 | */ | ||
3746 | #define BCH_FLASH1LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_ECCN_SHIFT)) & BCH_FLASH1LAYOUT1_ECCN_MASK) | ||
3747 | #define BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U) | ||
3748 | #define BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT (16U) | ||
3749 | #define BCH_FLASH1LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH1LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH1LAYOUT1_PAGE_SIZE_MASK) | ||
3750 | /*! @} */ | ||
3751 | |||
3752 | /*! @name FLASH2LAYOUT0 - Hardware BCH ECC Flash 2 Layout 0 Register */ | ||
3753 | /*! @{ */ | ||
3754 | #define BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK (0x3FFU) | ||
3755 | #define BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT (0U) | ||
3756 | #define BCH_FLASH2LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_DATA0_SIZE_MASK) | ||
3757 | #define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_MASK (0x400U) | ||
3758 | #define BCH_FLASH2LAYOUT0_GF13_0_GF14_1_SHIFT (10U) | ||
3759 | #define BCH_FLASH2LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT0_GF13_0_GF14_1_MASK) | ||
3760 | #define BCH_FLASH2LAYOUT0_ECC0_MASK (0xF800U) | ||
3761 | #define BCH_FLASH2LAYOUT0_ECC0_SHIFT (11U) | ||
3762 | /*! ECC0 | ||
3763 | * 0b00000..No ECC to be performed | ||
3764 | * 0b00001..ECC 2 to be performed | ||
3765 | * 0b00010..ECC 4 to be performed | ||
3766 | * 0b11110..ECC 60 to be performed | ||
3767 | * 0b11111..ECC 62 to be performed | ||
3768 | */ | ||
3769 | #define BCH_FLASH2LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_ECC0_SHIFT)) & BCH_FLASH2LAYOUT0_ECC0_MASK) | ||
3770 | #define BCH_FLASH2LAYOUT0_META_SIZE_MASK (0xFF0000U) | ||
3771 | #define BCH_FLASH2LAYOUT0_META_SIZE_SHIFT (16U) | ||
3772 | #define BCH_FLASH2LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH2LAYOUT0_META_SIZE_MASK) | ||
3773 | #define BCH_FLASH2LAYOUT0_NBLOCKS_MASK (0xFF000000U) | ||
3774 | #define BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT (24U) | ||
3775 | #define BCH_FLASH2LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH2LAYOUT0_NBLOCKS_MASK) | ||
3776 | /*! @} */ | ||
3777 | |||
3778 | /*! @name FLASH2LAYOUT1 - Hardware BCH ECC Flash 2 Layout 1 Register */ | ||
3779 | /*! @{ */ | ||
3780 | #define BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK (0x3FFU) | ||
3781 | #define BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT (0U) | ||
3782 | #define BCH_FLASH2LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_DATAN_SIZE_MASK) | ||
3783 | #define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_MASK (0x400U) | ||
3784 | #define BCH_FLASH2LAYOUT1_GF13_0_GF14_1_SHIFT (10U) | ||
3785 | #define BCH_FLASH2LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH2LAYOUT1_GF13_0_GF14_1_MASK) | ||
3786 | #define BCH_FLASH2LAYOUT1_ECCN_MASK (0xF800U) | ||
3787 | #define BCH_FLASH2LAYOUT1_ECCN_SHIFT (11U) | ||
3788 | /*! ECCN | ||
3789 | * 0b00000..No ECC to be performed | ||
3790 | * 0b00001..ECC 2 to be performed | ||
3791 | * 0b00010..ECC 4 to be performed | ||
3792 | * 0b11110..ECC 60 to be performed | ||
3793 | * 0b11111..ECC 62 to be performed | ||
3794 | */ | ||
3795 | #define BCH_FLASH2LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_ECCN_SHIFT)) & BCH_FLASH2LAYOUT1_ECCN_MASK) | ||
3796 | #define BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U) | ||
3797 | #define BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT (16U) | ||
3798 | #define BCH_FLASH2LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH2LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH2LAYOUT1_PAGE_SIZE_MASK) | ||
3799 | /*! @} */ | ||
3800 | |||
3801 | /*! @name FLASH3LAYOUT0 - Hardware BCH ECC Flash 3 Layout 0 Register */ | ||
3802 | /*! @{ */ | ||
3803 | #define BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK (0x3FFU) | ||
3804 | #define BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT (0U) | ||
3805 | #define BCH_FLASH3LAYOUT0_DATA0_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_DATA0_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_DATA0_SIZE_MASK) | ||
3806 | #define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_MASK (0x400U) | ||
3807 | #define BCH_FLASH3LAYOUT0_GF13_0_GF14_1_SHIFT (10U) | ||
3808 | #define BCH_FLASH3LAYOUT0_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT0_GF13_0_GF14_1_MASK) | ||
3809 | #define BCH_FLASH3LAYOUT0_ECC0_MASK (0xF800U) | ||
3810 | #define BCH_FLASH3LAYOUT0_ECC0_SHIFT (11U) | ||
3811 | /*! ECC0 | ||
3812 | * 0b00000..No ECC to be performed | ||
3813 | * 0b00001..ECC 2 to be performed | ||
3814 | * 0b00010..ECC 4 to be performed | ||
3815 | * 0b11110..ECC 60 to be performed | ||
3816 | * 0b11111..ECC 62 to be performed | ||
3817 | */ | ||
3818 | #define BCH_FLASH3LAYOUT0_ECC0(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_ECC0_SHIFT)) & BCH_FLASH3LAYOUT0_ECC0_MASK) | ||
3819 | #define BCH_FLASH3LAYOUT0_META_SIZE_MASK (0xFF0000U) | ||
3820 | #define BCH_FLASH3LAYOUT0_META_SIZE_SHIFT (16U) | ||
3821 | #define BCH_FLASH3LAYOUT0_META_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_META_SIZE_SHIFT)) & BCH_FLASH3LAYOUT0_META_SIZE_MASK) | ||
3822 | #define BCH_FLASH3LAYOUT0_NBLOCKS_MASK (0xFF000000U) | ||
3823 | #define BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT (24U) | ||
3824 | #define BCH_FLASH3LAYOUT0_NBLOCKS(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT0_NBLOCKS_SHIFT)) & BCH_FLASH3LAYOUT0_NBLOCKS_MASK) | ||
3825 | /*! @} */ | ||
3826 | |||
3827 | /*! @name FLASH3LAYOUT1 - Hardware BCH ECC Flash 3 Layout 1 Register */ | ||
3828 | /*! @{ */ | ||
3829 | #define BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK (0x3FFU) | ||
3830 | #define BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT (0U) | ||
3831 | #define BCH_FLASH3LAYOUT1_DATAN_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_DATAN_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_DATAN_SIZE_MASK) | ||
3832 | #define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_MASK (0x400U) | ||
3833 | #define BCH_FLASH3LAYOUT1_GF13_0_GF14_1_SHIFT (10U) | ||
3834 | #define BCH_FLASH3LAYOUT1_GF13_0_GF14_1(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_GF13_0_GF14_1_SHIFT)) & BCH_FLASH3LAYOUT1_GF13_0_GF14_1_MASK) | ||
3835 | #define BCH_FLASH3LAYOUT1_ECCN_MASK (0xF800U) | ||
3836 | #define BCH_FLASH3LAYOUT1_ECCN_SHIFT (11U) | ||
3837 | /*! ECCN | ||
3838 | * 0b00000..No ECC to be performed | ||
3839 | * 0b00001..ECC 2 to be performed | ||
3840 | * 0b00010..ECC 4 to be performed | ||
3841 | * 0b11110..ECC 60 to be performed | ||
3842 | * 0b11111..ECC 62 to be performed | ||
3843 | */ | ||
3844 | #define BCH_FLASH3LAYOUT1_ECCN(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_ECCN_SHIFT)) & BCH_FLASH3LAYOUT1_ECCN_MASK) | ||
3845 | #define BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK (0xFFFF0000U) | ||
3846 | #define BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT (16U) | ||
3847 | #define BCH_FLASH3LAYOUT1_PAGE_SIZE(x) (((uint32_t)(((uint32_t)(x)) << BCH_FLASH3LAYOUT1_PAGE_SIZE_SHIFT)) & BCH_FLASH3LAYOUT1_PAGE_SIZE_MASK) | ||
3848 | /*! @} */ | ||
3849 | |||
3850 | /*! @name DEBUG0 - Hardware BCH ECC Debug Register0 */ | ||
3851 | /*! @{ */ | ||
3852 | #define BCH_DEBUG0_DEBUG_REG_SELECT_MASK (0x3FU) | ||
3853 | #define BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT (0U) | ||
3854 | #define BCH_DEBUG0_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_DEBUG_REG_SELECT_MASK) | ||
3855 | #define BCH_DEBUG0_RSVD0_MASK (0xC0U) | ||
3856 | #define BCH_DEBUG0_RSVD0_SHIFT (6U) | ||
3857 | #define BCH_DEBUG0_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD0_SHIFT)) & BCH_DEBUG0_RSVD0_MASK) | ||
3858 | #define BCH_DEBUG0_BM_KES_TEST_BYPASS_MASK (0x100U) | ||
3859 | #define BCH_DEBUG0_BM_KES_TEST_BYPASS_SHIFT (8U) | ||
3860 | /*! BM_KES_TEST_BYPASS | ||
3861 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
3862 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3863 | */ | ||
3864 | #define BCH_DEBUG0_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_BM_KES_TEST_BYPASS_MASK) | ||
3865 | #define BCH_DEBUG0_KES_DEBUG_STALL_MASK (0x200U) | ||
3866 | #define BCH_DEBUG0_KES_DEBUG_STALL_SHIFT (9U) | ||
3867 | /*! KES_DEBUG_STALL | ||
3868 | * 0b0..KES FSM proceeds to next block supplied by bus master. | ||
3869 | * 0b1..KES FSM waits after current equations are solved and the search engine is started. | ||
3870 | */ | ||
3871 | #define BCH_DEBUG0_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STALL_MASK) | ||
3872 | #define BCH_DEBUG0_KES_DEBUG_STEP_MASK (0x400U) | ||
3873 | #define BCH_DEBUG0_KES_DEBUG_STEP_SHIFT (10U) | ||
3874 | #define BCH_DEBUG0_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_KES_DEBUG_STEP_MASK) | ||
3875 | #define BCH_DEBUG0_KES_STANDALONE_MASK (0x800U) | ||
3876 | #define BCH_DEBUG0_KES_STANDALONE_SHIFT (11U) | ||
3877 | /*! KES_STANDALONE | ||
3878 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
3879 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3880 | */ | ||
3881 | #define BCH_DEBUG0_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_KES_STANDALONE_MASK) | ||
3882 | #define BCH_DEBUG0_KES_DEBUG_KICK_MASK (0x1000U) | ||
3883 | #define BCH_DEBUG0_KES_DEBUG_KICK_SHIFT (12U) | ||
3884 | #define BCH_DEBUG0_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_KES_DEBUG_KICK_MASK) | ||
3885 | #define BCH_DEBUG0_KES_DEBUG_MODE4K_MASK (0x2000U) | ||
3886 | #define BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT (13U) | ||
3887 | /*! KES_DEBUG_MODE4K | ||
3888 | * 0b1..Mode is set for 4K NAND pages. | ||
3889 | * 0b1..Mode is set for 2K NAND pages. | ||
3890 | */ | ||
3891 | #define BCH_DEBUG0_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_KES_DEBUG_MODE4K_MASK) | ||
3892 | #define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U) | ||
3893 | #define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U) | ||
3894 | /*! KES_DEBUG_PAYLOAD_FLAG | ||
3895 | * 0b1..Payload is set for 512 bytes data block. | ||
3896 | * 0b1..Payload is set for 65 or 19 bytes auxiliary block. | ||
3897 | */ | ||
3898 | #define BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_KES_DEBUG_PAYLOAD_FLAG_MASK) | ||
3899 | #define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_MASK (0x8000U) | ||
3900 | #define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_SHIFT (15U) | ||
3901 | #define BCH_DEBUG0_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_KES_DEBUG_SHIFT_SYND_MASK) | ||
3902 | #define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U) | ||
3903 | #define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U) | ||
3904 | /*! KES_DEBUG_SYNDROME_SYMBOL | ||
3905 | * 0b000000000..Bus master address generator for SYND_GEN writes operates normally. | ||
3906 | * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3907 | */ | ||
3908 | #define BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_KES_DEBUG_SYNDROME_SYMBOL_MASK) | ||
3909 | #define BCH_DEBUG0_RSVD1_MASK (0xFE000000U) | ||
3910 | #define BCH_DEBUG0_RSVD1_SHIFT (25U) | ||
3911 | #define BCH_DEBUG0_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_RSVD1_SHIFT)) & BCH_DEBUG0_RSVD1_MASK) | ||
3912 | /*! @} */ | ||
3913 | |||
3914 | /*! @name DEBUG0_SET - Hardware BCH ECC Debug Register0 */ | ||
3915 | /*! @{ */ | ||
3916 | #define BCH_DEBUG0_SET_DEBUG_REG_SELECT_MASK (0x3FU) | ||
3917 | #define BCH_DEBUG0_SET_DEBUG_REG_SELECT_SHIFT (0U) | ||
3918 | #define BCH_DEBUG0_SET_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_SET_DEBUG_REG_SELECT_MASK) | ||
3919 | #define BCH_DEBUG0_SET_RSVD0_MASK (0xC0U) | ||
3920 | #define BCH_DEBUG0_SET_RSVD0_SHIFT (6U) | ||
3921 | #define BCH_DEBUG0_SET_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD0_SHIFT)) & BCH_DEBUG0_SET_RSVD0_MASK) | ||
3922 | #define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_MASK (0x100U) | ||
3923 | #define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_SHIFT (8U) | ||
3924 | /*! BM_KES_TEST_BYPASS | ||
3925 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
3926 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3927 | */ | ||
3928 | #define BCH_DEBUG0_SET_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_SET_BM_KES_TEST_BYPASS_MASK) | ||
3929 | #define BCH_DEBUG0_SET_KES_DEBUG_STALL_MASK (0x200U) | ||
3930 | #define BCH_DEBUG0_SET_KES_DEBUG_STALL_SHIFT (9U) | ||
3931 | /*! KES_DEBUG_STALL | ||
3932 | * 0b0..KES FSM proceeds to next block supplied by bus master. | ||
3933 | * 0b1..KES FSM waits after current equations are solved and the search engine is started. | ||
3934 | */ | ||
3935 | #define BCH_DEBUG0_SET_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_STALL_MASK) | ||
3936 | #define BCH_DEBUG0_SET_KES_DEBUG_STEP_MASK (0x400U) | ||
3937 | #define BCH_DEBUG0_SET_KES_DEBUG_STEP_SHIFT (10U) | ||
3938 | #define BCH_DEBUG0_SET_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_STEP_MASK) | ||
3939 | #define BCH_DEBUG0_SET_KES_STANDALONE_MASK (0x800U) | ||
3940 | #define BCH_DEBUG0_SET_KES_STANDALONE_SHIFT (11U) | ||
3941 | /*! KES_STANDALONE | ||
3942 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
3943 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3944 | */ | ||
3945 | #define BCH_DEBUG0_SET_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_SET_KES_STANDALONE_MASK) | ||
3946 | #define BCH_DEBUG0_SET_KES_DEBUG_KICK_MASK (0x1000U) | ||
3947 | #define BCH_DEBUG0_SET_KES_DEBUG_KICK_SHIFT (12U) | ||
3948 | #define BCH_DEBUG0_SET_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_KICK_MASK) | ||
3949 | #define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_MASK (0x2000U) | ||
3950 | #define BCH_DEBUG0_SET_KES_DEBUG_MODE4K_SHIFT (13U) | ||
3951 | /*! KES_DEBUG_MODE4K | ||
3952 | * 0b1..Mode is set for 4K NAND pages. | ||
3953 | * 0b1..Mode is set for 2K NAND pages. | ||
3954 | */ | ||
3955 | #define BCH_DEBUG0_SET_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_MODE4K_MASK) | ||
3956 | #define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U) | ||
3957 | #define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U) | ||
3958 | /*! KES_DEBUG_PAYLOAD_FLAG | ||
3959 | * 0b1..Payload is set for 512 bytes data block. | ||
3960 | * 0b1..Payload is set for 65 or 19 bytes auxiliary block. | ||
3961 | */ | ||
3962 | #define BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_PAYLOAD_FLAG_MASK) | ||
3963 | #define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_MASK (0x8000U) | ||
3964 | #define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_SHIFT (15U) | ||
3965 | #define BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_SHIFT_SYND_MASK) | ||
3966 | #define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U) | ||
3967 | #define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U) | ||
3968 | /*! KES_DEBUG_SYNDROME_SYMBOL | ||
3969 | * 0b000000000..Bus master address generator for SYND_GEN writes operates normally. | ||
3970 | * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3971 | */ | ||
3972 | #define BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_SET_KES_DEBUG_SYNDROME_SYMBOL_MASK) | ||
3973 | #define BCH_DEBUG0_SET_RSVD1_MASK (0xFE000000U) | ||
3974 | #define BCH_DEBUG0_SET_RSVD1_SHIFT (25U) | ||
3975 | #define BCH_DEBUG0_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_SET_RSVD1_SHIFT)) & BCH_DEBUG0_SET_RSVD1_MASK) | ||
3976 | /*! @} */ | ||
3977 | |||
3978 | /*! @name DEBUG0_CLR - Hardware BCH ECC Debug Register0 */ | ||
3979 | /*! @{ */ | ||
3980 | #define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_MASK (0x3FU) | ||
3981 | #define BCH_DEBUG0_CLR_DEBUG_REG_SELECT_SHIFT (0U) | ||
3982 | #define BCH_DEBUG0_CLR_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_CLR_DEBUG_REG_SELECT_MASK) | ||
3983 | #define BCH_DEBUG0_CLR_RSVD0_MASK (0xC0U) | ||
3984 | #define BCH_DEBUG0_CLR_RSVD0_SHIFT (6U) | ||
3985 | #define BCH_DEBUG0_CLR_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD0_SHIFT)) & BCH_DEBUG0_CLR_RSVD0_MASK) | ||
3986 | #define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_MASK (0x100U) | ||
3987 | #define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_SHIFT (8U) | ||
3988 | /*! BM_KES_TEST_BYPASS | ||
3989 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
3990 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
3991 | */ | ||
3992 | #define BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_CLR_BM_KES_TEST_BYPASS_MASK) | ||
3993 | #define BCH_DEBUG0_CLR_KES_DEBUG_STALL_MASK (0x200U) | ||
3994 | #define BCH_DEBUG0_CLR_KES_DEBUG_STALL_SHIFT (9U) | ||
3995 | /*! KES_DEBUG_STALL | ||
3996 | * 0b0..KES FSM proceeds to next block supplied by bus master. | ||
3997 | * 0b1..KES FSM waits after current equations are solved and the search engine is started. | ||
3998 | */ | ||
3999 | #define BCH_DEBUG0_CLR_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_STALL_MASK) | ||
4000 | #define BCH_DEBUG0_CLR_KES_DEBUG_STEP_MASK (0x400U) | ||
4001 | #define BCH_DEBUG0_CLR_KES_DEBUG_STEP_SHIFT (10U) | ||
4002 | #define BCH_DEBUG0_CLR_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_STEP_MASK) | ||
4003 | #define BCH_DEBUG0_CLR_KES_STANDALONE_MASK (0x800U) | ||
4004 | #define BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT (11U) | ||
4005 | /*! KES_STANDALONE | ||
4006 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
4007 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
4008 | */ | ||
4009 | #define BCH_DEBUG0_CLR_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_CLR_KES_STANDALONE_MASK) | ||
4010 | #define BCH_DEBUG0_CLR_KES_DEBUG_KICK_MASK (0x1000U) | ||
4011 | #define BCH_DEBUG0_CLR_KES_DEBUG_KICK_SHIFT (12U) | ||
4012 | #define BCH_DEBUG0_CLR_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_KICK_MASK) | ||
4013 | #define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_MASK (0x2000U) | ||
4014 | #define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_SHIFT (13U) | ||
4015 | /*! KES_DEBUG_MODE4K | ||
4016 | * 0b1..Mode is set for 4K NAND pages. | ||
4017 | * 0b1..Mode is set for 2K NAND pages. | ||
4018 | */ | ||
4019 | #define BCH_DEBUG0_CLR_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_MODE4K_MASK) | ||
4020 | #define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U) | ||
4021 | #define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U) | ||
4022 | /*! KES_DEBUG_PAYLOAD_FLAG | ||
4023 | * 0b1..Payload is set for 512 bytes data block. | ||
4024 | * 0b1..Payload is set for 65 or 19 bytes auxiliary block. | ||
4025 | */ | ||
4026 | #define BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_PAYLOAD_FLAG_MASK) | ||
4027 | #define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_MASK (0x8000U) | ||
4028 | #define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_SHIFT (15U) | ||
4029 | #define BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_SHIFT_SYND_MASK) | ||
4030 | #define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U) | ||
4031 | #define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U) | ||
4032 | /*! KES_DEBUG_SYNDROME_SYMBOL | ||
4033 | * 0b000000000..Bus master address generator for SYND_GEN writes operates normally. | ||
4034 | * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
4035 | */ | ||
4036 | #define BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_CLR_KES_DEBUG_SYNDROME_SYMBOL_MASK) | ||
4037 | #define BCH_DEBUG0_CLR_RSVD1_MASK (0xFE000000U) | ||
4038 | #define BCH_DEBUG0_CLR_RSVD1_SHIFT (25U) | ||
4039 | #define BCH_DEBUG0_CLR_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_CLR_RSVD1_SHIFT)) & BCH_DEBUG0_CLR_RSVD1_MASK) | ||
4040 | /*! @} */ | ||
4041 | |||
4042 | /*! @name DEBUG0_TOG - Hardware BCH ECC Debug Register0 */ | ||
4043 | /*! @{ */ | ||
4044 | #define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_MASK (0x3FU) | ||
4045 | #define BCH_DEBUG0_TOG_DEBUG_REG_SELECT_SHIFT (0U) | ||
4046 | #define BCH_DEBUG0_TOG_DEBUG_REG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_DEBUG_REG_SELECT_SHIFT)) & BCH_DEBUG0_TOG_DEBUG_REG_SELECT_MASK) | ||
4047 | #define BCH_DEBUG0_TOG_RSVD0_MASK (0xC0U) | ||
4048 | #define BCH_DEBUG0_TOG_RSVD0_SHIFT (6U) | ||
4049 | #define BCH_DEBUG0_TOG_RSVD0(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD0_SHIFT)) & BCH_DEBUG0_TOG_RSVD0_MASK) | ||
4050 | #define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_MASK (0x100U) | ||
4051 | #define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_SHIFT (8U) | ||
4052 | /*! BM_KES_TEST_BYPASS | ||
4053 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
4054 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
4055 | */ | ||
4056 | #define BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_SHIFT)) & BCH_DEBUG0_TOG_BM_KES_TEST_BYPASS_MASK) | ||
4057 | #define BCH_DEBUG0_TOG_KES_DEBUG_STALL_MASK (0x200U) | ||
4058 | #define BCH_DEBUG0_TOG_KES_DEBUG_STALL_SHIFT (9U) | ||
4059 | /*! KES_DEBUG_STALL | ||
4060 | * 0b0..KES FSM proceeds to next block supplied by bus master. | ||
4061 | * 0b1..KES FSM waits after current equations are solved and the search engine is started. | ||
4062 | */ | ||
4063 | #define BCH_DEBUG0_TOG_KES_DEBUG_STALL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_STALL_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_STALL_MASK) | ||
4064 | #define BCH_DEBUG0_TOG_KES_DEBUG_STEP_MASK (0x400U) | ||
4065 | #define BCH_DEBUG0_TOG_KES_DEBUG_STEP_SHIFT (10U) | ||
4066 | #define BCH_DEBUG0_TOG_KES_DEBUG_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_STEP_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_STEP_MASK) | ||
4067 | #define BCH_DEBUG0_TOG_KES_STANDALONE_MASK (0x800U) | ||
4068 | #define BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT (11U) | ||
4069 | /*! KES_STANDALONE | ||
4070 | * 0b0..Bus master address generator for SYND_GEN writes operates normally. | ||
4071 | * 0b1..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
4072 | */ | ||
4073 | #define BCH_DEBUG0_TOG_KES_STANDALONE(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_STANDALONE_SHIFT)) & BCH_DEBUG0_TOG_KES_STANDALONE_MASK) | ||
4074 | #define BCH_DEBUG0_TOG_KES_DEBUG_KICK_MASK (0x1000U) | ||
4075 | #define BCH_DEBUG0_TOG_KES_DEBUG_KICK_SHIFT (12U) | ||
4076 | #define BCH_DEBUG0_TOG_KES_DEBUG_KICK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_KICK_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_KICK_MASK) | ||
4077 | #define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_MASK (0x2000U) | ||
4078 | #define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_SHIFT (13U) | ||
4079 | /*! KES_DEBUG_MODE4K | ||
4080 | * 0b1..Mode is set for 4K NAND pages. | ||
4081 | * 0b1..Mode is set for 2K NAND pages. | ||
4082 | */ | ||
4083 | #define BCH_DEBUG0_TOG_KES_DEBUG_MODE4K(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_MODE4K_MASK) | ||
4084 | #define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_MASK (0x4000U) | ||
4085 | #define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_SHIFT (14U) | ||
4086 | /*! KES_DEBUG_PAYLOAD_FLAG | ||
4087 | * 0b1..Payload is set for 512 bytes data block. | ||
4088 | * 0b1..Payload is set for 65 or 19 bytes auxiliary block. | ||
4089 | */ | ||
4090 | #define BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_PAYLOAD_FLAG_MASK) | ||
4091 | #define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_MASK (0x8000U) | ||
4092 | #define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_SHIFT (15U) | ||
4093 | #define BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_SHIFT_SYND_MASK) | ||
4094 | #define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_MASK (0x1FF0000U) | ||
4095 | #define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_SHIFT (16U) | ||
4096 | /*! KES_DEBUG_SYNDROME_SYMBOL | ||
4097 | * 0b000000000..Bus master address generator for SYND_GEN writes operates normally. | ||
4098 | * 0b000000001..Bus master address generator always addresses last four bytes in Auxiliary block. | ||
4099 | */ | ||
4100 | #define BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_SHIFT)) & BCH_DEBUG0_TOG_KES_DEBUG_SYNDROME_SYMBOL_MASK) | ||
4101 | #define BCH_DEBUG0_TOG_RSVD1_MASK (0xFE000000U) | ||
4102 | #define BCH_DEBUG0_TOG_RSVD1_SHIFT (25U) | ||
4103 | #define BCH_DEBUG0_TOG_RSVD1(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG0_TOG_RSVD1_SHIFT)) & BCH_DEBUG0_TOG_RSVD1_MASK) | ||
4104 | /*! @} */ | ||
4105 | |||
4106 | /*! @name DBGKESREAD - KES Debug Read Register */ | ||
4107 | /*! @{ */ | ||
4108 | #define BCH_DBGKESREAD_VALUES_MASK (0xFFFFFFFFU) | ||
4109 | #define BCH_DBGKESREAD_VALUES_SHIFT (0U) | ||
4110 | #define BCH_DBGKESREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGKESREAD_VALUES_SHIFT)) & BCH_DBGKESREAD_VALUES_MASK) | ||
4111 | /*! @} */ | ||
4112 | |||
4113 | /*! @name DBGCSFEREAD - Chien Search Debug Read Register */ | ||
4114 | /*! @{ */ | ||
4115 | #define BCH_DBGCSFEREAD_VALUES_MASK (0xFFFFFFFFU) | ||
4116 | #define BCH_DBGCSFEREAD_VALUES_SHIFT (0U) | ||
4117 | #define BCH_DBGCSFEREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGCSFEREAD_VALUES_SHIFT)) & BCH_DBGCSFEREAD_VALUES_MASK) | ||
4118 | /*! @} */ | ||
4119 | |||
4120 | /*! @name DBGSYNDGENREAD - Syndrome Generator Debug Read Register */ | ||
4121 | /*! @{ */ | ||
4122 | #define BCH_DBGSYNDGENREAD_VALUES_MASK (0xFFFFFFFFU) | ||
4123 | #define BCH_DBGSYNDGENREAD_VALUES_SHIFT (0U) | ||
4124 | #define BCH_DBGSYNDGENREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGSYNDGENREAD_VALUES_SHIFT)) & BCH_DBGSYNDGENREAD_VALUES_MASK) | ||
4125 | /*! @} */ | ||
4126 | |||
4127 | /*! @name DBGAHBMREAD - Bus Master and ECC Controller Debug Read Register */ | ||
4128 | /*! @{ */ | ||
4129 | #define BCH_DBGAHBMREAD_VALUES_MASK (0xFFFFFFFFU) | ||
4130 | #define BCH_DBGAHBMREAD_VALUES_SHIFT (0U) | ||
4131 | #define BCH_DBGAHBMREAD_VALUES(x) (((uint32_t)(((uint32_t)(x)) << BCH_DBGAHBMREAD_VALUES_SHIFT)) & BCH_DBGAHBMREAD_VALUES_MASK) | ||
4132 | /*! @} */ | ||
4133 | |||
4134 | /*! @name BLOCKNAME - Block Name Register */ | ||
4135 | /*! @{ */ | ||
4136 | #define BCH_BLOCKNAME_NAME_MASK (0xFFFFFFFFU) | ||
4137 | #define BCH_BLOCKNAME_NAME_SHIFT (0U) | ||
4138 | #define BCH_BLOCKNAME_NAME(x) (((uint32_t)(((uint32_t)(x)) << BCH_BLOCKNAME_NAME_SHIFT)) & BCH_BLOCKNAME_NAME_MASK) | ||
4139 | /*! @} */ | ||
4140 | |||
4141 | /*! @name VERSION - BCH Version Register */ | ||
4142 | /*! @{ */ | ||
4143 | #define BCH_VERSION_STEP_MASK (0xFFFFU) | ||
4144 | #define BCH_VERSION_STEP_SHIFT (0U) | ||
4145 | #define BCH_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_STEP_SHIFT)) & BCH_VERSION_STEP_MASK) | ||
4146 | #define BCH_VERSION_MINOR_MASK (0xFF0000U) | ||
4147 | #define BCH_VERSION_MINOR_SHIFT (16U) | ||
4148 | #define BCH_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MINOR_SHIFT)) & BCH_VERSION_MINOR_MASK) | ||
4149 | #define BCH_VERSION_MAJOR_MASK (0xFF000000U) | ||
4150 | #define BCH_VERSION_MAJOR_SHIFT (24U) | ||
4151 | #define BCH_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << BCH_VERSION_MAJOR_SHIFT)) & BCH_VERSION_MAJOR_MASK) | ||
4152 | /*! @} */ | ||
4153 | |||
4154 | /*! @name DEBUG1 - Hardware BCH ECC Debug Register 1 */ | ||
4155 | /*! @{ */ | ||
4156 | #define BCH_DEBUG1_ERASED_ZERO_COUNT_MASK (0x1FFU) | ||
4157 | #define BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT (0U) | ||
4158 | #define BCH_DEBUG1_ERASED_ZERO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_ERASED_ZERO_COUNT_SHIFT)) & BCH_DEBUG1_ERASED_ZERO_COUNT_MASK) | ||
4159 | #define BCH_DEBUG1_RSVD_MASK (0x7FFFFE00U) | ||
4160 | #define BCH_DEBUG1_RSVD_SHIFT (9U) | ||
4161 | #define BCH_DEBUG1_RSVD(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_RSVD_SHIFT)) & BCH_DEBUG1_RSVD_MASK) | ||
4162 | #define BCH_DEBUG1_DEBUG1_PREERASECHK_MASK (0x80000000U) | ||
4163 | #define BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT (31U) | ||
4164 | /*! DEBUG1_PREERASECHK | ||
4165 | * 0b0..Turn off pre-erase check | ||
4166 | * 0b1..Turn on pre-erase check | ||
4167 | */ | ||
4168 | #define BCH_DEBUG1_DEBUG1_PREERASECHK(x) (((uint32_t)(((uint32_t)(x)) << BCH_DEBUG1_DEBUG1_PREERASECHK_SHIFT)) & BCH_DEBUG1_DEBUG1_PREERASECHK_MASK) | ||
4169 | /*! @} */ | ||
4170 | |||
4171 | |||
4172 | /*! | ||
4173 | * @} | ||
4174 | */ /* end of group BCH_Register_Masks */ | ||
4175 | |||
4176 | |||
4177 | /* BCH - Peripheral instance base addresses */ | ||
4178 | /** Peripheral BCH base address */ | ||
4179 | #define BCH_BASE (0x33004000u) | ||
4180 | /** Peripheral BCH base pointer */ | ||
4181 | #define BCH ((BCH_Type *)BCH_BASE) | ||
4182 | /** Array initializer of BCH peripheral base addresses */ | ||
4183 | #define BCH_BASE_ADDRS { BCH_BASE } | ||
4184 | /** Array initializer of BCH peripheral base pointers */ | ||
4185 | #define BCH_BASE_PTRS { BCH } | ||
4186 | /** Interrupt vectors for the BCH peripheral type */ | ||
4187 | #define BCH_IRQS { BCH_IRQn } | ||
4188 | |||
4189 | /*! | ||
4190 | * @} | ||
4191 | */ /* end of group BCH_Peripheral_Access_Layer */ | ||
4192 | |||
4193 | |||
4194 | /* ---------------------------------------------------------------------------- | ||
4195 | -- CCM Peripheral Access Layer | ||
4196 | ---------------------------------------------------------------------------- */ | ||
4197 | |||
4198 | /*! | ||
4199 | * @addtogroup CCM_Peripheral_Access_Layer CCM Peripheral Access Layer | ||
4200 | * @{ | ||
4201 | */ | ||
4202 | |||
4203 | /** CCM - Register Layout Typedef */ | ||
4204 | typedef struct { | ||
4205 | __IO uint32_t GPR0; /**< General Purpose Register, offset: 0x0 */ | ||
4206 | __IO uint32_t GPR0_SET; /**< General Purpose Register, offset: 0x4 */ | ||
4207 | __IO uint32_t GPR0_CLR; /**< General Purpose Register, offset: 0x8 */ | ||
4208 | __IO uint32_t GPR0_TOG; /**< General Purpose Register, offset: 0xC */ | ||
4209 | uint8_t RESERVED_0[2032]; | ||
4210 | struct { /* offset: 0x800, array step: 0x10 */ | ||
4211 | __IO uint32_t PLL_CTRL; /**< CCM PLL Control Register, array offset: 0x800, array step: 0x10 */ | ||
4212 | __IO uint32_t PLL_CTRL_SET; /**< CCM PLL Control Register, array offset: 0x804, array step: 0x10 */ | ||
4213 | __IO uint32_t PLL_CTRL_CLR; /**< CCM PLL Control Register, array offset: 0x808, array step: 0x10 */ | ||
4214 | __IO uint32_t PLL_CTRL_TOG; /**< CCM PLL Control Register, array offset: 0x80C, array step: 0x10 */ | ||
4215 | } PLL_CTRL[39]; | ||
4216 | uint8_t RESERVED_1[13712]; | ||
4217 | struct { /* offset: 0x4000, array step: 0x10 */ | ||
4218 | __IO uint32_t CCGR; /**< CCM Clock Gating Register, array offset: 0x4000, array step: 0x10 */ | ||
4219 | __IO uint32_t CCGR_SET; /**< CCM Clock Gating Register, array offset: 0x4004, array step: 0x10 */ | ||
4220 | __IO uint32_t CCGR_CLR; /**< CCM Clock Gating Register, array offset: 0x4008, array step: 0x10 */ | ||
4221 | __IO uint32_t CCGR_TOG; /**< CCM Clock Gating Register, array offset: 0x400C, array step: 0x10 */ | ||
4222 | } CCGR[191]; | ||
4223 | uint8_t RESERVED_2[13328]; | ||
4224 | struct { /* offset: 0x8000, array step: 0x80 */ | ||
4225 | __IO uint32_t TARGET_ROOT; /**< Target Register, array offset: 0x8000, array step: 0x80 */ | ||
4226 | __IO uint32_t TARGET_ROOT_SET; /**< Target Register, array offset: 0x8004, array step: 0x80 */ | ||
4227 | __IO uint32_t TARGET_ROOT_CLR; /**< Target Register, array offset: 0x8008, array step: 0x80 */ | ||
4228 | __IO uint32_t TARGET_ROOT_TOG; /**< Target Register, array offset: 0x800C, array step: 0x80 */ | ||
4229 | __IO uint32_t MISC; /**< Miscellaneous Register, array offset: 0x8010, array step: 0x80 */ | ||
4230 | __IO uint32_t MISC_ROOT_SET; /**< Miscellaneous Register, array offset: 0x8014, array step: 0x80 */ | ||
4231 | __IO uint32_t MISC_ROOT_CLR; /**< Miscellaneous Register, array offset: 0x8018, array step: 0x80 */ | ||
4232 | __IO uint32_t MISC_ROOT_TOG; /**< Miscellaneous Register, array offset: 0x801C, array step: 0x80 */ | ||
4233 | __IO uint32_t POST; /**< Post Divider Register, array offset: 0x8020, array step: 0x80 */ | ||
4234 | __IO uint32_t POST_ROOT_SET; /**< Post Divider Register, array offset: 0x8024, array step: 0x80 */ | ||
4235 | __IO uint32_t POST_ROOT_CLR; /**< Post Divider Register, array offset: 0x8028, array step: 0x80 */ | ||
4236 | __IO uint32_t POST_ROOT_TOG; /**< Post Divider Register, array offset: 0x802C, array step: 0x80 */ | ||
4237 | __IO uint32_t PRE; /**< Pre Divider Register, array offset: 0x8030, array step: 0x80 */ | ||
4238 | __IO uint32_t PRE_ROOT_SET; /**< Pre Divider Register, array offset: 0x8034, array step: 0x80 */ | ||
4239 | __IO uint32_t PRE_ROOT_CLR; /**< Pre Divider Register, array offset: 0x8038, array step: 0x80 */ | ||
4240 | __IO uint32_t PRE_ROOT_TOG; /**< Pre Divider Register, array offset: 0x803C, array step: 0x80 */ | ||
4241 | uint8_t RESERVED_0[48]; | ||
4242 | __IO uint32_t ACCESS_CTRL; /**< Access Control Register, array offset: 0x8070, array step: 0x80 */ | ||
4243 | __IO uint32_t ACCESS_CTRL_ROOT_SET; /**< Access Control Register, array offset: 0x8074, array step: 0x80 */ | ||
4244 | __IO uint32_t ACCESS_CTRL_ROOT_CLR; /**< Access Control Register, array offset: 0x8078, array step: 0x80 */ | ||
4245 | __IO uint32_t ACCESS_CTRL_ROOT_TOG; /**< Access Control Register, array offset: 0x807C, array step: 0x80 */ | ||
4246 | } ROOT[142]; | ||
4247 | } CCM_Type; | ||
4248 | |||
4249 | /* ---------------------------------------------------------------------------- | ||
4250 | -- CCM Register Masks | ||
4251 | ---------------------------------------------------------------------------- */ | ||
4252 | |||
4253 | /*! | ||
4254 | * @addtogroup CCM_Register_Masks CCM Register Masks | ||
4255 | * @{ | ||
4256 | */ | ||
4257 | |||
4258 | /*! @name GPR0 - General Purpose Register */ | ||
4259 | /*! @{ */ | ||
4260 | #define CCM_GPR0_GP0_MASK (0xFFFFFFFFU) | ||
4261 | #define CCM_GPR0_GP0_SHIFT (0U) | ||
4262 | #define CCM_GPR0_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_GP0_SHIFT)) & CCM_GPR0_GP0_MASK) | ||
4263 | /*! @} */ | ||
4264 | |||
4265 | /*! @name GPR0_SET - General Purpose Register */ | ||
4266 | /*! @{ */ | ||
4267 | #define CCM_GPR0_SET_GP0_MASK (0xFFFFFFFFU) | ||
4268 | #define CCM_GPR0_SET_GP0_SHIFT (0U) | ||
4269 | #define CCM_GPR0_SET_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_SET_GP0_SHIFT)) & CCM_GPR0_SET_GP0_MASK) | ||
4270 | /*! @} */ | ||
4271 | |||
4272 | /*! @name GPR0_CLR - General Purpose Register */ | ||
4273 | /*! @{ */ | ||
4274 | #define CCM_GPR0_CLR_GP0_MASK (0xFFFFFFFFU) | ||
4275 | #define CCM_GPR0_CLR_GP0_SHIFT (0U) | ||
4276 | #define CCM_GPR0_CLR_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_CLR_GP0_SHIFT)) & CCM_GPR0_CLR_GP0_MASK) | ||
4277 | /*! @} */ | ||
4278 | |||
4279 | /*! @name GPR0_TOG - General Purpose Register */ | ||
4280 | /*! @{ */ | ||
4281 | #define CCM_GPR0_TOG_GP0_MASK (0xFFFFFFFFU) | ||
4282 | #define CCM_GPR0_TOG_GP0_SHIFT (0U) | ||
4283 | #define CCM_GPR0_TOG_GP0(x) (((uint32_t)(((uint32_t)(x)) << CCM_GPR0_TOG_GP0_SHIFT)) & CCM_GPR0_TOG_GP0_MASK) | ||
4284 | /*! @} */ | ||
4285 | |||
4286 | /*! @name PLL_CTRL - CCM PLL Control Register */ | ||
4287 | /*! @{ */ | ||
4288 | #define CCM_PLL_CTRL_SETTING0_MASK (0x3U) | ||
4289 | #define CCM_PLL_CTRL_SETTING0_SHIFT (0U) | ||
4290 | /*! SETTING0 | ||
4291 | * 0b00..Domain clocks not needed | ||
4292 | * 0b01..Domain clocks needed when in RUN | ||
4293 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4294 | * 0b11..Domain clocks needed all the time | ||
4295 | */ | ||
4296 | #define CCM_PLL_CTRL_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING0_SHIFT)) & CCM_PLL_CTRL_SETTING0_MASK) | ||
4297 | #define CCM_PLL_CTRL_SETTING1_MASK (0x30U) | ||
4298 | #define CCM_PLL_CTRL_SETTING1_SHIFT (4U) | ||
4299 | /*! SETTING1 | ||
4300 | * 0b00..Domain clocks not needed | ||
4301 | * 0b01..Domain clocks needed when in RUN | ||
4302 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4303 | * 0b11..Domain clocks needed all the time | ||
4304 | */ | ||
4305 | #define CCM_PLL_CTRL_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING1_SHIFT)) & CCM_PLL_CTRL_SETTING1_MASK) | ||
4306 | #define CCM_PLL_CTRL_SETTING2_MASK (0x300U) | ||
4307 | #define CCM_PLL_CTRL_SETTING2_SHIFT (8U) | ||
4308 | /*! SETTING2 | ||
4309 | * 0b00..Domain clocks not needed | ||
4310 | * 0b01..Domain clocks needed when in RUN | ||
4311 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4312 | * 0b11..Domain clocks needed all the time | ||
4313 | */ | ||
4314 | #define CCM_PLL_CTRL_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING2_SHIFT)) & CCM_PLL_CTRL_SETTING2_MASK) | ||
4315 | #define CCM_PLL_CTRL_SETTING3_MASK (0x3000U) | ||
4316 | #define CCM_PLL_CTRL_SETTING3_SHIFT (12U) | ||
4317 | /*! SETTING3 | ||
4318 | * 0b00..Domain clocks not needed | ||
4319 | * 0b01..Domain clocks needed when in RUN | ||
4320 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4321 | * 0b11..Domain clocks needed all the time | ||
4322 | */ | ||
4323 | #define CCM_PLL_CTRL_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SETTING3_SHIFT)) & CCM_PLL_CTRL_SETTING3_MASK) | ||
4324 | /*! @} */ | ||
4325 | |||
4326 | /* The count of CCM_PLL_CTRL */ | ||
4327 | #define CCM_PLL_CTRL_COUNT (39U) | ||
4328 | |||
4329 | /*! @name PLL_CTRL_SET - CCM PLL Control Register */ | ||
4330 | /*! @{ */ | ||
4331 | #define CCM_PLL_CTRL_SET_SETTING0_MASK (0x3U) | ||
4332 | #define CCM_PLL_CTRL_SET_SETTING0_SHIFT (0U) | ||
4333 | /*! SETTING0 | ||
4334 | * 0b00..Domain clocks not needed | ||
4335 | * 0b01..Domain clocks needed when in RUN | ||
4336 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4337 | * 0b11..Domain clocks needed all the time | ||
4338 | */ | ||
4339 | #define CCM_PLL_CTRL_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING0_SHIFT)) & CCM_PLL_CTRL_SET_SETTING0_MASK) | ||
4340 | #define CCM_PLL_CTRL_SET_SETTING1_MASK (0x30U) | ||
4341 | #define CCM_PLL_CTRL_SET_SETTING1_SHIFT (4U) | ||
4342 | /*! SETTING1 | ||
4343 | * 0b00..Domain clocks not needed | ||
4344 | * 0b01..Domain clocks needed when in RUN | ||
4345 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4346 | * 0b11..Domain clocks needed all the time | ||
4347 | */ | ||
4348 | #define CCM_PLL_CTRL_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING1_SHIFT)) & CCM_PLL_CTRL_SET_SETTING1_MASK) | ||
4349 | #define CCM_PLL_CTRL_SET_SETTING2_MASK (0x300U) | ||
4350 | #define CCM_PLL_CTRL_SET_SETTING2_SHIFT (8U) | ||
4351 | /*! SETTING2 | ||
4352 | * 0b00..Domain clocks not needed | ||
4353 | * 0b01..Domain clocks needed when in RUN | ||
4354 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4355 | * 0b11..Domain clocks needed all the time | ||
4356 | */ | ||
4357 | #define CCM_PLL_CTRL_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING2_SHIFT)) & CCM_PLL_CTRL_SET_SETTING2_MASK) | ||
4358 | #define CCM_PLL_CTRL_SET_SETTING3_MASK (0x3000U) | ||
4359 | #define CCM_PLL_CTRL_SET_SETTING3_SHIFT (12U) | ||
4360 | /*! SETTING3 | ||
4361 | * 0b00..Domain clocks not needed | ||
4362 | * 0b01..Domain clocks needed when in RUN | ||
4363 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4364 | * 0b11..Domain clocks needed all the time | ||
4365 | */ | ||
4366 | #define CCM_PLL_CTRL_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_SET_SETTING3_SHIFT)) & CCM_PLL_CTRL_SET_SETTING3_MASK) | ||
4367 | /*! @} */ | ||
4368 | |||
4369 | /* The count of CCM_PLL_CTRL_SET */ | ||
4370 | #define CCM_PLL_CTRL_SET_COUNT (39U) | ||
4371 | |||
4372 | /*! @name PLL_CTRL_CLR - CCM PLL Control Register */ | ||
4373 | /*! @{ */ | ||
4374 | #define CCM_PLL_CTRL_CLR_SETTING0_MASK (0x3U) | ||
4375 | #define CCM_PLL_CTRL_CLR_SETTING0_SHIFT (0U) | ||
4376 | /*! SETTING0 | ||
4377 | * 0b00..Domain clocks not needed | ||
4378 | * 0b01..Domain clocks needed when in RUN | ||
4379 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4380 | * 0b11..Domain clocks needed all the time | ||
4381 | */ | ||
4382 | #define CCM_PLL_CTRL_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING0_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING0_MASK) | ||
4383 | #define CCM_PLL_CTRL_CLR_SETTING1_MASK (0x30U) | ||
4384 | #define CCM_PLL_CTRL_CLR_SETTING1_SHIFT (4U) | ||
4385 | /*! SETTING1 | ||
4386 | * 0b00..Domain clocks not needed | ||
4387 | * 0b01..Domain clocks needed when in RUN | ||
4388 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4389 | * 0b11..Domain clocks needed all the time | ||
4390 | */ | ||
4391 | #define CCM_PLL_CTRL_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING1_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING1_MASK) | ||
4392 | #define CCM_PLL_CTRL_CLR_SETTING2_MASK (0x300U) | ||
4393 | #define CCM_PLL_CTRL_CLR_SETTING2_SHIFT (8U) | ||
4394 | /*! SETTING2 | ||
4395 | * 0b00..Domain clocks not needed | ||
4396 | * 0b01..Domain clocks needed when in RUN | ||
4397 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4398 | * 0b11..Domain clocks needed all the time | ||
4399 | */ | ||
4400 | #define CCM_PLL_CTRL_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING2_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING2_MASK) | ||
4401 | #define CCM_PLL_CTRL_CLR_SETTING3_MASK (0x3000U) | ||
4402 | #define CCM_PLL_CTRL_CLR_SETTING3_SHIFT (12U) | ||
4403 | /*! SETTING3 | ||
4404 | * 0b00..Domain clocks not needed | ||
4405 | * 0b01..Domain clocks needed when in RUN | ||
4406 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4407 | * 0b11..Domain clocks needed all the time | ||
4408 | */ | ||
4409 | #define CCM_PLL_CTRL_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_CLR_SETTING3_SHIFT)) & CCM_PLL_CTRL_CLR_SETTING3_MASK) | ||
4410 | /*! @} */ | ||
4411 | |||
4412 | /* The count of CCM_PLL_CTRL_CLR */ | ||
4413 | #define CCM_PLL_CTRL_CLR_COUNT (39U) | ||
4414 | |||
4415 | /*! @name PLL_CTRL_TOG - CCM PLL Control Register */ | ||
4416 | /*! @{ */ | ||
4417 | #define CCM_PLL_CTRL_TOG_SETTING0_MASK (0x3U) | ||
4418 | #define CCM_PLL_CTRL_TOG_SETTING0_SHIFT (0U) | ||
4419 | /*! SETTING0 | ||
4420 | * 0b00..Domain clocks not needed | ||
4421 | * 0b01..Domain clocks needed when in RUN | ||
4422 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4423 | * 0b11..Domain clocks needed all the time | ||
4424 | */ | ||
4425 | #define CCM_PLL_CTRL_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING0_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING0_MASK) | ||
4426 | #define CCM_PLL_CTRL_TOG_SETTING1_MASK (0x30U) | ||
4427 | #define CCM_PLL_CTRL_TOG_SETTING1_SHIFT (4U) | ||
4428 | /*! SETTING1 | ||
4429 | * 0b00..Domain clocks not needed | ||
4430 | * 0b01..Domain clocks needed when in RUN | ||
4431 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4432 | * 0b11..Domain clocks needed all the time | ||
4433 | */ | ||
4434 | #define CCM_PLL_CTRL_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING1_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING1_MASK) | ||
4435 | #define CCM_PLL_CTRL_TOG_SETTING2_MASK (0x300U) | ||
4436 | #define CCM_PLL_CTRL_TOG_SETTING2_SHIFT (8U) | ||
4437 | /*! SETTING2 | ||
4438 | * 0b00..Domain clocks not needed | ||
4439 | * 0b01..Domain clocks needed when in RUN | ||
4440 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4441 | * 0b11..Domain clocks needed all the time | ||
4442 | */ | ||
4443 | #define CCM_PLL_CTRL_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING2_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING2_MASK) | ||
4444 | #define CCM_PLL_CTRL_TOG_SETTING3_MASK (0x3000U) | ||
4445 | #define CCM_PLL_CTRL_TOG_SETTING3_SHIFT (12U) | ||
4446 | /*! SETTING3 | ||
4447 | * 0b00..Domain clocks not needed | ||
4448 | * 0b01..Domain clocks needed when in RUN | ||
4449 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4450 | * 0b11..Domain clocks needed all the time | ||
4451 | */ | ||
4452 | #define CCM_PLL_CTRL_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PLL_CTRL_TOG_SETTING3_SHIFT)) & CCM_PLL_CTRL_TOG_SETTING3_MASK) | ||
4453 | /*! @} */ | ||
4454 | |||
4455 | /* The count of CCM_PLL_CTRL_TOG */ | ||
4456 | #define CCM_PLL_CTRL_TOG_COUNT (39U) | ||
4457 | |||
4458 | /*! @name CCGR - CCM Clock Gating Register */ | ||
4459 | /*! @{ */ | ||
4460 | #define CCM_CCGR_SETTING0_MASK (0x3U) | ||
4461 | #define CCM_CCGR_SETTING0_SHIFT (0U) | ||
4462 | /*! SETTING0 | ||
4463 | * 0b00..Domain clocks not needed | ||
4464 | * 0b01..Domain clocks needed when in RUN | ||
4465 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4466 | * 0b11..Domain clocks needed all the time | ||
4467 | */ | ||
4468 | #define CCM_CCGR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING0_SHIFT)) & CCM_CCGR_SETTING0_MASK) | ||
4469 | #define CCM_CCGR_SETTING1_MASK (0x30U) | ||
4470 | #define CCM_CCGR_SETTING1_SHIFT (4U) | ||
4471 | /*! SETTING1 | ||
4472 | * 0b00..Domain clocks not needed | ||
4473 | * 0b01..Domain clocks needed when in RUN | ||
4474 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4475 | * 0b11..Domain clocks needed all the time | ||
4476 | */ | ||
4477 | #define CCM_CCGR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING1_SHIFT)) & CCM_CCGR_SETTING1_MASK) | ||
4478 | #define CCM_CCGR_SETTING2_MASK (0x300U) | ||
4479 | #define CCM_CCGR_SETTING2_SHIFT (8U) | ||
4480 | /*! SETTING2 | ||
4481 | * 0b00..Domain clocks not needed | ||
4482 | * 0b01..Domain clocks needed when in RUN | ||
4483 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4484 | * 0b11..Domain clocks needed all the time | ||
4485 | */ | ||
4486 | #define CCM_CCGR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING2_SHIFT)) & CCM_CCGR_SETTING2_MASK) | ||
4487 | #define CCM_CCGR_SETTING3_MASK (0x3000U) | ||
4488 | #define CCM_CCGR_SETTING3_SHIFT (12U) | ||
4489 | /*! SETTING3 | ||
4490 | * 0b00..Domain clocks not needed | ||
4491 | * 0b01..Domain clocks needed when in RUN | ||
4492 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4493 | * 0b11..Domain clocks needed all the time | ||
4494 | */ | ||
4495 | #define CCM_CCGR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SETTING3_SHIFT)) & CCM_CCGR_SETTING3_MASK) | ||
4496 | /*! @} */ | ||
4497 | |||
4498 | /* The count of CCM_CCGR */ | ||
4499 | #define CCM_CCGR_COUNT (191U) | ||
4500 | |||
4501 | /*! @name CCGR_SET - CCM Clock Gating Register */ | ||
4502 | /*! @{ */ | ||
4503 | #define CCM_CCGR_SET_SETTING0_MASK (0x3U) | ||
4504 | #define CCM_CCGR_SET_SETTING0_SHIFT (0U) | ||
4505 | /*! SETTING0 | ||
4506 | * 0b00..Domain clocks not needed | ||
4507 | * 0b01..Domain clocks needed when in RUN | ||
4508 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4509 | * 0b11..Domain clocks needed all the time | ||
4510 | */ | ||
4511 | #define CCM_CCGR_SET_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING0_SHIFT)) & CCM_CCGR_SET_SETTING0_MASK) | ||
4512 | #define CCM_CCGR_SET_SETTING1_MASK (0x30U) | ||
4513 | #define CCM_CCGR_SET_SETTING1_SHIFT (4U) | ||
4514 | /*! SETTING1 | ||
4515 | * 0b00..Domain clocks not needed | ||
4516 | * 0b01..Domain clocks needed when in RUN | ||
4517 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4518 | * 0b11..Domain clocks needed all the time | ||
4519 | */ | ||
4520 | #define CCM_CCGR_SET_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING1_SHIFT)) & CCM_CCGR_SET_SETTING1_MASK) | ||
4521 | #define CCM_CCGR_SET_SETTING2_MASK (0x300U) | ||
4522 | #define CCM_CCGR_SET_SETTING2_SHIFT (8U) | ||
4523 | /*! SETTING2 | ||
4524 | * 0b00..Domain clocks not needed | ||
4525 | * 0b01..Domain clocks needed when in RUN | ||
4526 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4527 | * 0b11..Domain clocks needed all the time | ||
4528 | */ | ||
4529 | #define CCM_CCGR_SET_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING2_SHIFT)) & CCM_CCGR_SET_SETTING2_MASK) | ||
4530 | #define CCM_CCGR_SET_SETTING3_MASK (0x3000U) | ||
4531 | #define CCM_CCGR_SET_SETTING3_SHIFT (12U) | ||
4532 | /*! SETTING3 | ||
4533 | * 0b00..Domain clocks not needed | ||
4534 | * 0b01..Domain clocks needed when in RUN | ||
4535 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4536 | * 0b11..Domain clocks needed all the time | ||
4537 | */ | ||
4538 | #define CCM_CCGR_SET_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_SET_SETTING3_SHIFT)) & CCM_CCGR_SET_SETTING3_MASK) | ||
4539 | /*! @} */ | ||
4540 | |||
4541 | /* The count of CCM_CCGR_SET */ | ||
4542 | #define CCM_CCGR_SET_COUNT (191U) | ||
4543 | |||
4544 | /*! @name CCGR_CLR - CCM Clock Gating Register */ | ||
4545 | /*! @{ */ | ||
4546 | #define CCM_CCGR_CLR_SETTING0_MASK (0x3U) | ||
4547 | #define CCM_CCGR_CLR_SETTING0_SHIFT (0U) | ||
4548 | /*! SETTING0 | ||
4549 | * 0b00..Domain clocks not needed | ||
4550 | * 0b01..Domain clocks needed when in RUN | ||
4551 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4552 | * 0b11..Domain clocks needed all the time | ||
4553 | */ | ||
4554 | #define CCM_CCGR_CLR_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING0_SHIFT)) & CCM_CCGR_CLR_SETTING0_MASK) | ||
4555 | #define CCM_CCGR_CLR_SETTING1_MASK (0x30U) | ||
4556 | #define CCM_CCGR_CLR_SETTING1_SHIFT (4U) | ||
4557 | /*! SETTING1 | ||
4558 | * 0b00..Domain clocks not needed | ||
4559 | * 0b01..Domain clocks needed when in RUN | ||
4560 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4561 | * 0b11..Domain clocks needed all the time | ||
4562 | */ | ||
4563 | #define CCM_CCGR_CLR_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING1_SHIFT)) & CCM_CCGR_CLR_SETTING1_MASK) | ||
4564 | #define CCM_CCGR_CLR_SETTING2_MASK (0x300U) | ||
4565 | #define CCM_CCGR_CLR_SETTING2_SHIFT (8U) | ||
4566 | /*! SETTING2 | ||
4567 | * 0b00..Domain clocks not needed | ||
4568 | * 0b01..Domain clocks needed when in RUN | ||
4569 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4570 | * 0b11..Domain clocks needed all the time | ||
4571 | */ | ||
4572 | #define CCM_CCGR_CLR_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING2_SHIFT)) & CCM_CCGR_CLR_SETTING2_MASK) | ||
4573 | #define CCM_CCGR_CLR_SETTING3_MASK (0x3000U) | ||
4574 | #define CCM_CCGR_CLR_SETTING3_SHIFT (12U) | ||
4575 | /*! SETTING3 | ||
4576 | * 0b00..Domain clocks not needed | ||
4577 | * 0b01..Domain clocks needed when in RUN | ||
4578 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4579 | * 0b11..Domain clocks needed all the time | ||
4580 | */ | ||
4581 | #define CCM_CCGR_CLR_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_CLR_SETTING3_SHIFT)) & CCM_CCGR_CLR_SETTING3_MASK) | ||
4582 | /*! @} */ | ||
4583 | |||
4584 | /* The count of CCM_CCGR_CLR */ | ||
4585 | #define CCM_CCGR_CLR_COUNT (191U) | ||
4586 | |||
4587 | /*! @name CCGR_TOG - CCM Clock Gating Register */ | ||
4588 | /*! @{ */ | ||
4589 | #define CCM_CCGR_TOG_SETTING0_MASK (0x3U) | ||
4590 | #define CCM_CCGR_TOG_SETTING0_SHIFT (0U) | ||
4591 | /*! SETTING0 | ||
4592 | * 0b00..Domain clocks not needed | ||
4593 | * 0b01..Domain clocks needed when in RUN | ||
4594 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4595 | * 0b11..Domain clocks needed all the time | ||
4596 | */ | ||
4597 | #define CCM_CCGR_TOG_SETTING0(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING0_SHIFT)) & CCM_CCGR_TOG_SETTING0_MASK) | ||
4598 | #define CCM_CCGR_TOG_SETTING1_MASK (0x30U) | ||
4599 | #define CCM_CCGR_TOG_SETTING1_SHIFT (4U) | ||
4600 | /*! SETTING1 | ||
4601 | * 0b00..Domain clocks not needed | ||
4602 | * 0b01..Domain clocks needed when in RUN | ||
4603 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4604 | * 0b11..Domain clocks needed all the time | ||
4605 | */ | ||
4606 | #define CCM_CCGR_TOG_SETTING1(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING1_SHIFT)) & CCM_CCGR_TOG_SETTING1_MASK) | ||
4607 | #define CCM_CCGR_TOG_SETTING2_MASK (0x300U) | ||
4608 | #define CCM_CCGR_TOG_SETTING2_SHIFT (8U) | ||
4609 | /*! SETTING2 | ||
4610 | * 0b00..Domain clocks not needed | ||
4611 | * 0b01..Domain clocks needed when in RUN | ||
4612 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4613 | * 0b11..Domain clocks needed all the time | ||
4614 | */ | ||
4615 | #define CCM_CCGR_TOG_SETTING2(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING2_SHIFT)) & CCM_CCGR_TOG_SETTING2_MASK) | ||
4616 | #define CCM_CCGR_TOG_SETTING3_MASK (0x3000U) | ||
4617 | #define CCM_CCGR_TOG_SETTING3_SHIFT (12U) | ||
4618 | /*! SETTING3 | ||
4619 | * 0b00..Domain clocks not needed | ||
4620 | * 0b01..Domain clocks needed when in RUN | ||
4621 | * 0b10..Domain clocks needed when in RUN and WAIT | ||
4622 | * 0b11..Domain clocks needed all the time | ||
4623 | */ | ||
4624 | #define CCM_CCGR_TOG_SETTING3(x) (((uint32_t)(((uint32_t)(x)) << CCM_CCGR_TOG_SETTING3_SHIFT)) & CCM_CCGR_TOG_SETTING3_MASK) | ||
4625 | /*! @} */ | ||
4626 | |||
4627 | /* The count of CCM_CCGR_TOG */ | ||
4628 | #define CCM_CCGR_TOG_COUNT (191U) | ||
4629 | |||
4630 | /*! @name TARGET_ROOT - Target Register */ | ||
4631 | /*! @{ */ | ||
4632 | #define CCM_TARGET_ROOT_POST_PODF_MASK (0x3FU) | ||
4633 | #define CCM_TARGET_ROOT_POST_PODF_SHIFT (0U) | ||
4634 | /*! POST_PODF | ||
4635 | * 0b000000..Divide by 1 | ||
4636 | * 0b000001..Divide by 2 | ||
4637 | * 0b000010..Divide by 3 | ||
4638 | * 0b000011..Divide by 4 | ||
4639 | * 0b000100..Divide by 5 | ||
4640 | * 0b000101..Divide by 6 | ||
4641 | * 0b111111..Divide by 64 | ||
4642 | */ | ||
4643 | #define CCM_TARGET_ROOT_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_POST_PODF_MASK) | ||
4644 | #define CCM_TARGET_ROOT_PRE_PODF_MASK (0x70000U) | ||
4645 | #define CCM_TARGET_ROOT_PRE_PODF_SHIFT (16U) | ||
4646 | /*! PRE_PODF | ||
4647 | * 0b000..Divide by 1 | ||
4648 | * 0b001..Divide by 2 | ||
4649 | * 0b010..Divide by 3 | ||
4650 | * 0b011..Divide by 4 | ||
4651 | * 0b100..Divide by 5 | ||
4652 | * 0b101..Divide by 6 | ||
4653 | * 0b110..Divide by 7 | ||
4654 | * 0b111..Divide by 8 | ||
4655 | */ | ||
4656 | #define CCM_TARGET_ROOT_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_PRE_PODF_MASK) | ||
4657 | #define CCM_TARGET_ROOT_MUX_MASK (0x7000000U) | ||
4658 | #define CCM_TARGET_ROOT_MUX_SHIFT (24U) | ||
4659 | #define CCM_TARGET_ROOT_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_MUX_SHIFT)) & CCM_TARGET_ROOT_MUX_MASK) | ||
4660 | #define CCM_TARGET_ROOT_ENABLE_MASK (0x10000000U) | ||
4661 | #define CCM_TARGET_ROOT_ENABLE_SHIFT (28U) | ||
4662 | /*! ENABLE | ||
4663 | * 0b0..clock root is OFF | ||
4664 | * 0b1..clock root is ON | ||
4665 | */ | ||
4666 | #define CCM_TARGET_ROOT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_ENABLE_SHIFT)) & CCM_TARGET_ROOT_ENABLE_MASK) | ||
4667 | /*! @} */ | ||
4668 | |||
4669 | /* The count of CCM_TARGET_ROOT */ | ||
4670 | #define CCM_TARGET_ROOT_COUNT (142U) | ||
4671 | |||
4672 | /*! @name TARGET_ROOT_SET - Target Register */ | ||
4673 | /*! @{ */ | ||
4674 | #define CCM_TARGET_ROOT_SET_POST_PODF_MASK (0x3FU) | ||
4675 | #define CCM_TARGET_ROOT_SET_POST_PODF_SHIFT (0U) | ||
4676 | /*! POST_PODF | ||
4677 | * 0b000000..Divide by 1 | ||
4678 | * 0b000001..Divide by 2 | ||
4679 | * 0b000010..Divide by 3 | ||
4680 | * 0b000011..Divide by 4 | ||
4681 | * 0b000100..Divide by 5 | ||
4682 | * 0b000101..Divide by 6 | ||
4683 | * 0b111111..Divide by 64 | ||
4684 | */ | ||
4685 | #define CCM_TARGET_ROOT_SET_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_SET_POST_PODF_MASK) | ||
4686 | #define CCM_TARGET_ROOT_SET_PRE_PODF_MASK (0x70000U) | ||
4687 | #define CCM_TARGET_ROOT_SET_PRE_PODF_SHIFT (16U) | ||
4688 | /*! PRE_PODF | ||
4689 | * 0b000..Divide by 1 | ||
4690 | * 0b001..Divide by 2 | ||
4691 | * 0b010..Divide by 3 | ||
4692 | * 0b011..Divide by 4 | ||
4693 | * 0b100..Divide by 5 | ||
4694 | * 0b101..Divide by 6 | ||
4695 | * 0b110..Divide by 7 | ||
4696 | * 0b111..Divide by 8 | ||
4697 | */ | ||
4698 | #define CCM_TARGET_ROOT_SET_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_SET_PRE_PODF_MASK) | ||
4699 | #define CCM_TARGET_ROOT_SET_MUX_MASK (0x7000000U) | ||
4700 | #define CCM_TARGET_ROOT_SET_MUX_SHIFT (24U) | ||
4701 | #define CCM_TARGET_ROOT_SET_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_MUX_SHIFT)) & CCM_TARGET_ROOT_SET_MUX_MASK) | ||
4702 | #define CCM_TARGET_ROOT_SET_ENABLE_MASK (0x10000000U) | ||
4703 | #define CCM_TARGET_ROOT_SET_ENABLE_SHIFT (28U) | ||
4704 | /*! ENABLE | ||
4705 | * 0b0..clock root is OFF | ||
4706 | * 0b1..clock root is ON | ||
4707 | */ | ||
4708 | #define CCM_TARGET_ROOT_SET_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_SET_ENABLE_SHIFT)) & CCM_TARGET_ROOT_SET_ENABLE_MASK) | ||
4709 | /*! @} */ | ||
4710 | |||
4711 | /* The count of CCM_TARGET_ROOT_SET */ | ||
4712 | #define CCM_TARGET_ROOT_SET_COUNT (142U) | ||
4713 | |||
4714 | /*! @name TARGET_ROOT_CLR - Target Register */ | ||
4715 | /*! @{ */ | ||
4716 | #define CCM_TARGET_ROOT_CLR_POST_PODF_MASK (0x3FU) | ||
4717 | #define CCM_TARGET_ROOT_CLR_POST_PODF_SHIFT (0U) | ||
4718 | /*! POST_PODF | ||
4719 | * 0b000000..Divide by 1 | ||
4720 | * 0b000001..Divide by 2 | ||
4721 | * 0b000010..Divide by 3 | ||
4722 | * 0b000011..Divide by 4 | ||
4723 | * 0b000100..Divide by 5 | ||
4724 | * 0b000101..Divide by 6 | ||
4725 | * 0b111111..Divide by 64 | ||
4726 | */ | ||
4727 | #define CCM_TARGET_ROOT_CLR_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_CLR_POST_PODF_MASK) | ||
4728 | #define CCM_TARGET_ROOT_CLR_PRE_PODF_MASK (0x70000U) | ||
4729 | #define CCM_TARGET_ROOT_CLR_PRE_PODF_SHIFT (16U) | ||
4730 | /*! PRE_PODF | ||
4731 | * 0b000..Divide by 1 | ||
4732 | * 0b001..Divide by 2 | ||
4733 | * 0b010..Divide by 3 | ||
4734 | * 0b011..Divide by 4 | ||
4735 | * 0b100..Divide by 5 | ||
4736 | * 0b101..Divide by 6 | ||
4737 | * 0b110..Divide by 7 | ||
4738 | * 0b111..Divide by 8 | ||
4739 | */ | ||
4740 | #define CCM_TARGET_ROOT_CLR_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_CLR_PRE_PODF_MASK) | ||
4741 | #define CCM_TARGET_ROOT_CLR_MUX_MASK (0x7000000U) | ||
4742 | #define CCM_TARGET_ROOT_CLR_MUX_SHIFT (24U) | ||
4743 | #define CCM_TARGET_ROOT_CLR_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_MUX_SHIFT)) & CCM_TARGET_ROOT_CLR_MUX_MASK) | ||
4744 | #define CCM_TARGET_ROOT_CLR_ENABLE_MASK (0x10000000U) | ||
4745 | #define CCM_TARGET_ROOT_CLR_ENABLE_SHIFT (28U) | ||
4746 | /*! ENABLE | ||
4747 | * 0b0..clock root is OFF | ||
4748 | * 0b1..clock root is ON | ||
4749 | */ | ||
4750 | #define CCM_TARGET_ROOT_CLR_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_CLR_ENABLE_SHIFT)) & CCM_TARGET_ROOT_CLR_ENABLE_MASK) | ||
4751 | /*! @} */ | ||
4752 | |||
4753 | /* The count of CCM_TARGET_ROOT_CLR */ | ||
4754 | #define CCM_TARGET_ROOT_CLR_COUNT (142U) | ||
4755 | |||
4756 | /*! @name TARGET_ROOT_TOG - Target Register */ | ||
4757 | /*! @{ */ | ||
4758 | #define CCM_TARGET_ROOT_TOG_POST_PODF_MASK (0x3FU) | ||
4759 | #define CCM_TARGET_ROOT_TOG_POST_PODF_SHIFT (0U) | ||
4760 | /*! POST_PODF | ||
4761 | * 0b000000..Divide by 1 | ||
4762 | * 0b000001..Divide by 2 | ||
4763 | * 0b000010..Divide by 3 | ||
4764 | * 0b000011..Divide by 4 | ||
4765 | * 0b000100..Divide by 5 | ||
4766 | * 0b000101..Divide by 6 | ||
4767 | * 0b111111..Divide by 64 | ||
4768 | */ | ||
4769 | #define CCM_TARGET_ROOT_TOG_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_POST_PODF_SHIFT)) & CCM_TARGET_ROOT_TOG_POST_PODF_MASK) | ||
4770 | #define CCM_TARGET_ROOT_TOG_PRE_PODF_MASK (0x70000U) | ||
4771 | #define CCM_TARGET_ROOT_TOG_PRE_PODF_SHIFT (16U) | ||
4772 | /*! PRE_PODF | ||
4773 | * 0b000..Divide by 1 | ||
4774 | * 0b001..Divide by 2 | ||
4775 | * 0b010..Divide by 3 | ||
4776 | * 0b011..Divide by 4 | ||
4777 | * 0b100..Divide by 5 | ||
4778 | * 0b101..Divide by 6 | ||
4779 | * 0b110..Divide by 7 | ||
4780 | * 0b111..Divide by 8 | ||
4781 | */ | ||
4782 | #define CCM_TARGET_ROOT_TOG_PRE_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_PRE_PODF_SHIFT)) & CCM_TARGET_ROOT_TOG_PRE_PODF_MASK) | ||
4783 | #define CCM_TARGET_ROOT_TOG_MUX_MASK (0x7000000U) | ||
4784 | #define CCM_TARGET_ROOT_TOG_MUX_SHIFT (24U) | ||
4785 | #define CCM_TARGET_ROOT_TOG_MUX(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_MUX_SHIFT)) & CCM_TARGET_ROOT_TOG_MUX_MASK) | ||
4786 | #define CCM_TARGET_ROOT_TOG_ENABLE_MASK (0x10000000U) | ||
4787 | #define CCM_TARGET_ROOT_TOG_ENABLE_SHIFT (28U) | ||
4788 | /*! ENABLE | ||
4789 | * 0b0..clock root is OFF | ||
4790 | * 0b1..clock root is ON | ||
4791 | */ | ||
4792 | #define CCM_TARGET_ROOT_TOG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CCM_TARGET_ROOT_TOG_ENABLE_SHIFT)) & CCM_TARGET_ROOT_TOG_ENABLE_MASK) | ||
4793 | /*! @} */ | ||
4794 | |||
4795 | /* The count of CCM_TARGET_ROOT_TOG */ | ||
4796 | #define CCM_TARGET_ROOT_TOG_COUNT (142U) | ||
4797 | |||
4798 | /*! @name MISC - Miscellaneous Register */ | ||
4799 | /*! @{ */ | ||
4800 | #define CCM_MISC_AUTHEN_FAIL_MASK (0x1U) | ||
4801 | #define CCM_MISC_AUTHEN_FAIL_SHIFT (0U) | ||
4802 | #define CCM_MISC_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_AUTHEN_FAIL_SHIFT)) & CCM_MISC_AUTHEN_FAIL_MASK) | ||
4803 | #define CCM_MISC_TIMEOUT_MASK (0x10U) | ||
4804 | #define CCM_MISC_TIMEOUT_SHIFT (4U) | ||
4805 | #define CCM_MISC_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_TIMEOUT_SHIFT)) & CCM_MISC_TIMEOUT_MASK) | ||
4806 | #define CCM_MISC_VIOLATE_MASK (0x100U) | ||
4807 | #define CCM_MISC_VIOLATE_SHIFT (8U) | ||
4808 | #define CCM_MISC_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_VIOLATE_SHIFT)) & CCM_MISC_VIOLATE_MASK) | ||
4809 | /*! @} */ | ||
4810 | |||
4811 | /* The count of CCM_MISC */ | ||
4812 | #define CCM_MISC_COUNT (142U) | ||
4813 | |||
4814 | /*! @name MISC_ROOT_SET - Miscellaneous Register */ | ||
4815 | /*! @{ */ | ||
4816 | #define CCM_MISC_ROOT_SET_AUTHEN_FAIL_MASK (0x1U) | ||
4817 | #define CCM_MISC_ROOT_SET_AUTHEN_FAIL_SHIFT (0U) | ||
4818 | #define CCM_MISC_ROOT_SET_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_SET_AUTHEN_FAIL_MASK) | ||
4819 | #define CCM_MISC_ROOT_SET_TIMEOUT_MASK (0x10U) | ||
4820 | #define CCM_MISC_ROOT_SET_TIMEOUT_SHIFT (4U) | ||
4821 | #define CCM_MISC_ROOT_SET_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_SET_TIMEOUT_MASK) | ||
4822 | #define CCM_MISC_ROOT_SET_VIOLATE_MASK (0x100U) | ||
4823 | #define CCM_MISC_ROOT_SET_VIOLATE_SHIFT (8U) | ||
4824 | #define CCM_MISC_ROOT_SET_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_SET_VIOLATE_SHIFT)) & CCM_MISC_ROOT_SET_VIOLATE_MASK) | ||
4825 | /*! @} */ | ||
4826 | |||
4827 | /* The count of CCM_MISC_ROOT_SET */ | ||
4828 | #define CCM_MISC_ROOT_SET_COUNT (142U) | ||
4829 | |||
4830 | /*! @name MISC_ROOT_CLR - Miscellaneous Register */ | ||
4831 | /*! @{ */ | ||
4832 | #define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_MASK (0x1U) | ||
4833 | #define CCM_MISC_ROOT_CLR_AUTHEN_FAIL_SHIFT (0U) | ||
4834 | #define CCM_MISC_ROOT_CLR_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_CLR_AUTHEN_FAIL_MASK) | ||
4835 | #define CCM_MISC_ROOT_CLR_TIMEOUT_MASK (0x10U) | ||
4836 | #define CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT (4U) | ||
4837 | #define CCM_MISC_ROOT_CLR_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_CLR_TIMEOUT_MASK) | ||
4838 | #define CCM_MISC_ROOT_CLR_VIOLATE_MASK (0x100U) | ||
4839 | #define CCM_MISC_ROOT_CLR_VIOLATE_SHIFT (8U) | ||
4840 | #define CCM_MISC_ROOT_CLR_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_CLR_VIOLATE_SHIFT)) & CCM_MISC_ROOT_CLR_VIOLATE_MASK) | ||
4841 | /*! @} */ | ||
4842 | |||
4843 | /* The count of CCM_MISC_ROOT_CLR */ | ||
4844 | #define CCM_MISC_ROOT_CLR_COUNT (142U) | ||
4845 | |||
4846 | /*! @name MISC_ROOT_TOG - Miscellaneous Register */ | ||
4847 | /*! @{ */ | ||
4848 | #define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_MASK (0x1U) | ||
4849 | #define CCM_MISC_ROOT_TOG_AUTHEN_FAIL_SHIFT (0U) | ||
4850 | #define CCM_MISC_ROOT_TOG_AUTHEN_FAIL(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_AUTHEN_FAIL_SHIFT)) & CCM_MISC_ROOT_TOG_AUTHEN_FAIL_MASK) | ||
4851 | #define CCM_MISC_ROOT_TOG_TIMEOUT_MASK (0x10U) | ||
4852 | #define CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT (4U) | ||
4853 | #define CCM_MISC_ROOT_TOG_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_TIMEOUT_SHIFT)) & CCM_MISC_ROOT_TOG_TIMEOUT_MASK) | ||
4854 | #define CCM_MISC_ROOT_TOG_VIOLATE_MASK (0x100U) | ||
4855 | #define CCM_MISC_ROOT_TOG_VIOLATE_SHIFT (8U) | ||
4856 | #define CCM_MISC_ROOT_TOG_VIOLATE(x) (((uint32_t)(((uint32_t)(x)) << CCM_MISC_ROOT_TOG_VIOLATE_SHIFT)) & CCM_MISC_ROOT_TOG_VIOLATE_MASK) | ||
4857 | /*! @} */ | ||
4858 | |||
4859 | /* The count of CCM_MISC_ROOT_TOG */ | ||
4860 | #define CCM_MISC_ROOT_TOG_COUNT (142U) | ||
4861 | |||
4862 | /*! @name POST - Post Divider Register */ | ||
4863 | /*! @{ */ | ||
4864 | #define CCM_POST_POST_PODF_MASK (0x3FU) | ||
4865 | #define CCM_POST_POST_PODF_SHIFT (0U) | ||
4866 | /*! POST_PODF | ||
4867 | * 0b000000..Divide by 1 | ||
4868 | * 0b000001..Divide by 2 | ||
4869 | * 0b000010..Divide by 3 | ||
4870 | * 0b000011..Divide by 4 | ||
4871 | * 0b000100..Divide by 5 | ||
4872 | * 0b000101..Divide by 6 | ||
4873 | * 0b111111..Divide by 64 | ||
4874 | */ | ||
4875 | #define CCM_POST_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_POST_PODF_SHIFT)) & CCM_POST_POST_PODF_MASK) | ||
4876 | #define CCM_POST_BUSY1_MASK (0x80U) | ||
4877 | #define CCM_POST_BUSY1_SHIFT (7U) | ||
4878 | #define CCM_POST_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY1_SHIFT)) & CCM_POST_BUSY1_MASK) | ||
4879 | #define CCM_POST_SELECT_MASK (0x10000000U) | ||
4880 | #define CCM_POST_SELECT_SHIFT (28U) | ||
4881 | /*! SELECT | ||
4882 | * 0b0..select branch A | ||
4883 | * 0b1..select branch B | ||
4884 | */ | ||
4885 | #define CCM_POST_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_SELECT_SHIFT)) & CCM_POST_SELECT_MASK) | ||
4886 | #define CCM_POST_BUSY2_MASK (0x80000000U) | ||
4887 | #define CCM_POST_BUSY2_SHIFT (31U) | ||
4888 | #define CCM_POST_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_BUSY2_SHIFT)) & CCM_POST_BUSY2_MASK) | ||
4889 | /*! @} */ | ||
4890 | |||
4891 | /* The count of CCM_POST */ | ||
4892 | #define CCM_POST_COUNT (142U) | ||
4893 | |||
4894 | /*! @name POST_ROOT_SET - Post Divider Register */ | ||
4895 | /*! @{ */ | ||
4896 | #define CCM_POST_ROOT_SET_POST_PODF_MASK (0x3FU) | ||
4897 | #define CCM_POST_ROOT_SET_POST_PODF_SHIFT (0U) | ||
4898 | /*! POST_PODF | ||
4899 | * 0b000000..Divide by 1 | ||
4900 | * 0b000001..Divide by 2 | ||
4901 | * 0b000010..Divide by 3 | ||
4902 | * 0b000011..Divide by 4 | ||
4903 | * 0b000100..Divide by 5 | ||
4904 | * 0b000101..Divide by 6 | ||
4905 | * 0b111111..Divide by 64 | ||
4906 | */ | ||
4907 | #define CCM_POST_ROOT_SET_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_POST_PODF_SHIFT)) & CCM_POST_ROOT_SET_POST_PODF_MASK) | ||
4908 | #define CCM_POST_ROOT_SET_BUSY1_MASK (0x80U) | ||
4909 | #define CCM_POST_ROOT_SET_BUSY1_SHIFT (7U) | ||
4910 | #define CCM_POST_ROOT_SET_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY1_SHIFT)) & CCM_POST_ROOT_SET_BUSY1_MASK) | ||
4911 | #define CCM_POST_ROOT_SET_SELECT_MASK (0x10000000U) | ||
4912 | #define CCM_POST_ROOT_SET_SELECT_SHIFT (28U) | ||
4913 | /*! SELECT | ||
4914 | * 0b0..select branch A | ||
4915 | * 0b1..select branch B | ||
4916 | */ | ||
4917 | #define CCM_POST_ROOT_SET_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_SELECT_SHIFT)) & CCM_POST_ROOT_SET_SELECT_MASK) | ||
4918 | #define CCM_POST_ROOT_SET_BUSY2_MASK (0x80000000U) | ||
4919 | #define CCM_POST_ROOT_SET_BUSY2_SHIFT (31U) | ||
4920 | #define CCM_POST_ROOT_SET_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_SET_BUSY2_SHIFT)) & CCM_POST_ROOT_SET_BUSY2_MASK) | ||
4921 | /*! @} */ | ||
4922 | |||
4923 | /* The count of CCM_POST_ROOT_SET */ | ||
4924 | #define CCM_POST_ROOT_SET_COUNT (142U) | ||
4925 | |||
4926 | /*! @name POST_ROOT_CLR - Post Divider Register */ | ||
4927 | /*! @{ */ | ||
4928 | #define CCM_POST_ROOT_CLR_POST_PODF_MASK (0x3FU) | ||
4929 | #define CCM_POST_ROOT_CLR_POST_PODF_SHIFT (0U) | ||
4930 | /*! POST_PODF | ||
4931 | * 0b000000..Divide by 1 | ||
4932 | * 0b000001..Divide by 2 | ||
4933 | * 0b000010..Divide by 3 | ||
4934 | * 0b000011..Divide by 4 | ||
4935 | * 0b000100..Divide by 5 | ||
4936 | * 0b000101..Divide by 6 | ||
4937 | * 0b111111..Divide by 64 | ||
4938 | */ | ||
4939 | #define CCM_POST_ROOT_CLR_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_POST_PODF_SHIFT)) & CCM_POST_ROOT_CLR_POST_PODF_MASK) | ||
4940 | #define CCM_POST_ROOT_CLR_BUSY1_MASK (0x80U) | ||
4941 | #define CCM_POST_ROOT_CLR_BUSY1_SHIFT (7U) | ||
4942 | #define CCM_POST_ROOT_CLR_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY1_SHIFT)) & CCM_POST_ROOT_CLR_BUSY1_MASK) | ||
4943 | #define CCM_POST_ROOT_CLR_SELECT_MASK (0x10000000U) | ||
4944 | #define CCM_POST_ROOT_CLR_SELECT_SHIFT (28U) | ||
4945 | /*! SELECT | ||
4946 | * 0b0..select branch A | ||
4947 | * 0b1..select branch B | ||
4948 | */ | ||
4949 | #define CCM_POST_ROOT_CLR_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_SELECT_SHIFT)) & CCM_POST_ROOT_CLR_SELECT_MASK) | ||
4950 | #define CCM_POST_ROOT_CLR_BUSY2_MASK (0x80000000U) | ||
4951 | #define CCM_POST_ROOT_CLR_BUSY2_SHIFT (31U) | ||
4952 | #define CCM_POST_ROOT_CLR_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_CLR_BUSY2_SHIFT)) & CCM_POST_ROOT_CLR_BUSY2_MASK) | ||
4953 | /*! @} */ | ||
4954 | |||
4955 | /* The count of CCM_POST_ROOT_CLR */ | ||
4956 | #define CCM_POST_ROOT_CLR_COUNT (142U) | ||
4957 | |||
4958 | /*! @name POST_ROOT_TOG - Post Divider Register */ | ||
4959 | /*! @{ */ | ||
4960 | #define CCM_POST_ROOT_TOG_POST_PODF_MASK (0x3FU) | ||
4961 | #define CCM_POST_ROOT_TOG_POST_PODF_SHIFT (0U) | ||
4962 | /*! POST_PODF | ||
4963 | * 0b000000..Divide by 1 | ||
4964 | * 0b000001..Divide by 2 | ||
4965 | * 0b000010..Divide by 3 | ||
4966 | * 0b000011..Divide by 4 | ||
4967 | * 0b000100..Divide by 5 | ||
4968 | * 0b000101..Divide by 6 | ||
4969 | * 0b111111..Divide by 64 | ||
4970 | */ | ||
4971 | #define CCM_POST_ROOT_TOG_POST_PODF(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_POST_PODF_SHIFT)) & CCM_POST_ROOT_TOG_POST_PODF_MASK) | ||
4972 | #define CCM_POST_ROOT_TOG_BUSY1_MASK (0x80U) | ||
4973 | #define CCM_POST_ROOT_TOG_BUSY1_SHIFT (7U) | ||
4974 | #define CCM_POST_ROOT_TOG_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY1_SHIFT)) & CCM_POST_ROOT_TOG_BUSY1_MASK) | ||
4975 | #define CCM_POST_ROOT_TOG_SELECT_MASK (0x10000000U) | ||
4976 | #define CCM_POST_ROOT_TOG_SELECT_SHIFT (28U) | ||
4977 | /*! SELECT | ||
4978 | * 0b0..select branch A | ||
4979 | * 0b1..select branch B | ||
4980 | */ | ||
4981 | #define CCM_POST_ROOT_TOG_SELECT(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_SELECT_SHIFT)) & CCM_POST_ROOT_TOG_SELECT_MASK) | ||
4982 | #define CCM_POST_ROOT_TOG_BUSY2_MASK (0x80000000U) | ||
4983 | #define CCM_POST_ROOT_TOG_BUSY2_SHIFT (31U) | ||
4984 | #define CCM_POST_ROOT_TOG_BUSY2(x) (((uint32_t)(((uint32_t)(x)) << CCM_POST_ROOT_TOG_BUSY2_SHIFT)) & CCM_POST_ROOT_TOG_BUSY2_MASK) | ||
4985 | /*! @} */ | ||
4986 | |||
4987 | /* The count of CCM_POST_ROOT_TOG */ | ||
4988 | #define CCM_POST_ROOT_TOG_COUNT (142U) | ||
4989 | |||
4990 | /*! @name PRE - Pre Divider Register */ | ||
4991 | /*! @{ */ | ||
4992 | #define CCM_PRE_PRE_PODF_B_MASK (0x7U) | ||
4993 | #define CCM_PRE_PRE_PODF_B_SHIFT (0U) | ||
4994 | /*! PRE_PODF_B | ||
4995 | * 0b000..Divide by 1 | ||
4996 | * 0b001..Divide by 2 | ||
4997 | * 0b010..Divide by 3 | ||
4998 | * 0b011..Divide by 4 | ||
4999 | * 0b100..Divide by 5 | ||
5000 | * 0b101..Divide by 6 | ||
5001 | * 0b110..Divide by 7 | ||
5002 | * 0b111..Divide by 8 | ||
5003 | */ | ||
5004 | #define CCM_PRE_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_PRE_PODF_B_SHIFT)) & CCM_PRE_PRE_PODF_B_MASK) | ||
5005 | #define CCM_PRE_BUSY0_MASK (0x8U) | ||
5006 | #define CCM_PRE_BUSY0_SHIFT (3U) | ||
5007 | #define CCM_PRE_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY0_SHIFT)) & CCM_PRE_BUSY0_MASK) | ||
5008 | #define CCM_PRE_MUX_B_MASK (0x700U) | ||
5009 | #define CCM_PRE_MUX_B_SHIFT (8U) | ||
5010 | #define CCM_PRE_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_MUX_B_SHIFT)) & CCM_PRE_MUX_B_MASK) | ||
5011 | #define CCM_PRE_EN_B_MASK (0x1000U) | ||
5012 | #define CCM_PRE_EN_B_SHIFT (12U) | ||
5013 | /*! EN_B | ||
5014 | * 0b0..Clock shutdown | ||
5015 | * 0b1..Clock ON | ||
5016 | */ | ||
5017 | #define CCM_PRE_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_EN_B_SHIFT)) & CCM_PRE_EN_B_MASK) | ||
5018 | #define CCM_PRE_BUSY1_MASK (0x8000U) | ||
5019 | #define CCM_PRE_BUSY1_SHIFT (15U) | ||
5020 | #define CCM_PRE_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY1_SHIFT)) & CCM_PRE_BUSY1_MASK) | ||
5021 | #define CCM_PRE_PRE_PODF_A_MASK (0x70000U) | ||
5022 | #define CCM_PRE_PRE_PODF_A_SHIFT (16U) | ||
5023 | /*! PRE_PODF_A | ||
5024 | * 0b000..Divide by 1 | ||
5025 | * 0b001..Divide by 2 | ||
5026 | * 0b010..Divide by 3 | ||
5027 | * 0b011..Divide by 4 | ||
5028 | * 0b100..Divide by 5 | ||
5029 | * 0b101..Divide by 6 | ||
5030 | * 0b110..Divide by 7 | ||
5031 | * 0b111..Divide by 8 | ||
5032 | */ | ||
5033 | #define CCM_PRE_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_PRE_PODF_A_SHIFT)) & CCM_PRE_PRE_PODF_A_MASK) | ||
5034 | #define CCM_PRE_BUSY3_MASK (0x80000U) | ||
5035 | #define CCM_PRE_BUSY3_SHIFT (19U) | ||
5036 | #define CCM_PRE_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY3_SHIFT)) & CCM_PRE_BUSY3_MASK) | ||
5037 | #define CCM_PRE_MUX_A_MASK (0x7000000U) | ||
5038 | #define CCM_PRE_MUX_A_SHIFT (24U) | ||
5039 | #define CCM_PRE_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_MUX_A_SHIFT)) & CCM_PRE_MUX_A_MASK) | ||
5040 | #define CCM_PRE_EN_A_MASK (0x10000000U) | ||
5041 | #define CCM_PRE_EN_A_SHIFT (28U) | ||
5042 | /*! EN_A | ||
5043 | * 0b0..Clock shutdown | ||
5044 | * 0b1..clock ON | ||
5045 | */ | ||
5046 | #define CCM_PRE_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_EN_A_SHIFT)) & CCM_PRE_EN_A_MASK) | ||
5047 | #define CCM_PRE_BUSY4_MASK (0x80000000U) | ||
5048 | #define CCM_PRE_BUSY4_SHIFT (31U) | ||
5049 | #define CCM_PRE_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_BUSY4_SHIFT)) & CCM_PRE_BUSY4_MASK) | ||
5050 | /*! @} */ | ||
5051 | |||
5052 | /* The count of CCM_PRE */ | ||
5053 | #define CCM_PRE_COUNT (142U) | ||
5054 | |||
5055 | /*! @name PRE_ROOT_SET - Pre Divider Register */ | ||
5056 | /*! @{ */ | ||
5057 | #define CCM_PRE_ROOT_SET_PRE_PODF_B_MASK (0x7U) | ||
5058 | #define CCM_PRE_ROOT_SET_PRE_PODF_B_SHIFT (0U) | ||
5059 | /*! PRE_PODF_B | ||
5060 | * 0b000..Divide by 1 | ||
5061 | * 0b001..Divide by 2 | ||
5062 | * 0b010..Divide by 3 | ||
5063 | * 0b011..Divide by 4 | ||
5064 | * 0b100..Divide by 5 | ||
5065 | * 0b101..Divide by 6 | ||
5066 | * 0b110..Divide by 7 | ||
5067 | * 0b111..Divide by 8 | ||
5068 | */ | ||
5069 | #define CCM_PRE_ROOT_SET_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_SET_PRE_PODF_B_MASK) | ||
5070 | #define CCM_PRE_ROOT_SET_BUSY0_MASK (0x8U) | ||
5071 | #define CCM_PRE_ROOT_SET_BUSY0_SHIFT (3U) | ||
5072 | #define CCM_PRE_ROOT_SET_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY0_SHIFT)) & CCM_PRE_ROOT_SET_BUSY0_MASK) | ||
5073 | #define CCM_PRE_ROOT_SET_MUX_B_MASK (0x700U) | ||
5074 | #define CCM_PRE_ROOT_SET_MUX_B_SHIFT (8U) | ||
5075 | #define CCM_PRE_ROOT_SET_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_MUX_B_SHIFT)) & CCM_PRE_ROOT_SET_MUX_B_MASK) | ||
5076 | #define CCM_PRE_ROOT_SET_EN_B_MASK (0x1000U) | ||
5077 | #define CCM_PRE_ROOT_SET_EN_B_SHIFT (12U) | ||
5078 | /*! EN_B | ||
5079 | * 0b0..Clock shutdown | ||
5080 | * 0b1..Clock ON | ||
5081 | */ | ||
5082 | #define CCM_PRE_ROOT_SET_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_EN_B_SHIFT)) & CCM_PRE_ROOT_SET_EN_B_MASK) | ||
5083 | #define CCM_PRE_ROOT_SET_BUSY1_MASK (0x8000U) | ||
5084 | #define CCM_PRE_ROOT_SET_BUSY1_SHIFT (15U) | ||
5085 | #define CCM_PRE_ROOT_SET_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY1_SHIFT)) & CCM_PRE_ROOT_SET_BUSY1_MASK) | ||
5086 | #define CCM_PRE_ROOT_SET_PRE_PODF_A_MASK (0x70000U) | ||
5087 | #define CCM_PRE_ROOT_SET_PRE_PODF_A_SHIFT (16U) | ||
5088 | /*! PRE_PODF_A | ||
5089 | * 0b000..Divide by 1 | ||
5090 | * 0b001..Divide by 2 | ||
5091 | * 0b010..Divide by 3 | ||
5092 | * 0b011..Divide by 4 | ||
5093 | * 0b100..Divide by 5 | ||
5094 | * 0b101..Divide by 6 | ||
5095 | * 0b110..Divide by 7 | ||
5096 | * 0b111..Divide by 8 | ||
5097 | */ | ||
5098 | #define CCM_PRE_ROOT_SET_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_SET_PRE_PODF_A_MASK) | ||
5099 | #define CCM_PRE_ROOT_SET_BUSY3_MASK (0x80000U) | ||
5100 | #define CCM_PRE_ROOT_SET_BUSY3_SHIFT (19U) | ||
5101 | #define CCM_PRE_ROOT_SET_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY3_SHIFT)) & CCM_PRE_ROOT_SET_BUSY3_MASK) | ||
5102 | #define CCM_PRE_ROOT_SET_MUX_A_MASK (0x7000000U) | ||
5103 | #define CCM_PRE_ROOT_SET_MUX_A_SHIFT (24U) | ||
5104 | #define CCM_PRE_ROOT_SET_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_MUX_A_SHIFT)) & CCM_PRE_ROOT_SET_MUX_A_MASK) | ||
5105 | #define CCM_PRE_ROOT_SET_EN_A_MASK (0x10000000U) | ||
5106 | #define CCM_PRE_ROOT_SET_EN_A_SHIFT (28U) | ||
5107 | /*! EN_A | ||
5108 | * 0b0..Clock shutdown | ||
5109 | * 0b1..clock ON | ||
5110 | */ | ||
5111 | #define CCM_PRE_ROOT_SET_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_EN_A_SHIFT)) & CCM_PRE_ROOT_SET_EN_A_MASK) | ||
5112 | #define CCM_PRE_ROOT_SET_BUSY4_MASK (0x80000000U) | ||
5113 | #define CCM_PRE_ROOT_SET_BUSY4_SHIFT (31U) | ||
5114 | #define CCM_PRE_ROOT_SET_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_SET_BUSY4_SHIFT)) & CCM_PRE_ROOT_SET_BUSY4_MASK) | ||
5115 | /*! @} */ | ||
5116 | |||
5117 | /* The count of CCM_PRE_ROOT_SET */ | ||
5118 | #define CCM_PRE_ROOT_SET_COUNT (142U) | ||
5119 | |||
5120 | /*! @name PRE_ROOT_CLR - Pre Divider Register */ | ||
5121 | /*! @{ */ | ||
5122 | #define CCM_PRE_ROOT_CLR_PRE_PODF_B_MASK (0x7U) | ||
5123 | #define CCM_PRE_ROOT_CLR_PRE_PODF_B_SHIFT (0U) | ||
5124 | /*! PRE_PODF_B | ||
5125 | * 0b000..Divide by 1 | ||
5126 | * 0b001..Divide by 2 | ||
5127 | * 0b010..Divide by 3 | ||
5128 | * 0b011..Divide by 4 | ||
5129 | * 0b100..Divide by 5 | ||
5130 | * 0b101..Divide by 6 | ||
5131 | * 0b110..Divide by 7 | ||
5132 | * 0b111..Divide by 8 | ||
5133 | */ | ||
5134 | #define CCM_PRE_ROOT_CLR_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_CLR_PRE_PODF_B_MASK) | ||
5135 | #define CCM_PRE_ROOT_CLR_BUSY0_MASK (0x8U) | ||
5136 | #define CCM_PRE_ROOT_CLR_BUSY0_SHIFT (3U) | ||
5137 | #define CCM_PRE_ROOT_CLR_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY0_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY0_MASK) | ||
5138 | #define CCM_PRE_ROOT_CLR_MUX_B_MASK (0x700U) | ||
5139 | #define CCM_PRE_ROOT_CLR_MUX_B_SHIFT (8U) | ||
5140 | #define CCM_PRE_ROOT_CLR_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_MUX_B_SHIFT)) & CCM_PRE_ROOT_CLR_MUX_B_MASK) | ||
5141 | #define CCM_PRE_ROOT_CLR_EN_B_MASK (0x1000U) | ||
5142 | #define CCM_PRE_ROOT_CLR_EN_B_SHIFT (12U) | ||
5143 | /*! EN_B | ||
5144 | * 0b0..Clock shutdown | ||
5145 | * 0b1..Clock ON | ||
5146 | */ | ||
5147 | #define CCM_PRE_ROOT_CLR_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_EN_B_SHIFT)) & CCM_PRE_ROOT_CLR_EN_B_MASK) | ||
5148 | #define CCM_PRE_ROOT_CLR_BUSY1_MASK (0x8000U) | ||
5149 | #define CCM_PRE_ROOT_CLR_BUSY1_SHIFT (15U) | ||
5150 | #define CCM_PRE_ROOT_CLR_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY1_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY1_MASK) | ||
5151 | #define CCM_PRE_ROOT_CLR_PRE_PODF_A_MASK (0x70000U) | ||
5152 | #define CCM_PRE_ROOT_CLR_PRE_PODF_A_SHIFT (16U) | ||
5153 | /*! PRE_PODF_A | ||
5154 | * 0b000..Divide by 1 | ||
5155 | * 0b001..Divide by 2 | ||
5156 | * 0b010..Divide by 3 | ||
5157 | * 0b011..Divide by 4 | ||
5158 | * 0b100..Divide by 5 | ||
5159 | * 0b101..Divide by 6 | ||
5160 | * 0b110..Divide by 7 | ||
5161 | * 0b111..Divide by 8 | ||
5162 | */ | ||
5163 | #define CCM_PRE_ROOT_CLR_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_CLR_PRE_PODF_A_MASK) | ||
5164 | #define CCM_PRE_ROOT_CLR_BUSY3_MASK (0x80000U) | ||
5165 | #define CCM_PRE_ROOT_CLR_BUSY3_SHIFT (19U) | ||
5166 | #define CCM_PRE_ROOT_CLR_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY3_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY3_MASK) | ||
5167 | #define CCM_PRE_ROOT_CLR_MUX_A_MASK (0x7000000U) | ||
5168 | #define CCM_PRE_ROOT_CLR_MUX_A_SHIFT (24U) | ||
5169 | #define CCM_PRE_ROOT_CLR_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_MUX_A_SHIFT)) & CCM_PRE_ROOT_CLR_MUX_A_MASK) | ||
5170 | #define CCM_PRE_ROOT_CLR_EN_A_MASK (0x10000000U) | ||
5171 | #define CCM_PRE_ROOT_CLR_EN_A_SHIFT (28U) | ||
5172 | /*! EN_A | ||
5173 | * 0b0..Clock shutdown | ||
5174 | * 0b1..clock ON | ||
5175 | */ | ||
5176 | #define CCM_PRE_ROOT_CLR_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_EN_A_SHIFT)) & CCM_PRE_ROOT_CLR_EN_A_MASK) | ||
5177 | #define CCM_PRE_ROOT_CLR_BUSY4_MASK (0x80000000U) | ||
5178 | #define CCM_PRE_ROOT_CLR_BUSY4_SHIFT (31U) | ||
5179 | #define CCM_PRE_ROOT_CLR_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_CLR_BUSY4_SHIFT)) & CCM_PRE_ROOT_CLR_BUSY4_MASK) | ||
5180 | /*! @} */ | ||
5181 | |||
5182 | /* The count of CCM_PRE_ROOT_CLR */ | ||
5183 | #define CCM_PRE_ROOT_CLR_COUNT (142U) | ||
5184 | |||
5185 | /*! @name PRE_ROOT_TOG - Pre Divider Register */ | ||
5186 | /*! @{ */ | ||
5187 | #define CCM_PRE_ROOT_TOG_PRE_PODF_B_MASK (0x7U) | ||
5188 | #define CCM_PRE_ROOT_TOG_PRE_PODF_B_SHIFT (0U) | ||
5189 | /*! PRE_PODF_B | ||
5190 | * 0b000..Divide by 1 | ||
5191 | * 0b001..Divide by 2 | ||
5192 | * 0b010..Divide by 3 | ||
5193 | * 0b011..Divide by 4 | ||
5194 | * 0b100..Divide by 5 | ||
5195 | * 0b101..Divide by 6 | ||
5196 | * 0b110..Divide by 7 | ||
5197 | * 0b111..Divide by 8 | ||
5198 | */ | ||
5199 | #define CCM_PRE_ROOT_TOG_PRE_PODF_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_PRE_PODF_B_SHIFT)) & CCM_PRE_ROOT_TOG_PRE_PODF_B_MASK) | ||
5200 | #define CCM_PRE_ROOT_TOG_BUSY0_MASK (0x8U) | ||
5201 | #define CCM_PRE_ROOT_TOG_BUSY0_SHIFT (3U) | ||
5202 | #define CCM_PRE_ROOT_TOG_BUSY0(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY0_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY0_MASK) | ||
5203 | #define CCM_PRE_ROOT_TOG_MUX_B_MASK (0x700U) | ||
5204 | #define CCM_PRE_ROOT_TOG_MUX_B_SHIFT (8U) | ||
5205 | #define CCM_PRE_ROOT_TOG_MUX_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_MUX_B_SHIFT)) & CCM_PRE_ROOT_TOG_MUX_B_MASK) | ||
5206 | #define CCM_PRE_ROOT_TOG_EN_B_MASK (0x1000U) | ||
5207 | #define CCM_PRE_ROOT_TOG_EN_B_SHIFT (12U) | ||
5208 | /*! EN_B | ||
5209 | * 0b0..Clock shutdown | ||
5210 | * 0b1..Clock ON | ||
5211 | */ | ||
5212 | #define CCM_PRE_ROOT_TOG_EN_B(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_EN_B_SHIFT)) & CCM_PRE_ROOT_TOG_EN_B_MASK) | ||
5213 | #define CCM_PRE_ROOT_TOG_BUSY1_MASK (0x8000U) | ||
5214 | #define CCM_PRE_ROOT_TOG_BUSY1_SHIFT (15U) | ||
5215 | #define CCM_PRE_ROOT_TOG_BUSY1(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY1_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY1_MASK) | ||
5216 | #define CCM_PRE_ROOT_TOG_PRE_PODF_A_MASK (0x70000U) | ||
5217 | #define CCM_PRE_ROOT_TOG_PRE_PODF_A_SHIFT (16U) | ||
5218 | /*! PRE_PODF_A | ||
5219 | * 0b000..Divide by 1 | ||
5220 | * 0b001..Divide by 2 | ||
5221 | * 0b010..Divide by 3 | ||
5222 | * 0b011..Divide by 4 | ||
5223 | * 0b100..Divide by 5 | ||
5224 | * 0b101..Divide by 6 | ||
5225 | * 0b110..Divide by 7 | ||
5226 | * 0b111..Divide by 8 | ||
5227 | */ | ||
5228 | #define CCM_PRE_ROOT_TOG_PRE_PODF_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_PRE_PODF_A_SHIFT)) & CCM_PRE_ROOT_TOG_PRE_PODF_A_MASK) | ||
5229 | #define CCM_PRE_ROOT_TOG_BUSY3_MASK (0x80000U) | ||
5230 | #define CCM_PRE_ROOT_TOG_BUSY3_SHIFT (19U) | ||
5231 | #define CCM_PRE_ROOT_TOG_BUSY3(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY3_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY3_MASK) | ||
5232 | #define CCM_PRE_ROOT_TOG_MUX_A_MASK (0x7000000U) | ||
5233 | #define CCM_PRE_ROOT_TOG_MUX_A_SHIFT (24U) | ||
5234 | #define CCM_PRE_ROOT_TOG_MUX_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_MUX_A_SHIFT)) & CCM_PRE_ROOT_TOG_MUX_A_MASK) | ||
5235 | #define CCM_PRE_ROOT_TOG_EN_A_MASK (0x10000000U) | ||
5236 | #define CCM_PRE_ROOT_TOG_EN_A_SHIFT (28U) | ||
5237 | /*! EN_A | ||
5238 | * 0b0..Clock shutdown | ||
5239 | * 0b1..clock ON | ||
5240 | */ | ||
5241 | #define CCM_PRE_ROOT_TOG_EN_A(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_EN_A_SHIFT)) & CCM_PRE_ROOT_TOG_EN_A_MASK) | ||
5242 | #define CCM_PRE_ROOT_TOG_BUSY4_MASK (0x80000000U) | ||
5243 | #define CCM_PRE_ROOT_TOG_BUSY4_SHIFT (31U) | ||
5244 | #define CCM_PRE_ROOT_TOG_BUSY4(x) (((uint32_t)(((uint32_t)(x)) << CCM_PRE_ROOT_TOG_BUSY4_SHIFT)) & CCM_PRE_ROOT_TOG_BUSY4_MASK) | ||
5245 | /*! @} */ | ||
5246 | |||
5247 | /* The count of CCM_PRE_ROOT_TOG */ | ||
5248 | #define CCM_PRE_ROOT_TOG_COUNT (142U) | ||
5249 | |||
5250 | /*! @name ACCESS_CTRL - Access Control Register */ | ||
5251 | /*! @{ */ | ||
5252 | #define CCM_ACCESS_CTRL_DOMAIN0_INFO_MASK (0xFU) | ||
5253 | #define CCM_ACCESS_CTRL_DOMAIN0_INFO_SHIFT (0U) | ||
5254 | #define CCM_ACCESS_CTRL_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN0_INFO_MASK) | ||
5255 | #define CCM_ACCESS_CTRL_DOMAIN1_INFO_MASK (0xF0U) | ||
5256 | #define CCM_ACCESS_CTRL_DOMAIN1_INFO_SHIFT (4U) | ||
5257 | #define CCM_ACCESS_CTRL_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN1_INFO_MASK) | ||
5258 | #define CCM_ACCESS_CTRL_DOMAIN2_INFO_MASK (0xF00U) | ||
5259 | #define CCM_ACCESS_CTRL_DOMAIN2_INFO_SHIFT (8U) | ||
5260 | #define CCM_ACCESS_CTRL_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN2_INFO_MASK) | ||
5261 | #define CCM_ACCESS_CTRL_DOMAIN3_INFO_MASK (0xF000U) | ||
5262 | #define CCM_ACCESS_CTRL_DOMAIN3_INFO_SHIFT (12U) | ||
5263 | #define CCM_ACCESS_CTRL_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN3_INFO_MASK) | ||
5264 | #define CCM_ACCESS_CTRL_OWNER_ID_MASK (0x30000U) | ||
5265 | #define CCM_ACCESS_CTRL_OWNER_ID_SHIFT (16U) | ||
5266 | /*! OWNER_ID | ||
5267 | * 0b00..domaino | ||
5268 | * 0b01..domain1 | ||
5269 | * 0b10..domain2 | ||
5270 | * 0b11..domain3 | ||
5271 | */ | ||
5272 | #define CCM_ACCESS_CTRL_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_OWNER_ID_MASK) | ||
5273 | #define CCM_ACCESS_CTRL_MUTEX_MASK (0x100000U) | ||
5274 | #define CCM_ACCESS_CTRL_MUTEX_SHIFT (20U) | ||
5275 | /*! MUTEX | ||
5276 | * 0b0..Semaphore is free to take | ||
5277 | * 0b1..Semaphore is taken | ||
5278 | */ | ||
5279 | #define CCM_ACCESS_CTRL_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_MUTEX_MASK) | ||
5280 | #define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_MASK (0x1000000U) | ||
5281 | #define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_SHIFT (24U) | ||
5282 | /*! DOMAIN0_WHITELIST | ||
5283 | * 0b0..Domain cannot change the setting | ||
5284 | * 0b1..Domain can change the setting | ||
5285 | */ | ||
5286 | #define CCM_ACCESS_CTRL_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN0_WHITELIST_MASK) | ||
5287 | #define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_MASK (0x2000000U) | ||
5288 | #define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_SHIFT (25U) | ||
5289 | /*! DOMAIN1_WHITELIST | ||
5290 | * 0b0..Domain cannot change the setting | ||
5291 | * 0b1..Domain can change the setting | ||
5292 | */ | ||
5293 | #define CCM_ACCESS_CTRL_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN1_WHITELIST_MASK) | ||
5294 | #define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_MASK (0x4000000U) | ||
5295 | #define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_SHIFT (26U) | ||
5296 | /*! DOMAIN2_WHITELIST | ||
5297 | * 0b0..Domain cannot change the setting | ||
5298 | * 0b1..Domain can change the setting | ||
5299 | */ | ||
5300 | #define CCM_ACCESS_CTRL_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN2_WHITELIST_MASK) | ||
5301 | #define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_MASK (0x8000000U) | ||
5302 | #define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_SHIFT (27U) | ||
5303 | /*! DOMAIN3_WHITELIST | ||
5304 | * 0b0..Domain cannot change the setting | ||
5305 | * 0b1..Domain can change the setting | ||
5306 | */ | ||
5307 | #define CCM_ACCESS_CTRL_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_DOMAIN3_WHITELIST_MASK) | ||
5308 | #define CCM_ACCESS_CTRL_SEMA_EN_MASK (0x10000000U) | ||
5309 | #define CCM_ACCESS_CTRL_SEMA_EN_SHIFT (28U) | ||
5310 | /*! SEMA_EN | ||
5311 | * 0b0..Disable | ||
5312 | * 0b1..Enable | ||
5313 | */ | ||
5314 | #define CCM_ACCESS_CTRL_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_SEMA_EN_MASK) | ||
5315 | #define CCM_ACCESS_CTRL_LOCK_MASK (0x80000000U) | ||
5316 | #define CCM_ACCESS_CTRL_LOCK_SHIFT (31U) | ||
5317 | /*! LOCK | ||
5318 | * 0b0..Access control inactive | ||
5319 | * 0b1..Access control active | ||
5320 | */ | ||
5321 | #define CCM_ACCESS_CTRL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_LOCK_SHIFT)) & CCM_ACCESS_CTRL_LOCK_MASK) | ||
5322 | /*! @} */ | ||
5323 | |||
5324 | /* The count of CCM_ACCESS_CTRL */ | ||
5325 | #define CCM_ACCESS_CTRL_COUNT (142U) | ||
5326 | |||
5327 | /*! @name ACCESS_CTRL_ROOT_SET - Access Control Register */ | ||
5328 | /*! @{ */ | ||
5329 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_MASK (0xFU) | ||
5330 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_SHIFT (0U) | ||
5331 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_INFO_MASK) | ||
5332 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_MASK (0xF0U) | ||
5333 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_SHIFT (4U) | ||
5334 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_INFO_MASK) | ||
5335 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_MASK (0xF00U) | ||
5336 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_SHIFT (8U) | ||
5337 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_INFO_MASK) | ||
5338 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_MASK (0xF000U) | ||
5339 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_SHIFT (12U) | ||
5340 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_INFO_MASK) | ||
5341 | #define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_MASK (0x30000U) | ||
5342 | #define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_SHIFT (16U) | ||
5343 | /*! OWNER_ID | ||
5344 | * 0b00..domaino | ||
5345 | * 0b01..domain1 | ||
5346 | * 0b10..domain2 | ||
5347 | * 0b11..domain3 | ||
5348 | */ | ||
5349 | #define CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_OWNER_ID_MASK) | ||
5350 | #define CCM_ACCESS_CTRL_ROOT_SET_MUTEX_MASK (0x100000U) | ||
5351 | #define CCM_ACCESS_CTRL_ROOT_SET_MUTEX_SHIFT (20U) | ||
5352 | /*! MUTEX | ||
5353 | * 0b0..Semaphore is free to take | ||
5354 | * 0b1..Semaphore is taken | ||
5355 | */ | ||
5356 | #define CCM_ACCESS_CTRL_ROOT_SET_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_MUTEX_MASK) | ||
5357 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_MASK (0x1000000U) | ||
5358 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_SHIFT (24U) | ||
5359 | /*! DOMAIN0_WHITELIST | ||
5360 | * 0b0..Domain cannot change the setting | ||
5361 | * 0b1..Domain can change the setting | ||
5362 | */ | ||
5363 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN0_WHITELIST_MASK) | ||
5364 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_MASK (0x2000000U) | ||
5365 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_SHIFT (25U) | ||
5366 | /*! DOMAIN1_WHITELIST | ||
5367 | * 0b0..Domain cannot change the setting | ||
5368 | * 0b1..Domain can change the setting | ||
5369 | */ | ||
5370 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN1_WHITELIST_MASK) | ||
5371 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_MASK (0x4000000U) | ||
5372 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_SHIFT (26U) | ||
5373 | /*! DOMAIN2_WHITELIST | ||
5374 | * 0b0..Domain cannot change the setting | ||
5375 | * 0b1..Domain can change the setting | ||
5376 | */ | ||
5377 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN2_WHITELIST_MASK) | ||
5378 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_MASK (0x8000000U) | ||
5379 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_SHIFT (27U) | ||
5380 | /*! DOMAIN3_WHITELIST | ||
5381 | * 0b0..Domain cannot change the setting | ||
5382 | * 0b1..Domain can change the setting | ||
5383 | */ | ||
5384 | #define CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_DOMAIN3_WHITELIST_MASK) | ||
5385 | #define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_MASK (0x10000000U) | ||
5386 | #define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_SHIFT (28U) | ||
5387 | /*! SEMA_EN | ||
5388 | * 0b0..Disable | ||
5389 | * 0b1..Enable | ||
5390 | */ | ||
5391 | #define CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_SEMA_EN_MASK) | ||
5392 | #define CCM_ACCESS_CTRL_ROOT_SET_LOCK_MASK (0x80000000U) | ||
5393 | #define CCM_ACCESS_CTRL_ROOT_SET_LOCK_SHIFT (31U) | ||
5394 | /*! LOCK | ||
5395 | * 0b0..Access control inactive | ||
5396 | * 0b1..Access control active | ||
5397 | */ | ||
5398 | #define CCM_ACCESS_CTRL_ROOT_SET_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_SET_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_SET_LOCK_MASK) | ||
5399 | /*! @} */ | ||
5400 | |||
5401 | /* The count of CCM_ACCESS_CTRL_ROOT_SET */ | ||
5402 | #define CCM_ACCESS_CTRL_ROOT_SET_COUNT (142U) | ||
5403 | |||
5404 | /*! @name ACCESS_CTRL_ROOT_CLR - Access Control Register */ | ||
5405 | /*! @{ */ | ||
5406 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_MASK (0xFU) | ||
5407 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_SHIFT (0U) | ||
5408 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_INFO_MASK) | ||
5409 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_MASK (0xF0U) | ||
5410 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_SHIFT (4U) | ||
5411 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_INFO_MASK) | ||
5412 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_MASK (0xF00U) | ||
5413 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_SHIFT (8U) | ||
5414 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_INFO_MASK) | ||
5415 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_MASK (0xF000U) | ||
5416 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_SHIFT (12U) | ||
5417 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_INFO_MASK) | ||
5418 | #define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_MASK (0x30000U) | ||
5419 | #define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_SHIFT (16U) | ||
5420 | /*! OWNER_ID | ||
5421 | * 0b00..domaino | ||
5422 | * 0b01..domain1 | ||
5423 | * 0b10..domain2 | ||
5424 | * 0b11..domain3 | ||
5425 | */ | ||
5426 | #define CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_OWNER_ID_MASK) | ||
5427 | #define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_MASK (0x100000U) | ||
5428 | #define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_SHIFT (20U) | ||
5429 | /*! MUTEX | ||
5430 | * 0b0..Semaphore is free to take | ||
5431 | * 0b1..Semaphore is taken | ||
5432 | */ | ||
5433 | #define CCM_ACCESS_CTRL_ROOT_CLR_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_MUTEX_MASK) | ||
5434 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_MASK (0x1000000U) | ||
5435 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_SHIFT (24U) | ||
5436 | /*! DOMAIN0_WHITELIST | ||
5437 | * 0b0..Domain cannot change the setting | ||
5438 | * 0b1..Domain can change the setting | ||
5439 | */ | ||
5440 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN0_WHITELIST_MASK) | ||
5441 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_MASK (0x2000000U) | ||
5442 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_SHIFT (25U) | ||
5443 | /*! DOMAIN1_WHITELIST | ||
5444 | * 0b0..Domain cannot change the setting | ||
5445 | * 0b1..Domain can change the setting | ||
5446 | */ | ||
5447 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN1_WHITELIST_MASK) | ||
5448 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_MASK (0x4000000U) | ||
5449 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_SHIFT (26U) | ||
5450 | /*! DOMAIN2_WHITELIST | ||
5451 | * 0b0..Domain cannot change the setting | ||
5452 | * 0b1..Domain can change the setting | ||
5453 | */ | ||
5454 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN2_WHITELIST_MASK) | ||
5455 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_MASK (0x8000000U) | ||
5456 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_SHIFT (27U) | ||
5457 | /*! DOMAIN3_WHITELIST | ||
5458 | * 0b0..Domain cannot change the setting | ||
5459 | * 0b1..Domain can change the setting | ||
5460 | */ | ||
5461 | #define CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_DOMAIN3_WHITELIST_MASK) | ||
5462 | #define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_MASK (0x10000000U) | ||
5463 | #define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_SHIFT (28U) | ||
5464 | /*! SEMA_EN | ||
5465 | * 0b0..Disable | ||
5466 | * 0b1..Enable | ||
5467 | */ | ||
5468 | #define CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_SEMA_EN_MASK) | ||
5469 | #define CCM_ACCESS_CTRL_ROOT_CLR_LOCK_MASK (0x80000000U) | ||
5470 | #define CCM_ACCESS_CTRL_ROOT_CLR_LOCK_SHIFT (31U) | ||
5471 | /*! LOCK | ||
5472 | * 0b0..Access control inactive | ||
5473 | * 0b1..Access control active | ||
5474 | */ | ||
5475 | #define CCM_ACCESS_CTRL_ROOT_CLR_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_CLR_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_CLR_LOCK_MASK) | ||
5476 | /*! @} */ | ||
5477 | |||
5478 | /* The count of CCM_ACCESS_CTRL_ROOT_CLR */ | ||
5479 | #define CCM_ACCESS_CTRL_ROOT_CLR_COUNT (142U) | ||
5480 | |||
5481 | /*! @name ACCESS_CTRL_ROOT_TOG - Access Control Register */ | ||
5482 | /*! @{ */ | ||
5483 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_MASK (0xFU) | ||
5484 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_SHIFT (0U) | ||
5485 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_INFO_MASK) | ||
5486 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_MASK (0xF0U) | ||
5487 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_SHIFT (4U) | ||
5488 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_INFO_MASK) | ||
5489 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_MASK (0xF00U) | ||
5490 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_SHIFT (8U) | ||
5491 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_INFO_MASK) | ||
5492 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_MASK (0xF000U) | ||
5493 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_SHIFT (12U) | ||
5494 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_INFO_MASK) | ||
5495 | #define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_MASK (0x30000U) | ||
5496 | #define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_SHIFT (16U) | ||
5497 | /*! OWNER_ID | ||
5498 | * 0b00..domaino | ||
5499 | * 0b01..domain1 | ||
5500 | * 0b10..domain2 | ||
5501 | * 0b11..domain3 | ||
5502 | */ | ||
5503 | #define CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_OWNER_ID_MASK) | ||
5504 | #define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_MASK (0x100000U) | ||
5505 | #define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_SHIFT (20U) | ||
5506 | /*! MUTEX | ||
5507 | * 0b0..Semaphore is free to take | ||
5508 | * 0b1..Semaphore is taken | ||
5509 | */ | ||
5510 | #define CCM_ACCESS_CTRL_ROOT_TOG_MUTEX(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_MUTEX_MASK) | ||
5511 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_MASK (0x1000000U) | ||
5512 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_SHIFT (24U) | ||
5513 | /*! DOMAIN0_WHITELIST | ||
5514 | * 0b0..Domain cannot change the setting | ||
5515 | * 0b1..Domain can change the setting | ||
5516 | */ | ||
5517 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN0_WHITELIST_MASK) | ||
5518 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_MASK (0x2000000U) | ||
5519 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_SHIFT (25U) | ||
5520 | /*! DOMAIN1_WHITELIST | ||
5521 | * 0b0..Domain cannot change the setting | ||
5522 | * 0b1..Domain can change the setting | ||
5523 | */ | ||
5524 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN1_WHITELIST_MASK) | ||
5525 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_MASK (0x4000000U) | ||
5526 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_SHIFT (26U) | ||
5527 | /*! DOMAIN2_WHITELIST | ||
5528 | * 0b0..Domain cannot change the setting | ||
5529 | * 0b1..Domain can change the setting | ||
5530 | */ | ||
5531 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN2_WHITELIST_MASK) | ||
5532 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_MASK (0x8000000U) | ||
5533 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_SHIFT (27U) | ||
5534 | /*! DOMAIN3_WHITELIST | ||
5535 | * 0b0..Domain cannot change the setting | ||
5536 | * 0b1..Domain can change the setting | ||
5537 | */ | ||
5538 | #define CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_DOMAIN3_WHITELIST_MASK) | ||
5539 | #define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_MASK (0x10000000U) | ||
5540 | #define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_SHIFT (28U) | ||
5541 | /*! SEMA_EN | ||
5542 | * 0b0..Disable | ||
5543 | * 0b1..Enable | ||
5544 | */ | ||
5545 | #define CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_SEMA_EN_MASK) | ||
5546 | #define CCM_ACCESS_CTRL_ROOT_TOG_LOCK_MASK (0x80000000U) | ||
5547 | #define CCM_ACCESS_CTRL_ROOT_TOG_LOCK_SHIFT (31U) | ||
5548 | /*! LOCK | ||
5549 | * 0b0..Access control inactive | ||
5550 | * 0b1..Access control active | ||
5551 | */ | ||
5552 | #define CCM_ACCESS_CTRL_ROOT_TOG_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ACCESS_CTRL_ROOT_TOG_LOCK_SHIFT)) & CCM_ACCESS_CTRL_ROOT_TOG_LOCK_MASK) | ||
5553 | /*! @} */ | ||
5554 | |||
5555 | /* The count of CCM_ACCESS_CTRL_ROOT_TOG */ | ||
5556 | #define CCM_ACCESS_CTRL_ROOT_TOG_COUNT (142U) | ||
5557 | |||
5558 | |||
5559 | /*! | ||
5560 | * @} | ||
5561 | */ /* end of group CCM_Register_Masks */ | ||
5562 | |||
5563 | |||
5564 | /* CCM - Peripheral instance base addresses */ | ||
5565 | /** Peripheral CCM base address */ | ||
5566 | #define CCM_BASE (0x30380000u) | ||
5567 | /** Peripheral CCM base pointer */ | ||
5568 | #define CCM ((CCM_Type *)CCM_BASE) | ||
5569 | /** Array initializer of CCM peripheral base addresses */ | ||
5570 | #define CCM_BASE_ADDRS { CCM_BASE } | ||
5571 | /** Array initializer of CCM peripheral base pointers */ | ||
5572 | #define CCM_BASE_PTRS { CCM } | ||
5573 | /** Interrupt vectors for the CCM peripheral type */ | ||
5574 | #define CCM_IRQS { CCM_IRQ1_IRQn, CCM_IRQ2_IRQn } | ||
5575 | |||
5576 | /*! | ||
5577 | * @} | ||
5578 | */ /* end of group CCM_Peripheral_Access_Layer */ | ||
5579 | |||
5580 | |||
5581 | /* ---------------------------------------------------------------------------- | ||
5582 | -- CCM_ANALOG Peripheral Access Layer | ||
5583 | ---------------------------------------------------------------------------- */ | ||
5584 | |||
5585 | /*! | ||
5586 | * @addtogroup CCM_ANALOG_Peripheral_Access_Layer CCM_ANALOG Peripheral Access Layer | ||
5587 | * @{ | ||
5588 | */ | ||
5589 | |||
5590 | /** CCM_ANALOG - Register Layout Typedef */ | ||
5591 | typedef struct { | ||
5592 | __IO uint32_t AUDIO_PLL1_GEN_CTRL; /**< AUDIO PLL1 General Function Control Register, offset: 0x0 */ | ||
5593 | __IO uint32_t AUDIO_PLL1_FDIV_CTL0; /**< AUDIO PLL1 Divide and Fraction Data Control 0 Register, offset: 0x4 */ | ||
5594 | __IO uint32_t AUDIO_PLL1_FDIV_CTL1; /**< AUDIO PLL1 Divide and Fraction Data Control 1 Register, offset: 0x8 */ | ||
5595 | __IO uint32_t AUDIO_PLL1_SSCG_CTRL; /**< AUDIO PLL1 PLL SSCG Control Register, offset: 0xC */ | ||
5596 | __IO uint32_t AUDIO_PLL1_MNIT_CTRL; /**< AUDIO PLL1 PLL Monitoring Control Register, offset: 0x10 */ | ||
5597 | __IO uint32_t AUDIO_PLL2_GEN_CTRL; /**< AUDIO PLL2 General Function Control Register, offset: 0x14 */ | ||
5598 | __IO uint32_t AUDIO_PLL2_FDIV_CTL0; /**< AUDIO PLL2 Divide and Fraction Data Control 0 Register, offset: 0x18 */ | ||
5599 | __IO uint32_t AUDIO_PLL2_FDIV_CTL1; /**< AUDIO PLL2 Divide and Fraction Data Control 1 Register, offset: 0x1C */ | ||
5600 | __IO uint32_t AUDIO_PLL2_SSCG_CTRL; /**< AUDIO PLL2 PLL SSCG Control Register, offset: 0x20 */ | ||
5601 | __IO uint32_t AUDIO_PLL2_MNIT_CTRL; /**< AUDIO PLL2 PLL Monitoring Control Register, offset: 0x24 */ | ||
5602 | __IO uint32_t VIDEO_PLL1_GEN_CTRL; /**< VIDEO PLL1 General Function Control Register, offset: 0x28 */ | ||
5603 | __IO uint32_t VIDEO_PLL1_FDIV_CTL0; /**< VIDEO PLL1 Divide and Fraction Data Control 0 Register, offset: 0x2C */ | ||
5604 | __IO uint32_t VIDEO_PLL1_FDIV_CTL1; /**< VIDEO PLL1 Divide and Fraction Data Control 1 Register, offset: 0x30 */ | ||
5605 | __IO uint32_t VIDEO_PLL1_SSCG_CTRL; /**< VIDEO PLL1 PLL SSCG Control Register, offset: 0x34 */ | ||
5606 | __IO uint32_t VIDEO_PLL1_MNIT_CTRL; /**< VIDEO PLL1 PLL Monitoring Control Register, offset: 0x38 */ | ||
5607 | uint8_t RESERVED_0[20]; | ||
5608 | __IO uint32_t DRAM_PLL_GEN_CTRL; /**< DRAM PLL General Function Control Register, offset: 0x50 */ | ||
5609 | __IO uint32_t DRAM_PLL_FDIV_CTL0; /**< DRAM PLL Divide and Fraction Data Control 0 Register, offset: 0x54 */ | ||
5610 | __IO uint32_t DRAM_PLL_FDIV_CTL1; /**< DRAM PLL Divide and Fraction Data Control 1 Register, offset: 0x58 */ | ||
5611 | __IO uint32_t DRAM_PLL_SSCG_CTRL; /**< DRAM PLL PLL SSCG Control Register, offset: 0x5C */ | ||
5612 | __IO uint32_t DRAM_PLL_MNIT_CTRL; /**< DRAM PLL PLL Monitoring Control Register, offset: 0x60 */ | ||
5613 | __IO uint32_t GPU_PLL_GEN_CTRL; /**< GPU PLL General Function Control Register, offset: 0x64 */ | ||
5614 | __IO uint32_t GPU_PLL_FDIV_CTL0; /**< GPU PLL Divide and Fraction Data Control 0 Register, offset: 0x68 */ | ||
5615 | __IO uint32_t GPU_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x6C */ | ||
5616 | __IO uint32_t GPU_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x70 */ | ||
5617 | __IO uint32_t VPU_PLL_GEN_CTRL; /**< VPU PLL General Function Control Register, offset: 0x74 */ | ||
5618 | __IO uint32_t VPU_PLL_FDIV_CTL0; /**< VPU PLL Divide and Fraction Data Control 0 Register, offset: 0x78 */ | ||
5619 | __IO uint32_t VPU_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x7C */ | ||
5620 | __IO uint32_t VPU_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x80 */ | ||
5621 | __IO uint32_t ARM_PLL_GEN_CTRL; /**< ARM PLL General Function Control Register, offset: 0x84 */ | ||
5622 | __IO uint32_t ARM_PLL_FDIV_CTL0; /**< ARM PLL Divide and Fraction Data Control 0 Register, offset: 0x88 */ | ||
5623 | __IO uint32_t ARM_PLL_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x8C */ | ||
5624 | __IO uint32_t ARM_PLL_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x90 */ | ||
5625 | __IO uint32_t SYS_PLL1_GEN_CTRL; /**< SYS PLL1 General Function Control Register, offset: 0x94 */ | ||
5626 | __IO uint32_t SYS_PLL1_FDIV_CTL0; /**< SYS PLL1 Divide and Fraction Data Control 0 Register, offset: 0x98 */ | ||
5627 | __IO uint32_t SYS_PLL1_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x9C */ | ||
5628 | uint8_t RESERVED_1[96]; | ||
5629 | __IO uint32_t SYS_PLL1_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x100 */ | ||
5630 | __IO uint32_t SYS_PLL2_GEN_CTRL; /**< SYS PLL2 General Function Control Register, offset: 0x104 */ | ||
5631 | __IO uint32_t SYS_PLL2_FDIV_CTL0; /**< SYS PLL2 Divide and Fraction Data Control 0 Register, offset: 0x108 */ | ||
5632 | __IO uint32_t SYS_PLL2_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x10C */ | ||
5633 | __IO uint32_t SYS_PLL2_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x110 */ | ||
5634 | __IO uint32_t SYS_PLL3_GEN_CTRL; /**< SYS PLL3 General Function Control Register, offset: 0x114 */ | ||
5635 | __IO uint32_t SYS_PLL3_FDIV_CTL0; /**< SYS PLL3 Divide and Fraction Data Control 0 Register, offset: 0x118 */ | ||
5636 | __IO uint32_t SYS_PLL3_LOCKD_CTRL; /**< PLL Lock Detector Control Register, offset: 0x11C */ | ||
5637 | __IO uint32_t SYS_PLL3_MNIT_CTRL; /**< PLL Monitoring Control Register, offset: 0x120 */ | ||
5638 | __IO uint32_t OSC_MISC_CFG; /**< Osc Misc Configuration Register, offset: 0x124 */ | ||
5639 | __IO uint32_t ANAMIX_PLL_MNIT_CTL; /**< PLL Clock Output for Test Enable and Select Register, offset: 0x128 */ | ||
5640 | uint8_t RESERVED_2[1748]; | ||
5641 | __I uint32_t DIGPROG; /**< DIGPROG Register, offset: 0x800 */ | ||
5642 | } CCM_ANALOG_Type; | ||
5643 | |||
5644 | /* ---------------------------------------------------------------------------- | ||
5645 | -- CCM_ANALOG Register Masks | ||
5646 | ---------------------------------------------------------------------------- */ | ||
5647 | |||
5648 | /*! | ||
5649 | * @addtogroup CCM_ANALOG_Register_Masks CCM_ANALOG Register Masks | ||
5650 | * @{ | ||
5651 | */ | ||
5652 | |||
5653 | /*! @name AUDIO_PLL1_GEN_CTRL - AUDIO PLL1 General Function Control Register */ | ||
5654 | /*! @{ */ | ||
5655 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
5656 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
5657 | /*! PLL_REF_CLK_SEL | ||
5658 | * 0b00..SYS_XTAL | ||
5659 | * 0b01..PAD_CLK | ||
5660 | * 0b10..Reserved | ||
5661 | * 0b11..Reserved | ||
5662 | */ | ||
5663 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
5664 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
5665 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
5666 | /*! PAD_CLK_SEL | ||
5667 | * 0b00..CLKIN1 XOR CLKIN2 | ||
5668 | * 0b01..CLKIN2 | ||
5669 | * 0b10..CLKIN1 | ||
5670 | * 0b11..Reserved | ||
5671 | */ | ||
5672 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
5673 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
5674 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
5675 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_BYPASS_MASK) | ||
5676 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
5677 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
5678 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
5679 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
5680 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
5681 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_RST_MASK) | ||
5682 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U) | ||
5683 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U) | ||
5684 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
5685 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_MASK (0x2000U) | ||
5686 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT (13U) | ||
5687 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_CLKE_MASK) | ||
5688 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U) | ||
5689 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U) | ||
5690 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
5691 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
5692 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
5693 | #define CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_GEN_CTRL_PLL_LOCK_MASK) | ||
5694 | /*! @} */ | ||
5695 | |||
5696 | /*! @name AUDIO_PLL1_FDIV_CTL0 - AUDIO PLL1 Divide and Fraction Data Control 0 Register */ | ||
5697 | /*! @{ */ | ||
5698 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
5699 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
5700 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
5701 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
5702 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
5703 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
5704 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
5705 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
5706 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
5707 | /*! @} */ | ||
5708 | |||
5709 | /*! @name AUDIO_PLL1_FDIV_CTL1 - AUDIO PLL1 Divide and Fraction Data Control 1 Register */ | ||
5710 | /*! @{ */ | ||
5711 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU) | ||
5712 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT (0U) | ||
5713 | #define CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_FDIV_CTL1_PLL_DSM_MASK) | ||
5714 | /*! @} */ | ||
5715 | |||
5716 | /*! @name AUDIO_PLL1_SSCG_CTRL - AUDIO PLL1 PLL SSCG Control Register */ | ||
5717 | /*! @{ */ | ||
5718 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_MASK (0x3U) | ||
5719 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_SHIFT (0U) | ||
5720 | /*! SEL_PF | ||
5721 | * 0b00..Down spread | ||
5722 | * 0b01..Up spread | ||
5723 | * 0b1x..Center spread | ||
5724 | */ | ||
5725 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SEL_PF_MASK) | ||
5726 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U) | ||
5727 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U) | ||
5728 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK) | ||
5729 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U) | ||
5730 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U) | ||
5731 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK) | ||
5732 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_MASK (0x80000000U) | ||
5733 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT (31U) | ||
5734 | #define CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_SSCG_CTRL_SSCG_EN_MASK) | ||
5735 | /*! @} */ | ||
5736 | |||
5737 | /*! @name AUDIO_PLL1_MNIT_CTRL - AUDIO PLL1 PLL Monitoring Control Register */ | ||
5738 | /*! @{ */ | ||
5739 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_MASK (0x7U) | ||
5740 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_SHIFT (0U) | ||
5741 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_ICP_MASK) | ||
5742 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_MASK (0x8U) | ||
5743 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_SHIFT (3U) | ||
5744 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_EN_MASK) | ||
5745 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_MASK (0x1F0U) | ||
5746 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_SHIFT (4U) | ||
5747 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_EXTAFC_MASK) | ||
5748 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_MASK (0x4000U) | ||
5749 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_SHIFT (14U) | ||
5750 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FEED_EN_MASK) | ||
5751 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_MASK (0x8000U) | ||
5752 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_SHIFT (15U) | ||
5753 | /*! FSEL | ||
5754 | * 0b0..FEED_OUT = FREF | ||
5755 | * 0b1..FEED_OUT = FEED | ||
5756 | */ | ||
5757 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_FSEL_MASK) | ||
5758 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK (0x20000U) | ||
5759 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT (17U) | ||
5760 | /*! AFCINIT_SEL | ||
5761 | * 0b0..nominal delay | ||
5762 | * 0b1..nominal delay * 2 | ||
5763 | */ | ||
5764 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
5765 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x40000U) | ||
5766 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (18U) | ||
5767 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
5768 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK (0x80000U) | ||
5769 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT (19U) | ||
5770 | /*! PBIAS_CTRL | ||
5771 | * 0b0..0.50*VDD | ||
5772 | * 0b1..0.67*VDD | ||
5773 | */ | ||
5774 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
5775 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_MASK (0x100000U) | ||
5776 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT (20U) | ||
5777 | #define CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL1_MNIT_CTRL_AFC_SEL_MASK) | ||
5778 | /*! @} */ | ||
5779 | |||
5780 | /*! @name AUDIO_PLL2_GEN_CTRL - AUDIO PLL2 General Function Control Register */ | ||
5781 | /*! @{ */ | ||
5782 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
5783 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
5784 | /*! PLL_REF_CLK_SEL | ||
5785 | * 0b00..SYS_XTAL | ||
5786 | * 0b01..PAD_CLK | ||
5787 | * 0b10..Reserved | ||
5788 | * 0b11..Reserved | ||
5789 | */ | ||
5790 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
5791 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
5792 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
5793 | /*! PAD_CLK_SEL | ||
5794 | * 0b00..CLKIN1 XOR CLKIN2 | ||
5795 | * 0b01..CLKIN2 | ||
5796 | * 0b10..CLKIN1 | ||
5797 | * 0b11..Reserved | ||
5798 | */ | ||
5799 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
5800 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
5801 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
5802 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_BYPASS_MASK) | ||
5803 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
5804 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
5805 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
5806 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
5807 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
5808 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_RST_MASK) | ||
5809 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U) | ||
5810 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U) | ||
5811 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
5812 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_MASK (0x2000U) | ||
5813 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_SHIFT (13U) | ||
5814 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_CLKE_MASK) | ||
5815 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U) | ||
5816 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U) | ||
5817 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
5818 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
5819 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
5820 | #define CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_GEN_CTRL_PLL_LOCK_MASK) | ||
5821 | /*! @} */ | ||
5822 | |||
5823 | /*! @name AUDIO_PLL2_FDIV_CTL0 - AUDIO PLL2 Divide and Fraction Data Control 0 Register */ | ||
5824 | /*! @{ */ | ||
5825 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
5826 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
5827 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
5828 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
5829 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
5830 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
5831 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
5832 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
5833 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
5834 | /*! @} */ | ||
5835 | |||
5836 | /*! @name AUDIO_PLL2_FDIV_CTL1 - AUDIO PLL2 Divide and Fraction Data Control 1 Register */ | ||
5837 | /*! @{ */ | ||
5838 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU) | ||
5839 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_SHIFT (0U) | ||
5840 | #define CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_FDIV_CTL1_PLL_DSM_MASK) | ||
5841 | /*! @} */ | ||
5842 | |||
5843 | /*! @name AUDIO_PLL2_SSCG_CTRL - AUDIO PLL2 PLL SSCG Control Register */ | ||
5844 | /*! @{ */ | ||
5845 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_MASK (0x3U) | ||
5846 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_SHIFT (0U) | ||
5847 | /*! SEL_PF | ||
5848 | * 0b00..Down spread | ||
5849 | * 0b01..Up spread | ||
5850 | * 0b1x..Center spread | ||
5851 | */ | ||
5852 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SEL_PF_MASK) | ||
5853 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U) | ||
5854 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U) | ||
5855 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MRAT_CTL_MASK) | ||
5856 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U) | ||
5857 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U) | ||
5858 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_PLL_MFREQ_CTL_MASK) | ||
5859 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SSCG_EN_MASK (0x80000000U) | ||
5860 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SSCG_EN_SHIFT (31U) | ||
5861 | #define CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SSCG_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SSCG_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_SSCG_CTRL_SSCG_EN_MASK) | ||
5862 | /*! @} */ | ||
5863 | |||
5864 | /*! @name AUDIO_PLL2_MNIT_CTRL - AUDIO PLL2 PLL Monitoring Control Register */ | ||
5865 | /*! @{ */ | ||
5866 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_ICP_MASK (0x7U) | ||
5867 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_ICP_SHIFT (0U) | ||
5868 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_ICP_MASK) | ||
5869 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_EN_MASK (0x8U) | ||
5870 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_EN_SHIFT (3U) | ||
5871 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_EN_MASK) | ||
5872 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_EXTAFC_MASK (0x1F0U) | ||
5873 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_EXTAFC_SHIFT (4U) | ||
5874 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_EXTAFC_MASK) | ||
5875 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FEED_EN_MASK (0x4000U) | ||
5876 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FEED_EN_SHIFT (14U) | ||
5877 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FEED_EN_MASK) | ||
5878 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FSEL_MASK (0x8000U) | ||
5879 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FSEL_SHIFT (15U) | ||
5880 | /*! FSEL | ||
5881 | * 0b0..FEED_OUT = FREF | ||
5882 | * 0b1..FEED_OUT = FEED | ||
5883 | */ | ||
5884 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_FSEL_MASK) | ||
5885 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFCINIT_SEL_MASK (0x20000U) | ||
5886 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFCINIT_SEL_SHIFT (17U) | ||
5887 | /*! AFCINIT_SEL | ||
5888 | * 0b0..nominal delay | ||
5889 | * 0b1..nominal delay * 2 | ||
5890 | */ | ||
5891 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
5892 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x40000U) | ||
5893 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (18U) | ||
5894 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
5895 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_MASK (0x80000U) | ||
5896 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_SHIFT (19U) | ||
5897 | /*! PBIAS_CTRL | ||
5898 | * 0b0..0.50*VDD | ||
5899 | * 0b1..0.67*VDD | ||
5900 | */ | ||
5901 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
5902 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_SEL_MASK (0x100000U) | ||
5903 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_SEL_SHIFT (20U) | ||
5904 | #define CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_AUDIO_PLL2_MNIT_CTRL_AFC_SEL_MASK) | ||
5905 | /*! @} */ | ||
5906 | |||
5907 | /*! @name VIDEO_PLL1_GEN_CTRL - VIDEO PLL1 General Function Control Register */ | ||
5908 | /*! @{ */ | ||
5909 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
5910 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
5911 | /*! PLL_REF_CLK_SEL | ||
5912 | * 0b00..SYS_XTAL | ||
5913 | * 0b01..PAD_CLK | ||
5914 | * 0b10..Reserved | ||
5915 | * 0b11..Reserved | ||
5916 | */ | ||
5917 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
5918 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
5919 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
5920 | /*! PAD_CLK_SEL | ||
5921 | * 0b00..CLKIN1 XOR CLKIN2 | ||
5922 | * 0b01..CLKIN2 | ||
5923 | * 0b10..CLKIN1 | ||
5924 | * 0b11..Reserved | ||
5925 | */ | ||
5926 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
5927 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
5928 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
5929 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_BYPASS_MASK) | ||
5930 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
5931 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
5932 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
5933 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
5934 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
5935 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_RST_MASK) | ||
5936 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U) | ||
5937 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U) | ||
5938 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
5939 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_MASK (0x2000U) | ||
5940 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT (13U) | ||
5941 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_CLKE_MASK) | ||
5942 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U) | ||
5943 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U) | ||
5944 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
5945 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
5946 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
5947 | #define CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_GEN_CTRL_PLL_LOCK_MASK) | ||
5948 | /*! @} */ | ||
5949 | |||
5950 | /*! @name VIDEO_PLL1_FDIV_CTL0 - VIDEO PLL1 Divide and Fraction Data Control 0 Register */ | ||
5951 | /*! @{ */ | ||
5952 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
5953 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
5954 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
5955 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
5956 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
5957 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
5958 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
5959 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
5960 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
5961 | /*! @} */ | ||
5962 | |||
5963 | /*! @name VIDEO_PLL1_FDIV_CTL1 - VIDEO PLL1 Divide and Fraction Data Control 1 Register */ | ||
5964 | /*! @{ */ | ||
5965 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU) | ||
5966 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT (0U) | ||
5967 | #define CCM_ANALOG_VIDEO_PLL1_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_FDIV_CTL1_PLL_DSM_MASK) | ||
5968 | /*! @} */ | ||
5969 | |||
5970 | /*! @name VIDEO_PLL1_SSCG_CTRL - VIDEO PLL1 PLL SSCG Control Register */ | ||
5971 | /*! @{ */ | ||
5972 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SEL_PF_MASK (0x3U) | ||
5973 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SEL_PF_SHIFT (0U) | ||
5974 | /*! SEL_PF | ||
5975 | * 0b00..Down spread | ||
5976 | * 0b01..Up spread | ||
5977 | * 0b1x..Center spread | ||
5978 | */ | ||
5979 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SEL_PF_MASK) | ||
5980 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U) | ||
5981 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U) | ||
5982 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MRAT_CTL_MASK) | ||
5983 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U) | ||
5984 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U) | ||
5985 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_PLL_MFREQ_CTL_MASK) | ||
5986 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SSCG_EN_MASK (0x80000000U) | ||
5987 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT (31U) | ||
5988 | #define CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SSCG_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SSCG_EN_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_SSCG_CTRL_SSCG_EN_MASK) | ||
5989 | /*! @} */ | ||
5990 | |||
5991 | /*! @name VIDEO_PLL1_MNIT_CTRL - VIDEO PLL1 PLL Monitoring Control Register */ | ||
5992 | /*! @{ */ | ||
5993 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_ICP_MASK (0x7U) | ||
5994 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_ICP_SHIFT (0U) | ||
5995 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_ICP_MASK) | ||
5996 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_EN_MASK (0x8U) | ||
5997 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_EN_SHIFT (3U) | ||
5998 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_EN_MASK) | ||
5999 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_EXTAFC_MASK (0x1F0U) | ||
6000 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_EXTAFC_SHIFT (4U) | ||
6001 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_EXTAFC_MASK) | ||
6002 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FEED_EN_MASK (0x4000U) | ||
6003 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FEED_EN_SHIFT (14U) | ||
6004 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FEED_EN_MASK) | ||
6005 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FSEL_MASK (0x8000U) | ||
6006 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FSEL_SHIFT (15U) | ||
6007 | /*! FSEL | ||
6008 | * 0b0..FEED_OUT = FREF | ||
6009 | * 0b1..FEED_OUT = FEED | ||
6010 | */ | ||
6011 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_FSEL_MASK) | ||
6012 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK (0x20000U) | ||
6013 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT (17U) | ||
6014 | /*! AFCINIT_SEL | ||
6015 | * 0b0..nominal delay | ||
6016 | * 0b1..nominal delay * 2 | ||
6017 | */ | ||
6018 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6019 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x40000U) | ||
6020 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (18U) | ||
6021 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6022 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK (0x80000U) | ||
6023 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT (19U) | ||
6024 | /*! PBIAS_CTRL | ||
6025 | * 0b0..0.50*VDD | ||
6026 | * 0b1..0.67*VDD | ||
6027 | */ | ||
6028 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6029 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_SEL_MASK (0x100000U) | ||
6030 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT (20U) | ||
6031 | #define CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_VIDEO_PLL1_MNIT_CTRL_AFC_SEL_MASK) | ||
6032 | /*! @} */ | ||
6033 | |||
6034 | /*! @name DRAM_PLL_GEN_CTRL - DRAM PLL General Function Control Register */ | ||
6035 | /*! @{ */ | ||
6036 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6037 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6038 | /*! PLL_REF_CLK_SEL | ||
6039 | * 0b00..SYS_XTAL | ||
6040 | * 0b01..PAD_CLK | ||
6041 | * 0b10..Reserved | ||
6042 | * 0b11..Reserved | ||
6043 | */ | ||
6044 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6045 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6046 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6047 | /*! PAD_CLK_SEL | ||
6048 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6049 | * 0b01..CLKIN2 | ||
6050 | * 0b10..CLKIN1 | ||
6051 | * 0b11..Reserved | ||
6052 | */ | ||
6053 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6054 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6055 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6056 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_BYPASS_MASK) | ||
6057 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6058 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6059 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6060 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6061 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6062 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_RST_MASK) | ||
6063 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x1000U) | ||
6064 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (12U) | ||
6065 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6066 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_MASK (0x2000U) | ||
6067 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_SHIFT (13U) | ||
6068 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_CLKE_MASK) | ||
6069 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000U) | ||
6070 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (16U) | ||
6071 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6072 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6073 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6074 | #define CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_DRAM_PLL_GEN_CTRL_PLL_LOCK_MASK) | ||
6075 | /*! @} */ | ||
6076 | |||
6077 | /*! @name DRAM_PLL_FDIV_CTL0 - DRAM PLL Divide and Fraction Data Control 0 Register */ | ||
6078 | /*! @{ */ | ||
6079 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6080 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6081 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6082 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6083 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6084 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6085 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6086 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6087 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_DRAM_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6088 | /*! @} */ | ||
6089 | |||
6090 | /*! @name DRAM_PLL_FDIV_CTL1 - DRAM PLL Divide and Fraction Data Control 1 Register */ | ||
6091 | /*! @{ */ | ||
6092 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL1_PLL_DSM_MASK (0xFFFFU) | ||
6093 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL1_PLL_DSM_SHIFT (0U) | ||
6094 | #define CCM_ANALOG_DRAM_PLL_FDIV_CTL1_PLL_DSM(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_FDIV_CTL1_PLL_DSM_SHIFT)) & CCM_ANALOG_DRAM_PLL_FDIV_CTL1_PLL_DSM_MASK) | ||
6095 | /*! @} */ | ||
6096 | |||
6097 | /*! @name DRAM_PLL_SSCG_CTRL - DRAM PLL PLL SSCG Control Register */ | ||
6098 | /*! @{ */ | ||
6099 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SEL_PF_MASK (0x3U) | ||
6100 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SEL_PF_SHIFT (0U) | ||
6101 | /*! SEL_PF | ||
6102 | * 0b00..Down spread | ||
6103 | * 0b01..Up spread | ||
6104 | * 0b1x..Center spread | ||
6105 | */ | ||
6106 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SEL_PF(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SEL_PF_SHIFT)) & CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SEL_PF_MASK) | ||
6107 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MRAT_CTL_MASK (0x3F0U) | ||
6108 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MRAT_CTL_SHIFT (4U) | ||
6109 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MRAT_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MRAT_CTL_SHIFT)) & CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MRAT_CTL_MASK) | ||
6110 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MFREQ_CTL_MASK (0xFF000U) | ||
6111 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT (12U) | ||
6112 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MFREQ_CTL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MFREQ_CTL_SHIFT)) & CCM_ANALOG_DRAM_PLL_SSCG_CTRL_PLL_MFREQ_CTL_MASK) | ||
6113 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SSCG_EN_MASK (0x80000000U) | ||
6114 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SSCG_EN_SHIFT (31U) | ||
6115 | #define CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SSCG_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SSCG_EN_SHIFT)) & CCM_ANALOG_DRAM_PLL_SSCG_CTRL_SSCG_EN_MASK) | ||
6116 | /*! @} */ | ||
6117 | |||
6118 | /*! @name DRAM_PLL_MNIT_CTRL - DRAM PLL PLL Monitoring Control Register */ | ||
6119 | /*! @{ */ | ||
6120 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_ICP_MASK (0x7U) | ||
6121 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_ICP_SHIFT (0U) | ||
6122 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_ICP_MASK) | ||
6123 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_EN_MASK (0x8U) | ||
6124 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_EN_SHIFT (3U) | ||
6125 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_EN_MASK) | ||
6126 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_EXTAFC_MASK (0x1F0U) | ||
6127 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_EXTAFC_SHIFT (4U) | ||
6128 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_EXTAFC_MASK) | ||
6129 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FEED_EN_MASK (0x4000U) | ||
6130 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FEED_EN_SHIFT (14U) | ||
6131 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FEED_EN_MASK) | ||
6132 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FSEL_MASK (0x8000U) | ||
6133 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FSEL_SHIFT (15U) | ||
6134 | /*! FSEL | ||
6135 | * 0b0..FEED_OUT = FREF | ||
6136 | * 0b1..FEED_OUT = FEED | ||
6137 | */ | ||
6138 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_FSEL_MASK) | ||
6139 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFCINIT_SEL_MASK (0x20000U) | ||
6140 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT (17U) | ||
6141 | /*! AFCINIT_SEL | ||
6142 | * 0b0..nominal delay | ||
6143 | * 0b1..nominal delay * 2 | ||
6144 | */ | ||
6145 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6146 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x40000U) | ||
6147 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (18U) | ||
6148 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6149 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_MASK (0x80000U) | ||
6150 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT (19U) | ||
6151 | /*! PBIAS_CTRL | ||
6152 | * 0b0..0.50*VDD | ||
6153 | * 0b1..0.67*VDD | ||
6154 | */ | ||
6155 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6156 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_SEL_MASK (0x100000U) | ||
6157 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_SEL_SHIFT (20U) | ||
6158 | #define CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_DRAM_PLL_MNIT_CTRL_AFC_SEL_MASK) | ||
6159 | /*! @} */ | ||
6160 | |||
6161 | /*! @name GPU_PLL_GEN_CTRL - GPU PLL General Function Control Register */ | ||
6162 | /*! @{ */ | ||
6163 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6164 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6165 | /*! PLL_REF_CLK_SEL | ||
6166 | * 0b00..SYS_XTAL | ||
6167 | * 0b01..PAD_CLK | ||
6168 | * 0b10..Reserved | ||
6169 | * 0b11..Reserved | ||
6170 | */ | ||
6171 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6172 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6173 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6174 | /*! PAD_CLK_SEL | ||
6175 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6176 | * 0b01..CLKIN2 | ||
6177 | * 0b10..CLKIN1 | ||
6178 | * 0b11..Reserved | ||
6179 | */ | ||
6180 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6181 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6182 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6183 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_BYPASS_MASK) | ||
6184 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6185 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6186 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6187 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6188 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6189 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_RST_MASK) | ||
6190 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6191 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6192 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6193 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6194 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6195 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_CLKE_MASK) | ||
6196 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6197 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6198 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6199 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6200 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6201 | /*! PLL_LOCK_SEL | ||
6202 | * 0b0..Using PLL maximum lock time | ||
6203 | * 0b1..Using PLL output lock | ||
6204 | */ | ||
6205 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6206 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6207 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6208 | #define CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_GPU_PLL_GEN_CTRL_PLL_LOCK_MASK) | ||
6209 | /*! @} */ | ||
6210 | |||
6211 | /*! @name GPU_PLL_FDIV_CTL0 - GPU PLL Divide and Fraction Data Control 0 Register */ | ||
6212 | /*! @{ */ | ||
6213 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6214 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6215 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6216 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6217 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6218 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6219 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6220 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6221 | #define CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_GPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6222 | /*! @} */ | ||
6223 | |||
6224 | /*! @name GPU_PLL_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6225 | /*! @{ */ | ||
6226 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6227 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6228 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6229 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6230 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6231 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6232 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6233 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6234 | #define CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_GPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6235 | /*! @} */ | ||
6236 | |||
6237 | /*! @name GPU_PLL_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6238 | /*! @{ */ | ||
6239 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_ICP_MASK (0x3U) | ||
6240 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_ICP_SHIFT (0U) | ||
6241 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_ICP_MASK) | ||
6242 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6243 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6244 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_EN_MASK) | ||
6245 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6246 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6247 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_EXTAFC_MASK) | ||
6248 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6249 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6250 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_FEED_EN_MASK) | ||
6251 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6252 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6253 | /*! FSEL | ||
6254 | * 0b0..FEED_OUT = FREF | ||
6255 | * 0b1..FEED_OUT = FEED | ||
6256 | */ | ||
6257 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_FSEL_MASK) | ||
6258 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6259 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6260 | /*! AFCINIT_SEL | ||
6261 | * 0b0..nominal delay | ||
6262 | * 0b1..nominal delay * 2 | ||
6263 | */ | ||
6264 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6265 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6266 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6267 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6268 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6269 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6270 | /*! PBIAS_CTRL | ||
6271 | * 0b0..0.50*VDD | ||
6272 | * 0b1..0.67*VDD | ||
6273 | */ | ||
6274 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6275 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6276 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6277 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_AFC_SEL_MASK) | ||
6278 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
6279 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
6280 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_FOUT_MASK_MASK) | ||
6281 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
6282 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
6283 | #define CCM_ANALOG_GPU_PLL_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_GPU_PLL_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_GPU_PLL_MNIT_CTRL_LRD_EN_MASK) | ||
6284 | /*! @} */ | ||
6285 | |||
6286 | /*! @name VPU_PLL_GEN_CTRL - VPU PLL General Function Control Register */ | ||
6287 | /*! @{ */ | ||
6288 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6289 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6290 | /*! PLL_REF_CLK_SEL | ||
6291 | * 0b00..SYS_XTAL | ||
6292 | * 0b01..PAD_CLK | ||
6293 | * 0b10..Reserved | ||
6294 | * 0b11..Reserved | ||
6295 | */ | ||
6296 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6297 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6298 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6299 | /*! PAD_CLK_SEL | ||
6300 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6301 | * 0b01..CLKIN2 | ||
6302 | * 0b10..CLKIN1 | ||
6303 | * 0b11..Reserved | ||
6304 | */ | ||
6305 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6306 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6307 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6308 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_BYPASS_MASK) | ||
6309 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6310 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6311 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6312 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6313 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6314 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_RST_MASK) | ||
6315 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6316 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6317 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6318 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6319 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6320 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_CLKE_MASK) | ||
6321 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6322 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6323 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6324 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6325 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6326 | /*! PLL_LOCK_SEL | ||
6327 | * 0b0..Using PLL maximum lock time | ||
6328 | * 0b1..Using PLL output lock | ||
6329 | */ | ||
6330 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6331 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6332 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6333 | #define CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_VPU_PLL_GEN_CTRL_PLL_LOCK_MASK) | ||
6334 | /*! @} */ | ||
6335 | |||
6336 | /*! @name VPU_PLL_FDIV_CTL0 - VPU PLL Divide and Fraction Data Control 0 Register */ | ||
6337 | /*! @{ */ | ||
6338 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6339 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6340 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6341 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6342 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6343 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6344 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6345 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6346 | #define CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_VPU_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6347 | /*! @} */ | ||
6348 | |||
6349 | /*! @name VPU_PLL_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6350 | /*! @{ */ | ||
6351 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6352 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6353 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6354 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6355 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6356 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6357 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6358 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6359 | #define CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_VPU_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6360 | /*! @} */ | ||
6361 | |||
6362 | /*! @name VPU_PLL_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6363 | /*! @{ */ | ||
6364 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_ICP_MASK (0x3U) | ||
6365 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_ICP_SHIFT (0U) | ||
6366 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_ICP_MASK) | ||
6367 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6368 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6369 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_EN_MASK) | ||
6370 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6371 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6372 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_EXTAFC_MASK) | ||
6373 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6374 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6375 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_FEED_EN_MASK) | ||
6376 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6377 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6378 | /*! FSEL | ||
6379 | * 0b0..FEED_OUT = FREF | ||
6380 | * 0b1..FEED_OUT = FEED | ||
6381 | */ | ||
6382 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_FSEL_MASK) | ||
6383 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6384 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6385 | /*! AFCINIT_SEL | ||
6386 | * 0b0..nominal delay | ||
6387 | * 0b1..nominal delay * 2 | ||
6388 | */ | ||
6389 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6390 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6391 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6392 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6393 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6394 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6395 | /*! PBIAS_CTRL | ||
6396 | * 0b0..0.50*VDD | ||
6397 | * 0b1..0.67*VDD | ||
6398 | */ | ||
6399 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6400 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6401 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6402 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_AFC_SEL_MASK) | ||
6403 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
6404 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
6405 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_FOUT_MASK_MASK) | ||
6406 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
6407 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
6408 | #define CCM_ANALOG_VPU_PLL_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_VPU_PLL_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_VPU_PLL_MNIT_CTRL_LRD_EN_MASK) | ||
6409 | /*! @} */ | ||
6410 | |||
6411 | /*! @name ARM_PLL_GEN_CTRL - ARM PLL General Function Control Register */ | ||
6412 | /*! @{ */ | ||
6413 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6414 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6415 | /*! PLL_REF_CLK_SEL | ||
6416 | * 0b00..SYS_XTAL | ||
6417 | * 0b01..PAD_CLK | ||
6418 | * 0b10..Reserved | ||
6419 | * 0b11..Reserved | ||
6420 | */ | ||
6421 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6422 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6423 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6424 | /*! PAD_CLK_SEL | ||
6425 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6426 | * 0b01..CLKIN2 | ||
6427 | * 0b10..CLKIN1 | ||
6428 | * 0b11..Reserved | ||
6429 | */ | ||
6430 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6431 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6432 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6433 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_BYPASS_MASK) | ||
6434 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6435 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6436 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6437 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6438 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6439 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_RST_MASK) | ||
6440 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6441 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6442 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6443 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6444 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6445 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_CLKE_MASK) | ||
6446 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6447 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6448 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6449 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6450 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6451 | /*! PLL_LOCK_SEL | ||
6452 | * 0b0..Using PLL maximum lock time | ||
6453 | * 0b1..Using PLL output lock | ||
6454 | */ | ||
6455 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6456 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6457 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6458 | #define CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_ARM_PLL_GEN_CTRL_PLL_LOCK_MASK) | ||
6459 | /*! @} */ | ||
6460 | |||
6461 | /*! @name ARM_PLL_FDIV_CTL0 - ARM PLL Divide and Fraction Data Control 0 Register */ | ||
6462 | /*! @{ */ | ||
6463 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6464 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6465 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6466 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6467 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6468 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6469 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6470 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6471 | #define CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_ARM_PLL_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6472 | /*! @} */ | ||
6473 | |||
6474 | /*! @name ARM_PLL_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6475 | /*! @{ */ | ||
6476 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6477 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6478 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6479 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6480 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6481 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6482 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6483 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6484 | #define CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_ARM_PLL_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6485 | /*! @} */ | ||
6486 | |||
6487 | /*! @name ARM_PLL_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6488 | /*! @{ */ | ||
6489 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_ICP_MASK (0x3U) | ||
6490 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_ICP_SHIFT (0U) | ||
6491 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_ICP_MASK) | ||
6492 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6493 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6494 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_EN_MASK) | ||
6495 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6496 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6497 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_EXTAFC_MASK) | ||
6498 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6499 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6500 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_FEED_EN_MASK) | ||
6501 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6502 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6503 | /*! FSEL | ||
6504 | * 0b0..FEED_OUT = FREF | ||
6505 | * 0b1..FEED_OUT = FEED | ||
6506 | */ | ||
6507 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_FSEL_MASK) | ||
6508 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6509 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6510 | /*! AFCINIT_SEL | ||
6511 | * 0b0..nominal delay | ||
6512 | * 0b1..nominal delay * 2 | ||
6513 | */ | ||
6514 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6515 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6516 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6517 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6518 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6519 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6520 | /*! PBIAS_CTRL | ||
6521 | * 0b0..0.50*VDD | ||
6522 | * 0b1..0.67*VDD | ||
6523 | */ | ||
6524 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6525 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6526 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6527 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_AFC_SEL_MASK) | ||
6528 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
6529 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
6530 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_FOUT_MASK_MASK) | ||
6531 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
6532 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
6533 | #define CCM_ANALOG_ARM_PLL_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ARM_PLL_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_ARM_PLL_MNIT_CTRL_LRD_EN_MASK) | ||
6534 | /*! @} */ | ||
6535 | |||
6536 | /*! @name SYS_PLL1_GEN_CTRL - SYS PLL1 General Function Control Register */ | ||
6537 | /*! @{ */ | ||
6538 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6539 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6540 | /*! PLL_REF_CLK_SEL | ||
6541 | * 0b00..SYS_XTAL | ||
6542 | * 0b01..PAD_CLK | ||
6543 | * 0b10..Reserved | ||
6544 | * 0b11..Reserved | ||
6545 | */ | ||
6546 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6547 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6548 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6549 | /*! PAD_CLK_SEL | ||
6550 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6551 | * 0b01..CLKIN2 | ||
6552 | * 0b10..CLKIN1 | ||
6553 | * 0b11..Reserved | ||
6554 | */ | ||
6555 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6556 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6557 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6558 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_BYPASS_MASK) | ||
6559 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6560 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6561 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6562 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6563 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6564 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_RST_MASK) | ||
6565 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6566 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6567 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6568 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6569 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6570 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_CLKE_MASK) | ||
6571 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_MASK (0x1000U) | ||
6572 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_SHIFT (12U) | ||
6573 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_MASK) | ||
6574 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_MASK (0x2000U) | ||
6575 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_SHIFT (13U) | ||
6576 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV2_CLKE_MASK) | ||
6577 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_MASK (0x4000U) | ||
6578 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_SHIFT (14U) | ||
6579 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_MASK) | ||
6580 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_MASK (0x8000U) | ||
6581 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_SHIFT (15U) | ||
6582 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV3_CLKE_MASK) | ||
6583 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_MASK (0x10000U) | ||
6584 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_SHIFT (16U) | ||
6585 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_MASK) | ||
6586 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_MASK (0x20000U) | ||
6587 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_SHIFT (17U) | ||
6588 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV4_CLKE_MASK) | ||
6589 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_MASK (0x40000U) | ||
6590 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_SHIFT (18U) | ||
6591 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_MASK) | ||
6592 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_MASK (0x80000U) | ||
6593 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_SHIFT (19U) | ||
6594 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV5_CLKE_MASK) | ||
6595 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_MASK (0x100000U) | ||
6596 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_SHIFT (20U) | ||
6597 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_MASK) | ||
6598 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_MASK (0x200000U) | ||
6599 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_SHIFT (21U) | ||
6600 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV6_CLKE_MASK) | ||
6601 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_MASK (0x400000U) | ||
6602 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_SHIFT (22U) | ||
6603 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_MASK) | ||
6604 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_MASK (0x800000U) | ||
6605 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_SHIFT (23U) | ||
6606 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV8_CLKE_MASK) | ||
6607 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_MASK (0x1000000U) | ||
6608 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_SHIFT (24U) | ||
6609 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_MASK) | ||
6610 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_MASK (0x2000000U) | ||
6611 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_SHIFT (25U) | ||
6612 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV10_CLKE_MASK) | ||
6613 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_MASK (0x4000000U) | ||
6614 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_SHIFT (26U) | ||
6615 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_MASK) | ||
6616 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_MASK (0x8000000U) | ||
6617 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_SHIFT (27U) | ||
6618 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_DIV20_CLKE_MASK) | ||
6619 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6620 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6621 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6622 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6623 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6624 | /*! PLL_LOCK_SEL | ||
6625 | * 0b0..Using PLL maximum lock time | ||
6626 | * 0b1..Using PLL output lock | ||
6627 | */ | ||
6628 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6629 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6630 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6631 | #define CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_SYS_PLL1_GEN_CTRL_PLL_LOCK_MASK) | ||
6632 | /*! @} */ | ||
6633 | |||
6634 | /*! @name SYS_PLL1_FDIV_CTL0 - SYS PLL1 Divide and Fraction Data Control 0 Register */ | ||
6635 | /*! @{ */ | ||
6636 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6637 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6638 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6639 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6640 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6641 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6642 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6643 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6644 | #define CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL1_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6645 | /*! @} */ | ||
6646 | |||
6647 | /*! @name SYS_PLL1_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6648 | /*! @{ */ | ||
6649 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6650 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6651 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6652 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6653 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6654 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6655 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6656 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6657 | #define CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_SYS_PLL1_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6658 | /*! @} */ | ||
6659 | |||
6660 | /*! @name SYS_PLL1_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6661 | /*! @{ */ | ||
6662 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_ICP_MASK (0x3U) | ||
6663 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_ICP_SHIFT (0U) | ||
6664 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_ICP_MASK) | ||
6665 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6666 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6667 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_EN_MASK) | ||
6668 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6669 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6670 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_EXTAFC_MASK) | ||
6671 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6672 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6673 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FEED_EN_MASK) | ||
6674 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6675 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6676 | /*! FSEL | ||
6677 | * 0b0..FEED_OUT = FREF | ||
6678 | * 0b1..FEED_OUT = FEED | ||
6679 | */ | ||
6680 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FSEL_MASK) | ||
6681 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6682 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6683 | /*! AFCINIT_SEL | ||
6684 | * 0b0..nominal delay | ||
6685 | * 0b1..nominal delay * 2 | ||
6686 | */ | ||
6687 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6688 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6689 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6690 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6691 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6692 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6693 | /*! PBIAS_CTRL | ||
6694 | * 0b0..0.50*VDD | ||
6695 | * 0b1..0.67*VDD | ||
6696 | */ | ||
6697 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6698 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6699 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6700 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_AFC_SEL_MASK) | ||
6701 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
6702 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
6703 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_FOUT_MASK_MASK) | ||
6704 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
6705 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
6706 | #define CCM_ANALOG_SYS_PLL1_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL1_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_SYS_PLL1_MNIT_CTRL_LRD_EN_MASK) | ||
6707 | /*! @} */ | ||
6708 | |||
6709 | /*! @name SYS_PLL2_GEN_CTRL - SYS PLL2 General Function Control Register */ | ||
6710 | /*! @{ */ | ||
6711 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6712 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6713 | /*! PLL_REF_CLK_SEL | ||
6714 | * 0b00..SYS_XTAL | ||
6715 | * 0b01..PAD_CLK | ||
6716 | * 0b10..Reserved | ||
6717 | * 0b11..Reserved | ||
6718 | */ | ||
6719 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6720 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6721 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6722 | /*! PAD_CLK_SEL | ||
6723 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6724 | * 0b01..CLKIN2 | ||
6725 | * 0b10..CLKIN1 | ||
6726 | * 0b11..Reserved | ||
6727 | */ | ||
6728 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6729 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6730 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6731 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_BYPASS_MASK) | ||
6732 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6733 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6734 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6735 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6736 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6737 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_RST_MASK) | ||
6738 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6739 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6740 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6741 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6742 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6743 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_CLKE_MASK) | ||
6744 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_MASK (0x1000U) | ||
6745 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_SHIFT (12U) | ||
6746 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_OVERRIDE_MASK) | ||
6747 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_MASK (0x2000U) | ||
6748 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_SHIFT (13U) | ||
6749 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV2_CLKE_MASK) | ||
6750 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_MASK (0x4000U) | ||
6751 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_SHIFT (14U) | ||
6752 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_OVERRIDE_MASK) | ||
6753 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_MASK (0x8000U) | ||
6754 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_SHIFT (15U) | ||
6755 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV3_CLKE_MASK) | ||
6756 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_MASK (0x10000U) | ||
6757 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_SHIFT (16U) | ||
6758 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_OVERRIDE_MASK) | ||
6759 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_MASK (0x20000U) | ||
6760 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_SHIFT (17U) | ||
6761 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV4_CLKE_MASK) | ||
6762 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_MASK (0x40000U) | ||
6763 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_SHIFT (18U) | ||
6764 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_OVERRIDE_MASK) | ||
6765 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_MASK (0x80000U) | ||
6766 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_SHIFT (19U) | ||
6767 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV5_CLKE_MASK) | ||
6768 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_MASK (0x100000U) | ||
6769 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_SHIFT (20U) | ||
6770 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_OVERRIDE_MASK) | ||
6771 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_MASK (0x200000U) | ||
6772 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_SHIFT (21U) | ||
6773 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV6_CLKE_MASK) | ||
6774 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_MASK (0x400000U) | ||
6775 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_SHIFT (22U) | ||
6776 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_OVERRIDE_MASK) | ||
6777 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_MASK (0x800000U) | ||
6778 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_SHIFT (23U) | ||
6779 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV8_CLKE_MASK) | ||
6780 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_MASK (0x1000000U) | ||
6781 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_SHIFT (24U) | ||
6782 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_OVERRIDE_MASK) | ||
6783 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_MASK (0x2000000U) | ||
6784 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_SHIFT (25U) | ||
6785 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV10_CLKE_MASK) | ||
6786 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_MASK (0x4000000U) | ||
6787 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_SHIFT (26U) | ||
6788 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_OVERRIDE_MASK) | ||
6789 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_MASK (0x8000000U) | ||
6790 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_SHIFT (27U) | ||
6791 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_DIV20_CLKE_MASK) | ||
6792 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6793 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6794 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6795 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6796 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6797 | /*! PLL_LOCK_SEL | ||
6798 | * 0b0..Using PLL maximum lock time | ||
6799 | * 0b1..Using PLL output lock | ||
6800 | */ | ||
6801 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6802 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6803 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6804 | #define CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_SYS_PLL2_GEN_CTRL_PLL_LOCK_MASK) | ||
6805 | /*! @} */ | ||
6806 | |||
6807 | /*! @name SYS_PLL2_FDIV_CTL0 - SYS PLL2 Divide and Fraction Data Control 0 Register */ | ||
6808 | /*! @{ */ | ||
6809 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6810 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6811 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6812 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6813 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6814 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6815 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6816 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6817 | #define CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL2_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6818 | /*! @} */ | ||
6819 | |||
6820 | /*! @name SYS_PLL2_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6821 | /*! @{ */ | ||
6822 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6823 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6824 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6825 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6826 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6827 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6828 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6829 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6830 | #define CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_SYS_PLL2_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6831 | /*! @} */ | ||
6832 | |||
6833 | /*! @name SYS_PLL2_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6834 | /*! @{ */ | ||
6835 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_ICP_MASK (0x3U) | ||
6836 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_ICP_SHIFT (0U) | ||
6837 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_ICP_MASK) | ||
6838 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6839 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6840 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_EN_MASK) | ||
6841 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6842 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6843 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_EXTAFC_MASK) | ||
6844 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6845 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6846 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FEED_EN_MASK) | ||
6847 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6848 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6849 | /*! FSEL | ||
6850 | * 0b0..FEED_OUT = FREF | ||
6851 | * 0b1..FEED_OUT = FEED | ||
6852 | */ | ||
6853 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FSEL_MASK) | ||
6854 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6855 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6856 | /*! AFCINIT_SEL | ||
6857 | * 0b0..nominal delay | ||
6858 | * 0b1..nominal delay * 2 | ||
6859 | */ | ||
6860 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6861 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6862 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6863 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6864 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6865 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6866 | /*! PBIAS_CTRL | ||
6867 | * 0b0..0.50*VDD | ||
6868 | * 0b1..0.67*VDD | ||
6869 | */ | ||
6870 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6871 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6872 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6873 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_AFC_SEL_MASK) | ||
6874 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
6875 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
6876 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_FOUT_MASK_MASK) | ||
6877 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
6878 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
6879 | #define CCM_ANALOG_SYS_PLL2_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL2_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_SYS_PLL2_MNIT_CTRL_LRD_EN_MASK) | ||
6880 | /*! @} */ | ||
6881 | |||
6882 | /*! @name SYS_PLL3_GEN_CTRL - SYS PLL3 General Function Control Register */ | ||
6883 | /*! @{ */ | ||
6884 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_REF_CLK_SEL_MASK (0x3U) | ||
6885 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT (0U) | ||
6886 | /*! PLL_REF_CLK_SEL | ||
6887 | * 0b00..SYS_XTAL | ||
6888 | * 0b01..PAD_CLK | ||
6889 | * 0b10..Reserved | ||
6890 | * 0b11..Reserved | ||
6891 | */ | ||
6892 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_REF_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_REF_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_REF_CLK_SEL_MASK) | ||
6893 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PAD_CLK_SEL_MASK (0xCU) | ||
6894 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PAD_CLK_SEL_SHIFT (2U) | ||
6895 | /*! PAD_CLK_SEL | ||
6896 | * 0b00..CLKIN1 XOR CLKIN2 | ||
6897 | * 0b01..CLKIN2 | ||
6898 | * 0b10..CLKIN1 | ||
6899 | * 0b11..Reserved | ||
6900 | */ | ||
6901 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PAD_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PAD_CLK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PAD_CLK_SEL_MASK) | ||
6902 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_BYPASS_MASK (0x10U) | ||
6903 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_BYPASS_SHIFT (4U) | ||
6904 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_BYPASS_MASK) | ||
6905 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_OVERRIDE_MASK (0x100U) | ||
6906 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT (8U) | ||
6907 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_OVERRIDE_MASK) | ||
6908 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_MASK (0x200U) | ||
6909 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_SHIFT (9U) | ||
6910 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_RST_MASK) | ||
6911 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK (0x400U) | ||
6912 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT (10U) | ||
6913 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_OVERRIDE_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_OVERRIDE_MASK) | ||
6914 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_MASK (0x800U) | ||
6915 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_SHIFT (11U) | ||
6916 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_CLKE_MASK) | ||
6917 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_EXT_BYPASS_MASK (0x10000000U) | ||
6918 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_EXT_BYPASS_SHIFT (28U) | ||
6919 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_EXT_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_EXT_BYPASS_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_EXT_BYPASS_MASK) | ||
6920 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SEL_MASK (0x20000000U) | ||
6921 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SEL_SHIFT (29U) | ||
6922 | /*! PLL_LOCK_SEL | ||
6923 | * 0b0..Using PLL maximum lock time | ||
6924 | * 0b1..Using PLL output lock | ||
6925 | */ | ||
6926 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SEL_MASK) | ||
6927 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_MASK (0x80000000U) | ||
6928 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SHIFT (31U) | ||
6929 | #define CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_SHIFT)) & CCM_ANALOG_SYS_PLL3_GEN_CTRL_PLL_LOCK_MASK) | ||
6930 | /*! @} */ | ||
6931 | |||
6932 | /*! @name SYS_PLL3_FDIV_CTL0 - SYS PLL3 Divide and Fraction Data Control 0 Register */ | ||
6933 | /*! @{ */ | ||
6934 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_POST_DIV_MASK (0x7U) | ||
6935 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_POST_DIV_SHIFT (0U) | ||
6936 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_POST_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_POST_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_POST_DIV_MASK) | ||
6937 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_PRE_DIV_MASK (0x3F0U) | ||
6938 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_PRE_DIV_SHIFT (4U) | ||
6939 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_PRE_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_PRE_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_PRE_DIV_MASK) | ||
6940 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_MAIN_DIV_MASK (0x3FF000U) | ||
6941 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_MAIN_DIV_SHIFT (12U) | ||
6942 | #define CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_MAIN_DIV(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_MAIN_DIV_SHIFT)) & CCM_ANALOG_SYS_PLL3_FDIV_CTL0_PLL_MAIN_DIV_MASK) | ||
6943 | /*! @} */ | ||
6944 | |||
6945 | /*! @name SYS_PLL3_LOCKD_CTRL - PLL Lock Detector Control Register */ | ||
6946 | /*! @{ */ | ||
6947 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_IN_MASK (0x3U) | ||
6948 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_IN_SHIFT (0U) | ||
6949 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_IN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_IN_SHIFT)) & CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_IN_MASK) | ||
6950 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_OUT_MASK (0xCU) | ||
6951 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_OUT_SHIFT (2U) | ||
6952 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_OUT(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_OUT_SHIFT)) & CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_OUT_MASK) | ||
6953 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_DLY_MASK (0x30U) | ||
6954 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_DLY_SHIFT (4U) | ||
6955 | #define CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_DLY(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_DLY_SHIFT)) & CCM_ANALOG_SYS_PLL3_LOCKD_CTRL_LOCK_CON_DLY_MASK) | ||
6956 | /*! @} */ | ||
6957 | |||
6958 | /*! @name SYS_PLL3_MNIT_CTRL - PLL Monitoring Control Register */ | ||
6959 | /*! @{ */ | ||
6960 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_ICP_MASK (0x3U) | ||
6961 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_ICP_SHIFT (0U) | ||
6962 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_ICP(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_ICP_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_ICP_MASK) | ||
6963 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_EN_MASK (0x4U) | ||
6964 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_EN_SHIFT (2U) | ||
6965 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_EN_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_EN_MASK) | ||
6966 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_EXTAFC_MASK (0xF8U) | ||
6967 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_EXTAFC_SHIFT (3U) | ||
6968 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_EXTAFC(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_EXTAFC_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_EXTAFC_MASK) | ||
6969 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FEED_EN_MASK (0x2000U) | ||
6970 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FEED_EN_SHIFT (13U) | ||
6971 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FEED_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FEED_EN_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FEED_EN_MASK) | ||
6972 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FSEL_MASK (0x4000U) | ||
6973 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FSEL_SHIFT (14U) | ||
6974 | /*! FSEL | ||
6975 | * 0b0..FEED_OUT = FREF | ||
6976 | * 0b1..FEED_OUT = FEED | ||
6977 | */ | ||
6978 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FSEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FSEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FSEL_MASK) | ||
6979 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFCINIT_SEL_MASK (0x10000U) | ||
6980 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFCINIT_SEL_SHIFT (16U) | ||
6981 | /*! AFCINIT_SEL | ||
6982 | * 0b0..nominal delay | ||
6983 | * 0b1..nominal delay * 2 | ||
6984 | */ | ||
6985 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFCINIT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFCINIT_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFCINIT_SEL_MASK) | ||
6986 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_EN_MASK (0x20000U) | ||
6987 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT (17U) | ||
6988 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_EN_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_EN_MASK) | ||
6989 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_MASK (0x40000U) | ||
6990 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_SHIFT (18U) | ||
6991 | /*! PBIAS_CTRL | ||
6992 | * 0b0..0.50*VDD | ||
6993 | * 0b1..0.67*VDD | ||
6994 | */ | ||
6995 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_PBIAS_CTRL_MASK) | ||
6996 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_SEL_MASK (0x80000U) | ||
6997 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_SEL_SHIFT (19U) | ||
6998 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_SEL_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_AFC_SEL_MASK) | ||
6999 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FOUT_MASK_MASK (0x100000U) | ||
7000 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FOUT_MASK_SHIFT (20U) | ||
7001 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FOUT_MASK(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FOUT_MASK_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_FOUT_MASK_MASK) | ||
7002 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_LRD_EN_MASK (0x200000U) | ||
7003 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_LRD_EN_SHIFT (21U) | ||
7004 | #define CCM_ANALOG_SYS_PLL3_MNIT_CTRL_LRD_EN(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_SYS_PLL3_MNIT_CTRL_LRD_EN_SHIFT)) & CCM_ANALOG_SYS_PLL3_MNIT_CTRL_LRD_EN_MASK) | ||
7005 | /*! @} */ | ||
7006 | |||
7007 | /*! @name OSC_MISC_CFG - Osc Misc Configuration Register */ | ||
7008 | /*! @{ */ | ||
7009 | #define CCM_ANALOG_OSC_MISC_CFG_OSC_32K_SEL_MASK (0x1U) | ||
7010 | #define CCM_ANALOG_OSC_MISC_CFG_OSC_32K_SEL_SHIFT (0U) | ||
7011 | /*! OSC_32K_SEL | ||
7012 | * 0b0..Divided by 24M clock | ||
7013 | * 0b1..32K Oscillator | ||
7014 | */ | ||
7015 | #define CCM_ANALOG_OSC_MISC_CFG_OSC_32K_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_OSC_MISC_CFG_OSC_32K_SEL_SHIFT)) & CCM_ANALOG_OSC_MISC_CFG_OSC_32K_SEL_MASK) | ||
7016 | /*! @} */ | ||
7017 | |||
7018 | /*! @name ANAMIX_PLL_MNIT_CTL - PLL Clock Output for Test Enable and Select Register */ | ||
7019 | /*! @{ */ | ||
7020 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_DIV_VAL_MASK (0xFU) | ||
7021 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_DIV_VAL_SHIFT (0U) | ||
7022 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_DIV_VAL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_DIV_VAL_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_DIV_VAL_MASK) | ||
7023 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_SEL_MASK (0xF0U) | ||
7024 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_SEL_SHIFT (4U) | ||
7025 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_SEL_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_SEL_MASK) | ||
7026 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_CKE_MASK (0x100U) | ||
7027 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_CKE_SHIFT (8U) | ||
7028 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_CKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_CKE_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT1_OUTPUT_CKE_MASK) | ||
7029 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_DIV_VAL_MASK (0xF0000U) | ||
7030 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_DIV_VAL_SHIFT (16U) | ||
7031 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_DIV_VAL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_DIV_VAL_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_DIV_VAL_MASK) | ||
7032 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_SEL_MASK (0xF00000U) | ||
7033 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_SEL_SHIFT (20U) | ||
7034 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_SEL_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_SEL_MASK) | ||
7035 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_CKE_MASK (0x1000000U) | ||
7036 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_CKE_SHIFT (24U) | ||
7037 | #define CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_CKE(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_CKE_SHIFT)) & CCM_ANALOG_ANAMIX_PLL_MNIT_CTL_CLKOUT2_OUTPUT_CKE_MASK) | ||
7038 | /*! @} */ | ||
7039 | |||
7040 | /*! @name DIGPROG - DIGPROG Register */ | ||
7041 | /*! @{ */ | ||
7042 | #define CCM_ANALOG_DIGPROG_DIGPROG_MINOR_MASK (0xFFU) | ||
7043 | #define CCM_ANALOG_DIGPROG_DIGPROG_MINOR_SHIFT (0U) | ||
7044 | #define CCM_ANALOG_DIGPROG_DIGPROG_MINOR(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DIGPROG_DIGPROG_MINOR_SHIFT)) & CCM_ANALOG_DIGPROG_DIGPROG_MINOR_MASK) | ||
7045 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_LOWER_MASK (0xFF00U) | ||
7046 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_LOWER_SHIFT (8U) | ||
7047 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_LOWER(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_LOWER_SHIFT)) & CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_LOWER_MASK) | ||
7048 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_UPPER_MASK (0xFF0000U) | ||
7049 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_UPPER_SHIFT (16U) | ||
7050 | #define CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_UPPER(x) (((uint32_t)(((uint32_t)(x)) << CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_UPPER_SHIFT)) & CCM_ANALOG_DIGPROG_DIGPROG_MAJOR_UPPER_MASK) | ||
7051 | /*! @} */ | ||
7052 | |||
7053 | |||
7054 | /*! | ||
7055 | * @} | ||
7056 | */ /* end of group CCM_ANALOG_Register_Masks */ | ||
7057 | |||
7058 | |||
7059 | /* CCM_ANALOG - Peripheral instance base addresses */ | ||
7060 | /** Peripheral CCM_ANALOG base address */ | ||
7061 | #define CCM_ANALOG_BASE (0x30360000u) | ||
7062 | /** Peripheral CCM_ANALOG base pointer */ | ||
7063 | #define CCM_ANALOG ((CCM_ANALOG_Type *)CCM_ANALOG_BASE) | ||
7064 | /** Array initializer of CCM_ANALOG peripheral base addresses */ | ||
7065 | #define CCM_ANALOG_BASE_ADDRS { CCM_ANALOG_BASE } | ||
7066 | /** Array initializer of CCM_ANALOG peripheral base pointers */ | ||
7067 | #define CCM_ANALOG_BASE_PTRS { CCM_ANALOG } | ||
7068 | |||
7069 | /*! | ||
7070 | * @} | ||
7071 | */ /* end of group CCM_ANALOG_Peripheral_Access_Layer */ | ||
7072 | |||
7073 | |||
7074 | /* ---------------------------------------------------------------------------- | ||
7075 | -- CSI Peripheral Access Layer | ||
7076 | ---------------------------------------------------------------------------- */ | ||
7077 | |||
7078 | /*! | ||
7079 | * @addtogroup CSI_Peripheral_Access_Layer CSI Peripheral Access Layer | ||
7080 | * @{ | ||
7081 | */ | ||
7082 | |||
7083 | /** CSI - Register Layout Typedef */ | ||
7084 | typedef struct { | ||
7085 | __IO uint32_t CSICR1; /**< CSI Control Register 1, offset: 0x0 */ | ||
7086 | __IO uint32_t CSICR2; /**< CSI Control Register 2, offset: 0x4 */ | ||
7087 | __IO uint32_t CSICR3; /**< CSI Control Register 3, offset: 0x8 */ | ||
7088 | __I uint32_t CSISTATFIFO; /**< CSI Statistic FIFO Register, offset: 0xC */ | ||
7089 | __I uint32_t CSIRFIFO; /**< CSI RX FIFO Register, offset: 0x10 */ | ||
7090 | __IO uint32_t CSIRXCNT; /**< CSI RX Count Register, offset: 0x14 */ | ||
7091 | __IO uint32_t CSISR; /**< CSI Status Register, offset: 0x18 */ | ||
7092 | uint8_t RESERVED_0[4]; | ||
7093 | __IO uint32_t CSIDMASA_STATFIFO; /**< CSI DMA Start Address Register - for STATFIFO, offset: 0x20 */ | ||
7094 | __IO uint32_t CSIDMATS_STATFIFO; /**< CSI DMA Transfer Size Register - for STATFIFO, offset: 0x24 */ | ||
7095 | __IO uint32_t CSIDMASA_FB1; /**< CSI DMA Start Address Register - for Frame Buffer1, offset: 0x28 */ | ||
7096 | __IO uint32_t CSIDMASA_FB2; /**< CSI DMA Transfer Size Register - for Frame Buffer2, offset: 0x2C */ | ||
7097 | __IO uint32_t CSIFBUF_PARA; /**< CSI Frame Buffer Parameter Register, offset: 0x30 */ | ||
7098 | __IO uint32_t CSIIMAG_PARA; /**< CSI Image Parameter Register, offset: 0x34 */ | ||
7099 | uint8_t RESERVED_1[16]; | ||
7100 | __IO uint32_t CSICR18; /**< CSI Control Register 18, offset: 0x48 */ | ||
7101 | } CSI_Type; | ||
7102 | |||
7103 | /* ---------------------------------------------------------------------------- | ||
7104 | -- CSI Register Masks | ||
7105 | ---------------------------------------------------------------------------- */ | ||
7106 | |||
7107 | /*! | ||
7108 | * @addtogroup CSI_Register_Masks CSI Register Masks | ||
7109 | * @{ | ||
7110 | */ | ||
7111 | |||
7112 | /*! @name CSICR1 - CSI Control Register 1 */ | ||
7113 | /*! @{ */ | ||
7114 | #define CSI_CSICR1_PIXEL_BIT_MASK (0x1U) | ||
7115 | #define CSI_CSICR1_PIXEL_BIT_SHIFT (0U) | ||
7116 | /*! PIXEL_BIT | ||
7117 | * 0b0..8-bit data for each pixel | ||
7118 | * 0b1..10-bit data for each pixel | ||
7119 | */ | ||
7120 | #define CSI_CSICR1_PIXEL_BIT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_PIXEL_BIT_SHIFT)) & CSI_CSICR1_PIXEL_BIT_MASK) | ||
7121 | #define CSI_CSICR1_REDGE_MASK (0x2U) | ||
7122 | #define CSI_CSICR1_REDGE_SHIFT (1U) | ||
7123 | /*! REDGE | ||
7124 | * 0b0..Pixel data is latched at the falling edge of CSI_PIXCLK | ||
7125 | * 0b1..Pixel data is latched at the rising edge of CSI_PIXCLK | ||
7126 | */ | ||
7127 | #define CSI_CSICR1_REDGE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_REDGE_SHIFT)) & CSI_CSICR1_REDGE_MASK) | ||
7128 | #define CSI_CSICR1_INV_PCLK_MASK (0x4U) | ||
7129 | #define CSI_CSICR1_INV_PCLK_SHIFT (2U) | ||
7130 | /*! INV_PCLK | ||
7131 | * 0b0..CSI_PIXCLK is directly applied to internal circuitry | ||
7132 | * 0b1..CSI_PIXCLK is inverted before applied to internal circuitry | ||
7133 | */ | ||
7134 | #define CSI_CSICR1_INV_PCLK(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_INV_PCLK_SHIFT)) & CSI_CSICR1_INV_PCLK_MASK) | ||
7135 | #define CSI_CSICR1_INV_DATA_MASK (0x8U) | ||
7136 | #define CSI_CSICR1_INV_DATA_SHIFT (3U) | ||
7137 | /*! INV_DATA | ||
7138 | * 0b0..CSI_D[7:0] data lines are directly applied to internal circuitry | ||
7139 | * 0b1..CSI_D[7:0] data lines are inverted before applied to internal circuitry | ||
7140 | */ | ||
7141 | #define CSI_CSICR1_INV_DATA(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_INV_DATA_SHIFT)) & CSI_CSICR1_INV_DATA_MASK) | ||
7142 | #define CSI_CSICR1_GCLK_MODE_MASK (0x10U) | ||
7143 | #define CSI_CSICR1_GCLK_MODE_SHIFT (4U) | ||
7144 | /*! GCLK_MODE | ||
7145 | * 0b0..Non-gated clock mode. All incoming pixel clocks are valid. HSYNC is ignored. | ||
7146 | * 0b1..Gated clock mode. Pixel clock signal is valid only when HSYNC is active. | ||
7147 | */ | ||
7148 | #define CSI_CSICR1_GCLK_MODE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_GCLK_MODE_SHIFT)) & CSI_CSICR1_GCLK_MODE_MASK) | ||
7149 | #define CSI_CSICR1_CLR_RXFIFO_MASK (0x20U) | ||
7150 | #define CSI_CSICR1_CLR_RXFIFO_SHIFT (5U) | ||
7151 | #define CSI_CSICR1_CLR_RXFIFO(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_CLR_RXFIFO_SHIFT)) & CSI_CSICR1_CLR_RXFIFO_MASK) | ||
7152 | #define CSI_CSICR1_CLR_STATFIFO_MASK (0x40U) | ||
7153 | #define CSI_CSICR1_CLR_STATFIFO_SHIFT (6U) | ||
7154 | #define CSI_CSICR1_CLR_STATFIFO(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_CLR_STATFIFO_SHIFT)) & CSI_CSICR1_CLR_STATFIFO_MASK) | ||
7155 | #define CSI_CSICR1_PACK_DIR_MASK (0x80U) | ||
7156 | #define CSI_CSICR1_PACK_DIR_SHIFT (7U) | ||
7157 | /*! PACK_DIR | ||
7158 | * 0b0..Pack from LSB first. For image data, 0x11, 0x22, 0x33, 0x44, it will appear as 0x44332211 in RX FIFO. For | ||
7159 | * stat data, 0xAAAA, 0xBBBB, it will appear as 0xBBBBAAAA in STAT FIFO. | ||
7160 | * 0b1..Pack from MSB first. For image data, 0x11, 0x22, 0x33, 0x44, it will appear as 0x11223344 in RX FIFO. For | ||
7161 | * stat data, 0xAAAA, 0xBBBB, it will appear as 0xAAAABBBB in STAT FIFO. | ||
7162 | */ | ||
7163 | #define CSI_CSICR1_PACK_DIR(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_PACK_DIR_SHIFT)) & CSI_CSICR1_PACK_DIR_MASK) | ||
7164 | #define CSI_CSICR1_FCC_MASK (0x100U) | ||
7165 | #define CSI_CSICR1_FCC_SHIFT (8U) | ||
7166 | /*! FCC | ||
7167 | * 0b0..Asynchronous FIFO clear is selected. | ||
7168 | * 0b1..Synchronous FIFO clear is selected. | ||
7169 | */ | ||
7170 | #define CSI_CSICR1_FCC(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_FCC_SHIFT)) & CSI_CSICR1_FCC_MASK) | ||
7171 | #define CSI_CSICR1_CCIR_EN_MASK (0x400U) | ||
7172 | #define CSI_CSICR1_CCIR_EN_SHIFT (10U) | ||
7173 | /*! CCIR_EN | ||
7174 | * 0b0..Traditional interface is selected. Timing interface logic is used to latch data. | ||
7175 | * 0b1..CCIR656 interface is selected. | ||
7176 | */ | ||
7177 | #define CSI_CSICR1_CCIR_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_CCIR_EN_SHIFT)) & CSI_CSICR1_CCIR_EN_MASK) | ||
7178 | #define CSI_CSICR1_HSYNC_POL_MASK (0x800U) | ||
7179 | #define CSI_CSICR1_HSYNC_POL_SHIFT (11U) | ||
7180 | /*! HSYNC_POL | ||
7181 | * 0b0..HSYNC is active low | ||
7182 | * 0b1..HSYNC is active high | ||
7183 | */ | ||
7184 | #define CSI_CSICR1_HSYNC_POL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_HSYNC_POL_SHIFT)) & CSI_CSICR1_HSYNC_POL_MASK) | ||
7185 | #define CSI_CSICR1_SOF_INTEN_MASK (0x10000U) | ||
7186 | #define CSI_CSICR1_SOF_INTEN_SHIFT (16U) | ||
7187 | /*! SOF_INTEN | ||
7188 | * 0b0..SOF interrupt disable | ||
7189 | * 0b1..SOF interrupt enable | ||
7190 | */ | ||
7191 | #define CSI_CSICR1_SOF_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_SOF_INTEN_SHIFT)) & CSI_CSICR1_SOF_INTEN_MASK) | ||
7192 | #define CSI_CSICR1_SOF_POL_MASK (0x20000U) | ||
7193 | #define CSI_CSICR1_SOF_POL_SHIFT (17U) | ||
7194 | /*! SOF_POL | ||
7195 | * 0b0..SOF interrupt is generated on SOF falling edge | ||
7196 | * 0b1..SOF interrupt is generated on SOF rising edge | ||
7197 | */ | ||
7198 | #define CSI_CSICR1_SOF_POL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_SOF_POL_SHIFT)) & CSI_CSICR1_SOF_POL_MASK) | ||
7199 | #define CSI_CSICR1_RXFF_INTEN_MASK (0x40000U) | ||
7200 | #define CSI_CSICR1_RXFF_INTEN_SHIFT (18U) | ||
7201 | /*! RXFF_INTEN | ||
7202 | * 0b0..RxFIFO full interrupt disable | ||
7203 | * 0b1..RxFIFO full interrupt enable | ||
7204 | */ | ||
7205 | #define CSI_CSICR1_RXFF_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_RXFF_INTEN_SHIFT)) & CSI_CSICR1_RXFF_INTEN_MASK) | ||
7206 | #define CSI_CSICR1_FB1_DMA_DONE_INTEN_MASK (0x80000U) | ||
7207 | #define CSI_CSICR1_FB1_DMA_DONE_INTEN_SHIFT (19U) | ||
7208 | /*! FB1_DMA_DONE_INTEN | ||
7209 | * 0b0..Frame Buffer1 DMA Transfer Done interrupt disable | ||
7210 | * 0b1..Frame Buffer1 DMA Transfer Done interrupt enable | ||
7211 | */ | ||
7212 | #define CSI_CSICR1_FB1_DMA_DONE_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_FB1_DMA_DONE_INTEN_SHIFT)) & CSI_CSICR1_FB1_DMA_DONE_INTEN_MASK) | ||
7213 | #define CSI_CSICR1_FB2_DMA_DONE_INTEN_MASK (0x100000U) | ||
7214 | #define CSI_CSICR1_FB2_DMA_DONE_INTEN_SHIFT (20U) | ||
7215 | /*! FB2_DMA_DONE_INTEN | ||
7216 | * 0b0..Frame Buffer2 DMA Transfer Done interrupt disable | ||
7217 | * 0b1..Frame Buffer2 DMA Transfer Done interrupt enable | ||
7218 | */ | ||
7219 | #define CSI_CSICR1_FB2_DMA_DONE_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_FB2_DMA_DONE_INTEN_SHIFT)) & CSI_CSICR1_FB2_DMA_DONE_INTEN_MASK) | ||
7220 | #define CSI_CSICR1_STATFF_INTEN_MASK (0x200000U) | ||
7221 | #define CSI_CSICR1_STATFF_INTEN_SHIFT (21U) | ||
7222 | /*! STATFF_INTEN | ||
7223 | * 0b0..STATFIFO full interrupt disable | ||
7224 | * 0b1..STATFIFO full interrupt enable | ||
7225 | */ | ||
7226 | #define CSI_CSICR1_STATFF_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_STATFF_INTEN_SHIFT)) & CSI_CSICR1_STATFF_INTEN_MASK) | ||
7227 | #define CSI_CSICR1_SFF_DMA_DONE_INTEN_MASK (0x400000U) | ||
7228 | #define CSI_CSICR1_SFF_DMA_DONE_INTEN_SHIFT (22U) | ||
7229 | /*! SFF_DMA_DONE_INTEN | ||
7230 | * 0b0..STATFIFO DMA Transfer Done interrupt disable | ||
7231 | * 0b1..STATFIFO DMA Transfer Done interrupt enable | ||
7232 | */ | ||
7233 | #define CSI_CSICR1_SFF_DMA_DONE_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_SFF_DMA_DONE_INTEN_SHIFT)) & CSI_CSICR1_SFF_DMA_DONE_INTEN_MASK) | ||
7234 | #define CSI_CSICR1_RF_OR_INTEN_MASK (0x1000000U) | ||
7235 | #define CSI_CSICR1_RF_OR_INTEN_SHIFT (24U) | ||
7236 | /*! RF_OR_INTEN | ||
7237 | * 0b0..RxFIFO overrun interrupt is disabled | ||
7238 | * 0b1..RxFIFO overrun interrupt is enabled | ||
7239 | */ | ||
7240 | #define CSI_CSICR1_RF_OR_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_RF_OR_INTEN_SHIFT)) & CSI_CSICR1_RF_OR_INTEN_MASK) | ||
7241 | #define CSI_CSICR1_SF_OR_INTEN_MASK (0x2000000U) | ||
7242 | #define CSI_CSICR1_SF_OR_INTEN_SHIFT (25U) | ||
7243 | /*! SF_OR_INTEN | ||
7244 | * 0b0..STATFIFO overrun interrupt is disabled | ||
7245 | * 0b1..STATFIFO overrun interrupt is enabled | ||
7246 | */ | ||
7247 | #define CSI_CSICR1_SF_OR_INTEN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_SF_OR_INTEN_SHIFT)) & CSI_CSICR1_SF_OR_INTEN_MASK) | ||
7248 | #define CSI_CSICR1_COF_INT_EN_MASK (0x4000000U) | ||
7249 | #define CSI_CSICR1_COF_INT_EN_SHIFT (26U) | ||
7250 | /*! COF_INT_EN | ||
7251 | * 0b0..COF interrupt is disabled | ||
7252 | * 0b1..COF interrupt is enabled | ||
7253 | */ | ||
7254 | #define CSI_CSICR1_COF_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_COF_INT_EN_SHIFT)) & CSI_CSICR1_COF_INT_EN_MASK) | ||
7255 | #define CSI_CSICR1_VIDEO_MODE_MASK (0x8000000U) | ||
7256 | #define CSI_CSICR1_VIDEO_MODE_SHIFT (27U) | ||
7257 | /*! VIDEO_MODE | ||
7258 | * 0b0..Progressive mode is selected | ||
7259 | * 0b1..Interlace mode is selected | ||
7260 | */ | ||
7261 | #define CSI_CSICR1_VIDEO_MODE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_VIDEO_MODE_SHIFT)) & CSI_CSICR1_VIDEO_MODE_MASK) | ||
7262 | #define CSI_CSICR1_PrP_IF_EN_MASK (0x10000000U) | ||
7263 | #define CSI_CSICR1_PrP_IF_EN_SHIFT (28U) | ||
7264 | /*! PrP_IF_EN | ||
7265 | * 0b0..CSI to PrP bus is disabled | ||
7266 | * 0b1..CSI to PrP bus is enabled | ||
7267 | */ | ||
7268 | #define CSI_CSICR1_PrP_IF_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_PrP_IF_EN_SHIFT)) & CSI_CSICR1_PrP_IF_EN_MASK) | ||
7269 | #define CSI_CSICR1_EOF_INT_EN_MASK (0x20000000U) | ||
7270 | #define CSI_CSICR1_EOF_INT_EN_SHIFT (29U) | ||
7271 | /*! EOF_INT_EN | ||
7272 | * 0b0..EOF interrupt is disabled. | ||
7273 | * 0b1..EOF interrupt is generated when RX count value is reached. | ||
7274 | */ | ||
7275 | #define CSI_CSICR1_EOF_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_EOF_INT_EN_SHIFT)) & CSI_CSICR1_EOF_INT_EN_MASK) | ||
7276 | #define CSI_CSICR1_EXT_VSYNC_MASK (0x40000000U) | ||
7277 | #define CSI_CSICR1_EXT_VSYNC_SHIFT (30U) | ||
7278 | /*! EXT_VSYNC | ||
7279 | * 0b0..Internal VSYNC mode | ||
7280 | * 0b1..External VSYNC mode | ||
7281 | */ | ||
7282 | #define CSI_CSICR1_EXT_VSYNC(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_EXT_VSYNC_SHIFT)) & CSI_CSICR1_EXT_VSYNC_MASK) | ||
7283 | #define CSI_CSICR1_SWAP16_EN_MASK (0x80000000U) | ||
7284 | #define CSI_CSICR1_SWAP16_EN_SHIFT (31U) | ||
7285 | /*! SWAP16_EN | ||
7286 | * 0b0..Disable swapping | ||
7287 | * 0b1..Enable swapping | ||
7288 | */ | ||
7289 | #define CSI_CSICR1_SWAP16_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR1_SWAP16_EN_SHIFT)) & CSI_CSICR1_SWAP16_EN_MASK) | ||
7290 | /*! @} */ | ||
7291 | |||
7292 | /*! @name CSICR2 - CSI Control Register 2 */ | ||
7293 | /*! @{ */ | ||
7294 | #define CSI_CSICR2_HSC_MASK (0xFFU) | ||
7295 | #define CSI_CSICR2_HSC_SHIFT (0U) | ||
7296 | #define CSI_CSICR2_HSC(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_HSC_SHIFT)) & CSI_CSICR2_HSC_MASK) | ||
7297 | #define CSI_CSICR2_VSC_MASK (0xFF00U) | ||
7298 | #define CSI_CSICR2_VSC_SHIFT (8U) | ||
7299 | #define CSI_CSICR2_VSC(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_VSC_SHIFT)) & CSI_CSICR2_VSC_MASK) | ||
7300 | #define CSI_CSICR2_LVRM_MASK (0x70000U) | ||
7301 | #define CSI_CSICR2_LVRM_SHIFT (16U) | ||
7302 | /*! LVRM | ||
7303 | * 0b000..512 x 384 | ||
7304 | * 0b001..448 x 336 | ||
7305 | * 0b010..384 x 288 | ||
7306 | * 0b011..384 x 256 | ||
7307 | * 0b100..320 x 240 | ||
7308 | * 0b101..288 x 216 | ||
7309 | * 0b110..400 x 300 | ||
7310 | */ | ||
7311 | #define CSI_CSICR2_LVRM(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_LVRM_SHIFT)) & CSI_CSICR2_LVRM_MASK) | ||
7312 | #define CSI_CSICR2_BTS_MASK (0x180000U) | ||
7313 | #define CSI_CSICR2_BTS_SHIFT (19U) | ||
7314 | /*! BTS | ||
7315 | * 0b00..GR | ||
7316 | * 0b01..RG | ||
7317 | * 0b10..BG | ||
7318 | * 0b11..GB | ||
7319 | */ | ||
7320 | #define CSI_CSICR2_BTS(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_BTS_SHIFT)) & CSI_CSICR2_BTS_MASK) | ||
7321 | #define CSI_CSICR2_SCE_MASK (0x800000U) | ||
7322 | #define CSI_CSICR2_SCE_SHIFT (23U) | ||
7323 | /*! SCE | ||
7324 | * 0b0..Skip count disable | ||
7325 | * 0b1..Skip count enable | ||
7326 | */ | ||
7327 | #define CSI_CSICR2_SCE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_SCE_SHIFT)) & CSI_CSICR2_SCE_MASK) | ||
7328 | #define CSI_CSICR2_AFS_MASK (0x3000000U) | ||
7329 | #define CSI_CSICR2_AFS_SHIFT (24U) | ||
7330 | /*! AFS | ||
7331 | * 0b00..Abs Diff on consecutive green pixels | ||
7332 | * 0b01..Abs Diff on every third green pixels | ||
7333 | * 0b1x..Abs Diff on every four green pixels | ||
7334 | */ | ||
7335 | #define CSI_CSICR2_AFS(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_AFS_SHIFT)) & CSI_CSICR2_AFS_MASK) | ||
7336 | #define CSI_CSICR2_DRM_MASK (0x4000000U) | ||
7337 | #define CSI_CSICR2_DRM_SHIFT (26U) | ||
7338 | /*! DRM | ||
7339 | * 0b0..Stats grid of 8 x 6 | ||
7340 | * 0b1..Stats grid of 8 x 12 | ||
7341 | */ | ||
7342 | #define CSI_CSICR2_DRM(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_DRM_SHIFT)) & CSI_CSICR2_DRM_MASK) | ||
7343 | #define CSI_CSICR2_DMA_BURST_TYPE_SFF_MASK (0x30000000U) | ||
7344 | #define CSI_CSICR2_DMA_BURST_TYPE_SFF_SHIFT (28U) | ||
7345 | /*! DMA_BURST_TYPE_SFF | ||
7346 | * 0bx0..INCR8 | ||
7347 | * 0b01..INCR4 | ||
7348 | * 0b11..INCR16 | ||
7349 | */ | ||
7350 | #define CSI_CSICR2_DMA_BURST_TYPE_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_DMA_BURST_TYPE_SFF_SHIFT)) & CSI_CSICR2_DMA_BURST_TYPE_SFF_MASK) | ||
7351 | #define CSI_CSICR2_DMA_BURST_TYPE_RFF_MASK (0xC0000000U) | ||
7352 | #define CSI_CSICR2_DMA_BURST_TYPE_RFF_SHIFT (30U) | ||
7353 | /*! DMA_BURST_TYPE_RFF | ||
7354 | * 0bx0..INCR8 | ||
7355 | * 0b01..INCR4 | ||
7356 | * 0b11..INCR16 | ||
7357 | */ | ||
7358 | #define CSI_CSICR2_DMA_BURST_TYPE_RFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR2_DMA_BURST_TYPE_RFF_SHIFT)) & CSI_CSICR2_DMA_BURST_TYPE_RFF_MASK) | ||
7359 | /*! @} */ | ||
7360 | |||
7361 | /*! @name CSICR3 - CSI Control Register 3 */ | ||
7362 | /*! @{ */ | ||
7363 | #define CSI_CSICR3_ECC_AUTO_EN_MASK (0x1U) | ||
7364 | #define CSI_CSICR3_ECC_AUTO_EN_SHIFT (0U) | ||
7365 | /*! ECC_AUTO_EN | ||
7366 | * 0b0..Auto Error correction is disabled. | ||
7367 | * 0b1..Auto Error correction is enabled. | ||
7368 | */ | ||
7369 | #define CSI_CSICR3_ECC_AUTO_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_ECC_AUTO_EN_SHIFT)) & CSI_CSICR3_ECC_AUTO_EN_MASK) | ||
7370 | #define CSI_CSICR3_ECC_INT_EN_MASK (0x2U) | ||
7371 | #define CSI_CSICR3_ECC_INT_EN_SHIFT (1U) | ||
7372 | /*! ECC_INT_EN | ||
7373 | * 0b0..No interrupt is generated when error is detected. Only the status bit ECC_INT is set. | ||
7374 | * 0b1..Interrupt is generated when error is detected. | ||
7375 | */ | ||
7376 | #define CSI_CSICR3_ECC_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_ECC_INT_EN_SHIFT)) & CSI_CSICR3_ECC_INT_EN_MASK) | ||
7377 | #define CSI_CSICR3_ZERO_PACK_EN_MASK (0x4U) | ||
7378 | #define CSI_CSICR3_ZERO_PACK_EN_SHIFT (2U) | ||
7379 | /*! ZERO_PACK_EN | ||
7380 | * 0b0..Zero packing disabled | ||
7381 | * 0b1..Zero packing enabled | ||
7382 | */ | ||
7383 | #define CSI_CSICR3_ZERO_PACK_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_ZERO_PACK_EN_SHIFT)) & CSI_CSICR3_ZERO_PACK_EN_MASK) | ||
7384 | #define CSI_CSICR3_TWO_8BIT_SENSOR_MASK (0x8U) | ||
7385 | #define CSI_CSICR3_TWO_8BIT_SENSOR_SHIFT (3U) | ||
7386 | /*! TWO_8BIT_SENSOR | ||
7387 | * 0b0..Only one 8-bit sensor is connected. | ||
7388 | * 0b1..One 16-bit sensor is connected. | ||
7389 | */ | ||
7390 | #define CSI_CSICR3_TWO_8BIT_SENSOR(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_TWO_8BIT_SENSOR_SHIFT)) & CSI_CSICR3_TWO_8BIT_SENSOR_MASK) | ||
7391 | #define CSI_CSICR3_RxFF_LEVEL_MASK (0x70U) | ||
7392 | #define CSI_CSICR3_RxFF_LEVEL_SHIFT (4U) | ||
7393 | /*! RxFF_LEVEL | ||
7394 | * 0b000..4 Double words | ||
7395 | * 0b001..8 Double words | ||
7396 | * 0b010..16 Double words | ||
7397 | * 0b011..24 Double words | ||
7398 | * 0b100..32 Double words | ||
7399 | * 0b101..48 Double words | ||
7400 | * 0b110..64 Double words | ||
7401 | * 0b111..96 Double words | ||
7402 | */ | ||
7403 | #define CSI_CSICR3_RxFF_LEVEL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_RxFF_LEVEL_SHIFT)) & CSI_CSICR3_RxFF_LEVEL_MASK) | ||
7404 | #define CSI_CSICR3_HRESP_ERR_EN_MASK (0x80U) | ||
7405 | #define CSI_CSICR3_HRESP_ERR_EN_SHIFT (7U) | ||
7406 | /*! HRESP_ERR_EN | ||
7407 | * 0b0..Disable hresponse error interrupt | ||
7408 | * 0b1..Enable hresponse error interrupt | ||
7409 | */ | ||
7410 | #define CSI_CSICR3_HRESP_ERR_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_HRESP_ERR_EN_SHIFT)) & CSI_CSICR3_HRESP_ERR_EN_MASK) | ||
7411 | #define CSI_CSICR3_STATFF_LEVEL_MASK (0x700U) | ||
7412 | #define CSI_CSICR3_STATFF_LEVEL_SHIFT (8U) | ||
7413 | /*! STATFF_LEVEL | ||
7414 | * 0b000..4 Double words | ||
7415 | * 0b001..8 Double words | ||
7416 | * 0b010..12 Double words | ||
7417 | * 0b011..16 Double words | ||
7418 | * 0b100..24 Double words | ||
7419 | * 0b101..32 Double words | ||
7420 | * 0b110..48 Double words | ||
7421 | * 0b111..64 Double words | ||
7422 | */ | ||
7423 | #define CSI_CSICR3_STATFF_LEVEL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_STATFF_LEVEL_SHIFT)) & CSI_CSICR3_STATFF_LEVEL_MASK) | ||
7424 | #define CSI_CSICR3_DMA_REQ_EN_SFF_MASK (0x800U) | ||
7425 | #define CSI_CSICR3_DMA_REQ_EN_SFF_SHIFT (11U) | ||
7426 | /*! DMA_REQ_EN_SFF | ||
7427 | * 0b0..Disable the dma request | ||
7428 | * 0b1..Enable the dma request | ||
7429 | */ | ||
7430 | #define CSI_CSICR3_DMA_REQ_EN_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_DMA_REQ_EN_SFF_SHIFT)) & CSI_CSICR3_DMA_REQ_EN_SFF_MASK) | ||
7431 | #define CSI_CSICR3_DMA_REQ_EN_RFF_MASK (0x1000U) | ||
7432 | #define CSI_CSICR3_DMA_REQ_EN_RFF_SHIFT (12U) | ||
7433 | /*! DMA_REQ_EN_RFF | ||
7434 | * 0b0..Disable the dma request | ||
7435 | * 0b1..Enable the dma request | ||
7436 | */ | ||
7437 | #define CSI_CSICR3_DMA_REQ_EN_RFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_DMA_REQ_EN_RFF_SHIFT)) & CSI_CSICR3_DMA_REQ_EN_RFF_MASK) | ||
7438 | #define CSI_CSICR3_DMA_REFLASH_SFF_MASK (0x2000U) | ||
7439 | #define CSI_CSICR3_DMA_REFLASH_SFF_SHIFT (13U) | ||
7440 | /*! DMA_REFLASH_SFF | ||
7441 | * 0b0..No reflashing | ||
7442 | * 0b1..Reflash the embedded DMA controller | ||
7443 | */ | ||
7444 | #define CSI_CSICR3_DMA_REFLASH_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_DMA_REFLASH_SFF_SHIFT)) & CSI_CSICR3_DMA_REFLASH_SFF_MASK) | ||
7445 | #define CSI_CSICR3_DMA_REFLASH_RFF_MASK (0x4000U) | ||
7446 | #define CSI_CSICR3_DMA_REFLASH_RFF_SHIFT (14U) | ||
7447 | /*! DMA_REFLASH_RFF | ||
7448 | * 0b0..No reflashing | ||
7449 | * 0b1..Reflash the embedded DMA controller | ||
7450 | */ | ||
7451 | #define CSI_CSICR3_DMA_REFLASH_RFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_DMA_REFLASH_RFF_SHIFT)) & CSI_CSICR3_DMA_REFLASH_RFF_MASK) | ||
7452 | #define CSI_CSICR3_FRMCNT_RST_MASK (0x8000U) | ||
7453 | #define CSI_CSICR3_FRMCNT_RST_SHIFT (15U) | ||
7454 | /*! FRMCNT_RST | ||
7455 | * 0b0..Do not reset | ||
7456 | * 0b1..Reset frame counter immediately | ||
7457 | */ | ||
7458 | #define CSI_CSICR3_FRMCNT_RST(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_FRMCNT_RST_SHIFT)) & CSI_CSICR3_FRMCNT_RST_MASK) | ||
7459 | #define CSI_CSICR3_FRMCNT_MASK (0xFFFF0000U) | ||
7460 | #define CSI_CSICR3_FRMCNT_SHIFT (16U) | ||
7461 | #define CSI_CSICR3_FRMCNT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR3_FRMCNT_SHIFT)) & CSI_CSICR3_FRMCNT_MASK) | ||
7462 | /*! @} */ | ||
7463 | |||
7464 | /*! @name CSISTATFIFO - CSI Statistic FIFO Register */ | ||
7465 | /*! @{ */ | ||
7466 | #define CSI_CSISTATFIFO_STAT_MASK (0xFFFFFFFFU) | ||
7467 | #define CSI_CSISTATFIFO_STAT_SHIFT (0U) | ||
7468 | #define CSI_CSISTATFIFO_STAT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISTATFIFO_STAT_SHIFT)) & CSI_CSISTATFIFO_STAT_MASK) | ||
7469 | /*! @} */ | ||
7470 | |||
7471 | /*! @name CSIRFIFO - CSI RX FIFO Register */ | ||
7472 | /*! @{ */ | ||
7473 | #define CSI_CSIRFIFO_IMAGE_MASK (0xFFFFFFFFU) | ||
7474 | #define CSI_CSIRFIFO_IMAGE_SHIFT (0U) | ||
7475 | #define CSI_CSIRFIFO_IMAGE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIRFIFO_IMAGE_SHIFT)) & CSI_CSIRFIFO_IMAGE_MASK) | ||
7476 | /*! @} */ | ||
7477 | |||
7478 | /*! @name CSIRXCNT - CSI RX Count Register */ | ||
7479 | /*! @{ */ | ||
7480 | #define CSI_CSIRXCNT_RXCNT_MASK (0x3FFFFFU) | ||
7481 | #define CSI_CSIRXCNT_RXCNT_SHIFT (0U) | ||
7482 | #define CSI_CSIRXCNT_RXCNT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIRXCNT_RXCNT_SHIFT)) & CSI_CSIRXCNT_RXCNT_MASK) | ||
7483 | /*! @} */ | ||
7484 | |||
7485 | /*! @name CSISR - CSI Status Register */ | ||
7486 | /*! @{ */ | ||
7487 | #define CSI_CSISR_DRDY_MASK (0x1U) | ||
7488 | #define CSI_CSISR_DRDY_SHIFT (0U) | ||
7489 | /*! DRDY | ||
7490 | * 0b0..No data (word) is ready | ||
7491 | * 0b1..At least 1 datum (word) is ready in RXFIFO. | ||
7492 | */ | ||
7493 | #define CSI_CSISR_DRDY(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DRDY_SHIFT)) & CSI_CSISR_DRDY_MASK) | ||
7494 | #define CSI_CSISR_ECC_INT_MASK (0x2U) | ||
7495 | #define CSI_CSISR_ECC_INT_SHIFT (1U) | ||
7496 | /*! ECC_INT | ||
7497 | * 0b0..No error detected | ||
7498 | * 0b1..Error is detected in CCIR coding | ||
7499 | */ | ||
7500 | #define CSI_CSISR_ECC_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_ECC_INT_SHIFT)) & CSI_CSISR_ECC_INT_MASK) | ||
7501 | #define CSI_CSISR_HRESP_ERR_INT_MASK (0x80U) | ||
7502 | #define CSI_CSISR_HRESP_ERR_INT_SHIFT (7U) | ||
7503 | /*! HRESP_ERR_INT | ||
7504 | * 0b0..No hresponse error. | ||
7505 | * 0b1..Hresponse error is detected. | ||
7506 | */ | ||
7507 | #define CSI_CSISR_HRESP_ERR_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_HRESP_ERR_INT_SHIFT)) & CSI_CSISR_HRESP_ERR_INT_MASK) | ||
7508 | #define CSI_CSISR_COF_INT_MASK (0x2000U) | ||
7509 | #define CSI_CSISR_COF_INT_SHIFT (13U) | ||
7510 | /*! COF_INT | ||
7511 | * 0b0..Video field has no change. | ||
7512 | * 0b1..Change of video field is detected. | ||
7513 | */ | ||
7514 | #define CSI_CSISR_COF_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_COF_INT_SHIFT)) & CSI_CSISR_COF_INT_MASK) | ||
7515 | #define CSI_CSISR_F1_INT_MASK (0x4000U) | ||
7516 | #define CSI_CSISR_F1_INT_SHIFT (14U) | ||
7517 | /*! F1_INT | ||
7518 | * 0b0..Field 1 of video is not detected. | ||
7519 | * 0b1..Field 1 of video is about to start. | ||
7520 | */ | ||
7521 | #define CSI_CSISR_F1_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_F1_INT_SHIFT)) & CSI_CSISR_F1_INT_MASK) | ||
7522 | #define CSI_CSISR_F2_INT_MASK (0x8000U) | ||
7523 | #define CSI_CSISR_F2_INT_SHIFT (15U) | ||
7524 | /*! F2_INT | ||
7525 | * 0b0..Field 2 of video is not detected | ||
7526 | * 0b1..Field 2 of video is about to start | ||
7527 | */ | ||
7528 | #define CSI_CSISR_F2_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_F2_INT_SHIFT)) & CSI_CSISR_F2_INT_MASK) | ||
7529 | #define CSI_CSISR_SOF_INT_MASK (0x10000U) | ||
7530 | #define CSI_CSISR_SOF_INT_SHIFT (16U) | ||
7531 | /*! SOF_INT | ||
7532 | * 0b0..SOF is not detected. | ||
7533 | * 0b1..SOF is detected. | ||
7534 | */ | ||
7535 | #define CSI_CSISR_SOF_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_SOF_INT_SHIFT)) & CSI_CSISR_SOF_INT_MASK) | ||
7536 | #define CSI_CSISR_EOF_INT_MASK (0x20000U) | ||
7537 | #define CSI_CSISR_EOF_INT_SHIFT (17U) | ||
7538 | /*! EOF_INT | ||
7539 | * 0b0..EOF is not detected. | ||
7540 | * 0b1..EOF is detected. | ||
7541 | */ | ||
7542 | #define CSI_CSISR_EOF_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_EOF_INT_SHIFT)) & CSI_CSISR_EOF_INT_MASK) | ||
7543 | #define CSI_CSISR_RxFF_INT_MASK (0x40000U) | ||
7544 | #define CSI_CSISR_RxFF_INT_SHIFT (18U) | ||
7545 | /*! RxFF_INT | ||
7546 | * 0b0..RxFIFO is not full. | ||
7547 | * 0b1..RxFIFO is full. | ||
7548 | */ | ||
7549 | #define CSI_CSISR_RxFF_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_RxFF_INT_SHIFT)) & CSI_CSISR_RxFF_INT_MASK) | ||
7550 | #define CSI_CSISR_DMA_TSF_DONE_FB1_MASK (0x80000U) | ||
7551 | #define CSI_CSISR_DMA_TSF_DONE_FB1_SHIFT (19U) | ||
7552 | /*! DMA_TSF_DONE_FB1 | ||
7553 | * 0b0..DMA transfer is not completed. | ||
7554 | * 0b1..DMA transfer is completed. | ||
7555 | */ | ||
7556 | #define CSI_CSISR_DMA_TSF_DONE_FB1(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DMA_TSF_DONE_FB1_SHIFT)) & CSI_CSISR_DMA_TSF_DONE_FB1_MASK) | ||
7557 | #define CSI_CSISR_DMA_TSF_DONE_FB2_MASK (0x100000U) | ||
7558 | #define CSI_CSISR_DMA_TSF_DONE_FB2_SHIFT (20U) | ||
7559 | /*! DMA_TSF_DONE_FB2 | ||
7560 | * 0b0..DMA transfer is not completed. | ||
7561 | * 0b1..DMA transfer is completed. | ||
7562 | */ | ||
7563 | #define CSI_CSISR_DMA_TSF_DONE_FB2(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DMA_TSF_DONE_FB2_SHIFT)) & CSI_CSISR_DMA_TSF_DONE_FB2_MASK) | ||
7564 | #define CSI_CSISR_STATFF_INT_MASK (0x200000U) | ||
7565 | #define CSI_CSISR_STATFF_INT_SHIFT (21U) | ||
7566 | /*! STATFF_INT | ||
7567 | * 0b0..STATFIFO is not full. | ||
7568 | * 0b1..STATFIFO is full. | ||
7569 | */ | ||
7570 | #define CSI_CSISR_STATFF_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_STATFF_INT_SHIFT)) & CSI_CSISR_STATFF_INT_MASK) | ||
7571 | #define CSI_CSISR_DMA_TSF_DONE_SFF_MASK (0x400000U) | ||
7572 | #define CSI_CSISR_DMA_TSF_DONE_SFF_SHIFT (22U) | ||
7573 | /*! DMA_TSF_DONE_SFF | ||
7574 | * 0b0..DMA transfer is not completed. | ||
7575 | * 0b1..DMA transfer is completed. | ||
7576 | */ | ||
7577 | #define CSI_CSISR_DMA_TSF_DONE_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DMA_TSF_DONE_SFF_SHIFT)) & CSI_CSISR_DMA_TSF_DONE_SFF_MASK) | ||
7578 | #define CSI_CSISR_RF_OR_INT_MASK (0x1000000U) | ||
7579 | #define CSI_CSISR_RF_OR_INT_SHIFT (24U) | ||
7580 | /*! RF_OR_INT | ||
7581 | * 0b0..RXFIFO has not overflowed. | ||
7582 | * 0b1..RXFIFO has overflowed. | ||
7583 | */ | ||
7584 | #define CSI_CSISR_RF_OR_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_RF_OR_INT_SHIFT)) & CSI_CSISR_RF_OR_INT_MASK) | ||
7585 | #define CSI_CSISR_SF_OR_INT_MASK (0x2000000U) | ||
7586 | #define CSI_CSISR_SF_OR_INT_SHIFT (25U) | ||
7587 | /*! SF_OR_INT | ||
7588 | * 0b0..STATFIFO has not overflowed. | ||
7589 | * 0b1..STATFIFO has overflowed. | ||
7590 | */ | ||
7591 | #define CSI_CSISR_SF_OR_INT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_SF_OR_INT_SHIFT)) & CSI_CSISR_SF_OR_INT_MASK) | ||
7592 | #define CSI_CSISR_DMA_FIELD1_DONE_MASK (0x4000000U) | ||
7593 | #define CSI_CSISR_DMA_FIELD1_DONE_SHIFT (26U) | ||
7594 | #define CSI_CSISR_DMA_FIELD1_DONE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DMA_FIELD1_DONE_SHIFT)) & CSI_CSISR_DMA_FIELD1_DONE_MASK) | ||
7595 | #define CSI_CSISR_DMA_FIELD0_DONE_MASK (0x8000000U) | ||
7596 | #define CSI_CSISR_DMA_FIELD0_DONE_SHIFT (27U) | ||
7597 | #define CSI_CSISR_DMA_FIELD0_DONE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_DMA_FIELD0_DONE_SHIFT)) & CSI_CSISR_DMA_FIELD0_DONE_MASK) | ||
7598 | #define CSI_CSISR_BASEADDR_CHHANGE_ERROR_MASK (0x10000000U) | ||
7599 | #define CSI_CSISR_BASEADDR_CHHANGE_ERROR_SHIFT (28U) | ||
7600 | #define CSI_CSISR_BASEADDR_CHHANGE_ERROR(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSISR_BASEADDR_CHHANGE_ERROR_SHIFT)) & CSI_CSISR_BASEADDR_CHHANGE_ERROR_MASK) | ||
7601 | /*! @} */ | ||
7602 | |||
7603 | /*! @name CSIDMASA_STATFIFO - CSI DMA Start Address Register - for STATFIFO */ | ||
7604 | /*! @{ */ | ||
7605 | #define CSI_CSIDMASA_STATFIFO_DMA_START_ADDR_SFF_MASK (0xFFFFFFFCU) | ||
7606 | #define CSI_CSIDMASA_STATFIFO_DMA_START_ADDR_SFF_SHIFT (2U) | ||
7607 | #define CSI_CSIDMASA_STATFIFO_DMA_START_ADDR_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIDMASA_STATFIFO_DMA_START_ADDR_SFF_SHIFT)) & CSI_CSIDMASA_STATFIFO_DMA_START_ADDR_SFF_MASK) | ||
7608 | /*! @} */ | ||
7609 | |||
7610 | /*! @name CSIDMATS_STATFIFO - CSI DMA Transfer Size Register - for STATFIFO */ | ||
7611 | /*! @{ */ | ||
7612 | #define CSI_CSIDMATS_STATFIFO_DMA_TSF_SIZE_SFF_MASK (0xFFFFFFFFU) | ||
7613 | #define CSI_CSIDMATS_STATFIFO_DMA_TSF_SIZE_SFF_SHIFT (0U) | ||
7614 | #define CSI_CSIDMATS_STATFIFO_DMA_TSF_SIZE_SFF(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIDMATS_STATFIFO_DMA_TSF_SIZE_SFF_SHIFT)) & CSI_CSIDMATS_STATFIFO_DMA_TSF_SIZE_SFF_MASK) | ||
7615 | /*! @} */ | ||
7616 | |||
7617 | /*! @name CSIDMASA_FB1 - CSI DMA Start Address Register - for Frame Buffer1 */ | ||
7618 | /*! @{ */ | ||
7619 | #define CSI_CSIDMASA_FB1_DMA_START_ADDR_FB1_MASK (0xFFFFFFFCU) | ||
7620 | #define CSI_CSIDMASA_FB1_DMA_START_ADDR_FB1_SHIFT (2U) | ||
7621 | #define CSI_CSIDMASA_FB1_DMA_START_ADDR_FB1(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIDMASA_FB1_DMA_START_ADDR_FB1_SHIFT)) & CSI_CSIDMASA_FB1_DMA_START_ADDR_FB1_MASK) | ||
7622 | /*! @} */ | ||
7623 | |||
7624 | /*! @name CSIDMASA_FB2 - CSI DMA Transfer Size Register - for Frame Buffer2 */ | ||
7625 | /*! @{ */ | ||
7626 | #define CSI_CSIDMASA_FB2_DMA_START_ADDR_FB2_MASK (0xFFFFFFFCU) | ||
7627 | #define CSI_CSIDMASA_FB2_DMA_START_ADDR_FB2_SHIFT (2U) | ||
7628 | #define CSI_CSIDMASA_FB2_DMA_START_ADDR_FB2(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIDMASA_FB2_DMA_START_ADDR_FB2_SHIFT)) & CSI_CSIDMASA_FB2_DMA_START_ADDR_FB2_MASK) | ||
7629 | /*! @} */ | ||
7630 | |||
7631 | /*! @name CSIFBUF_PARA - CSI Frame Buffer Parameter Register */ | ||
7632 | /*! @{ */ | ||
7633 | #define CSI_CSIFBUF_PARA_FBUF_STRIDE_MASK (0xFFFFU) | ||
7634 | #define CSI_CSIFBUF_PARA_FBUF_STRIDE_SHIFT (0U) | ||
7635 | #define CSI_CSIFBUF_PARA_FBUF_STRIDE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIFBUF_PARA_FBUF_STRIDE_SHIFT)) & CSI_CSIFBUF_PARA_FBUF_STRIDE_MASK) | ||
7636 | #define CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE_MASK (0xFFFF0000U) | ||
7637 | #define CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE_SHIFT (16U) | ||
7638 | #define CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE_SHIFT)) & CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE_MASK) | ||
7639 | /*! @} */ | ||
7640 | |||
7641 | /*! @name CSIIMAG_PARA - CSI Image Parameter Register */ | ||
7642 | /*! @{ */ | ||
7643 | #define CSI_CSIIMAG_PARA_IMAGE_HEIGHT_MASK (0xFFFFU) | ||
7644 | #define CSI_CSIIMAG_PARA_IMAGE_HEIGHT_SHIFT (0U) | ||
7645 | #define CSI_CSIIMAG_PARA_IMAGE_HEIGHT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIIMAG_PARA_IMAGE_HEIGHT_SHIFT)) & CSI_CSIIMAG_PARA_IMAGE_HEIGHT_MASK) | ||
7646 | #define CSI_CSIIMAG_PARA_IMAGE_WIDTH_MASK (0xFFFF0000U) | ||
7647 | #define CSI_CSIIMAG_PARA_IMAGE_WIDTH_SHIFT (16U) | ||
7648 | #define CSI_CSIIMAG_PARA_IMAGE_WIDTH(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSIIMAG_PARA_IMAGE_WIDTH_SHIFT)) & CSI_CSIIMAG_PARA_IMAGE_WIDTH_MASK) | ||
7649 | /*! @} */ | ||
7650 | |||
7651 | /*! @name CSICR18 - CSI Control Register 18 */ | ||
7652 | /*! @{ */ | ||
7653 | #define CSI_CSICR18_DEINTERLACE_EN_MASK (0x4U) | ||
7654 | #define CSI_CSICR18_DEINTERLACE_EN_SHIFT (2U) | ||
7655 | /*! DEINTERLACE_EN | ||
7656 | * 0b0..Deinterlace disabled | ||
7657 | * 0b1..Deinterlace enabled | ||
7658 | */ | ||
7659 | #define CSI_CSICR18_DEINTERLACE_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_DEINTERLACE_EN_SHIFT)) & CSI_CSICR18_DEINTERLACE_EN_MASK) | ||
7660 | #define CSI_CSICR18_PARALLEL24_EN_MASK (0x8U) | ||
7661 | #define CSI_CSICR18_PARALLEL24_EN_SHIFT (3U) | ||
7662 | #define CSI_CSICR18_PARALLEL24_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_PARALLEL24_EN_SHIFT)) & CSI_CSICR18_PARALLEL24_EN_MASK) | ||
7663 | #define CSI_CSICR18_BASEADDR_SWITCH_EN_MASK (0x10U) | ||
7664 | #define CSI_CSICR18_BASEADDR_SWITCH_EN_SHIFT (4U) | ||
7665 | #define CSI_CSICR18_BASEADDR_SWITCH_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_BASEADDR_SWITCH_EN_SHIFT)) & CSI_CSICR18_BASEADDR_SWITCH_EN_MASK) | ||
7666 | #define CSI_CSICR18_BASEADDR_SWITCH_SEL_MASK (0x20U) | ||
7667 | #define CSI_CSICR18_BASEADDR_SWITCH_SEL_SHIFT (5U) | ||
7668 | /*! BASEADDR_SWITCH_SEL | ||
7669 | * 0b0..Switching base address at the edge of the vsync | ||
7670 | * 0b1..Switching base address at the edge of the first data of each frame | ||
7671 | */ | ||
7672 | #define CSI_CSICR18_BASEADDR_SWITCH_SEL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_BASEADDR_SWITCH_SEL_SHIFT)) & CSI_CSICR18_BASEADDR_SWITCH_SEL_MASK) | ||
7673 | #define CSI_CSICR18_FIELD0_DONE_IE_MASK (0x40U) | ||
7674 | #define CSI_CSICR18_FIELD0_DONE_IE_SHIFT (6U) | ||
7675 | /*! FIELD0_DONE_IE | ||
7676 | * 0b0..Interrupt disabled | ||
7677 | * 0b1..Interrupt enabled | ||
7678 | */ | ||
7679 | #define CSI_CSICR18_FIELD0_DONE_IE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_FIELD0_DONE_IE_SHIFT)) & CSI_CSICR18_FIELD0_DONE_IE_MASK) | ||
7680 | #define CSI_CSICR18_DMA_FIELD1_DONE_IE_MASK (0x80U) | ||
7681 | #define CSI_CSICR18_DMA_FIELD1_DONE_IE_SHIFT (7U) | ||
7682 | /*! DMA_FIELD1_DONE_IE | ||
7683 | * 0b0..Interrupt disabled | ||
7684 | * 0b1..Interrupt enabled | ||
7685 | */ | ||
7686 | #define CSI_CSICR18_DMA_FIELD1_DONE_IE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_DMA_FIELD1_DONE_IE_SHIFT)) & CSI_CSICR18_DMA_FIELD1_DONE_IE_MASK) | ||
7687 | #define CSI_CSICR18_LAST_DMA_REQ_SEL_MASK (0x100U) | ||
7688 | #define CSI_CSICR18_LAST_DMA_REQ_SEL_SHIFT (8U) | ||
7689 | /*! LAST_DMA_REQ_SEL | ||
7690 | * 0b0..fifo_full_level | ||
7691 | * 0b1..hburst_length | ||
7692 | */ | ||
7693 | #define CSI_CSICR18_LAST_DMA_REQ_SEL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_LAST_DMA_REQ_SEL_SHIFT)) & CSI_CSICR18_LAST_DMA_REQ_SEL_MASK) | ||
7694 | #define CSI_CSICR18_BASEADDR_CHANGE_ERROR_IE_MASK (0x200U) | ||
7695 | #define CSI_CSICR18_BASEADDR_CHANGE_ERROR_IE_SHIFT (9U) | ||
7696 | #define CSI_CSICR18_BASEADDR_CHANGE_ERROR_IE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_BASEADDR_CHANGE_ERROR_IE_SHIFT)) & CSI_CSICR18_BASEADDR_CHANGE_ERROR_IE_MASK) | ||
7697 | #define CSI_CSICR18_RGB888A_FORMAT_SEL_MASK (0x400U) | ||
7698 | #define CSI_CSICR18_RGB888A_FORMAT_SEL_SHIFT (10U) | ||
7699 | /*! RGB888A_FORMAT_SEL | ||
7700 | * 0b0..{8'h0, data[23:0]} | ||
7701 | * 0b1..{data[23:0], 8'h0} | ||
7702 | */ | ||
7703 | #define CSI_CSICR18_RGB888A_FORMAT_SEL(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_RGB888A_FORMAT_SEL_SHIFT)) & CSI_CSICR18_RGB888A_FORMAT_SEL_MASK) | ||
7704 | #define CSI_CSICR18_AHB_HPROT_MASK (0xF000U) | ||
7705 | #define CSI_CSICR18_AHB_HPROT_SHIFT (12U) | ||
7706 | #define CSI_CSICR18_AHB_HPROT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_AHB_HPROT_SHIFT)) & CSI_CSICR18_AHB_HPROT_MASK) | ||
7707 | #define CSI_CSICR18_CSI_LCDIF_BUFFER_LINES_MASK (0x30000U) | ||
7708 | #define CSI_CSICR18_CSI_LCDIF_BUFFER_LINES_SHIFT (16U) | ||
7709 | /*! CSI_LCDIF_BUFFER_LINES | ||
7710 | * 0b00..4 lines | ||
7711 | * 0b01..8 lines | ||
7712 | * 0b10..16 lines | ||
7713 | * 0b11..16 lines | ||
7714 | */ | ||
7715 | #define CSI_CSICR18_CSI_LCDIF_BUFFER_LINES(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_CSI_LCDIF_BUFFER_LINES_SHIFT)) & CSI_CSICR18_CSI_LCDIF_BUFFER_LINES_MASK) | ||
7716 | #define CSI_CSICR18_MASK_OPTION_MASK (0xC0000U) | ||
7717 | #define CSI_CSICR18_MASK_OPTION_SHIFT (18U) | ||
7718 | /*! MASK_OPTION | ||
7719 | * 0b00..Writing to memory from first completely frame, when using this option, the CSI_ENABLE should be 1. | ||
7720 | * 0b01..Writing to memory when CSI_ENABLE is 1. | ||
7721 | * 0b10..Writing to memory from second completely frame, when using this option, the CSI_ENABLE should be 1. | ||
7722 | * 0b11..Writing to memory when data comes in, not matter the CSI_ENABLE is 1 or 0. | ||
7723 | */ | ||
7724 | #define CSI_CSICR18_MASK_OPTION(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_MASK_OPTION_SHIFT)) & CSI_CSICR18_MASK_OPTION_MASK) | ||
7725 | #define CSI_CSICR18_MIPI_DOUBLE_CMPNT_MASK (0x100000U) | ||
7726 | #define CSI_CSICR18_MIPI_DOUBLE_CMPNT_SHIFT (20U) | ||
7727 | /*! MIPI_DOUBLE_CMPNT | ||
7728 | * 0b0..Single component per clock cycle (half pixel per clock cycle) | ||
7729 | * 0b1..Double component per clock cycle (a pixel per clock cycle) | ||
7730 | */ | ||
7731 | #define CSI_CSICR18_MIPI_DOUBLE_CMPNT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_MIPI_DOUBLE_CMPNT_SHIFT)) & CSI_CSICR18_MIPI_DOUBLE_CMPNT_MASK) | ||
7732 | #define CSI_CSICR18_MIPI_YU_SWAP_MASK (0x200000U) | ||
7733 | #define CSI_CSICR18_MIPI_YU_SWAP_SHIFT (21U) | ||
7734 | #define CSI_CSICR18_MIPI_YU_SWAP(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_MIPI_YU_SWAP_SHIFT)) & CSI_CSICR18_MIPI_YU_SWAP_MASK) | ||
7735 | #define CSI_CSICR18_DATA_FROM_MIPI_MASK (0x400000U) | ||
7736 | #define CSI_CSICR18_DATA_FROM_MIPI_SHIFT (22U) | ||
7737 | /*! DATA_FROM_MIPI | ||
7738 | * 0b0..Data from parallel sensor | ||
7739 | * 0b1..Data from MIPI | ||
7740 | */ | ||
7741 | #define CSI_CSICR18_DATA_FROM_MIPI(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_DATA_FROM_MIPI_SHIFT)) & CSI_CSICR18_DATA_FROM_MIPI_MASK) | ||
7742 | #define CSI_CSICR18_LINE_STRIDE_EN_MASK (0x1000000U) | ||
7743 | #define CSI_CSICR18_LINE_STRIDE_EN_SHIFT (24U) | ||
7744 | #define CSI_CSICR18_LINE_STRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_LINE_STRIDE_EN_SHIFT)) & CSI_CSICR18_LINE_STRIDE_EN_MASK) | ||
7745 | #define CSI_CSICR18_MIPI_DATA_FORMAT_MASK (0x7E000000U) | ||
7746 | #define CSI_CSICR18_MIPI_DATA_FORMAT_SHIFT (25U) | ||
7747 | #define CSI_CSICR18_MIPI_DATA_FORMAT(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_MIPI_DATA_FORMAT_SHIFT)) & CSI_CSICR18_MIPI_DATA_FORMAT_MASK) | ||
7748 | #define CSI_CSICR18_CSI_ENABLE_MASK (0x80000000U) | ||
7749 | #define CSI_CSICR18_CSI_ENABLE_SHIFT (31U) | ||
7750 | #define CSI_CSICR18_CSI_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << CSI_CSICR18_CSI_ENABLE_SHIFT)) & CSI_CSICR18_CSI_ENABLE_MASK) | ||
7751 | /*! @} */ | ||
7752 | |||
7753 | |||
7754 | /*! | ||
7755 | * @} | ||
7756 | */ /* end of group CSI_Register_Masks */ | ||
7757 | |||
7758 | |||
7759 | /* CSI - Peripheral instance base addresses */ | ||
7760 | /** Peripheral CSI base address */ | ||
7761 | #define CSI_BASE (0x32E20000u) | ||
7762 | /** Peripheral CSI base pointer */ | ||
7763 | #define CSI ((CSI_Type *)CSI_BASE) | ||
7764 | /** Array initializer of CSI peripheral base addresses */ | ||
7765 | #define CSI_BASE_ADDRS { CSI_BASE } | ||
7766 | /** Array initializer of CSI peripheral base pointers */ | ||
7767 | #define CSI_BASE_PTRS { CSI } | ||
7768 | |||
7769 | /*! | ||
7770 | * @} | ||
7771 | */ /* end of group CSI_Peripheral_Access_Layer */ | ||
7772 | |||
7773 | |||
7774 | /* ---------------------------------------------------------------------------- | ||
7775 | -- DDRC Peripheral Access Layer | ||
7776 | ---------------------------------------------------------------------------- */ | ||
7777 | |||
7778 | /*! | ||
7779 | * @addtogroup DDRC_Peripheral_Access_Layer DDRC Peripheral Access Layer | ||
7780 | * @{ | ||
7781 | */ | ||
7782 | |||
7783 | /** DDRC - Register Layout Typedef */ | ||
7784 | typedef struct { | ||
7785 | __IO uint32_t MSTR; /**< Master Register0, offset: 0x0 */ | ||
7786 | __I uint32_t STAT; /**< Operating Mode Status Register, offset: 0x4 */ | ||
7787 | __IO uint32_t MSTR1; /**< Operating Mode Status Register, offset: 0x8 */ | ||
7788 | __IO uint32_t MRCTRL3; /**< Operating Mode Status Register, offset: 0xC */ | ||
7789 | __IO uint32_t MRCTRL0; /**< Mode Register Read/Write Control Register 0., offset: 0x10 */ | ||
7790 | __IO uint32_t MRCTRL1; /**< Mode Register Read/Write Control Register 1, offset: 0x14 */ | ||
7791 | __I uint32_t MRSTAT; /**< Mode Register Read/Write Status Register, offset: 0x18 */ | ||
7792 | __IO uint32_t MRCTRL2; /**< Mode Register Read/Write Control Register 2, offset: 0x1C */ | ||
7793 | __IO uint32_t DERATEEN; /**< Temperature Derate Enable Register, offset: 0x20 */ | ||
7794 | __IO uint32_t DERATEINT; /**< Temperature Derate Interval Register, offset: 0x24 */ | ||
7795 | uint8_t RESERVED_0[8]; | ||
7796 | __IO uint32_t PWRCTL; /**< Low Power Control Register, offset: 0x30 */ | ||
7797 | __IO uint32_t PWRTMG; /**< Low Power Timing Register, offset: 0x34 */ | ||
7798 | __IO uint32_t HWLPCTL; /**< Hardware Low Power Control Register, offset: 0x38 */ | ||
7799 | uint8_t RESERVED_1[20]; | ||
7800 | __IO uint32_t RFSHCTL0; /**< Refresh Control Register 0, offset: 0x50 */ | ||
7801 | __IO uint32_t RFSHCTL1; /**< Refresh Control Register 1, offset: 0x54 */ | ||
7802 | uint8_t RESERVED_2[8]; | ||
7803 | __IO uint32_t RFSHCTL3; /**< Refresh Control Register 3, offset: 0x60 */ | ||
7804 | __IO uint32_t RFSHTMG; /**< Refresh Timing Register, offset: 0x64 */ | ||
7805 | uint8_t RESERVED_3[104]; | ||
7806 | __IO uint32_t INIT0; /**< SDRAM Initialization Register 0, offset: 0xD0 */ | ||
7807 | __IO uint32_t INIT1; /**< SDRAM Initialization Register 1, offset: 0xD4 */ | ||
7808 | __IO uint32_t INIT2; /**< SDRAM Initialization Register 2, offset: 0xD8 */ | ||
7809 | __IO uint32_t INIT3; /**< SDRAM Initialization Register 3, offset: 0xDC */ | ||
7810 | __IO uint32_t INIT4; /**< SDRAM Initialization Register 4, offset: 0xE0 */ | ||
7811 | __IO uint32_t INIT5; /**< SDRAM Initialization Register 5, offset: 0xE4 */ | ||
7812 | __IO uint32_t INIT6; /**< SDRAM Initialization Register 6, offset: 0xE8 */ | ||
7813 | __IO uint32_t INIT7; /**< SDRAM Initialization Register 7, offset: 0xEC */ | ||
7814 | __IO uint32_t DIMMCTL; /**< DIMM Control Register, offset: 0xF0 */ | ||
7815 | __IO uint32_t RANKCTL; /**< Rank Control Register, offset: 0xF4 */ | ||
7816 | uint8_t RESERVED_4[8]; | ||
7817 | __IO uint32_t DRAMTMG0; /**< SDRAM Timing Register 0, offset: 0x100 */ | ||
7818 | __IO uint32_t DRAMTMG1; /**< SDRAM Timing Register 1, offset: 0x104 */ | ||
7819 | __IO uint32_t DRAMTMG2; /**< SDRAM Timing Register 2, offset: 0x108 */ | ||
7820 | __IO uint32_t DRAMTMG3; /**< SDRAM Timing Register 3, offset: 0x10C */ | ||
7821 | __IO uint32_t DRAMTMG4; /**< SDRAM Timing Register 4, offset: 0x110 */ | ||
7822 | __IO uint32_t DRAMTMG5; /**< SDRAM Timing Register 5, offset: 0x114 */ | ||
7823 | __IO uint32_t DRAMTMG6; /**< SDRAM Timing Register 6, offset: 0x118 */ | ||
7824 | __IO uint32_t DRAMTMG7; /**< SDRAM Timing Register 7, offset: 0x11C */ | ||
7825 | __IO uint32_t DRAMTMG8; /**< SDRAM Timing Register 8, offset: 0x120 */ | ||
7826 | __IO uint32_t DRAMTMG9; /**< SDRAM Timing Register 9, offset: 0x124 */ | ||
7827 | __IO uint32_t DRAMTMG10; /**< SDRAM Timing Register 10, offset: 0x128 */ | ||
7828 | __IO uint32_t DRAMTMG11; /**< SDRAM Timing Register 11, offset: 0x12C */ | ||
7829 | __IO uint32_t DRAMTMG12; /**< SDRAM Timing Register 12, offset: 0x130 */ | ||
7830 | __IO uint32_t DRAMTMG13; /**< SDRAM Timing Register 13, offset: 0x134 */ | ||
7831 | __IO uint32_t DRAMTMG14; /**< SDRAM Timing Register 14, offset: 0x138 */ | ||
7832 | __IO uint32_t DRAMTMG15; /**< SDRAM Timing Register 15, offset: 0x13C */ | ||
7833 | uint8_t RESERVED_5[64]; | ||
7834 | __IO uint32_t ZQCTL0; /**< ZQ Control Register 0, offset: 0x180 */ | ||
7835 | __IO uint32_t ZQCTL1; /**< ZQ Control Register 1, offset: 0x184 */ | ||
7836 | __IO uint32_t ZQCTL2; /**< ZQ Control Register 2, offset: 0x188 */ | ||
7837 | __I uint32_t ZQSTAT; /**< ZQ Status Register, offset: 0x18C */ | ||
7838 | __IO uint32_t DFITMG0; /**< DFI Timing Register 0, offset: 0x190 */ | ||
7839 | __IO uint32_t DFITMG1; /**< DFI Timing Register 1, offset: 0x194 */ | ||
7840 | __IO uint32_t DFILPCFG0; /**< DFI Low Power Configuration Register 0, offset: 0x198 */ | ||
7841 | __IO uint32_t DFILPCFG1; /**< DFI Low Power Configuration Register 1, offset: 0x19C */ | ||
7842 | __IO uint32_t DFIUPD0; /**< DFI Update Register 0, offset: 0x1A0 */ | ||
7843 | __IO uint32_t DFIUPD1; /**< DFI Update Register 1, offset: 0x1A4 */ | ||
7844 | __IO uint32_t DFIUPD2; /**< DFI Update Register 2, offset: 0x1A8 */ | ||
7845 | uint8_t RESERVED_6[4]; | ||
7846 | __IO uint32_t DFIMISC; /**< DFI Miscellaneous Control Register, offset: 0x1B0 */ | ||
7847 | __IO uint32_t DFITMG2; /**< DFI Timing Register 2, offset: 0x1B4 */ | ||
7848 | __IO uint32_t DFITMG3; /**< DFI Timing Register 3, offset: 0x1B8 */ | ||
7849 | __I uint32_t DFISTAT; /**< DFI Status Register, offset: 0x1BC */ | ||
7850 | __IO uint32_t DBICTL; /**< DM/DBI Control Register, offset: 0x1C0 */ | ||
7851 | uint8_t RESERVED_7[60]; | ||
7852 | __IO uint32_t ADDRMAP0; /**< Address Map Register 0, offset: 0x200 */ | ||
7853 | __IO uint32_t ADDRMAP1; /**< Address Map Register 1, offset: 0x204 */ | ||
7854 | __IO uint32_t ADDRMAP2; /**< Address Map Register 2, offset: 0x208 */ | ||
7855 | __IO uint32_t ADDRMAP3; /**< Address Map Register 3, offset: 0x20C */ | ||
7856 | __IO uint32_t ADDRMAP4; /**< Address Map Register 4, offset: 0x210 */ | ||
7857 | __IO uint32_t ADDRMAP5; /**< Address Map Register 5, offset: 0x214 */ | ||
7858 | __IO uint32_t ADDRMAP6; /**< Address Map Register 6, offset: 0x218 */ | ||
7859 | __IO uint32_t ADDRMAP7; /**< Address Map Register 7, offset: 0x21C */ | ||
7860 | __IO uint32_t ADDRMAP8; /**< Address Map Register 8, offset: 0x220 */ | ||
7861 | __IO uint32_t ADDRMAP9; /**< Address Map Register 9, offset: 0x224 */ | ||
7862 | __IO uint32_t ADDRMAP10; /**< Address Map Register 10, offset: 0x228 */ | ||
7863 | __IO uint32_t ADDRMAP11; /**< Address Map Register 11, offset: 0x22C */ | ||
7864 | uint8_t RESERVED_8[16]; | ||
7865 | __IO uint32_t ODTCFG; /**< ODT Configuration Register, offset: 0x240 */ | ||
7866 | __IO uint32_t ODTMAP; /**< ODT/Rank Map Register, offset: 0x244 */ | ||
7867 | uint8_t RESERVED_9[8]; | ||
7868 | __IO uint32_t SCHED; /**< Scheduler Control Register, offset: 0x250 */ | ||
7869 | __IO uint32_t SCHED1; /**< Scheduler Control Register 1, offset: 0x254 */ | ||
7870 | uint8_t RESERVED_10[4]; | ||
7871 | __IO uint32_t PERFHPR1; /**< High Priority Read CAM Register 1, offset: 0x25C */ | ||
7872 | uint8_t RESERVED_11[4]; | ||
7873 | __IO uint32_t PERFLPR1; /**< Low Priority Read CAM Register 1, offset: 0x264 */ | ||
7874 | uint8_t RESERVED_12[4]; | ||
7875 | __IO uint32_t PERFWR1; /**< Write CAM Register 1, offset: 0x26C */ | ||
7876 | uint8_t RESERVED_13[144]; | ||
7877 | __IO uint32_t DBG0; /**< Debug Register 0, offset: 0x300 */ | ||
7878 | __IO uint32_t DBG1; /**< Debug Register 1, offset: 0x304 */ | ||
7879 | __I uint32_t DBGCAM; /**< CAM Debug Register, offset: 0x308 */ | ||
7880 | __IO uint32_t DBGCMD; /**< Command Debug Register, offset: 0x30C */ | ||
7881 | __I uint32_t DBGSTAT; /**< Status Debug Register, offset: 0x310 */ | ||
7882 | uint8_t RESERVED_14[12]; | ||
7883 | __IO uint32_t SWCTL; /**< Software Register Programming Control Enable, offset: 0x320 */ | ||
7884 | __I uint32_t SWSTAT; /**< Software Register Programming Control Status, offset: 0x324 */ | ||
7885 | uint8_t RESERVED_15[68]; | ||
7886 | __IO uint32_t POISONCFG; /**< AXI Poison Configuration Register., offset: 0x36C */ | ||
7887 | __I uint32_t POISONSTAT; /**< AXI Poison Status Register, offset: 0x370 */ | ||
7888 | uint8_t RESERVED_16[136]; | ||
7889 | __I uint32_t PSTAT; /**< Port Status Register, offset: 0x3FC */ | ||
7890 | __IO uint32_t PCCFG; /**< Port Common Configuration Register, offset: 0x400 */ | ||
7891 | __IO uint32_t PCFGR_0; /**< Port n Configuration Read Register, offset: 0x404 */ | ||
7892 | __IO uint32_t PCFGW_0; /**< Port n Configuration Write Register, offset: 0x408 */ | ||
7893 | uint8_t RESERVED_17[132]; | ||
7894 | __IO uint32_t PCTRL_0; /**< Port n Control Register, offset: 0x490 */ | ||
7895 | __IO uint32_t PCFGQOS0_0; /**< Port n Read QoS Configuration Register 0, offset: 0x494 */ | ||
7896 | __IO uint32_t PCFGQOS1_0; /**< Port n Read QoS Configuration Register 1, offset: 0x498 */ | ||
7897 | __IO uint32_t PCFGWQOS0_0; /**< Port n Write QoS Configuration Register 0, offset: 0x49C */ | ||
7898 | __IO uint32_t PCFGWQOS1_0; /**< Port n Write QoS Configuration Register 1, offset: 0x4A0 */ | ||
7899 | uint8_t RESERVED_18[7036]; | ||
7900 | __IO uint32_t DERATEEN_SHADOW; /**< [SHADOW] Temperature Derate Enable Register, offset: 0x2020 */ | ||
7901 | __IO uint32_t DERATEINT_SHADOW; /**< [SHADOW] Temperature Derate Interval Register, offset: 0x2024 */ | ||
7902 | uint8_t RESERVED_19[40]; | ||
7903 | __IO uint32_t RFSHCTL0_SHADOW; /**< [SHADOW] Refresh Control Register 0, offset: 0x2050 */ | ||
7904 | uint8_t RESERVED_20[16]; | ||
7905 | __IO uint32_t RFSHTMG_SHADOW; /**< [SHADOW] Refresh Timing Register, offset: 0x2064 */ | ||
7906 | uint8_t RESERVED_21[116]; | ||
7907 | __IO uint32_t INIT3_SHADOW; /**< [SHADOW] SDRAM Initialization Register 3, offset: 0x20DC */ | ||
7908 | __IO uint32_t INIT4_SHADOW; /**< [SHADOW] SDRAM Initialization Register 4, offset: 0x20E0 */ | ||
7909 | uint8_t RESERVED_22[4]; | ||
7910 | __IO uint32_t INIT6_SHADOW; /**< [SHADOW] SDRAM Initialization Register 6, offset: 0x20E8 */ | ||
7911 | __IO uint32_t INIT7_SHADOW; /**< [SHADOW] SDRAM Initialization Register 7, offset: 0x20EC */ | ||
7912 | uint8_t RESERVED_23[16]; | ||
7913 | __IO uint32_t DRAMTMG0_SHADOW; /**< [SHADOW] SDRAM Timing Register 0, offset: 0x2100 */ | ||
7914 | __IO uint32_t DRAMTMG1_SHADOW; /**< [SHADOW] SDRAM Timing Register 1, offset: 0x2104 */ | ||
7915 | __IO uint32_t DRAMTMG2_SHADOW; /**< [SHADOW] SDRAM Timing Register 2, offset: 0x2108 */ | ||
7916 | __IO uint32_t DRAMTMG3_SHADOW; /**< [SHADOW] SDRAM Timing Register 3, offset: 0x210C */ | ||
7917 | __IO uint32_t DRAMTMG4_SHADOW; /**< [SHADOW] SDRAM Timing Register 4, offset: 0x2110 */ | ||
7918 | __IO uint32_t DRAMTMG5_SHADOW; /**< [SHADOW] SDRAM Timing Register 5, offset: 0x2114 */ | ||
7919 | __IO uint32_t DRAMTMG6_SHADOW; /**< [SHADOW] SDRAM Timing Register 6, offset: 0x2118 */ | ||
7920 | __IO uint32_t DRAMTMG7_SHADOW; /**< [SHADOW] SDRAM Timing Register 7, offset: 0x211C */ | ||
7921 | __IO uint32_t DRAMTMG8_SHADOW; /**< [SHADOW] SDRAM Timing Register 8, offset: 0x2120 */ | ||
7922 | __IO uint32_t DRAMTMG9_SHADOW; /**< [SHADOW] SDRAM Timing Register 9, offset: 0x2124 */ | ||
7923 | __IO uint32_t DRAMTMG10_SHADOW; /**< [SHADOW] SDRAM Timing Register 10, offset: 0x2128 */ | ||
7924 | __IO uint32_t DRAMTMG11_SHADOW; /**< [SHADOW] SDRAM Timing Register 11, offset: 0x212C */ | ||
7925 | __IO uint32_t DRAMTMG12_SHADOW; /**< [SHADOW] SDRAM Timing Register 12, offset: 0x2130 */ | ||
7926 | __IO uint32_t DRAMTMG13_SHADOW; /**< [SHADOW] SDRAM Timing Register 13, offset: 0x2134 */ | ||
7927 | __IO uint32_t DRAMTMG14_SHADOW; /**< [SHADOW] SDRAM Timing Register 14, offset: 0x2138 */ | ||
7928 | __IO uint32_t DRAMTMG15_SHADOW; /**< [SHADOW] SDRAM Timing Register 15, offset: 0x213C */ | ||
7929 | uint8_t RESERVED_24[64]; | ||
7930 | __IO uint32_t ZQCTL0_SHADOW; /**< [SHADOW] ZQ Control Register 0, offset: 0x2180 */ | ||
7931 | uint8_t RESERVED_25[12]; | ||
7932 | __IO uint32_t DFITMG0_SHADOW; /**< [SHADOW] DFI Timing Register 0, offset: 0x2190 */ | ||
7933 | __IO uint32_t DFITMG1_SHADOW; /**< [SHADOW] DFI Timing Register 1, offset: 0x2194 */ | ||
7934 | uint8_t RESERVED_26[28]; | ||
7935 | __IO uint32_t DFITMG2_SHADOW; /**< [SHADOW] DFI Timing Register 2, offset: 0x21B4 */ | ||
7936 | __IO uint32_t DFITMG3_SHADOW; /**< [SHADOW] DFI Timing Register 3, offset: 0x21B8 */ | ||
7937 | uint8_t RESERVED_27[132]; | ||
7938 | __IO uint32_t ODTCFG_SHADOW; /**< [SHADOW] ODT Configuration Register, offset: 0x2240 */ | ||
7939 | } DDRC_Type; | ||
7940 | |||
7941 | /* ---------------------------------------------------------------------------- | ||
7942 | -- DDRC Register Masks | ||
7943 | ---------------------------------------------------------------------------- */ | ||
7944 | |||
7945 | /*! | ||
7946 | * @addtogroup DDRC_Register_Masks DDRC Register Masks | ||
7947 | * @{ | ||
7948 | */ | ||
7949 | |||
7950 | /*! @name MSTR - Master Register0 */ | ||
7951 | /*! @{ */ | ||
7952 | #define DDRC_MSTR_ddr3_MASK (0x1U) | ||
7953 | #define DDRC_MSTR_ddr3_SHIFT (0U) | ||
7954 | #define DDRC_MSTR_ddr3(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_ddr3_SHIFT)) & DDRC_MSTR_ddr3_MASK) | ||
7955 | #define DDRC_MSTR_lpddr2_MASK (0x4U) | ||
7956 | #define DDRC_MSTR_lpddr2_SHIFT (2U) | ||
7957 | #define DDRC_MSTR_lpddr2(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_lpddr2_SHIFT)) & DDRC_MSTR_lpddr2_MASK) | ||
7958 | #define DDRC_MSTR_lpddr3_MASK (0x8U) | ||
7959 | #define DDRC_MSTR_lpddr3_SHIFT (3U) | ||
7960 | #define DDRC_MSTR_lpddr3(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_lpddr3_SHIFT)) & DDRC_MSTR_lpddr3_MASK) | ||
7961 | #define DDRC_MSTR_ddr4_MASK (0x10U) | ||
7962 | #define DDRC_MSTR_ddr4_SHIFT (4U) | ||
7963 | #define DDRC_MSTR_ddr4(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_ddr4_SHIFT)) & DDRC_MSTR_ddr4_MASK) | ||
7964 | #define DDRC_MSTR_lpddr4_MASK (0x20U) | ||
7965 | #define DDRC_MSTR_lpddr4_SHIFT (5U) | ||
7966 | #define DDRC_MSTR_lpddr4(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_lpddr4_SHIFT)) & DDRC_MSTR_lpddr4_MASK) | ||
7967 | #define DDRC_MSTR_burstchop_MASK (0x200U) | ||
7968 | #define DDRC_MSTR_burstchop_SHIFT (9U) | ||
7969 | #define DDRC_MSTR_burstchop(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_burstchop_SHIFT)) & DDRC_MSTR_burstchop_MASK) | ||
7970 | #define DDRC_MSTR_en_2t_timing_mode_MASK (0x400U) | ||
7971 | #define DDRC_MSTR_en_2t_timing_mode_SHIFT (10U) | ||
7972 | #define DDRC_MSTR_en_2t_timing_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_en_2t_timing_mode_SHIFT)) & DDRC_MSTR_en_2t_timing_mode_MASK) | ||
7973 | #define DDRC_MSTR_geardown_mode_MASK (0x800U) | ||
7974 | #define DDRC_MSTR_geardown_mode_SHIFT (11U) | ||
7975 | #define DDRC_MSTR_geardown_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_geardown_mode_SHIFT)) & DDRC_MSTR_geardown_mode_MASK) | ||
7976 | #define DDRC_MSTR_data_bus_width_MASK (0x3000U) | ||
7977 | #define DDRC_MSTR_data_bus_width_SHIFT (12U) | ||
7978 | #define DDRC_MSTR_data_bus_width(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_data_bus_width_SHIFT)) & DDRC_MSTR_data_bus_width_MASK) | ||
7979 | #define DDRC_MSTR_dll_off_mode_MASK (0x8000U) | ||
7980 | #define DDRC_MSTR_dll_off_mode_SHIFT (15U) | ||
7981 | #define DDRC_MSTR_dll_off_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_dll_off_mode_SHIFT)) & DDRC_MSTR_dll_off_mode_MASK) | ||
7982 | #define DDRC_MSTR_burst_rdwr_MASK (0xF0000U) | ||
7983 | #define DDRC_MSTR_burst_rdwr_SHIFT (16U) | ||
7984 | /*! burst_rdwr - SDRAM burst length used | ||
7985 | * 0b0001..Burst length of 2 (only supported for mDDR) | ||
7986 | * 0b0010..Burst length of 4 | ||
7987 | * 0b0100..Burst length of 8 | ||
7988 | * 0b1000..Burst length of 16 (only supported for mDDR, LPDDR2, and LPDDR4) | ||
7989 | */ | ||
7990 | #define DDRC_MSTR_burst_rdwr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_burst_rdwr_SHIFT)) & DDRC_MSTR_burst_rdwr_MASK) | ||
7991 | #define DDRC_MSTR_frequency_ratio_MASK (0x400000U) | ||
7992 | #define DDRC_MSTR_frequency_ratio_SHIFT (22U) | ||
7993 | /*! frequency_ratio - Selects the Frequency Ratio | ||
7994 | * 0b0..1:2 Mode | ||
7995 | * 0b1..1:1 Mode | ||
7996 | */ | ||
7997 | #define DDRC_MSTR_frequency_ratio(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_frequency_ratio_SHIFT)) & DDRC_MSTR_frequency_ratio_MASK) | ||
7998 | #define DDRC_MSTR_active_ranks_MASK (0x3000000U) | ||
7999 | #define DDRC_MSTR_active_ranks_SHIFT (24U) | ||
8000 | #define DDRC_MSTR_active_ranks(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_active_ranks_SHIFT)) & DDRC_MSTR_active_ranks_MASK) | ||
8001 | #define DDRC_MSTR_frequency_mode_MASK (0x20000000U) | ||
8002 | #define DDRC_MSTR_frequency_mode_SHIFT (29U) | ||
8003 | /*! frequency_mode - Choose which registers are used. | ||
8004 | * 0b0..Original Registers | ||
8005 | * 0b1..Shadow Registers | ||
8006 | */ | ||
8007 | #define DDRC_MSTR_frequency_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_frequency_mode_SHIFT)) & DDRC_MSTR_frequency_mode_MASK) | ||
8008 | #define DDRC_MSTR_device_config_MASK (0xC0000000U) | ||
8009 | #define DDRC_MSTR_device_config_SHIFT (30U) | ||
8010 | /*! device_config - Indicates the configuration of the device used in the system. | ||
8011 | * 0b00..x4 device | ||
8012 | * 0b01..x8 device | ||
8013 | * 0b10..x16 device | ||
8014 | * 0b11..x32 device | ||
8015 | */ | ||
8016 | #define DDRC_MSTR_device_config(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR_device_config_SHIFT)) & DDRC_MSTR_device_config_MASK) | ||
8017 | /*! @} */ | ||
8018 | |||
8019 | /*! @name STAT - Operating Mode Status Register */ | ||
8020 | /*! @{ */ | ||
8021 | #define DDRC_STAT_operating_mode_MASK (0x7U) | ||
8022 | #define DDRC_STAT_operating_mode_SHIFT (0U) | ||
8023 | #define DDRC_STAT_operating_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_STAT_operating_mode_SHIFT)) & DDRC_STAT_operating_mode_MASK) | ||
8024 | #define DDRC_STAT_selfref_type_MASK (0x30U) | ||
8025 | #define DDRC_STAT_selfref_type_SHIFT (4U) | ||
8026 | /*! selfref_type - Flags if Self Refresh (except LPDDR4) or SR-Powerdown (LPDDR4) is entered and if | ||
8027 | * it was under Automatic Self Refresh control only or not. | ||
8028 | * 0b00..SDRAM is not in Self Refresh (except LPDDR4) or SR-Powerdown (LPDDR4). If retry is enabled by | ||
8029 | * CRCPARCTRL1.crc_parity_retry_enable, this also indicates SRE command is still in parity error window or retry is | ||
8030 | * in-progress. | ||
8031 | * 0b11..SDRAM is in Self Refresh (except LPDDR4) or SR-Powerdown (LPDDR4), which was caused by Automatic Self | ||
8032 | * Refresh only. If retry is enabled, this guarantees SRE command is executed correctly without parity error. | ||
8033 | * 0b10..SDRAM is in Self Refresh (except LPDDR4) or SR-Powerdown (LPDDR4), which was not caused solely under | ||
8034 | * Automatic Self Refresh control. It could have been caused by Hardware Low Power Interface and/or Software | ||
8035 | * (reg_ddrc_selfref_sw). If retry is enabled, this guarantees SRE command is executed correctly without parity | ||
8036 | */ | ||
8037 | #define DDRC_STAT_selfref_type(x) (((uint32_t)(((uint32_t)(x)) << DDRC_STAT_selfref_type_SHIFT)) & DDRC_STAT_selfref_type_MASK) | ||
8038 | #define DDRC_STAT_selfref_state_MASK (0x300U) | ||
8039 | #define DDRC_STAT_selfref_state_SHIFT (8U) | ||
8040 | /*! selfref_state - Self refresh state. This indicates self refresh or self refresh power down state | ||
8041 | * for LPDDR4. This register is used for frequency change and MRR/MRW access during self refresh. | ||
8042 | * 0b00..SDRAM is not in Self Refresh. | ||
8043 | * 0b01..Self refresh 1 | ||
8044 | * 0b10..Self refresh power down | ||
8045 | * 0b11..Self refresh | ||
8046 | */ | ||
8047 | #define DDRC_STAT_selfref_state(x) (((uint32_t)(((uint32_t)(x)) << DDRC_STAT_selfref_state_SHIFT)) & DDRC_STAT_selfref_state_MASK) | ||
8048 | /*! @} */ | ||
8049 | |||
8050 | /*! @name MSTR1 - Operating Mode Status Register */ | ||
8051 | /*! @{ */ | ||
8052 | #define DDRC_MSTR1_rank_tmgreg_sel_MASK (0x3U) | ||
8053 | #define DDRC_MSTR1_rank_tmgreg_sel_SHIFT (0U) | ||
8054 | /*! rank_tmgreg_sel - rank_tmgreg_sel | ||
8055 | * 0b00..USE DRAMTMGx registers for the rank | ||
8056 | * 0b01..USE MRAMTMGx registers for the rank | ||
8057 | */ | ||
8058 | #define DDRC_MSTR1_rank_tmgreg_sel(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR1_rank_tmgreg_sel_SHIFT)) & DDRC_MSTR1_rank_tmgreg_sel_MASK) | ||
8059 | #define DDRC_MSTR1_alt_addrmap_en_MASK (0x10000U) | ||
8060 | #define DDRC_MSTR1_alt_addrmap_en_SHIFT (16U) | ||
8061 | /*! alt_addrmap_en - Enable Alternative Address Map | ||
8062 | * 0b0..Disable Alternative Address Map | ||
8063 | * 0b1..Enable Alternative Address Map | ||
8064 | */ | ||
8065 | #define DDRC_MSTR1_alt_addrmap_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MSTR1_alt_addrmap_en_SHIFT)) & DDRC_MSTR1_alt_addrmap_en_MASK) | ||
8066 | /*! @} */ | ||
8067 | |||
8068 | /*! @name MRCTRL3 - Operating Mode Status Register */ | ||
8069 | /*! @{ */ | ||
8070 | #define DDRC_MRCTRL3_mr_rank_sel_MASK (0x3U) | ||
8071 | #define DDRC_MRCTRL3_mr_rank_sel_SHIFT (0U) | ||
8072 | #define DDRC_MRCTRL3_mr_rank_sel(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL3_mr_rank_sel_SHIFT)) & DDRC_MRCTRL3_mr_rank_sel_MASK) | ||
8073 | /*! @} */ | ||
8074 | |||
8075 | /*! @name MRCTRL0 - Mode Register Read/Write Control Register 0. */ | ||
8076 | /*! @{ */ | ||
8077 | #define DDRC_MRCTRL0_mr_type_MASK (0x1U) | ||
8078 | #define DDRC_MRCTRL0_mr_type_SHIFT (0U) | ||
8079 | /*! mr_type - Indicates whether the mode register operation is read or write. Only used for LPDDR2/LPDDR3/LPDDR4/DDR4. | ||
8080 | * 0b0..Write | ||
8081 | * 0b1..Read | ||
8082 | */ | ||
8083 | #define DDRC_MRCTRL0_mr_type(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_mr_type_SHIFT)) & DDRC_MRCTRL0_mr_type_MASK) | ||
8084 | #define DDRC_MRCTRL0_mpr_en_MASK (0x2U) | ||
8085 | #define DDRC_MRCTRL0_mpr_en_SHIFT (1U) | ||
8086 | /*! mpr_en - Indicates whether the mode register operation is MRS or WR/RD for MPR (only supported for DDR4). | ||
8087 | * 0b0..MRS | ||
8088 | * 0b1..WR/RD for MPR | ||
8089 | */ | ||
8090 | #define DDRC_MRCTRL0_mpr_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_mpr_en_SHIFT)) & DDRC_MRCTRL0_mpr_en_MASK) | ||
8091 | #define DDRC_MRCTRL0_pda_en_MASK (0x4U) | ||
8092 | #define DDRC_MRCTRL0_pda_en_SHIFT (2U) | ||
8093 | /*! pda_en - Indicates whether the mode register operation is MRS in PDA mode or not. Note that when | ||
8094 | * pba_mode=1, PBA access is initiated instead of PDA access. | ||
8095 | * 0b0..MRS | ||
8096 | * 0b1..MRS in Per DRAM Addressability | ||
8097 | */ | ||
8098 | #define DDRC_MRCTRL0_pda_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_pda_en_SHIFT)) & DDRC_MRCTRL0_pda_en_MASK) | ||
8099 | #define DDRC_MRCTRL0_sw_init_int_MASK (0x8U) | ||
8100 | #define DDRC_MRCTRL0_sw_init_int_SHIFT (3U) | ||
8101 | /*! sw_init_int - Indicates whether Software intervention is allowed via MRCTRL0/MRCTRL1 before | ||
8102 | * automatic SDRAM initialization routine or not. For DDR4, this bit can be used to initialize the | ||
8103 | * DDR4 RCD (MR7) before automatic SDRAM initialization. For LPDDR4, this bit can be used to | ||
8104 | * program additional mode registers before automatic SDRAM initialization if necessary. In LPDDR4 | ||
8105 | * independent channel mode, note that this must be programmed to both channels beforehand. Note that | ||
8106 | * this must be cleared to 0 after completing Software operation. Otherwise, SDRAM | ||
8107 | * initialization routine will not re-start. | ||
8108 | * 0b0..Software intervention is not allowed | ||
8109 | * 0b1..Software intervention is allowed | ||
8110 | */ | ||
8111 | #define DDRC_MRCTRL0_sw_init_int(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_sw_init_int_SHIFT)) & DDRC_MRCTRL0_sw_init_int_MASK) | ||
8112 | #define DDRC_MRCTRL0_mr_rank_MASK (0x30U) | ||
8113 | #define DDRC_MRCTRL0_mr_rank_SHIFT (4U) | ||
8114 | #define DDRC_MRCTRL0_mr_rank(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_mr_rank_SHIFT)) & DDRC_MRCTRL0_mr_rank_MASK) | ||
8115 | #define DDRC_MRCTRL0_mr_addr_MASK (0xF000U) | ||
8116 | #define DDRC_MRCTRL0_mr_addr_SHIFT (12U) | ||
8117 | /*! mr_addr - Address of the mode register that is to be written to. | ||
8118 | * 0b0000..MR0 | ||
8119 | * 0b0001..MR1 | ||
8120 | * 0b0010..MR2 | ||
8121 | * 0b0011..MR3 | ||
8122 | * 0b0100..MR4 | ||
8123 | * 0b0101..MR5 | ||
8124 | * 0b0110..MR6 | ||
8125 | * 0b0111..MR7 | ||
8126 | */ | ||
8127 | #define DDRC_MRCTRL0_mr_addr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_mr_addr_SHIFT)) & DDRC_MRCTRL0_mr_addr_MASK) | ||
8128 | #define DDRC_MRCTRL0_pba_mode_MASK (0x40000000U) | ||
8129 | #define DDRC_MRCTRL0_pba_mode_SHIFT (30U) | ||
8130 | #define DDRC_MRCTRL0_pba_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_pba_mode_SHIFT)) & DDRC_MRCTRL0_pba_mode_MASK) | ||
8131 | #define DDRC_MRCTRL0_mr_wr_MASK (0x80000000U) | ||
8132 | #define DDRC_MRCTRL0_mr_wr_SHIFT (31U) | ||
8133 | #define DDRC_MRCTRL0_mr_wr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL0_mr_wr_SHIFT)) & DDRC_MRCTRL0_mr_wr_MASK) | ||
8134 | /*! @} */ | ||
8135 | |||
8136 | /*! @name MRCTRL1 - Mode Register Read/Write Control Register 1 */ | ||
8137 | /*! @{ */ | ||
8138 | #define DDRC_MRCTRL1_mr_data_MASK (0x3FFFFU) | ||
8139 | #define DDRC_MRCTRL1_mr_data_SHIFT (0U) | ||
8140 | #define DDRC_MRCTRL1_mr_data(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL1_mr_data_SHIFT)) & DDRC_MRCTRL1_mr_data_MASK) | ||
8141 | /*! @} */ | ||
8142 | |||
8143 | /*! @name MRSTAT - Mode Register Read/Write Status Register */ | ||
8144 | /*! @{ */ | ||
8145 | #define DDRC_MRSTAT_mr_wr_busy_MASK (0x1U) | ||
8146 | #define DDRC_MRSTAT_mr_wr_busy_SHIFT (0U) | ||
8147 | /*! mr_wr_busy - The SoC core may initiate a MR write operation only if this signal is low. This | ||
8148 | * signal goes high in the clock after the DDRC accepts the MRW/MRR request. It goes low when the | ||
8149 | * MRW/MRR command is issued to the SDRAM. It is recommended not to perform MRW/MRR commands when | ||
8150 | * 'MRSTAT.mr_wr_busy' is high. | ||
8151 | * 0b0..Indicates that the SoC core can initiate a mode register write operation | ||
8152 | * 0b1..Indicates that mode register write operation is in progress | ||
8153 | */ | ||
8154 | #define DDRC_MRSTAT_mr_wr_busy(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRSTAT_mr_wr_busy_SHIFT)) & DDRC_MRSTAT_mr_wr_busy_MASK) | ||
8155 | #define DDRC_MRSTAT_pda_done_MASK (0x100U) | ||
8156 | #define DDRC_MRSTAT_pda_done_SHIFT (8U) | ||
8157 | /*! pda_done - The SoC core may initiate a MR write operation in PDA/PBA mode only if this signal is | ||
8158 | * low. This signal goes high when three consecutive MRS commands related to the PDA/PBA mode | ||
8159 | * are issued to the SDRAM. This signal goes low when MRCTRL0.pda_en becomes 0. Therefore, it is | ||
8160 | * recommended to write MRCTRL0.pda_en to 0 after this signal goes high in order to prepare to | ||
8161 | * perform PDA operation next time | ||
8162 | * 0b0..Indicates that mode register write operation related to PDA/PBA is in progress or has not started yet. | ||
8163 | * 0b1..Indicates that mode register write operation related to PDA/PBA has competed. | ||
8164 | */ | ||
8165 | #define DDRC_MRSTAT_pda_done(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRSTAT_pda_done_SHIFT)) & DDRC_MRSTAT_pda_done_MASK) | ||
8166 | /*! @} */ | ||
8167 | |||
8168 | /*! @name MRCTRL2 - Mode Register Read/Write Control Register 2 */ | ||
8169 | /*! @{ */ | ||
8170 | #define DDRC_MRCTRL2_mr_device_sel_MASK (0xFFFFFFFFU) | ||
8171 | #define DDRC_MRCTRL2_mr_device_sel_SHIFT (0U) | ||
8172 | #define DDRC_MRCTRL2_mr_device_sel(x) (((uint32_t)(((uint32_t)(x)) << DDRC_MRCTRL2_mr_device_sel_SHIFT)) & DDRC_MRCTRL2_mr_device_sel_MASK) | ||
8173 | /*! @} */ | ||
8174 | |||
8175 | /*! @name DERATEEN - Temperature Derate Enable Register */ | ||
8176 | /*! @{ */ | ||
8177 | #define DDRC_DERATEEN_derate_enable_MASK (0x1U) | ||
8178 | #define DDRC_DERATEEN_derate_enable_SHIFT (0U) | ||
8179 | /*! derate_enable - Enables derating. Present only in designs configured to support | ||
8180 | * LPDDR2/LPDDR3/LPDDR4. This field must be set to '0' for non-LPDDR2/LPDDR3/LPDDR4 mode. | ||
8181 | * 0b0..Timing parameter derating is disabled | ||
8182 | * 0b1..Timing parameter derating is enabled using MR4 read value. | ||
8183 | */ | ||
8184 | #define DDRC_DERATEEN_derate_enable(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DERATEEN_derate_enable_SHIFT)) & DDRC_DERATEEN_derate_enable_MASK) | ||
8185 | #define DDRC_DERATEEN_derate_value_MASK (0x2U) | ||
8186 | #define DDRC_DERATEEN_derate_value_SHIFT (1U) | ||
8187 | /*! derate_value - Derate value. Present only in designs configured to support LPDDR2/LPDDR3/LPDDR4 | ||
8188 | * Set to 0 for all LPDDR2 speed grades as derating value of +1.875 ns is less than a | ||
8189 | * core_ddrc_core_clk period. For LPDDR3/4, if the period of core_ddrc_core_clk is less than 1.875ns, this | ||
8190 | * register field should be set to 1; otherwise it should be set to 0. | ||
8191 | * 0b0..Derating uses +1 | ||
8192 | * 0b1..Derating uses +2 | ||
8193 | */ | ||
8194 | #define DDRC_DERATEEN_derate_value(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DERATEEN_derate_value_SHIFT)) & DDRC_DERATEEN_derate_value_MASK) | ||
8195 | #define DDRC_DERATEEN_derate_byte_MASK (0xF0U) | ||
8196 | #define DDRC_DERATEEN_derate_byte_SHIFT (4U) | ||
8197 | #define DDRC_DERATEEN_derate_byte(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DERATEEN_derate_byte_SHIFT)) & DDRC_DERATEEN_derate_byte_MASK) | ||
8198 | #define DDRC_DERATEEN_rc_derate_value_MASK (0x300U) | ||
8199 | #define DDRC_DERATEEN_rc_derate_value_SHIFT (8U) | ||
8200 | /*! rc_derate_value - Derate value of tRC for LPDDR4. Present only in designs configured to support | ||
8201 | * LPDDR4. The required number of cycles for derating can be determined by dividing 3.75ns by the | ||
8202 | * core_ddrc_core_clk period, and rounding up the next integer. | ||
8203 | * 0b00..Derating uses +1 | ||
8204 | * 0b01..Derating uses +2 | ||
8205 | * 0b10..Derating uses +3 | ||
8206 | * 0b11..Derating uses +4 | ||
8207 | */ | ||
8208 | #define DDRC_DERATEEN_rc_derate_value(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DERATEEN_rc_derate_value_SHIFT)) & DDRC_DERATEEN_rc_derate_value_MASK) | ||
8209 | /*! @} */ | ||
8210 | |||
8211 | /*! @name DERATEINT - Temperature Derate Interval Register */ | ||
8212 | /*! @{ */ | ||
8213 | #define DDRC_DERATEINT_mr4_read_interval_MASK (0xFFFFFFFFU) | ||
8214 | #define DDRC_DERATEINT_mr4_read_interval_SHIFT (0U) | ||
8215 | #define DDRC_DERATEINT_mr4_read_interval(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DERATEINT_mr4_read_interval_SHIFT)) & DDRC_DERATEINT_mr4_read_interval_MASK) | ||
8216 | /*! @} */ | ||
8217 | |||
8218 | /*! @name PWRCTL - Low Power Control Register */ | ||
8219 | /*! @{ */ | ||
8220 | #define DDRC_PWRCTL_selfref_en_MASK (0x1U) | ||
8221 | #define DDRC_PWRCTL_selfref_en_SHIFT (0U) | ||
8222 | #define DDRC_PWRCTL_selfref_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_selfref_en_SHIFT)) & DDRC_PWRCTL_selfref_en_MASK) | ||
8223 | #define DDRC_PWRCTL_powerdown_en_MASK (0x2U) | ||
8224 | #define DDRC_PWRCTL_powerdown_en_SHIFT (1U) | ||
8225 | #define DDRC_PWRCTL_powerdown_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_powerdown_en_SHIFT)) & DDRC_PWRCTL_powerdown_en_MASK) | ||
8226 | #define DDRC_PWRCTL_deeppowerdown_en_MASK (0x4U) | ||
8227 | #define DDRC_PWRCTL_deeppowerdown_en_SHIFT (2U) | ||
8228 | #define DDRC_PWRCTL_deeppowerdown_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_deeppowerdown_en_SHIFT)) & DDRC_PWRCTL_deeppowerdown_en_MASK) | ||
8229 | #define DDRC_PWRCTL_en_dfi_dram_clk_disable_MASK (0x8U) | ||
8230 | #define DDRC_PWRCTL_en_dfi_dram_clk_disable_SHIFT (3U) | ||
8231 | #define DDRC_PWRCTL_en_dfi_dram_clk_disable(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_en_dfi_dram_clk_disable_SHIFT)) & DDRC_PWRCTL_en_dfi_dram_clk_disable_MASK) | ||
8232 | #define DDRC_PWRCTL_mpsm_en_MASK (0x10U) | ||
8233 | #define DDRC_PWRCTL_mpsm_en_SHIFT (4U) | ||
8234 | #define DDRC_PWRCTL_mpsm_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_mpsm_en_SHIFT)) & DDRC_PWRCTL_mpsm_en_MASK) | ||
8235 | #define DDRC_PWRCTL_selfref_sw_MASK (0x20U) | ||
8236 | #define DDRC_PWRCTL_selfref_sw_SHIFT (5U) | ||
8237 | /*! selfref_sw - A value of 1 to this register causes system to move to Self Refresh state | ||
8238 | * immediately, as long as it is not in INIT or DPD/MPSM operating_mode. This is referred to as Software | ||
8239 | * Entry/Exit to Self Refresh. | ||
8240 | * 0b0..Software Exit from Self Refresh | ||
8241 | * 0b1..Software Entry to Self Refresh | ||
8242 | */ | ||
8243 | #define DDRC_PWRCTL_selfref_sw(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_selfref_sw_SHIFT)) & DDRC_PWRCTL_selfref_sw_MASK) | ||
8244 | #define DDRC_PWRCTL_stay_in_selfref_MASK (0x40U) | ||
8245 | #define DDRC_PWRCTL_stay_in_selfref_SHIFT (6U) | ||
8246 | /*! stay_in_selfref - Self refresh state is an intermediate state to enter to Self refresh power | ||
8247 | * down state or exit Self refresh power down state for LPDDR4. This register controls transition | ||
8248 | * from the Self refresh state. - 1 - Prohibit transition from Self refresh state - 0 - Allow | ||
8249 | * transition from Self refresh state | ||
8250 | * 0b0.. | ||
8251 | * 0b1.. | ||
8252 | */ | ||
8253 | #define DDRC_PWRCTL_stay_in_selfref(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRCTL_stay_in_selfref_SHIFT)) & DDRC_PWRCTL_stay_in_selfref_MASK) | ||
8254 | /*! @} */ | ||
8255 | |||
8256 | /*! @name PWRTMG - Low Power Timing Register */ | ||
8257 | /*! @{ */ | ||
8258 | #define DDRC_PWRTMG_powerdown_to_x32_MASK (0x1FU) | ||
8259 | #define DDRC_PWRTMG_powerdown_to_x32_SHIFT (0U) | ||
8260 | #define DDRC_PWRTMG_powerdown_to_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRTMG_powerdown_to_x32_SHIFT)) & DDRC_PWRTMG_powerdown_to_x32_MASK) | ||
8261 | #define DDRC_PWRTMG_t_dpd_x4096_MASK (0xFF00U) | ||
8262 | #define DDRC_PWRTMG_t_dpd_x4096_SHIFT (8U) | ||
8263 | #define DDRC_PWRTMG_t_dpd_x4096(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRTMG_t_dpd_x4096_SHIFT)) & DDRC_PWRTMG_t_dpd_x4096_MASK) | ||
8264 | #define DDRC_PWRTMG_selfref_to_x32_MASK (0xFF0000U) | ||
8265 | #define DDRC_PWRTMG_selfref_to_x32_SHIFT (16U) | ||
8266 | #define DDRC_PWRTMG_selfref_to_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PWRTMG_selfref_to_x32_SHIFT)) & DDRC_PWRTMG_selfref_to_x32_MASK) | ||
8267 | /*! @} */ | ||
8268 | |||
8269 | /*! @name HWLPCTL - Hardware Low Power Control Register */ | ||
8270 | /*! @{ */ | ||
8271 | #define DDRC_HWLPCTL_hw_lp_en_MASK (0x1U) | ||
8272 | #define DDRC_HWLPCTL_hw_lp_en_SHIFT (0U) | ||
8273 | #define DDRC_HWLPCTL_hw_lp_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_HWLPCTL_hw_lp_en_SHIFT)) & DDRC_HWLPCTL_hw_lp_en_MASK) | ||
8274 | #define DDRC_HWLPCTL_hw_lp_exit_idle_en_MASK (0x2U) | ||
8275 | #define DDRC_HWLPCTL_hw_lp_exit_idle_en_SHIFT (1U) | ||
8276 | #define DDRC_HWLPCTL_hw_lp_exit_idle_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_HWLPCTL_hw_lp_exit_idle_en_SHIFT)) & DDRC_HWLPCTL_hw_lp_exit_idle_en_MASK) | ||
8277 | #define DDRC_HWLPCTL_hw_lp_idle_x32_MASK (0xFFF0000U) | ||
8278 | #define DDRC_HWLPCTL_hw_lp_idle_x32_SHIFT (16U) | ||
8279 | #define DDRC_HWLPCTL_hw_lp_idle_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_HWLPCTL_hw_lp_idle_x32_SHIFT)) & DDRC_HWLPCTL_hw_lp_idle_x32_MASK) | ||
8280 | /*! @} */ | ||
8281 | |||
8282 | /*! @name RFSHCTL0 - Refresh Control Register 0 */ | ||
8283 | /*! @{ */ | ||
8284 | #define DDRC_RFSHCTL0_per_bank_refresh_MASK (0x4U) | ||
8285 | #define DDRC_RFSHCTL0_per_bank_refresh_SHIFT (2U) | ||
8286 | /*! per_bank_refresh - Per bank refresh allows traffic to flow to other banks. Per bank refresh is | ||
8287 | * not supported by all LPDDR2 devices but should be supported by all LPDDR3/LPDDR4 devices. | ||
8288 | * Present only in designs configured to support LPDDR2/LPDDR3/LPDDR4 | ||
8289 | * 0b1..Per bank refresh | ||
8290 | * 0b0..All bank refresh | ||
8291 | */ | ||
8292 | #define DDRC_RFSHCTL0_per_bank_refresh(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL0_per_bank_refresh_SHIFT)) & DDRC_RFSHCTL0_per_bank_refresh_MASK) | ||
8293 | #define DDRC_RFSHCTL0_refresh_burst_MASK (0x1F0U) | ||
8294 | #define DDRC_RFSHCTL0_refresh_burst_SHIFT (4U) | ||
8295 | #define DDRC_RFSHCTL0_refresh_burst(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL0_refresh_burst_SHIFT)) & DDRC_RFSHCTL0_refresh_burst_MASK) | ||
8296 | #define DDRC_RFSHCTL0_refresh_to_x32_MASK (0x1F000U) | ||
8297 | #define DDRC_RFSHCTL0_refresh_to_x32_SHIFT (12U) | ||
8298 | #define DDRC_RFSHCTL0_refresh_to_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL0_refresh_to_x32_SHIFT)) & DDRC_RFSHCTL0_refresh_to_x32_MASK) | ||
8299 | #define DDRC_RFSHCTL0_refresh_margin_MASK (0xF00000U) | ||
8300 | #define DDRC_RFSHCTL0_refresh_margin_SHIFT (20U) | ||
8301 | #define DDRC_RFSHCTL0_refresh_margin(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL0_refresh_margin_SHIFT)) & DDRC_RFSHCTL0_refresh_margin_MASK) | ||
8302 | /*! @} */ | ||
8303 | |||
8304 | /*! @name RFSHCTL1 - Refresh Control Register 1 */ | ||
8305 | /*! @{ */ | ||
8306 | #define DDRC_RFSHCTL1_refresh_timer0_start_value_x32_MASK (0xFFFU) | ||
8307 | #define DDRC_RFSHCTL1_refresh_timer0_start_value_x32_SHIFT (0U) | ||
8308 | #define DDRC_RFSHCTL1_refresh_timer0_start_value_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL1_refresh_timer0_start_value_x32_SHIFT)) & DDRC_RFSHCTL1_refresh_timer0_start_value_x32_MASK) | ||
8309 | #define DDRC_RFSHCTL1_refresh_timer1_start_value_x32_MASK (0xFFF0000U) | ||
8310 | #define DDRC_RFSHCTL1_refresh_timer1_start_value_x32_SHIFT (16U) | ||
8311 | #define DDRC_RFSHCTL1_refresh_timer1_start_value_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL1_refresh_timer1_start_value_x32_SHIFT)) & DDRC_RFSHCTL1_refresh_timer1_start_value_x32_MASK) | ||
8312 | /*! @} */ | ||
8313 | |||
8314 | /*! @name RFSHCTL3 - Refresh Control Register 3 */ | ||
8315 | /*! @{ */ | ||
8316 | #define DDRC_RFSHCTL3_dis_auto_refresh_MASK (0x1U) | ||
8317 | #define DDRC_RFSHCTL3_dis_auto_refresh_SHIFT (0U) | ||
8318 | #define DDRC_RFSHCTL3_dis_auto_refresh(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL3_dis_auto_refresh_SHIFT)) & DDRC_RFSHCTL3_dis_auto_refresh_MASK) | ||
8319 | #define DDRC_RFSHCTL3_refresh_update_level_MASK (0x2U) | ||
8320 | #define DDRC_RFSHCTL3_refresh_update_level_SHIFT (1U) | ||
8321 | #define DDRC_RFSHCTL3_refresh_update_level(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL3_refresh_update_level_SHIFT)) & DDRC_RFSHCTL3_refresh_update_level_MASK) | ||
8322 | #define DDRC_RFSHCTL3_refresh_mode_MASK (0x70U) | ||
8323 | #define DDRC_RFSHCTL3_refresh_mode_SHIFT (4U) | ||
8324 | #define DDRC_RFSHCTL3_refresh_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHCTL3_refresh_mode_SHIFT)) & DDRC_RFSHCTL3_refresh_mode_MASK) | ||
8325 | /*! @} */ | ||
8326 | |||
8327 | /*! @name RFSHTMG - Refresh Timing Register */ | ||
8328 | /*! @{ */ | ||
8329 | #define DDRC_RFSHTMG_t_rfc_min_MASK (0x3FFU) | ||
8330 | #define DDRC_RFSHTMG_t_rfc_min_SHIFT (0U) | ||
8331 | #define DDRC_RFSHTMG_t_rfc_min(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHTMG_t_rfc_min_SHIFT)) & DDRC_RFSHTMG_t_rfc_min_MASK) | ||
8332 | #define DDRC_RFSHTMG_lpddr3_trefbw_en_MASK (0x8000U) | ||
8333 | #define DDRC_RFSHTMG_lpddr3_trefbw_en_SHIFT (15U) | ||
8334 | #define DDRC_RFSHTMG_lpddr3_trefbw_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHTMG_lpddr3_trefbw_en_SHIFT)) & DDRC_RFSHTMG_lpddr3_trefbw_en_MASK) | ||
8335 | #define DDRC_RFSHTMG_t_rfc_nom_x32_MASK (0xFFF0000U) | ||
8336 | #define DDRC_RFSHTMG_t_rfc_nom_x32_SHIFT (16U) | ||
8337 | #define DDRC_RFSHTMG_t_rfc_nom_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RFSHTMG_t_rfc_nom_x32_SHIFT)) & DDRC_RFSHTMG_t_rfc_nom_x32_MASK) | ||
8338 | /*! @} */ | ||
8339 | |||
8340 | /*! @name INIT0 - SDRAM Initialization Register 0 */ | ||
8341 | /*! @{ */ | ||
8342 | #define DDRC_INIT0_pre_cke_x1024_MASK (0xFFFU) | ||
8343 | #define DDRC_INIT0_pre_cke_x1024_SHIFT (0U) | ||
8344 | #define DDRC_INIT0_pre_cke_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT0_pre_cke_x1024_SHIFT)) & DDRC_INIT0_pre_cke_x1024_MASK) | ||
8345 | #define DDRC_INIT0_post_cke_x1024_MASK (0x3FF0000U) | ||
8346 | #define DDRC_INIT0_post_cke_x1024_SHIFT (16U) | ||
8347 | #define DDRC_INIT0_post_cke_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT0_post_cke_x1024_SHIFT)) & DDRC_INIT0_post_cke_x1024_MASK) | ||
8348 | #define DDRC_INIT0_skip_dram_init_MASK (0xC0000000U) | ||
8349 | #define DDRC_INIT0_skip_dram_init_SHIFT (30U) | ||
8350 | /*! skip_dram_init - If lower bit is enabled the SDRAM initialization routine is skipped. The upper | ||
8351 | * bit decides what state the controller starts up in when reset is removed - 00 - SDRAM | ||
8352 | * Intialization routine is run after power-up - 01 - SDRAM Initialization routine is skipped after | ||
8353 | * power-up. Controller starts up in Normal Mode - 11 - SDRAM Initialization routine is skipped after | ||
8354 | * power-up. Controller starts up in Self-refresh Mode - 10 - SDRAM Initialization routine is run | ||
8355 | * after power-up. | ||
8356 | * 0b00..SDRAM Initialization routine is run after power-up | ||
8357 | * 0b01..SDRAM Initialization routine is skipped after power-up | ||
8358 | * 0b10..SDRAM Initialization routine is run after power-up | ||
8359 | * 0b11..SDRAM Initialization routine is skipped after power-up | ||
8360 | */ | ||
8361 | #define DDRC_INIT0_skip_dram_init(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT0_skip_dram_init_SHIFT)) & DDRC_INIT0_skip_dram_init_MASK) | ||
8362 | /*! @} */ | ||
8363 | |||
8364 | /*! @name INIT1 - SDRAM Initialization Register 1 */ | ||
8365 | /*! @{ */ | ||
8366 | #define DDRC_INIT1_pre_ocd_x32_MASK (0xFU) | ||
8367 | #define DDRC_INIT1_pre_ocd_x32_SHIFT (0U) | ||
8368 | #define DDRC_INIT1_pre_ocd_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT1_pre_ocd_x32_SHIFT)) & DDRC_INIT1_pre_ocd_x32_MASK) | ||
8369 | #define DDRC_INIT1_dram_rstn_x1024_MASK (0x1FF0000U) | ||
8370 | #define DDRC_INIT1_dram_rstn_x1024_SHIFT (16U) | ||
8371 | #define DDRC_INIT1_dram_rstn_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT1_dram_rstn_x1024_SHIFT)) & DDRC_INIT1_dram_rstn_x1024_MASK) | ||
8372 | /*! @} */ | ||
8373 | |||
8374 | /*! @name INIT2 - SDRAM Initialization Register 2 */ | ||
8375 | /*! @{ */ | ||
8376 | #define DDRC_INIT2_min_stable_clock_x1_MASK (0xFU) | ||
8377 | #define DDRC_INIT2_min_stable_clock_x1_SHIFT (0U) | ||
8378 | #define DDRC_INIT2_min_stable_clock_x1(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT2_min_stable_clock_x1_SHIFT)) & DDRC_INIT2_min_stable_clock_x1_MASK) | ||
8379 | #define DDRC_INIT2_idle_after_reset_x32_MASK (0xFF00U) | ||
8380 | #define DDRC_INIT2_idle_after_reset_x32_SHIFT (8U) | ||
8381 | #define DDRC_INIT2_idle_after_reset_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT2_idle_after_reset_x32_SHIFT)) & DDRC_INIT2_idle_after_reset_x32_MASK) | ||
8382 | /*! @} */ | ||
8383 | |||
8384 | /*! @name INIT3 - SDRAM Initialization Register 3 */ | ||
8385 | /*! @{ */ | ||
8386 | #define DDRC_INIT3_emr_MASK (0xFFFFU) | ||
8387 | #define DDRC_INIT3_emr_SHIFT (0U) | ||
8388 | #define DDRC_INIT3_emr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT3_emr_SHIFT)) & DDRC_INIT3_emr_MASK) | ||
8389 | #define DDRC_INIT3_mr_MASK (0xFFFF0000U) | ||
8390 | #define DDRC_INIT3_mr_SHIFT (16U) | ||
8391 | #define DDRC_INIT3_mr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT3_mr_SHIFT)) & DDRC_INIT3_mr_MASK) | ||
8392 | /*! @} */ | ||
8393 | |||
8394 | /*! @name INIT4 - SDRAM Initialization Register 4 */ | ||
8395 | /*! @{ */ | ||
8396 | #define DDRC_INIT4_emr3_MASK (0xFFFFU) | ||
8397 | #define DDRC_INIT4_emr3_SHIFT (0U) | ||
8398 | #define DDRC_INIT4_emr3(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT4_emr3_SHIFT)) & DDRC_INIT4_emr3_MASK) | ||
8399 | #define DDRC_INIT4_emr2_MASK (0xFFFF0000U) | ||
8400 | #define DDRC_INIT4_emr2_SHIFT (16U) | ||
8401 | #define DDRC_INIT4_emr2(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT4_emr2_SHIFT)) & DDRC_INIT4_emr2_MASK) | ||
8402 | /*! @} */ | ||
8403 | |||
8404 | /*! @name INIT5 - SDRAM Initialization Register 5 */ | ||
8405 | /*! @{ */ | ||
8406 | #define DDRC_INIT5_max_auto_init_x1024_MASK (0x3FFU) | ||
8407 | #define DDRC_INIT5_max_auto_init_x1024_SHIFT (0U) | ||
8408 | #define DDRC_INIT5_max_auto_init_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT5_max_auto_init_x1024_SHIFT)) & DDRC_INIT5_max_auto_init_x1024_MASK) | ||
8409 | #define DDRC_INIT5_dev_zqinit_x32_MASK (0xFF0000U) | ||
8410 | #define DDRC_INIT5_dev_zqinit_x32_SHIFT (16U) | ||
8411 | #define DDRC_INIT5_dev_zqinit_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT5_dev_zqinit_x32_SHIFT)) & DDRC_INIT5_dev_zqinit_x32_MASK) | ||
8412 | /*! @} */ | ||
8413 | |||
8414 | /*! @name INIT6 - SDRAM Initialization Register 6 */ | ||
8415 | /*! @{ */ | ||
8416 | #define DDRC_INIT6_mr5_MASK (0xFFFFU) | ||
8417 | #define DDRC_INIT6_mr5_SHIFT (0U) | ||
8418 | #define DDRC_INIT6_mr5(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT6_mr5_SHIFT)) & DDRC_INIT6_mr5_MASK) | ||
8419 | #define DDRC_INIT6_mr4_MASK (0xFFFF0000U) | ||
8420 | #define DDRC_INIT6_mr4_SHIFT (16U) | ||
8421 | #define DDRC_INIT6_mr4(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT6_mr4_SHIFT)) & DDRC_INIT6_mr4_MASK) | ||
8422 | /*! @} */ | ||
8423 | |||
8424 | /*! @name INIT7 - SDRAM Initialization Register 7 */ | ||
8425 | /*! @{ */ | ||
8426 | #define DDRC_INIT7_mr6_MASK (0xFFFF0000U) | ||
8427 | #define DDRC_INIT7_mr6_SHIFT (16U) | ||
8428 | #define DDRC_INIT7_mr6(x) (((uint32_t)(((uint32_t)(x)) << DDRC_INIT7_mr6_SHIFT)) & DDRC_INIT7_mr6_MASK) | ||
8429 | /*! @} */ | ||
8430 | |||
8431 | /*! @name DIMMCTL - DIMM Control Register */ | ||
8432 | /*! @{ */ | ||
8433 | #define DDRC_DIMMCTL_dimm_stagger_cs_en_MASK (0x1U) | ||
8434 | #define DDRC_DIMMCTL_dimm_stagger_cs_en_SHIFT (0U) | ||
8435 | /*! dimm_stagger_cs_en - Staggering enable for multi-rank accesses (for multi-rank UDIMM, RDIMM and | ||
8436 | * LRDIMM implementations only). This is not supported for mDDR, LPDDR2, LPDDR3 or LPDDR4 SDRAMs. | ||
8437 | * Even if this bit is set it does not take care of software driven MR commands (via | ||
8438 | * MRCTRL0/MRCTRL1), where software is responsible to send them to separate ranks as appropriate. | ||
8439 | * 0b0..Do not stagger accesses | ||
8440 | * 0b1..For(non-DDR4) Send all commands to even and odd ranks separately; For(DDR4) Send MRS commands to each ranks separately | ||
8441 | */ | ||
8442 | #define DDRC_DIMMCTL_dimm_stagger_cs_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_dimm_stagger_cs_en_SHIFT)) & DDRC_DIMMCTL_dimm_stagger_cs_en_MASK) | ||
8443 | #define DDRC_DIMMCTL_dimm_addr_mirr_en_MASK (0x2U) | ||
8444 | #define DDRC_DIMMCTL_dimm_addr_mirr_en_SHIFT (1U) | ||
8445 | /*! dimm_addr_mirr_en - Address Mirroring Enable (for multi-rank UDIMM implementations and | ||
8446 | * multi-rank DDR4 RDIMM/LRDIMM implementations). Some UDIMMs and DDR4 RDIMMs/LRDIMMs implement address | ||
8447 | * mirroring for odd ranks, which means that the following address, bank address and bank group | ||
8448 | * bits are swapped: (A3, A4), (A5, A6), (A7, A8), (BA0, BA1) and also (A11, A13), (BG0, BG1) for | ||
8449 | * the DDR4. Setting this bit ensures that, for mode register accesses during the automatic | ||
8450 | * initialization routine, these bits are swapped within the DDRC to compensate for this | ||
8451 | * UDIMM/RDIMM/LRDIMM swapping. In addition to the automatic initialization routine, in case of DDR4 | ||
8452 | * UDIMM/RDIMM/LRDIMM, they are swapped during the automatic MRS access to enable/disable of a particular | ||
8453 | * DDR4 feature. Note: This has no effect on the address of any other memory accesses, or of | ||
8454 | * software-driven mode register accesses. This is not supported for mDDR, LPDDR2, LPDDR3 or LPDDR4 | ||
8455 | * SDRAMs. Note: In case of x16 DDR4 DIMMs, BG1 output of MRS for the odd ranks is same as BG0 | ||
8456 | * because BG1 is invalid, hence dimm_dis_bg_mirroring register must be set to 1. | ||
8457 | * 0b0..Do not implement address mirroring | ||
8458 | * 0b1..For odd ranks, implement address mirroring for MRS commands to during initialization and for any | ||
8459 | * automatic DDR4 MRS commands (to be used if UDIMM/RDIMM/LRDIMM implements address mirroring) | ||
8460 | */ | ||
8461 | #define DDRC_DIMMCTL_dimm_addr_mirr_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_dimm_addr_mirr_en_SHIFT)) & DDRC_DIMMCTL_dimm_addr_mirr_en_MASK) | ||
8462 | #define DDRC_DIMMCTL_dimm_output_inv_en_MASK (0x4U) | ||
8463 | #define DDRC_DIMMCTL_dimm_output_inv_en_SHIFT (2U) | ||
8464 | /*! dimm_output_inv_en - Output Inversion Enable (for DDR4 RDIMM/LRDIMM implementations only). DDR4 | ||
8465 | * RDIMM/LRDIMM implements the Output Inversion feature by default, which means that the | ||
8466 | * following address, bank address and bank group bits of B-side DRAMs are inverted: A3-A9, A11, A13, | ||
8467 | * A17, BA0-BA1, BG0-BG1. Setting this bit ensures that, for mode register accesses generated by the | ||
8468 | * DDRC during the automatic initialization routine and enabling of a particular DDR4 feature, | ||
8469 | * separate A-side and B-side mode register accesses are generated. For B-side mode register | ||
8470 | * accesses, these bits are inverted within the DDRC to compensate for this RDIMM/LRDIMM inversion. It | ||
8471 | * is recommended to set this bit always, if using DDR4 RDIMMs/LRDIMMs. Note: This has no effect | ||
8472 | * on the address of any other memory accesses, or of software-driven mode register accesses. | ||
8473 | * 0b0..Do not implement output inversion for B-side DRAMs. | ||
8474 | * 0b1..Implement output inversion for B-side DRAMs. | ||
8475 | */ | ||
8476 | #define DDRC_DIMMCTL_dimm_output_inv_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_dimm_output_inv_en_SHIFT)) & DDRC_DIMMCTL_dimm_output_inv_en_MASK) | ||
8477 | #define DDRC_DIMMCTL_mrs_a17_en_MASK (0x8U) | ||
8478 | #define DDRC_DIMMCTL_mrs_a17_en_SHIFT (3U) | ||
8479 | /*! mrs_a17_en - Enable for A17 bit of MRS command. A17 bit of the mode register address is | ||
8480 | * specified as RFU (Reserved for Future Use) and must be programmed to 0 during MRS. In case where DRAMs | ||
8481 | * which do not have A17 are attached and the Output Inversion are enabled, this must be set to | ||
8482 | * 0, so that the calculation of CA parity will not include A17 bit. Note: This has no effect on | ||
8483 | * the address of any other memory accesses, or of software-driven mode register accesses. | ||
8484 | * 0b0..Disabled | ||
8485 | * 0b1..Enabled | ||
8486 | */ | ||
8487 | #define DDRC_DIMMCTL_mrs_a17_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_mrs_a17_en_SHIFT)) & DDRC_DIMMCTL_mrs_a17_en_MASK) | ||
8488 | #define DDRC_DIMMCTL_mrs_bg1_en_MASK (0x10U) | ||
8489 | #define DDRC_DIMMCTL_mrs_bg1_en_SHIFT (4U) | ||
8490 | /*! mrs_bg1_en - Enable for BG1 bit of MRS command. BG1 bit of the mode register address is | ||
8491 | * specified as RFU (Reserved for Future Use) and must be programmed to 0 during MRS. In case where DRAMs | ||
8492 | * which do not have BG1 are attached and both the CA parity and the Output Inversion are | ||
8493 | * enabled, this must be set to 0, so that the calculation of CA parity will not include BG1 bit. Note: | ||
8494 | * This has no effect on the address of any other memory accesses, or of software-driven mode | ||
8495 | * register accesses. If address mirroring is enabled, this is applied to BG1 of even ranks and BG0 | ||
8496 | * of odd ranks. | ||
8497 | * 0b0..Disabled | ||
8498 | * 0b1..Enabled | ||
8499 | */ | ||
8500 | #define DDRC_DIMMCTL_mrs_bg1_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_mrs_bg1_en_SHIFT)) & DDRC_DIMMCTL_mrs_bg1_en_MASK) | ||
8501 | #define DDRC_DIMMCTL_dimm_dis_bg_mirroring_MASK (0x20U) | ||
8502 | #define DDRC_DIMMCTL_dimm_dis_bg_mirroring_SHIFT (5U) | ||
8503 | /*! dimm_dis_bg_mirroring - Disabling Address Mirroring for BG bits. When this is set to 1, BG0 and | ||
8504 | * BG1 are NOT swapped even if Address Mirroring is enabled. This will be required for DDR4 DIMMs | ||
8505 | * with x16 devices. | ||
8506 | * 0b0..BG0 and BG1 are swapped if address mirroring is enabled. | ||
8507 | * 0b1..BG0 and BG1 are NOT swapped. | ||
8508 | */ | ||
8509 | #define DDRC_DIMMCTL_dimm_dis_bg_mirroring(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_dimm_dis_bg_mirroring_SHIFT)) & DDRC_DIMMCTL_dimm_dis_bg_mirroring_MASK) | ||
8510 | #define DDRC_DIMMCTL_lrdimm_bcom_cmd_prot_MASK (0x40U) | ||
8511 | #define DDRC_DIMMCTL_lrdimm_bcom_cmd_prot_SHIFT (6U) | ||
8512 | #define DDRC_DIMMCTL_lrdimm_bcom_cmd_prot(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DIMMCTL_lrdimm_bcom_cmd_prot_SHIFT)) & DDRC_DIMMCTL_lrdimm_bcom_cmd_prot_MASK) | ||
8513 | /*! @} */ | ||
8514 | |||
8515 | /*! @name RANKCTL - Rank Control Register */ | ||
8516 | /*! @{ */ | ||
8517 | #define DDRC_RANKCTL_max_rank_rd_MASK (0xFU) | ||
8518 | #define DDRC_RANKCTL_max_rank_rd_SHIFT (0U) | ||
8519 | #define DDRC_RANKCTL_max_rank_rd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RANKCTL_max_rank_rd_SHIFT)) & DDRC_RANKCTL_max_rank_rd_MASK) | ||
8520 | #define DDRC_RANKCTL_diff_rank_rd_gap_MASK (0xF0U) | ||
8521 | #define DDRC_RANKCTL_diff_rank_rd_gap_SHIFT (4U) | ||
8522 | #define DDRC_RANKCTL_diff_rank_rd_gap(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RANKCTL_diff_rank_rd_gap_SHIFT)) & DDRC_RANKCTL_diff_rank_rd_gap_MASK) | ||
8523 | #define DDRC_RANKCTL_diff_rank_wr_gap_MASK (0xF00U) | ||
8524 | #define DDRC_RANKCTL_diff_rank_wr_gap_SHIFT (8U) | ||
8525 | #define DDRC_RANKCTL_diff_rank_wr_gap(x) (((uint32_t)(((uint32_t)(x)) << DDRC_RANKCTL_diff_rank_wr_gap_SHIFT)) & DDRC_RANKCTL_diff_rank_wr_gap_MASK) | ||
8526 | /*! @} */ | ||
8527 | |||
8528 | /*! @name DRAMTMG0 - SDRAM Timing Register 0 */ | ||
8529 | /*! @{ */ | ||
8530 | #define DDRC_DRAMTMG0_t_ras_min_MASK (0x3FU) | ||
8531 | #define DDRC_DRAMTMG0_t_ras_min_SHIFT (0U) | ||
8532 | #define DDRC_DRAMTMG0_t_ras_min(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG0_t_ras_min_SHIFT)) & DDRC_DRAMTMG0_t_ras_min_MASK) | ||
8533 | #define DDRC_DRAMTMG0_t_ras_max_MASK (0x7F00U) | ||
8534 | #define DDRC_DRAMTMG0_t_ras_max_SHIFT (8U) | ||
8535 | #define DDRC_DRAMTMG0_t_ras_max(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG0_t_ras_max_SHIFT)) & DDRC_DRAMTMG0_t_ras_max_MASK) | ||
8536 | #define DDRC_DRAMTMG0_t_faw_MASK (0x3F0000U) | ||
8537 | #define DDRC_DRAMTMG0_t_faw_SHIFT (16U) | ||
8538 | #define DDRC_DRAMTMG0_t_faw(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG0_t_faw_SHIFT)) & DDRC_DRAMTMG0_t_faw_MASK) | ||
8539 | #define DDRC_DRAMTMG0_wr2pre_MASK (0x7F000000U) | ||
8540 | #define DDRC_DRAMTMG0_wr2pre_SHIFT (24U) | ||
8541 | #define DDRC_DRAMTMG0_wr2pre(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG0_wr2pre_SHIFT)) & DDRC_DRAMTMG0_wr2pre_MASK) | ||
8542 | /*! @} */ | ||
8543 | |||
8544 | /*! @name DRAMTMG1 - SDRAM Timing Register 1 */ | ||
8545 | /*! @{ */ | ||
8546 | #define DDRC_DRAMTMG1_t_rc_MASK (0x7FU) | ||
8547 | #define DDRC_DRAMTMG1_t_rc_SHIFT (0U) | ||
8548 | #define DDRC_DRAMTMG1_t_rc(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG1_t_rc_SHIFT)) & DDRC_DRAMTMG1_t_rc_MASK) | ||
8549 | #define DDRC_DRAMTMG1_rd2pre_MASK (0x3F00U) | ||
8550 | #define DDRC_DRAMTMG1_rd2pre_SHIFT (8U) | ||
8551 | #define DDRC_DRAMTMG1_rd2pre(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG1_rd2pre_SHIFT)) & DDRC_DRAMTMG1_rd2pre_MASK) | ||
8552 | #define DDRC_DRAMTMG1_t_xp_MASK (0x1F0000U) | ||
8553 | #define DDRC_DRAMTMG1_t_xp_SHIFT (16U) | ||
8554 | #define DDRC_DRAMTMG1_t_xp(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG1_t_xp_SHIFT)) & DDRC_DRAMTMG1_t_xp_MASK) | ||
8555 | /*! @} */ | ||
8556 | |||
8557 | /*! @name DRAMTMG2 - SDRAM Timing Register 2 */ | ||
8558 | /*! @{ */ | ||
8559 | #define DDRC_DRAMTMG2_wr2rd_MASK (0x3FU) | ||
8560 | #define DDRC_DRAMTMG2_wr2rd_SHIFT (0U) | ||
8561 | #define DDRC_DRAMTMG2_wr2rd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG2_wr2rd_SHIFT)) & DDRC_DRAMTMG2_wr2rd_MASK) | ||
8562 | #define DDRC_DRAMTMG2_rd2wr_MASK (0x3F00U) | ||
8563 | #define DDRC_DRAMTMG2_rd2wr_SHIFT (8U) | ||
8564 | #define DDRC_DRAMTMG2_rd2wr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG2_rd2wr_SHIFT)) & DDRC_DRAMTMG2_rd2wr_MASK) | ||
8565 | #define DDRC_DRAMTMG2_read_latency_MASK (0x3F0000U) | ||
8566 | #define DDRC_DRAMTMG2_read_latency_SHIFT (16U) | ||
8567 | #define DDRC_DRAMTMG2_read_latency(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG2_read_latency_SHIFT)) & DDRC_DRAMTMG2_read_latency_MASK) | ||
8568 | #define DDRC_DRAMTMG2_write_latency_MASK (0x3F000000U) | ||
8569 | #define DDRC_DRAMTMG2_write_latency_SHIFT (24U) | ||
8570 | #define DDRC_DRAMTMG2_write_latency(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG2_write_latency_SHIFT)) & DDRC_DRAMTMG2_write_latency_MASK) | ||
8571 | /*! @} */ | ||
8572 | |||
8573 | /*! @name DRAMTMG3 - SDRAM Timing Register 3 */ | ||
8574 | /*! @{ */ | ||
8575 | #define DDRC_DRAMTMG3_t_mod_MASK (0x3FFU) | ||
8576 | #define DDRC_DRAMTMG3_t_mod_SHIFT (0U) | ||
8577 | #define DDRC_DRAMTMG3_t_mod(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG3_t_mod_SHIFT)) & DDRC_DRAMTMG3_t_mod_MASK) | ||
8578 | #define DDRC_DRAMTMG3_t_mrd_MASK (0x3F000U) | ||
8579 | #define DDRC_DRAMTMG3_t_mrd_SHIFT (12U) | ||
8580 | #define DDRC_DRAMTMG3_t_mrd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG3_t_mrd_SHIFT)) & DDRC_DRAMTMG3_t_mrd_MASK) | ||
8581 | #define DDRC_DRAMTMG3_t_mrw_MASK (0x3FF00000U) | ||
8582 | #define DDRC_DRAMTMG3_t_mrw_SHIFT (20U) | ||
8583 | #define DDRC_DRAMTMG3_t_mrw(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG3_t_mrw_SHIFT)) & DDRC_DRAMTMG3_t_mrw_MASK) | ||
8584 | /*! @} */ | ||
8585 | |||
8586 | /*! @name DRAMTMG4 - SDRAM Timing Register 4 */ | ||
8587 | /*! @{ */ | ||
8588 | #define DDRC_DRAMTMG4_t_rp_MASK (0x1FU) | ||
8589 | #define DDRC_DRAMTMG4_t_rp_SHIFT (0U) | ||
8590 | #define DDRC_DRAMTMG4_t_rp(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG4_t_rp_SHIFT)) & DDRC_DRAMTMG4_t_rp_MASK) | ||
8591 | #define DDRC_DRAMTMG4_t_rrd_MASK (0xF00U) | ||
8592 | #define DDRC_DRAMTMG4_t_rrd_SHIFT (8U) | ||
8593 | #define DDRC_DRAMTMG4_t_rrd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG4_t_rrd_SHIFT)) & DDRC_DRAMTMG4_t_rrd_MASK) | ||
8594 | #define DDRC_DRAMTMG4_t_ccd_MASK (0xF0000U) | ||
8595 | #define DDRC_DRAMTMG4_t_ccd_SHIFT (16U) | ||
8596 | #define DDRC_DRAMTMG4_t_ccd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG4_t_ccd_SHIFT)) & DDRC_DRAMTMG4_t_ccd_MASK) | ||
8597 | #define DDRC_DRAMTMG4_t_rcd_MASK (0x1F000000U) | ||
8598 | #define DDRC_DRAMTMG4_t_rcd_SHIFT (24U) | ||
8599 | #define DDRC_DRAMTMG4_t_rcd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG4_t_rcd_SHIFT)) & DDRC_DRAMTMG4_t_rcd_MASK) | ||
8600 | /*! @} */ | ||
8601 | |||
8602 | /*! @name DRAMTMG5 - SDRAM Timing Register 5 */ | ||
8603 | /*! @{ */ | ||
8604 | #define DDRC_DRAMTMG5_t_cke_MASK (0x1FU) | ||
8605 | #define DDRC_DRAMTMG5_t_cke_SHIFT (0U) | ||
8606 | #define DDRC_DRAMTMG5_t_cke(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG5_t_cke_SHIFT)) & DDRC_DRAMTMG5_t_cke_MASK) | ||
8607 | #define DDRC_DRAMTMG5_t_ckesr_MASK (0x3F00U) | ||
8608 | #define DDRC_DRAMTMG5_t_ckesr_SHIFT (8U) | ||
8609 | #define DDRC_DRAMTMG5_t_ckesr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG5_t_ckesr_SHIFT)) & DDRC_DRAMTMG5_t_ckesr_MASK) | ||
8610 | #define DDRC_DRAMTMG5_t_cksre_MASK (0xF0000U) | ||
8611 | #define DDRC_DRAMTMG5_t_cksre_SHIFT (16U) | ||
8612 | #define DDRC_DRAMTMG5_t_cksre(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG5_t_cksre_SHIFT)) & DDRC_DRAMTMG5_t_cksre_MASK) | ||
8613 | #define DDRC_DRAMTMG5_t_cksrx_MASK (0xF000000U) | ||
8614 | #define DDRC_DRAMTMG5_t_cksrx_SHIFT (24U) | ||
8615 | #define DDRC_DRAMTMG5_t_cksrx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG5_t_cksrx_SHIFT)) & DDRC_DRAMTMG5_t_cksrx_MASK) | ||
8616 | /*! @} */ | ||
8617 | |||
8618 | /*! @name DRAMTMG6 - SDRAM Timing Register 6 */ | ||
8619 | /*! @{ */ | ||
8620 | #define DDRC_DRAMTMG6_t_ckcsx_MASK (0xFU) | ||
8621 | #define DDRC_DRAMTMG6_t_ckcsx_SHIFT (0U) | ||
8622 | #define DDRC_DRAMTMG6_t_ckcsx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG6_t_ckcsx_SHIFT)) & DDRC_DRAMTMG6_t_ckcsx_MASK) | ||
8623 | #define DDRC_DRAMTMG6_t_ckdpdx_MASK (0xF0000U) | ||
8624 | #define DDRC_DRAMTMG6_t_ckdpdx_SHIFT (16U) | ||
8625 | #define DDRC_DRAMTMG6_t_ckdpdx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG6_t_ckdpdx_SHIFT)) & DDRC_DRAMTMG6_t_ckdpdx_MASK) | ||
8626 | #define DDRC_DRAMTMG6_t_ckdpde_MASK (0xF000000U) | ||
8627 | #define DDRC_DRAMTMG6_t_ckdpde_SHIFT (24U) | ||
8628 | #define DDRC_DRAMTMG6_t_ckdpde(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG6_t_ckdpde_SHIFT)) & DDRC_DRAMTMG6_t_ckdpde_MASK) | ||
8629 | /*! @} */ | ||
8630 | |||
8631 | /*! @name DRAMTMG7 - SDRAM Timing Register 7 */ | ||
8632 | /*! @{ */ | ||
8633 | #define DDRC_DRAMTMG7_t_ckpdx_MASK (0xFU) | ||
8634 | #define DDRC_DRAMTMG7_t_ckpdx_SHIFT (0U) | ||
8635 | #define DDRC_DRAMTMG7_t_ckpdx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG7_t_ckpdx_SHIFT)) & DDRC_DRAMTMG7_t_ckpdx_MASK) | ||
8636 | #define DDRC_DRAMTMG7_t_ckpde_MASK (0xF00U) | ||
8637 | #define DDRC_DRAMTMG7_t_ckpde_SHIFT (8U) | ||
8638 | #define DDRC_DRAMTMG7_t_ckpde(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG7_t_ckpde_SHIFT)) & DDRC_DRAMTMG7_t_ckpde_MASK) | ||
8639 | /*! @} */ | ||
8640 | |||
8641 | /*! @name DRAMTMG8 - SDRAM Timing Register 8 */ | ||
8642 | /*! @{ */ | ||
8643 | #define DDRC_DRAMTMG8_t_xs_x32_MASK (0x7FU) | ||
8644 | #define DDRC_DRAMTMG8_t_xs_x32_SHIFT (0U) | ||
8645 | #define DDRC_DRAMTMG8_t_xs_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG8_t_xs_x32_SHIFT)) & DDRC_DRAMTMG8_t_xs_x32_MASK) | ||
8646 | #define DDRC_DRAMTMG8_t_xs_dll_x32_MASK (0x7F00U) | ||
8647 | #define DDRC_DRAMTMG8_t_xs_dll_x32_SHIFT (8U) | ||
8648 | #define DDRC_DRAMTMG8_t_xs_dll_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG8_t_xs_dll_x32_SHIFT)) & DDRC_DRAMTMG8_t_xs_dll_x32_MASK) | ||
8649 | #define DDRC_DRAMTMG8_t_xs_abort_x32_MASK (0x7F0000U) | ||
8650 | #define DDRC_DRAMTMG8_t_xs_abort_x32_SHIFT (16U) | ||
8651 | #define DDRC_DRAMTMG8_t_xs_abort_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG8_t_xs_abort_x32_SHIFT)) & DDRC_DRAMTMG8_t_xs_abort_x32_MASK) | ||
8652 | #define DDRC_DRAMTMG8_t_xs_fast_x32_MASK (0x7F000000U) | ||
8653 | #define DDRC_DRAMTMG8_t_xs_fast_x32_SHIFT (24U) | ||
8654 | #define DDRC_DRAMTMG8_t_xs_fast_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG8_t_xs_fast_x32_SHIFT)) & DDRC_DRAMTMG8_t_xs_fast_x32_MASK) | ||
8655 | /*! @} */ | ||
8656 | |||
8657 | /*! @name DRAMTMG9 - SDRAM Timing Register 9 */ | ||
8658 | /*! @{ */ | ||
8659 | #define DDRC_DRAMTMG9_wr2rd_s_MASK (0x3FU) | ||
8660 | #define DDRC_DRAMTMG9_wr2rd_s_SHIFT (0U) | ||
8661 | #define DDRC_DRAMTMG9_wr2rd_s(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG9_wr2rd_s_SHIFT)) & DDRC_DRAMTMG9_wr2rd_s_MASK) | ||
8662 | #define DDRC_DRAMTMG9_t_rrd_s_MASK (0xF00U) | ||
8663 | #define DDRC_DRAMTMG9_t_rrd_s_SHIFT (8U) | ||
8664 | #define DDRC_DRAMTMG9_t_rrd_s(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG9_t_rrd_s_SHIFT)) & DDRC_DRAMTMG9_t_rrd_s_MASK) | ||
8665 | #define DDRC_DRAMTMG9_t_ccd_s_MASK (0x70000U) | ||
8666 | #define DDRC_DRAMTMG9_t_ccd_s_SHIFT (16U) | ||
8667 | #define DDRC_DRAMTMG9_t_ccd_s(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG9_t_ccd_s_SHIFT)) & DDRC_DRAMTMG9_t_ccd_s_MASK) | ||
8668 | #define DDRC_DRAMTMG9_ddr4_wr_preamble_MASK (0x40000000U) | ||
8669 | #define DDRC_DRAMTMG9_ddr4_wr_preamble_SHIFT (30U) | ||
8670 | #define DDRC_DRAMTMG9_ddr4_wr_preamble(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG9_ddr4_wr_preamble_SHIFT)) & DDRC_DRAMTMG9_ddr4_wr_preamble_MASK) | ||
8671 | /*! @} */ | ||
8672 | |||
8673 | /*! @name DRAMTMG10 - SDRAM Timing Register 10 */ | ||
8674 | /*! @{ */ | ||
8675 | #define DDRC_DRAMTMG10_t_gear_hold_MASK (0x3U) | ||
8676 | #define DDRC_DRAMTMG10_t_gear_hold_SHIFT (0U) | ||
8677 | #define DDRC_DRAMTMG10_t_gear_hold(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG10_t_gear_hold_SHIFT)) & DDRC_DRAMTMG10_t_gear_hold_MASK) | ||
8678 | #define DDRC_DRAMTMG10_t_gear_setup_MASK (0xCU) | ||
8679 | #define DDRC_DRAMTMG10_t_gear_setup_SHIFT (2U) | ||
8680 | #define DDRC_DRAMTMG10_t_gear_setup(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG10_t_gear_setup_SHIFT)) & DDRC_DRAMTMG10_t_gear_setup_MASK) | ||
8681 | #define DDRC_DRAMTMG10_t_cmd_gear_MASK (0x1F00U) | ||
8682 | #define DDRC_DRAMTMG10_t_cmd_gear_SHIFT (8U) | ||
8683 | #define DDRC_DRAMTMG10_t_cmd_gear(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG10_t_cmd_gear_SHIFT)) & DDRC_DRAMTMG10_t_cmd_gear_MASK) | ||
8684 | #define DDRC_DRAMTMG10_t_sync_gear_MASK (0x1F0000U) | ||
8685 | #define DDRC_DRAMTMG10_t_sync_gear_SHIFT (16U) | ||
8686 | #define DDRC_DRAMTMG10_t_sync_gear(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG10_t_sync_gear_SHIFT)) & DDRC_DRAMTMG10_t_sync_gear_MASK) | ||
8687 | /*! @} */ | ||
8688 | |||
8689 | /*! @name DRAMTMG11 - SDRAM Timing Register 11 */ | ||
8690 | /*! @{ */ | ||
8691 | #define DDRC_DRAMTMG11_t_ckmpe_MASK (0x1FU) | ||
8692 | #define DDRC_DRAMTMG11_t_ckmpe_SHIFT (0U) | ||
8693 | #define DDRC_DRAMTMG11_t_ckmpe(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG11_t_ckmpe_SHIFT)) & DDRC_DRAMTMG11_t_ckmpe_MASK) | ||
8694 | #define DDRC_DRAMTMG11_t_mpx_s_MASK (0x300U) | ||
8695 | #define DDRC_DRAMTMG11_t_mpx_s_SHIFT (8U) | ||
8696 | #define DDRC_DRAMTMG11_t_mpx_s(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG11_t_mpx_s_SHIFT)) & DDRC_DRAMTMG11_t_mpx_s_MASK) | ||
8697 | #define DDRC_DRAMTMG11_t_mpx_lh_MASK (0x1F0000U) | ||
8698 | #define DDRC_DRAMTMG11_t_mpx_lh_SHIFT (16U) | ||
8699 | #define DDRC_DRAMTMG11_t_mpx_lh(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG11_t_mpx_lh_SHIFT)) & DDRC_DRAMTMG11_t_mpx_lh_MASK) | ||
8700 | #define DDRC_DRAMTMG11_post_mpsm_gap_x32_MASK (0x7F000000U) | ||
8701 | #define DDRC_DRAMTMG11_post_mpsm_gap_x32_SHIFT (24U) | ||
8702 | #define DDRC_DRAMTMG11_post_mpsm_gap_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG11_post_mpsm_gap_x32_SHIFT)) & DDRC_DRAMTMG11_post_mpsm_gap_x32_MASK) | ||
8703 | /*! @} */ | ||
8704 | |||
8705 | /*! @name DRAMTMG12 - SDRAM Timing Register 12 */ | ||
8706 | /*! @{ */ | ||
8707 | #define DDRC_DRAMTMG12_t_mrd_pda_MASK (0x1FU) | ||
8708 | #define DDRC_DRAMTMG12_t_mrd_pda_SHIFT (0U) | ||
8709 | #define DDRC_DRAMTMG12_t_mrd_pda(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG12_t_mrd_pda_SHIFT)) & DDRC_DRAMTMG12_t_mrd_pda_MASK) | ||
8710 | #define DDRC_DRAMTMG12_t_ckehcmd_MASK (0xF00U) | ||
8711 | #define DDRC_DRAMTMG12_t_ckehcmd_SHIFT (8U) | ||
8712 | #define DDRC_DRAMTMG12_t_ckehcmd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG12_t_ckehcmd_SHIFT)) & DDRC_DRAMTMG12_t_ckehcmd_MASK) | ||
8713 | #define DDRC_DRAMTMG12_t_cmdcke_MASK (0x30000U) | ||
8714 | #define DDRC_DRAMTMG12_t_cmdcke_SHIFT (16U) | ||
8715 | #define DDRC_DRAMTMG12_t_cmdcke(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG12_t_cmdcke_SHIFT)) & DDRC_DRAMTMG12_t_cmdcke_MASK) | ||
8716 | /*! @} */ | ||
8717 | |||
8718 | /*! @name DRAMTMG13 - SDRAM Timing Register 13 */ | ||
8719 | /*! @{ */ | ||
8720 | #define DDRC_DRAMTMG13_t_ppd_MASK (0x7U) | ||
8721 | #define DDRC_DRAMTMG13_t_ppd_SHIFT (0U) | ||
8722 | #define DDRC_DRAMTMG13_t_ppd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG13_t_ppd_SHIFT)) & DDRC_DRAMTMG13_t_ppd_MASK) | ||
8723 | #define DDRC_DRAMTMG13_t_ccd_mw_MASK (0x3F0000U) | ||
8724 | #define DDRC_DRAMTMG13_t_ccd_mw_SHIFT (16U) | ||
8725 | #define DDRC_DRAMTMG13_t_ccd_mw(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG13_t_ccd_mw_SHIFT)) & DDRC_DRAMTMG13_t_ccd_mw_MASK) | ||
8726 | #define DDRC_DRAMTMG13_odtloff_MASK (0x7F000000U) | ||
8727 | #define DDRC_DRAMTMG13_odtloff_SHIFT (24U) | ||
8728 | #define DDRC_DRAMTMG13_odtloff(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG13_odtloff_SHIFT)) & DDRC_DRAMTMG13_odtloff_MASK) | ||
8729 | /*! @} */ | ||
8730 | |||
8731 | /*! @name DRAMTMG14 - SDRAM Timing Register 14 */ | ||
8732 | /*! @{ */ | ||
8733 | #define DDRC_DRAMTMG14_t_xsr_MASK (0xFFFU) | ||
8734 | #define DDRC_DRAMTMG14_t_xsr_SHIFT (0U) | ||
8735 | #define DDRC_DRAMTMG14_t_xsr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG14_t_xsr_SHIFT)) & DDRC_DRAMTMG14_t_xsr_MASK) | ||
8736 | /*! @} */ | ||
8737 | |||
8738 | /*! @name DRAMTMG15 - SDRAM Timing Register 15 */ | ||
8739 | /*! @{ */ | ||
8740 | #define DDRC_DRAMTMG15_t_stab_x32_MASK (0xFFU) | ||
8741 | #define DDRC_DRAMTMG15_t_stab_x32_SHIFT (0U) | ||
8742 | #define DDRC_DRAMTMG15_t_stab_x32(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG15_t_stab_x32_SHIFT)) & DDRC_DRAMTMG15_t_stab_x32_MASK) | ||
8743 | #define DDRC_DRAMTMG15_en_dfi_lp_t_stab_MASK (0x80000000U) | ||
8744 | #define DDRC_DRAMTMG15_en_dfi_lp_t_stab_SHIFT (31U) | ||
8745 | /*! en_dfi_lp_t_stab - Enable DFI tSTAB | ||
8746 | * 0b0..Disable using tSTAB when exiting DFI LP | ||
8747 | * 0b1..Enable using tSTAB when exiting DFI LP. Needs to be set when the PHY is stopping the clock during DFI LP to save maximum power. | ||
8748 | */ | ||
8749 | #define DDRC_DRAMTMG15_en_dfi_lp_t_stab(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DRAMTMG15_en_dfi_lp_t_stab_SHIFT)) & DDRC_DRAMTMG15_en_dfi_lp_t_stab_MASK) | ||
8750 | /*! @} */ | ||
8751 | |||
8752 | /*! @name ZQCTL0 - ZQ Control Register 0 */ | ||
8753 | /*! @{ */ | ||
8754 | #define DDRC_ZQCTL0_t_zq_short_nop_MASK (0x3FFU) | ||
8755 | #define DDRC_ZQCTL0_t_zq_short_nop_SHIFT (0U) | ||
8756 | #define DDRC_ZQCTL0_t_zq_short_nop(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_t_zq_short_nop_SHIFT)) & DDRC_ZQCTL0_t_zq_short_nop_MASK) | ||
8757 | #define DDRC_ZQCTL0_t_zq_long_nop_MASK (0x7FF0000U) | ||
8758 | #define DDRC_ZQCTL0_t_zq_long_nop_SHIFT (16U) | ||
8759 | #define DDRC_ZQCTL0_t_zq_long_nop(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_t_zq_long_nop_SHIFT)) & DDRC_ZQCTL0_t_zq_long_nop_MASK) | ||
8760 | #define DDRC_ZQCTL0_dis_mpsmx_zqcl_MASK (0x10000000U) | ||
8761 | #define DDRC_ZQCTL0_dis_mpsmx_zqcl_SHIFT (28U) | ||
8762 | /*! dis_mpsmx_zqcl - Do not issue ZQCL command at Maximum Power Save Mode exit if the DDRC_SHARED_AC | ||
8763 | * configuration parameter is set. Program it to 1'b1. The software can send ZQCS after exiting | ||
8764 | * MPSM mode. | ||
8765 | * 0b0..Enable issuing of ZQCL command at Maximum Power Saving Mode exit. Only applicable when run in DDR4 mode. | ||
8766 | * This is only present for designs supporting DDR4 devices. | ||
8767 | * 0b1..Disable issuing of ZQCL command at Maximum Power Saving Mode exit. Only applicable when run in DDR4 mode. | ||
8768 | */ | ||
8769 | #define DDRC_ZQCTL0_dis_mpsmx_zqcl(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_dis_mpsmx_zqcl_SHIFT)) & DDRC_ZQCTL0_dis_mpsmx_zqcl_MASK) | ||
8770 | #define DDRC_ZQCTL0_zq_resistor_shared_MASK (0x20000000U) | ||
8771 | #define DDRC_ZQCTL0_zq_resistor_shared_SHIFT (29U) | ||
8772 | /*! zq_resistor_shared - ZQ resistor sharing | ||
8773 | * 0b0..ZQ resistor is not shared. This is only present for designs supporting DDR3/DDR4 or LPDDR2/LPDDR3/LPDDR4 devices. | ||
8774 | * 0b1..Denotes that ZQ resistor is shared between ranks. Means ZQinit/ZQCL/ZQCS/MPC(ZQ calibration) commands are | ||
8775 | * sent to one rank at a time with tZQinit/tZQCL/tZQCS/tZQCAL/tZQLAT timing met between commands so that | ||
8776 | * commands to different ranks do not overlap. | ||
8777 | */ | ||
8778 | #define DDRC_ZQCTL0_zq_resistor_shared(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_zq_resistor_shared_SHIFT)) & DDRC_ZQCTL0_zq_resistor_shared_MASK) | ||
8779 | #define DDRC_ZQCTL0_dis_srx_zqcl_MASK (0x40000000U) | ||
8780 | #define DDRC_ZQCTL0_dis_srx_zqcl_SHIFT (30U) | ||
8781 | /*! dis_srx_zqcl - Disable ZQCL/MPC | ||
8782 | * 0b0..Enable issuing of ZQCL/MPC(ZQ calibration) command at Self-Refresh/SR-Powerdown exit. Only applicable | ||
8783 | * when run in DDR3 or DDR4 or LPDDR2 or LPDDR3 or LPDDR4 mode. This is only present for designs supporting | ||
8784 | * DDR3/DDR4 or LPDDR2/LPDDR3/LPDDR4 devices. | ||
8785 | * 0b1..Disable issuing of ZQCL/MPC(ZQ calibration) command at Self-Refresh/SR-Powerdown exit. Only applicable | ||
8786 | * when run in DDR3 or DDR4 or LPDDR2 or LPDDR3 or LPDDR4 mode. | ||
8787 | */ | ||
8788 | #define DDRC_ZQCTL0_dis_srx_zqcl(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_dis_srx_zqcl_SHIFT)) & DDRC_ZQCTL0_dis_srx_zqcl_MASK) | ||
8789 | #define DDRC_ZQCTL0_dis_auto_zq_MASK (0x80000000U) | ||
8790 | #define DDRC_ZQCTL0_dis_auto_zq_SHIFT (31U) | ||
8791 | /*! dis_auto_zq - Disable Auto ZQCS/MPC | ||
8792 | * 0b0..Internally generate ZQCS/MPC(ZQ calibration) commands based on ZQCTL1.t_zq_short_interval_x1024. | ||
8793 | * 0b1..Disable DDRC generation of ZQCS/MPC(ZQ calibration) command. Register DBGCMD.zq_calib_short can be used | ||
8794 | * instead to issue ZQ calibration request from APB module. | ||
8795 | */ | ||
8796 | #define DDRC_ZQCTL0_dis_auto_zq(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL0_dis_auto_zq_SHIFT)) & DDRC_ZQCTL0_dis_auto_zq_MASK) | ||
8797 | /*! @} */ | ||
8798 | |||
8799 | /*! @name ZQCTL1 - ZQ Control Register 1 */ | ||
8800 | /*! @{ */ | ||
8801 | #define DDRC_ZQCTL1_t_zq_short_interval_x1024_MASK (0xFFFFFU) | ||
8802 | #define DDRC_ZQCTL1_t_zq_short_interval_x1024_SHIFT (0U) | ||
8803 | #define DDRC_ZQCTL1_t_zq_short_interval_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL1_t_zq_short_interval_x1024_SHIFT)) & DDRC_ZQCTL1_t_zq_short_interval_x1024_MASK) | ||
8804 | #define DDRC_ZQCTL1_t_zq_reset_nop_MASK (0x3FF00000U) | ||
8805 | #define DDRC_ZQCTL1_t_zq_reset_nop_SHIFT (20U) | ||
8806 | #define DDRC_ZQCTL1_t_zq_reset_nop(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL1_t_zq_reset_nop_SHIFT)) & DDRC_ZQCTL1_t_zq_reset_nop_MASK) | ||
8807 | /*! @} */ | ||
8808 | |||
8809 | /*! @name ZQCTL2 - ZQ Control Register 2 */ | ||
8810 | /*! @{ */ | ||
8811 | #define DDRC_ZQCTL2_zq_reset_MASK (0x1U) | ||
8812 | #define DDRC_ZQCTL2_zq_reset_SHIFT (0U) | ||
8813 | #define DDRC_ZQCTL2_zq_reset(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQCTL2_zq_reset_SHIFT)) & DDRC_ZQCTL2_zq_reset_MASK) | ||
8814 | /*! @} */ | ||
8815 | |||
8816 | /*! @name ZQSTAT - ZQ Status Register */ | ||
8817 | /*! @{ */ | ||
8818 | #define DDRC_ZQSTAT_zq_reset_busy_MASK (0x1U) | ||
8819 | #define DDRC_ZQSTAT_zq_reset_busy_SHIFT (0U) | ||
8820 | /*! zq_reset_busy - SoC core may initiate a ZQ Reset operation only if this signal is low. This | ||
8821 | * signal goes high in the clock after the DDRC accepts the ZQ Reset request. It goes low when the ZQ | ||
8822 | * Reset command is issued to the SDRAM and the associated NOP period is over. It is recommended | ||
8823 | * not to perform ZQ Reset commands when this signal is high. | ||
8824 | * 0b0..Indicates that the SoC core can initiate a ZQ Reset operation | ||
8825 | * 0b1..Indicates that ZQ Reset operation is in progress | ||
8826 | */ | ||
8827 | #define DDRC_ZQSTAT_zq_reset_busy(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ZQSTAT_zq_reset_busy_SHIFT)) & DDRC_ZQSTAT_zq_reset_busy_MASK) | ||
8828 | /*! @} */ | ||
8829 | |||
8830 | /*! @name DFITMG0 - DFI Timing Register 0 */ | ||
8831 | /*! @{ */ | ||
8832 | #define DDRC_DFITMG0_dfi_tphy_wrlat_MASK (0x3FU) | ||
8833 | #define DDRC_DFITMG0_dfi_tphy_wrlat_SHIFT (0U) | ||
8834 | #define DDRC_DFITMG0_dfi_tphy_wrlat(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_tphy_wrlat_SHIFT)) & DDRC_DFITMG0_dfi_tphy_wrlat_MASK) | ||
8835 | #define DDRC_DFITMG0_dfi_tphy_wrdata_MASK (0x3F00U) | ||
8836 | #define DDRC_DFITMG0_dfi_tphy_wrdata_SHIFT (8U) | ||
8837 | #define DDRC_DFITMG0_dfi_tphy_wrdata(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_tphy_wrdata_SHIFT)) & DDRC_DFITMG0_dfi_tphy_wrdata_MASK) | ||
8838 | #define DDRC_DFITMG0_dfi_wrdata_use_sdr_MASK (0x8000U) | ||
8839 | #define DDRC_DFITMG0_dfi_wrdata_use_sdr_SHIFT (15U) | ||
8840 | #define DDRC_DFITMG0_dfi_wrdata_use_sdr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_wrdata_use_sdr_SHIFT)) & DDRC_DFITMG0_dfi_wrdata_use_sdr_MASK) | ||
8841 | #define DDRC_DFITMG0_dfi_t_rddata_en_MASK (0x7F0000U) | ||
8842 | #define DDRC_DFITMG0_dfi_t_rddata_en_SHIFT (16U) | ||
8843 | #define DDRC_DFITMG0_dfi_t_rddata_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_t_rddata_en_SHIFT)) & DDRC_DFITMG0_dfi_t_rddata_en_MASK) | ||
8844 | #define DDRC_DFITMG0_dfi_rddata_use_sdr_MASK (0x800000U) | ||
8845 | #define DDRC_DFITMG0_dfi_rddata_use_sdr_SHIFT (23U) | ||
8846 | #define DDRC_DFITMG0_dfi_rddata_use_sdr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_rddata_use_sdr_SHIFT)) & DDRC_DFITMG0_dfi_rddata_use_sdr_MASK) | ||
8847 | #define DDRC_DFITMG0_dfi_t_ctrl_delay_MASK (0x1F000000U) | ||
8848 | #define DDRC_DFITMG0_dfi_t_ctrl_delay_SHIFT (24U) | ||
8849 | #define DDRC_DFITMG0_dfi_t_ctrl_delay(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG0_dfi_t_ctrl_delay_SHIFT)) & DDRC_DFITMG0_dfi_t_ctrl_delay_MASK) | ||
8850 | /*! @} */ | ||
8851 | |||
8852 | /*! @name DFITMG1 - DFI Timing Register 1 */ | ||
8853 | /*! @{ */ | ||
8854 | #define DDRC_DFITMG1_dfi_t_dram_clk_enable_MASK (0x1FU) | ||
8855 | #define DDRC_DFITMG1_dfi_t_dram_clk_enable_SHIFT (0U) | ||
8856 | #define DDRC_DFITMG1_dfi_t_dram_clk_enable(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG1_dfi_t_dram_clk_enable_SHIFT)) & DDRC_DFITMG1_dfi_t_dram_clk_enable_MASK) | ||
8857 | #define DDRC_DFITMG1_dfi_t_dram_clk_disable_MASK (0x1F00U) | ||
8858 | #define DDRC_DFITMG1_dfi_t_dram_clk_disable_SHIFT (8U) | ||
8859 | #define DDRC_DFITMG1_dfi_t_dram_clk_disable(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG1_dfi_t_dram_clk_disable_SHIFT)) & DDRC_DFITMG1_dfi_t_dram_clk_disable_MASK) | ||
8860 | #define DDRC_DFITMG1_dfi_t_wrdata_delay_MASK (0x1F0000U) | ||
8861 | #define DDRC_DFITMG1_dfi_t_wrdata_delay_SHIFT (16U) | ||
8862 | #define DDRC_DFITMG1_dfi_t_wrdata_delay(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG1_dfi_t_wrdata_delay_SHIFT)) & DDRC_DFITMG1_dfi_t_wrdata_delay_MASK) | ||
8863 | #define DDRC_DFITMG1_dfi_t_parin_lat_MASK (0x3000000U) | ||
8864 | #define DDRC_DFITMG1_dfi_t_parin_lat_SHIFT (24U) | ||
8865 | #define DDRC_DFITMG1_dfi_t_parin_lat(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG1_dfi_t_parin_lat_SHIFT)) & DDRC_DFITMG1_dfi_t_parin_lat_MASK) | ||
8866 | #define DDRC_DFITMG1_dfi_t_cmd_lat_MASK (0xF0000000U) | ||
8867 | #define DDRC_DFITMG1_dfi_t_cmd_lat_SHIFT (28U) | ||
8868 | #define DDRC_DFITMG1_dfi_t_cmd_lat(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG1_dfi_t_cmd_lat_SHIFT)) & DDRC_DFITMG1_dfi_t_cmd_lat_MASK) | ||
8869 | /*! @} */ | ||
8870 | |||
8871 | /*! @name DFILPCFG0 - DFI Low Power Configuration Register 0 */ | ||
8872 | /*! @{ */ | ||
8873 | #define DDRC_DFILPCFG0_dfi_lp_en_pd_MASK (0x1U) | ||
8874 | #define DDRC_DFILPCFG0_dfi_lp_en_pd_SHIFT (0U) | ||
8875 | #define DDRC_DFILPCFG0_dfi_lp_en_pd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_en_pd_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_en_pd_MASK) | ||
8876 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_pd_MASK (0xF0U) | ||
8877 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_pd_SHIFT (4U) | ||
8878 | /*! dfi_lp_wakeup_pd - Value in DFI clock cycles to drive on dfi_lp_wakeup signal when Power Down | ||
8879 | * mode is entered. Determines the DFI's tlp_wakeup time: | ||
8880 | * 0b0000..16 cycles | ||
8881 | * 0b0001..32 cycles | ||
8882 | * 0b0010..64 cycles | ||
8883 | * 0b0011..128 cycles | ||
8884 | * 0b0100..256 cycles | ||
8885 | * 0b0101..512 cycles | ||
8886 | * 0b0110..1024 cycles | ||
8887 | * 0b0111..2048 cycles | ||
8888 | * 0b1000..4096 cycles | ||
8889 | * 0b1001..8192 cycles | ||
8890 | * 0b1010..16384 cycles | ||
8891 | * 0b1011..32768 cycles | ||
8892 | * 0b1100..65536 cycles | ||
8893 | * 0b1101..131072 cycles | ||
8894 | * 0b1110..262144 cycles | ||
8895 | * 0b1111..Unlimited cycles | ||
8896 | */ | ||
8897 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_pd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_wakeup_pd_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_wakeup_pd_MASK) | ||
8898 | #define DDRC_DFILPCFG0_dfi_lp_en_sr_MASK (0x100U) | ||
8899 | #define DDRC_DFILPCFG0_dfi_lp_en_sr_SHIFT (8U) | ||
8900 | /*! dfi_lp_en_sr - Enables DFI Low Power interface handshaking during Self Refresh Entry/Exit. - 0 - Disabled - 1 - Enabled | ||
8901 | * 0b0..Disabled | ||
8902 | * 0b1..Enabled | ||
8903 | */ | ||
8904 | #define DDRC_DFILPCFG0_dfi_lp_en_sr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_en_sr_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_en_sr_MASK) | ||
8905 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_sr_MASK (0xF000U) | ||
8906 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_sr_SHIFT (12U) | ||
8907 | /*! dfi_lp_wakeup_sr - Value in DFI clpck cycles to drive on dfi_lp_wakeup signal when Self Refresh | ||
8908 | * mode is entered. Determines the DFI's tlp_wakeup time: | ||
8909 | * 0b0000..16 cycles | ||
8910 | * 0b0001..32 cycles | ||
8911 | * 0b0010..64 cycles | ||
8912 | * 0b0011..128 cycles | ||
8913 | * 0b0100..256 cycles | ||
8914 | * 0b0101..512 cycles | ||
8915 | * 0b0110..1024 cycles | ||
8916 | * 0b0111..2048 cycles | ||
8917 | * 0b1000..4096 cycles | ||
8918 | * 0b1001..8192 cycles | ||
8919 | * 0b1010..16384 cycles | ||
8920 | * 0b1011..32768 cycles | ||
8921 | * 0b1100..65536 cycles | ||
8922 | * 0b1101..131072 cycles | ||
8923 | * 0b1110..262144 cycles | ||
8924 | * 0b1111..Unlimited cycles | ||
8925 | */ | ||
8926 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_sr(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_wakeup_sr_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_wakeup_sr_MASK) | ||
8927 | #define DDRC_DFILPCFG0_dfi_lp_en_dpd_MASK (0x10000U) | ||
8928 | #define DDRC_DFILPCFG0_dfi_lp_en_dpd_SHIFT (16U) | ||
8929 | #define DDRC_DFILPCFG0_dfi_lp_en_dpd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_en_dpd_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_en_dpd_MASK) | ||
8930 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_dpd_MASK (0xF00000U) | ||
8931 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_dpd_SHIFT (20U) | ||
8932 | /*! dfi_lp_wakeup_dpd - Value in DFI clock cycles to drive on dfi_lp_wakeup signal when Deep Power | ||
8933 | * Down mode is entered. Determines the DFI's tlp_wakeup time: This is only present for designs | ||
8934 | * supporting mDDR or LPDDR2/LPDDR3 devices. | ||
8935 | * 0b0000..16 cycles | ||
8936 | * 0b0001..32 cycles | ||
8937 | * 0b0010..64 cycles | ||
8938 | * 0b0011..128 cycles | ||
8939 | * 0b0100..256 cycles | ||
8940 | * 0b0101..512 cycles | ||
8941 | * 0b0110..1024 cycles | ||
8942 | * 0b0111..2048 cycles | ||
8943 | * 0b1000..4096 cycles | ||
8944 | * 0b1001..8192 cycles | ||
8945 | * 0b1010..16384 cycles | ||
8946 | * 0b1011..32768 cycles | ||
8947 | * 0b1100..65536 cycles | ||
8948 | * 0b1101..131072 cycles | ||
8949 | * 0b1110..262144 cycles | ||
8950 | * 0b1111..Unlimited cycles | ||
8951 | */ | ||
8952 | #define DDRC_DFILPCFG0_dfi_lp_wakeup_dpd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_lp_wakeup_dpd_SHIFT)) & DDRC_DFILPCFG0_dfi_lp_wakeup_dpd_MASK) | ||
8953 | #define DDRC_DFILPCFG0_dfi_tlp_resp_MASK (0x1F000000U) | ||
8954 | #define DDRC_DFILPCFG0_dfi_tlp_resp_SHIFT (24U) | ||
8955 | #define DDRC_DFILPCFG0_dfi_tlp_resp(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG0_dfi_tlp_resp_SHIFT)) & DDRC_DFILPCFG0_dfi_tlp_resp_MASK) | ||
8956 | /*! @} */ | ||
8957 | |||
8958 | /*! @name DFILPCFG1 - DFI Low Power Configuration Register 1 */ | ||
8959 | /*! @{ */ | ||
8960 | #define DDRC_DFILPCFG1_dfi_lp_en_mpsm_MASK (0x1U) | ||
8961 | #define DDRC_DFILPCFG1_dfi_lp_en_mpsm_SHIFT (0U) | ||
8962 | #define DDRC_DFILPCFG1_dfi_lp_en_mpsm(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG1_dfi_lp_en_mpsm_SHIFT)) & DDRC_DFILPCFG1_dfi_lp_en_mpsm_MASK) | ||
8963 | #define DDRC_DFILPCFG1_dfi_lp_wakeup_mpsm_MASK (0xF0U) | ||
8964 | #define DDRC_DFILPCFG1_dfi_lp_wakeup_mpsm_SHIFT (4U) | ||
8965 | /*! dfi_lp_wakeup_mpsm - Value in DFI clock cycles to drive on dfi_lp_wakeup signal when Maximum | ||
8966 | * Power Saving Mode is entered. Determines the DFI's tlp_wakeup time: | ||
8967 | * 0b0000..16 cycles | ||
8968 | * 0b0001..32 cycles | ||
8969 | * 0b0010..64 cycles | ||
8970 | * 0b0011..128 cycles | ||
8971 | * 0b0100..256 cycles | ||
8972 | * 0b0101..512 cycles | ||
8973 | * 0b0110..1024 cycles | ||
8974 | * 0b0111..2048 cycles | ||
8975 | * 0b1000..4096 cycles | ||
8976 | * 0b1001..8192 cycles | ||
8977 | * 0b1010..16384 cycles | ||
8978 | * 0b1011..32768 cycles | ||
8979 | * 0b1100..65536 cycles | ||
8980 | * 0b1101..131072 cycles | ||
8981 | * 0b1110..262144 cycles | ||
8982 | * 0b1111..Unlimited cycles | ||
8983 | */ | ||
8984 | #define DDRC_DFILPCFG1_dfi_lp_wakeup_mpsm(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFILPCFG1_dfi_lp_wakeup_mpsm_SHIFT)) & DDRC_DFILPCFG1_dfi_lp_wakeup_mpsm_MASK) | ||
8985 | /*! @} */ | ||
8986 | |||
8987 | /*! @name DFIUPD0 - DFI Update Register 0 */ | ||
8988 | /*! @{ */ | ||
8989 | #define DDRC_DFIUPD0_dfi_t_ctrlup_min_MASK (0x3FFU) | ||
8990 | #define DDRC_DFIUPD0_dfi_t_ctrlup_min_SHIFT (0U) | ||
8991 | #define DDRC_DFIUPD0_dfi_t_ctrlup_min(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD0_dfi_t_ctrlup_min_SHIFT)) & DDRC_DFIUPD0_dfi_t_ctrlup_min_MASK) | ||
8992 | #define DDRC_DFIUPD0_dfi_t_ctrlup_max_MASK (0x3FF0000U) | ||
8993 | #define DDRC_DFIUPD0_dfi_t_ctrlup_max_SHIFT (16U) | ||
8994 | #define DDRC_DFIUPD0_dfi_t_ctrlup_max(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD0_dfi_t_ctrlup_max_SHIFT)) & DDRC_DFIUPD0_dfi_t_ctrlup_max_MASK) | ||
8995 | #define DDRC_DFIUPD0_ctrlupd_pre_srx_MASK (0x20000000U) | ||
8996 | #define DDRC_DFIUPD0_ctrlupd_pre_srx_SHIFT (29U) | ||
8997 | /*! ctrlupd_pre_srx - Selects dfi_ctrlupd_req requirements at SRX: - 0 : send ctrlupd after SRX - 1 | ||
8998 | * : send ctrlupd before SRX If DFIUPD0.dis_auto_ctrlupd_srx=1, this register has no impact, | ||
8999 | * because no dfi_ctrlupd_req will be issued when SRX. | ||
9000 | * 0b0..send ctrlupd after SRX | ||
9001 | * 0b1..send ctrlupd before SRX | ||
9002 | */ | ||
9003 | #define DDRC_DFIUPD0_ctrlupd_pre_srx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD0_ctrlupd_pre_srx_SHIFT)) & DDRC_DFIUPD0_ctrlupd_pre_srx_MASK) | ||
9004 | #define DDRC_DFIUPD0_dis_auto_ctrlupd_srx_MASK (0x40000000U) | ||
9005 | #define DDRC_DFIUPD0_dis_auto_ctrlupd_srx_SHIFT (30U) | ||
9006 | /*! dis_auto_ctrlupd_srx - Auto ctrlupd request generation | ||
9007 | * 0b1..disable the automatic dfi_ctrlupd_req generation by the DDRC at self-refresh exit. | ||
9008 | * 0b0..DDRC issues a dfi_ctrlupd_req before or after exiting self-refresh, depending on DFIUPD0.ctrlupd_pre_srx. | ||
9009 | */ | ||
9010 | #define DDRC_DFIUPD0_dis_auto_ctrlupd_srx(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD0_dis_auto_ctrlupd_srx_SHIFT)) & DDRC_DFIUPD0_dis_auto_ctrlupd_srx_MASK) | ||
9011 | #define DDRC_DFIUPD0_dis_auto_ctrlupd_MASK (0x80000000U) | ||
9012 | #define DDRC_DFIUPD0_dis_auto_ctrlupd_SHIFT (31U) | ||
9013 | /*! dis_auto_ctrlupd - automatic dfi_ctrlupd_req generation by the DDRC | ||
9014 | * 0b0..DDRC issues dfi_ctrlupd_req periodically. | ||
9015 | * 0b1..disable the automatic dfi_ctrlupd_req generation by the DDRC. The core must issue the dfi_ctrlupd_req | ||
9016 | * signal using register reg_ddrc_ctrlupd. | ||
9017 | */ | ||
9018 | #define DDRC_DFIUPD0_dis_auto_ctrlupd(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD0_dis_auto_ctrlupd_SHIFT)) & DDRC_DFIUPD0_dis_auto_ctrlupd_MASK) | ||
9019 | /*! @} */ | ||
9020 | |||
9021 | /*! @name DFIUPD1 - DFI Update Register 1 */ | ||
9022 | /*! @{ */ | ||
9023 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_max_x1024_MASK (0xFFU) | ||
9024 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_max_x1024_SHIFT (0U) | ||
9025 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_max_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD1_dfi_t_ctrlupd_interval_max_x1024_SHIFT)) & DDRC_DFIUPD1_dfi_t_ctrlupd_interval_max_x1024_MASK) | ||
9026 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_min_x1024_MASK (0xFF0000U) | ||
9027 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_min_x1024_SHIFT (16U) | ||
9028 | #define DDRC_DFIUPD1_dfi_t_ctrlupd_interval_min_x1024(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD1_dfi_t_ctrlupd_interval_min_x1024_SHIFT)) & DDRC_DFIUPD1_dfi_t_ctrlupd_interval_min_x1024_MASK) | ||
9029 | /*! @} */ | ||
9030 | |||
9031 | /*! @name DFIUPD2 - DFI Update Register 2 */ | ||
9032 | /*! @{ */ | ||
9033 | #define DDRC_DFIUPD2_dfi_phyupd_en_MASK (0x80000000U) | ||
9034 | #define DDRC_DFIUPD2_dfi_phyupd_en_SHIFT (31U) | ||
9035 | /*! dfi_phyupd_en - Enables the support for acknowledging PHY-initiated updates: | ||
9036 | * 0b0..Disabled | ||
9037 | * 0b1..Enabled | ||
9038 | */ | ||
9039 | #define DDRC_DFIUPD2_dfi_phyupd_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIUPD2_dfi_phyupd_en_SHIFT)) & DDRC_DFIUPD2_dfi_phyupd_en_MASK) | ||
9040 | /*! @} */ | ||
9041 | |||
9042 | /*! @name DFIMISC - DFI Miscellaneous Control Register */ | ||
9043 | /*! @{ */ | ||
9044 | #define DDRC_DFIMISC_dfi_init_complete_en_MASK (0x1U) | ||
9045 | #define DDRC_DFIMISC_dfi_init_complete_en_SHIFT (0U) | ||
9046 | #define DDRC_DFIMISC_dfi_init_complete_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_dfi_init_complete_en_SHIFT)) & DDRC_DFIMISC_dfi_init_complete_en_MASK) | ||
9047 | #define DDRC_DFIMISC_phy_dbi_mode_MASK (0x2U) | ||
9048 | #define DDRC_DFIMISC_phy_dbi_mode_SHIFT (1U) | ||
9049 | /*! phy_dbi_mode - DBI implemented in DDRC or PHY. Present only in designs configured to support DDR4 and LPDDR4. | ||
9050 | * 0b0..DDRC implements DBI functionality. | ||
9051 | * 0b1..PHY implements DBI functionality. | ||
9052 | */ | ||
9053 | #define DDRC_DFIMISC_phy_dbi_mode(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_phy_dbi_mode_SHIFT)) & DDRC_DFIMISC_phy_dbi_mode_MASK) | ||
9054 | #define DDRC_DFIMISC_dfi_data_cs_polarity_MASK (0x4U) | ||
9055 | #define DDRC_DFIMISC_dfi_data_cs_polarity_SHIFT (2U) | ||
9056 | /*! dfi_data_cs_polarity - Defines polarity of dfi_wrdata_cs and dfi_rddata_cs signals. | ||
9057 | * 0b0..Signals are active low | ||
9058 | * 0b1..Signals are active high | ||
9059 | */ | ||
9060 | #define DDRC_DFIMISC_dfi_data_cs_polarity(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_dfi_data_cs_polarity_SHIFT)) & DDRC_DFIMISC_dfi_data_cs_polarity_MASK) | ||
9061 | #define DDRC_DFIMISC_ctl_idle_en_MASK (0x10U) | ||
9062 | #define DDRC_DFIMISC_ctl_idle_en_SHIFT (4U) | ||
9063 | #define DDRC_DFIMISC_ctl_idle_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_ctl_idle_en_SHIFT)) & DDRC_DFIMISC_ctl_idle_en_MASK) | ||
9064 | #define DDRC_DFIMISC_dfi_init_start_MASK (0x20U) | ||
9065 | #define DDRC_DFIMISC_dfi_init_start_SHIFT (5U) | ||
9066 | #define DDRC_DFIMISC_dfi_init_start(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_dfi_init_start_SHIFT)) & DDRC_DFIMISC_dfi_init_start_MASK) | ||
9067 | #define DDRC_DFIMISC_dfi_frequency_MASK (0x1F00U) | ||
9068 | #define DDRC_DFIMISC_dfi_frequency_SHIFT (8U) | ||
9069 | #define DDRC_DFIMISC_dfi_frequency(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFIMISC_dfi_frequency_SHIFT)) & DDRC_DFIMISC_dfi_frequency_MASK) | ||
9070 | /*! @} */ | ||
9071 | |||
9072 | /*! @name DFITMG2 - DFI Timing Register 2 */ | ||
9073 | /*! @{ */ | ||
9074 | #define DDRC_DFITMG2_dfi_tphy_wrcslat_MASK (0x3FU) | ||
9075 | #define DDRC_DFITMG2_dfi_tphy_wrcslat_SHIFT (0U) | ||
9076 | #define DDRC_DFITMG2_dfi_tphy_wrcslat(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG2_dfi_tphy_wrcslat_SHIFT)) & DDRC_DFITMG2_dfi_tphy_wrcslat_MASK) | ||
9077 | #define DDRC_DFITMG2_dfi_tphy_rdcslat_MASK (0x7F00U) | ||
9078 | #define DDRC_DFITMG2_dfi_tphy_rdcslat_SHIFT (8U) | ||
9079 | #define DDRC_DFITMG2_dfi_tphy_rdcslat(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG2_dfi_tphy_rdcslat_SHIFT)) & DDRC_DFITMG2_dfi_tphy_rdcslat_MASK) | ||
9080 | /*! @} */ | ||
9081 | |||
9082 | /*! @name DFITMG3 - DFI Timing Register 3 */ | ||
9083 | /*! @{ */ | ||
9084 | #define DDRC_DFITMG3_dfi_t_geardown_delay_MASK (0x1FU) | ||
9085 | #define DDRC_DFITMG3_dfi_t_geardown_delay_SHIFT (0U) | ||
9086 | #define DDRC_DFITMG3_dfi_t_geardown_delay(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFITMG3_dfi_t_geardown_delay_SHIFT)) & DDRC_DFITMG3_dfi_t_geardown_delay_MASK) | ||
9087 | /*! @} */ | ||
9088 | |||
9089 | /*! @name DFISTAT - DFI Status Register */ | ||
9090 | /*! @{ */ | ||
9091 | #define DDRC_DFISTAT_dfi_init_complete_MASK (0x1U) | ||
9092 | #define DDRC_DFISTAT_dfi_init_complete_SHIFT (0U) | ||
9093 | #define DDRC_DFISTAT_dfi_init_complete(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFISTAT_dfi_init_complete_SHIFT)) & DDRC_DFISTAT_dfi_init_complete_MASK) | ||
9094 | #define DDRC_DFISTAT_dfi_lp_ack_MASK (0x2U) | ||
9095 | #define DDRC_DFISTAT_dfi_lp_ack_SHIFT (1U) | ||
9096 | #define DDRC_DFISTAT_dfi_lp_ack(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DFISTAT_dfi_lp_ack_SHIFT)) & DDRC_DFISTAT_dfi_lp_ack_MASK) | ||
9097 | /*! @} */ | ||
9098 | |||
9099 | /*! @name DBICTL - DM/DBI Control Register */ | ||
9100 | /*! @{ */ | ||
9101 | #define DDRC_DBICTL_dm_en_MASK (0x1U) | ||
9102 | #define DDRC_DBICTL_dm_en_SHIFT (0U) | ||
9103 | /*! dm_en - DM enable signal in DDRC. This signal must be set the same logical value as DRAM's mode | ||
9104 | * register. - DDR4: Set this to same value as MR5 bit A10. When x4 devices are used, this signal | ||
9105 | * must be set to 0. - LPDDR4: Set this to inverted value of MR13[5] which is opposite polarity | ||
9106 | * from this signal | ||
9107 | * 0b0..DM is disabled | ||
9108 | * 0b1..DM is enabled | ||
9109 | */ | ||
9110 | #define DDRC_DBICTL_dm_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBICTL_dm_en_SHIFT)) & DDRC_DBICTL_dm_en_MASK) | ||
9111 | #define DDRC_DBICTL_wr_dbi_en_MASK (0x2U) | ||
9112 | #define DDRC_DBICTL_wr_dbi_en_SHIFT (1U) | ||
9113 | /*! wr_dbi_en - This signal must be set the same value as DRAM's mode register. - DDR4: MR5 bit A11. | ||
9114 | * When x4 devices are used, this signal must be set to 0. - LPDDR4: MR3[7] | ||
9115 | * 0b0..Write DBI is disabled | ||
9116 | * 0b1..Write DBI is enabled. | ||
9117 | */ | ||
9118 | #define DDRC_DBICTL_wr_dbi_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBICTL_wr_dbi_en_SHIFT)) & DDRC_DBICTL_wr_dbi_en_MASK) | ||
9119 | #define DDRC_DBICTL_rd_dbi_en_MASK (0x4U) | ||
9120 | #define DDRC_DBICTL_rd_dbi_en_SHIFT (2U) | ||
9121 | #define DDRC_DBICTL_rd_dbi_en(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBICTL_rd_dbi_en_SHIFT)) & DDRC_DBICTL_rd_dbi_en_MASK) | ||
9122 | /*! @} */ | ||
9123 | |||
9124 | /*! @name ADDRMAP0 - Address Map Register 0 */ | ||
9125 | /*! @{ */ | ||
9126 | #define DDRC_ADDRMAP0_addrmap_cs_bit0_MASK (0x1FU) | ||
9127 | #define DDRC_ADDRMAP0_addrmap_cs_bit0_SHIFT (0U) | ||
9128 | #define DDRC_ADDRMAP0_addrmap_cs_bit0(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP0_addrmap_cs_bit0_SHIFT)) & DDRC_ADDRMAP0_addrmap_cs_bit0_MASK) | ||
9129 | /*! @} */ | ||
9130 | |||
9131 | /*! @name ADDRMAP1 - Address Map Register 1 */ | ||
9132 | /*! @{ */ | ||
9133 | #define DDRC_ADDRMAP1_addrmap_bank_b0_MASK (0x1FU) | ||
9134 | #define DDRC_ADDRMAP1_addrmap_bank_b0_SHIFT (0U) | ||
9135 | #define DDRC_ADDRMAP1_addrmap_bank_b0(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP1_addrmap_bank_b0_SHIFT)) & DDRC_ADDRMAP1_addrmap_bank_b0_MASK) | ||
9136 | #define DDRC_ADDRMAP1_addrmap_bank_b1_MASK (0x1F00U) | ||
9137 | #define DDRC_ADDRMAP1_addrmap_bank_b1_SHIFT (8U) | ||
9138 | #define DDRC_ADDRMAP1_addrmap_bank_b1(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP1_addrmap_bank_b1_SHIFT)) & DDRC_ADDRMAP1_addrmap_bank_b1_MASK) | ||
9139 | #define DDRC_ADDRMAP1_addrmap_bank_b2_MASK (0x1F0000U) | ||
9140 | #define DDRC_ADDRMAP1_addrmap_bank_b2_SHIFT (16U) | ||
9141 | #define DDRC_ADDRMAP1_addrmap_bank_b2(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP1_addrmap_bank_b2_SHIFT)) & DDRC_ADDRMAP1_addrmap_bank_b2_MASK) | ||
9142 | /*! @} */ | ||
9143 | |||
9144 | /*! @name ADDRMAP2 - Address Map Register 2 */ | ||
9145 | /*! @{ */ | ||
9146 | #define DDRC_ADDRMAP2_addrmap_col_b2_MASK (0xFU) | ||
9147 | #define DDRC_ADDRMAP2_addrmap_col_b2_SHIFT (0U) | ||
9148 | #define DDRC_ADDRMAP2_addrmap_col_b2(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP2_addrmap_col_b2_SHIFT)) & DDRC_ADDRMAP2_addrmap_col_b2_MASK) | ||
9149 | #define DDRC_ADDRMAP2_addrmap_col_b3_MASK (0xF00U) | ||
9150 | #define DDRC_ADDRMAP2_addrmap_col_b3_SHIFT (8U) | ||
9151 | #define DDRC_ADDRMAP2_addrmap_col_b3(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP2_addrmap_col_b3_SHIFT)) & DDRC_ADDRMAP2_addrmap_col_b3_MASK) | ||
9152 | #define DDRC_ADDRMAP2_addrmap_col_b4_MASK (0xF0000U) | ||
9153 | #define DDRC_ADDRMAP2_addrmap_col_b4_SHIFT (16U) | ||
9154 | #define DDRC_ADDRMAP2_addrmap_col_b4(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP2_addrmap_col_b4_SHIFT)) & DDRC_ADDRMAP2_addrmap_col_b4_MASK) | ||
9155 | #define DDRC_ADDRMAP2_addrmap_col_b5_MASK (0xF000000U) | ||
9156 | #define DDRC_ADDRMAP2_addrmap_col_b5_SHIFT (24U) | ||
9157 | #define DDRC_ADDRMAP2_addrmap_col_b5(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP2_addrmap_col_b5_SHIFT)) & DDRC_ADDRMAP2_addrmap_col_b5_MASK) | ||
9158 | /*! @} */ | ||
9159 | |||
9160 | /*! @name ADDRMAP3 - Address Map Register 3 */ | ||
9161 | /*! @{ */ | ||
9162 | #define DDRC_ADDRMAP3_addrmap_col_b6_MASK (0xFU) | ||
9163 | #define DDRC_ADDRMAP3_addrmap_col_b6_SHIFT (0U) | ||
9164 | #define DDRC_ADDRMAP3_addrmap_col_b6(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP3_addrmap_col_b6_SHIFT)) & DDRC_ADDRMAP3_addrmap_col_b6_MASK) | ||
9165 | #define DDRC_ADDRMAP3_addrmap_col_b7_MASK (0xF00U) | ||
9166 | #define DDRC_ADDRMAP3_addrmap_col_b7_SHIFT (8U) | ||
9167 | #define DDRC_ADDRMAP3_addrmap_col_b7(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP3_addrmap_col_b7_SHIFT)) & DDRC_ADDRMAP3_addrmap_col_b7_MASK) | ||
9168 | #define DDRC_ADDRMAP3_addrmap_col_b8_MASK (0xF0000U) | ||
9169 | #define DDRC_ADDRMAP3_addrmap_col_b8_SHIFT (16U) | ||
9170 | #define DDRC_ADDRMAP3_addrmap_col_b8(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP3_addrmap_col_b8_SHIFT)) & DDRC_ADDRMAP3_addrmap_col_b8_MASK) | ||
9171 | #define DDRC_ADDRMAP3_addrmap_col_b9_MASK (0xF000000U) | ||
9172 | #define DDRC_ADDRMAP3_addrmap_col_b9_SHIFT (24U) | ||
9173 | #define DDRC_ADDRMAP3_addrmap_col_b9(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP3_addrmap_col_b9_SHIFT)) & DDRC_ADDRMAP3_addrmap_col_b9_MASK) | ||
9174 | /*! @} */ | ||
9175 | |||
9176 | /*! @name ADDRMAP4 - Address Map Register 4 */ | ||
9177 | /*! @{ */ | ||
9178 | #define DDRC_ADDRMAP4_addrmap_col_b10_MASK (0xFU) | ||
9179 | #define DDRC_ADDRMAP4_addrmap_col_b10_SHIFT (0U) | ||
9180 | #define DDRC_ADDRMAP4_addrmap_col_b10(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP4_addrmap_col_b10_SHIFT)) & DDRC_ADDRMAP4_addrmap_col_b10_MASK) | ||
9181 | #define DDRC_ADDRMAP4_addrmap_col_b11_MASK (0xF00U) | ||
9182 | #define DDRC_ADDRMAP4_addrmap_col_b11_SHIFT (8U) | ||
9183 | #define DDRC_ADDRMAP4_addrmap_col_b11(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP4_addrmap_col_b11_SHIFT)) & DDRC_ADDRMAP4_addrmap_col_b11_MASK) | ||
9184 | /*! @} */ | ||
9185 | |||
9186 | /*! @name ADDRMAP5 - Address Map Register 5 */ | ||
9187 | /*! @{ */ | ||
9188 | #define DDRC_ADDRMAP5_addrmap_row_b0_MASK (0xFU) | ||
9189 | #define DDRC_ADDRMAP5_addrmap_row_b0_SHIFT (0U) | ||
9190 | #define DDRC_ADDRMAP5_addrmap_row_b0(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP5_addrmap_row_b0_SHIFT)) & DDRC_ADDRMAP5_addrmap_row_b0_MASK) | ||
9191 | #define DDRC_ADDRMAP5_addrmap_row_b1_MASK (0xF00U) | ||
9192 | #define DDRC_ADDRMAP5_addrmap_row_b1_SHIFT (8U) | ||
9193 | #define DDRC_ADDRMAP5_addrmap_row_b1(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP5_addrmap_row_b1_SHIFT)) & DDRC_ADDRMAP5_addrmap_row_b1_MASK) | ||
9194 | #define DDRC_ADDRMAP5_addrmap_row_b2_10_MASK (0xF0000U) | ||
9195 | #define DDRC_ADDRMAP5_addrmap_row_b2_10_SHIFT (16U) | ||
9196 | #define DDRC_ADDRMAP5_addrmap_row_b2_10(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP5_addrmap_row_b2_10_SHIFT)) & DDRC_ADDRMAP5_addrmap_row_b2_10_MASK) | ||
9197 | #define DDRC_ADDRMAP5_addrmap_row_b11_MASK (0xF000000U) | ||
9198 | #define DDRC_ADDRMAP5_addrmap_row_b11_SHIFT (24U) | ||
9199 | #define DDRC_ADDRMAP5_addrmap_row_b11(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP5_addrmap_row_b11_SHIFT)) & DDRC_ADDRMAP5_addrmap_row_b11_MASK) | ||
9200 | /*! @} */ | ||
9201 | |||
9202 | /*! @name ADDRMAP6 - Address Map Register 6 */ | ||
9203 | /*! @{ */ | ||
9204 | #define DDRC_ADDRMAP6_addrmap_row_b12_MASK (0xFU) | ||
9205 | #define DDRC_ADDRMAP6_addrmap_row_b12_SHIFT (0U) | ||
9206 | #define DDRC_ADDRMAP6_addrmap_row_b12(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP6_addrmap_row_b12_SHIFT)) & DDRC_ADDRMAP6_addrmap_row_b12_MASK) | ||
9207 | #define DDRC_ADDRMAP6_addrmap_row_b13_MASK (0xF00U) | ||
9208 | #define DDRC_ADDRMAP6_addrmap_row_b13_SHIFT (8U) | ||
9209 | #define DDRC_ADDRMAP6_addrmap_row_b13(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP6_addrmap_row_b13_SHIFT)) & DDRC_ADDRMAP6_addrmap_row_b13_MASK) | ||
9210 | #define DDRC_ADDRMAP6_addrmap_row_b14_MASK (0xF0000U) | ||
9211 | #define DDRC_ADDRMAP6_addrmap_row_b14_SHIFT (16U) | ||
9212 | #define DDRC_ADDRMAP6_addrmap_row_b14(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP6_addrmap_row_b14_SHIFT)) & DDRC_ADDRMAP6_addrmap_row_b14_MASK) | ||
9213 | #define DDRC_ADDRMAP6_addrmap_row_b15_MASK (0xF000000U) | ||
9214 | #define DDRC_ADDRMAP6_addrmap_row_b15_SHIFT (24U) | ||
9215 | #define DDRC_ADDRMAP6_addrmap_row_b15(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP6_addrmap_row_b15_SHIFT)) & DDRC_ADDRMAP6_addrmap_row_b15_MASK) | ||
9216 | #define DDRC_ADDRMAP6_lpddr3_6gb_12gb_MASK (0x80000000U) | ||
9217 | #define DDRC_ADDRMAP6_lpddr3_6gb_12gb_SHIFT (31U) | ||
9218 | #define DDRC_ADDRMAP6_lpddr3_6gb_12gb(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP6_lpddr3_6gb_12gb_SHIFT)) & DDRC_ADDRMAP6_lpddr3_6gb_12gb_MASK) | ||
9219 | /*! @} */ | ||
9220 | |||
9221 | /*! @name ADDRMAP7 - Address Map Register 7 */ | ||
9222 | /*! @{ */ | ||
9223 | #define DDRC_ADDRMAP7_addrmap_row_b16_MASK (0xFU) | ||
9224 | #define DDRC_ADDRMAP7_addrmap_row_b16_SHIFT (0U) | ||
9225 | #define DDRC_ADDRMAP7_addrmap_row_b16(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP7_addrmap_row_b16_SHIFT)) & DDRC_ADDRMAP7_addrmap_row_b16_MASK) | ||
9226 | #define DDRC_ADDRMAP7_addrmap_row_b17_MASK (0xF00U) | ||
9227 | #define DDRC_ADDRMAP7_addrmap_row_b17_SHIFT (8U) | ||
9228 | #define DDRC_ADDRMAP7_addrmap_row_b17(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP7_addrmap_row_b17_SHIFT)) & DDRC_ADDRMAP7_addrmap_row_b17_MASK) | ||
9229 | /*! @} */ | ||
9230 | |||
9231 | /*! @name ADDRMAP8 - Address Map Register 8 */ | ||
9232 | /*! @{ */ | ||
9233 | #define DDRC_ADDRMAP8_addrmap_bg_b0_MASK (0x1FU) | ||
9234 | #define DDRC_ADDRMAP8_addrmap_bg_b0_SHIFT (0U) | ||
9235 | #define DDRC_ADDRMAP8_addrmap_bg_b0(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP8_addrmap_bg_b0_SHIFT)) & DDRC_ADDRMAP8_addrmap_bg_b0_MASK) | ||
9236 | #define DDRC_ADDRMAP8_addrmap_bg_b1_MASK (0x3F00U) | ||
9237 | #define DDRC_ADDRMAP8_addrmap_bg_b1_SHIFT (8U) | ||
9238 | #define DDRC_ADDRMAP8_addrmap_bg_b1(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP8_addrmap_bg_b1_SHIFT)) & DDRC_ADDRMAP8_addrmap_bg_b1_MASK) | ||
9239 | /*! @} */ | ||
9240 | |||
9241 | /*! @name ADDRMAP9 - Address Map Register 9 */ | ||
9242 | /*! @{ */ | ||
9243 | #define DDRC_ADDRMAP9_addrmap_row_b2_MASK (0xFU) | ||
9244 | #define DDRC_ADDRMAP9_addrmap_row_b2_SHIFT (0U) | ||
9245 | #define DDRC_ADDRMAP9_addrmap_row_b2(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP9_addrmap_row_b2_SHIFT)) & DDRC_ADDRMAP9_addrmap_row_b2_MASK) | ||
9246 | #define DDRC_ADDRMAP9_addrmap_row_b3_MASK (0xF00U) | ||
9247 | #define DDRC_ADDRMAP9_addrmap_row_b3_SHIFT (8U) | ||
9248 | #define DDRC_ADDRMAP9_addrmap_row_b3(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP9_addrmap_row_b3_SHIFT)) & DDRC_ADDRMAP9_addrmap_row_b3_MASK) | ||
9249 | #define DDRC_ADDRMAP9_addrmap_row_b4_MASK (0xF0000U) | ||
9250 | #define DDRC_ADDRMAP9_addrmap_row_b4_SHIFT (16U) | ||
9251 | #define DDRC_ADDRMAP9_addrmap_row_b4(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP9_addrmap_row_b4_SHIFT)) & DDRC_ADDRMAP9_addrmap_row_b4_MASK) | ||
9252 | #define DDRC_ADDRMAP9_addrmap_row_b5_MASK (0xF000000U) | ||
9253 | #define DDRC_ADDRMAP9_addrmap_row_b5_SHIFT (24U) | ||
9254 | #define DDRC_ADDRMAP9_addrmap_row_b5(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP9_addrmap_row_b5_SHIFT)) & DDRC_ADDRMAP9_addrmap_row_b5_MASK) | ||
9255 | /*! @} */ | ||
9256 | |||
9257 | /*! @name ADDRMAP10 - Address Map Register 10 */ | ||
9258 | /*! @{ */ | ||
9259 | #define DDRC_ADDRMAP10_addrmap_row_b6_MASK (0xFU) | ||
9260 | #define DDRC_ADDRMAP10_addrmap_row_b6_SHIFT (0U) | ||
9261 | #define DDRC_ADDRMAP10_addrmap_row_b6(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP10_addrmap_row_b6_SHIFT)) & DDRC_ADDRMAP10_addrmap_row_b6_MASK) | ||
9262 | #define DDRC_ADDRMAP10_addrmap_row_b7_MASK (0xF00U) | ||
9263 | #define DDRC_ADDRMAP10_addrmap_row_b7_SHIFT (8U) | ||
9264 | #define DDRC_ADDRMAP10_addrmap_row_b7(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP10_addrmap_row_b7_SHIFT)) & DDRC_ADDRMAP10_addrmap_row_b7_MASK) | ||
9265 | #define DDRC_ADDRMAP10_addrmap_row_b8_MASK (0xF0000U) | ||
9266 | #define DDRC_ADDRMAP10_addrmap_row_b8_SHIFT (16U) | ||
9267 | #define DDRC_ADDRMAP10_addrmap_row_b8(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP10_addrmap_row_b8_SHIFT)) & DDRC_ADDRMAP10_addrmap_row_b8_MASK) | ||
9268 | #define DDRC_ADDRMAP10_addrmap_row_b9_MASK (0xF000000U) | ||
9269 | #define DDRC_ADDRMAP10_addrmap_row_b9_SHIFT (24U) | ||
9270 | #define DDRC_ADDRMAP10_addrmap_row_b9(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP10_addrmap_row_b9_SHIFT)) & DDRC_ADDRMAP10_addrmap_row_b9_MASK) | ||
9271 | /*! @} */ | ||
9272 | |||
9273 | /*! @name ADDRMAP11 - Address Map Register 11 */ | ||
9274 | /*! @{ */ | ||
9275 | #define DDRC_ADDRMAP11_addrmap_row_b10_MASK (0xFU) | ||
9276 | #define DDRC_ADDRMAP11_addrmap_row_b10_SHIFT (0U) | ||
9277 | #define DDRC_ADDRMAP11_addrmap_row_b10(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ADDRMAP11_addrmap_row_b10_SHIFT)) & DDRC_ADDRMAP11_addrmap_row_b10_MASK) | ||
9278 | /*! @} */ | ||
9279 | |||
9280 | /*! @name ODTCFG - ODT Configuration Register */ | ||
9281 | /*! @{ */ | ||
9282 | #define DDRC_ODTCFG_rd_odt_delay_MASK (0x7CU) | ||
9283 | #define DDRC_ODTCFG_rd_odt_delay_SHIFT (2U) | ||
9284 | #define DDRC_ODTCFG_rd_odt_delay(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTCFG_rd_odt_delay_SHIFT)) & DDRC_ODTCFG_rd_odt_delay_MASK) | ||
9285 | #define DDRC_ODTCFG_rd_odt_hold_MASK (0xF00U) | ||
9286 | #define DDRC_ODTCFG_rd_odt_hold_SHIFT (8U) | ||
9287 | #define DDRC_ODTCFG_rd_odt_hold(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTCFG_rd_odt_hold_SHIFT)) & DDRC_ODTCFG_rd_odt_hold_MASK) | ||
9288 | #define DDRC_ODTCFG_wr_odt_delay_MASK (0x1F0000U) | ||
9289 | #define DDRC_ODTCFG_wr_odt_delay_SHIFT (16U) | ||
9290 | #define DDRC_ODTCFG_wr_odt_delay(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTCFG_wr_odt_delay_SHIFT)) & DDRC_ODTCFG_wr_odt_delay_MASK) | ||
9291 | #define DDRC_ODTCFG_wr_odt_hold_MASK (0xF000000U) | ||
9292 | #define DDRC_ODTCFG_wr_odt_hold_SHIFT (24U) | ||
9293 | #define DDRC_ODTCFG_wr_odt_hold(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTCFG_wr_odt_hold_SHIFT)) & DDRC_ODTCFG_wr_odt_hold_MASK) | ||
9294 | /*! @} */ | ||
9295 | |||
9296 | /*! @name ODTMAP - ODT/Rank Map Register */ | ||
9297 | /*! @{ */ | ||
9298 | #define DDRC_ODTMAP_rank0_wr_odt_MASK (0x3U) | ||
9299 | #define DDRC_ODTMAP_rank0_wr_odt_SHIFT (0U) | ||
9300 | #define DDRC_ODTMAP_rank0_wr_odt(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTMAP_rank0_wr_odt_SHIFT)) & DDRC_ODTMAP_rank0_wr_odt_MASK) | ||
9301 | #define DDRC_ODTMAP_rank0_rd_odt_MASK (0x30U) | ||
9302 | #define DDRC_ODTMAP_rank0_rd_odt_SHIFT (4U) | ||
9303 | #define DDRC_ODTMAP_rank0_rd_odt(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTMAP_rank0_rd_odt_SHIFT)) & DDRC_ODTMAP_rank0_rd_odt_MASK) | ||
9304 | #define DDRC_ODTMAP_rank1_wr_odt_MASK (0x300U) | ||
9305 | #define DDRC_ODTMAP_rank1_wr_odt_SHIFT (8U) | ||
9306 | #define DDRC_ODTMAP_rank1_wr_odt(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTMAP_rank1_wr_odt_SHIFT)) & DDRC_ODTMAP_rank1_wr_odt_MASK) | ||
9307 | #define DDRC_ODTMAP_rank1_rd_odt_MASK (0x3000U) | ||
9308 | #define DDRC_ODTMAP_rank1_rd_odt_SHIFT (12U) | ||
9309 | #define DDRC_ODTMAP_rank1_rd_odt(x) (((uint32_t)(((uint32_t)(x)) << DDRC_ODTMAP_rank1_rd_odt_SHIFT)) & DDRC_ODTMAP_rank1_rd_odt_MASK) | ||
9310 | /*! @} */ | ||
9311 | |||
9312 | /*! @name SCHED - Scheduler Control Register */ | ||
9313 | /*! @{ */ | ||
9314 | #define DDRC_SCHED_force_low_pri_n_MASK (0x1U) | ||
9315 | #define DDRC_SCHED_force_low_pri_n_SHIFT (0U) | ||
9316 | #define DDRC_SCHED_force_low_pri_n(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_force_low_pri_n_SHIFT)) & DDRC_SCHED_force_low_pri_n_MASK) | ||
9317 | #define DDRC_SCHED_prefer_write_MASK (0x2U) | ||
9318 | #define DDRC_SCHED_prefer_write_SHIFT (1U) | ||
9319 | #define DDRC_SCHED_prefer_write(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_prefer_write_SHIFT)) & DDRC_SCHED_prefer_write_MASK) | ||
9320 | #define DDRC_SCHED_pageclose_MASK (0x4U) | ||
9321 | #define DDRC_SCHED_pageclose_SHIFT (2U) | ||
9322 | #define DDRC_SCHED_pageclose(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_pageclose_SHIFT)) & DDRC_SCHED_pageclose_MASK) | ||
9323 | #define DDRC_SCHED_lpr_num_entries_MASK (0x1F00U) | ||
9324 | #define DDRC_SCHED_lpr_num_entries_SHIFT (8U) | ||
9325 | #define DDRC_SCHED_lpr_num_entries(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_lpr_num_entries_SHIFT)) & DDRC_SCHED_lpr_num_entries_MASK) | ||
9326 | #define DDRC_SCHED_go2critical_hysteresis_MASK (0xFF0000U) | ||
9327 | #define DDRC_SCHED_go2critical_hysteresis_SHIFT (16U) | ||
9328 | #define DDRC_SCHED_go2critical_hysteresis(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_go2critical_hysteresis_SHIFT)) & DDRC_SCHED_go2critical_hysteresis_MASK) | ||
9329 | #define DDRC_SCHED_rdwr_idle_gap_MASK (0x7F000000U) | ||
9330 | #define DDRC_SCHED_rdwr_idle_gap_SHIFT (24U) | ||
9331 | #define DDRC_SCHED_rdwr_idle_gap(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED_rdwr_idle_gap_SHIFT)) & DDRC_SCHED_rdwr_idle_gap_MASK) | ||
9332 | /*! @} */ | ||
9333 | |||
9334 | /*! @name SCHED1 - Scheduler Control Register 1 */ | ||
9335 | /*! @{ */ | ||
9336 | #define DDRC_SCHED1_pageclose_timer_MASK (0xFFU) | ||
9337 | #define DDRC_SCHED1_pageclose_timer_SHIFT (0U) | ||
9338 | #define DDRC_SCHED1_pageclose_timer(x) (((uint32_t)(((uint32_t)(x)) << DDRC_SCHED1_pageclose_timer_SHIFT)) & DDRC_SCHED1_pageclose_timer_MASK) | ||
9339 | /*! @} */ | ||
9340 | |||
9341 | /*! @name PERFHPR1 - High Priority Read CAM Register 1 */ | ||
9342 | /*! @{ */ | ||
9343 | #define DDRC_PERFHPR1_hpr_max_starve_MASK (0xFFFFU) | ||
9344 | #define DDRC_PERFHPR1_hpr_max_starve_SHIFT (0U) | ||
9345 | #define DDRC_PERFHPR1_hpr_max_starve(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFHPR1_hpr_max_starve_SHIFT)) & DDRC_PERFHPR1_hpr_max_starve_MASK) | ||
9346 | #define DDRC_PERFHPR1_hpr_xact_run_length_MASK (0xFF000000U) | ||
9347 | #define DDRC_PERFHPR1_hpr_xact_run_length_SHIFT (24U) | ||
9348 | #define DDRC_PERFHPR1_hpr_xact_run_length(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFHPR1_hpr_xact_run_length_SHIFT)) & DDRC_PERFHPR1_hpr_xact_run_length_MASK) | ||
9349 | /*! @} */ | ||
9350 | |||
9351 | /*! @name PERFLPR1 - Low Priority Read CAM Register 1 */ | ||
9352 | /*! @{ */ | ||
9353 | #define DDRC_PERFLPR1_lpr_max_starve_MASK (0xFFFFU) | ||
9354 | #define DDRC_PERFLPR1_lpr_max_starve_SHIFT (0U) | ||
9355 | #define DDRC_PERFLPR1_lpr_max_starve(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFLPR1_lpr_max_starve_SHIFT)) & DDRC_PERFLPR1_lpr_max_starve_MASK) | ||
9356 | #define DDRC_PERFLPR1_lpr_xact_run_length_MASK (0xFF000000U) | ||
9357 | #define DDRC_PERFLPR1_lpr_xact_run_length_SHIFT (24U) | ||
9358 | #define DDRC_PERFLPR1_lpr_xact_run_length(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFLPR1_lpr_xact_run_length_SHIFT)) & DDRC_PERFLPR1_lpr_xact_run_length_MASK) | ||
9359 | /*! @} */ | ||
9360 | |||
9361 | /*! @name PERFWR1 - Write CAM Register 1 */ | ||
9362 | /*! @{ */ | ||
9363 | #define DDRC_PERFWR1_w_max_starve_MASK (0xFFFFU) | ||
9364 | #define DDRC_PERFWR1_w_max_starve_SHIFT (0U) | ||
9365 | #define DDRC_PERFWR1_w_max_starve(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFWR1_w_max_starve_SHIFT)) & DDRC_PERFWR1_w_max_starve_MASK) | ||
9366 | #define DDRC_PERFWR1_w_xact_run_length_MASK (0xFF000000U) | ||
9367 | #define DDRC_PERFWR1_w_xact_run_length_SHIFT (24U) | ||
9368 | #define DDRC_PERFWR1_w_xact_run_length(x) (((uint32_t)(((uint32_t)(x)) << DDRC_PERFWR1_w_xact_run_length_SHIFT)) & DDRC_PERFWR1_w_xact_run_length_MASK) | ||
9369 | /*! @} */ | ||
9370 | |||
9371 | /*! @name DBG0 - Debug Register 0 */ | ||
9372 | /*! @{ */ | ||
9373 | #define DDRC_DBG0_dis_wc_MASK (0x1U) | ||
9374 | #define DDRC_DBG0_dis_wc_SHIFT (0U) | ||
9375 | #define DDRC_DBG0_dis_wc(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBG0_dis_wc_SHIFT)) & DDRC_DBG0_dis_wc_MASK) | ||
9376 | #define DDRC_DBG0_dis_rd_bypass_MASK (0x2U) | ||
9377 | #define DDRC_DBG0_dis_rd_bypass_SHIFT (1U) | ||
9378 | #define DDRC_DBG0_dis_rd_bypass(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBG0_dis_rd_bypass_SHIFT)) & DDRC_DBG0_dis_rd_bypass_MASK) | ||
9379 | #define DDRC_DBG0_dis_act_bypass_MASK (0x4U) | ||
9380 | #define DDRC_DBG0_dis_act_bypass_SHIFT (2U) | ||
9381 | #define DDRC_DBG0_dis_act_bypass(x) (((uint32_t)(((uint32_t)(x)) << DDRC_DBG0_dis_act_bypass_SHIFT)) & DDRC_DBG0_dis_act_bypass_MASK) | ||