1 /*
2 ** ###################################################################
3 **     Version:             rev. 1.0, 2020-12-29
4 **     Build:               b231016
5 **
6 **     Abstract:
7 **         Chip specific module features.
8 **
9 **     Copyright 2016 Freescale Semiconductor, Inc.
10 **     Copyright 2016-2023 NXP
11 **     SPDX-License-Identifier: BSD-3-Clause
12 **
13 **     http:                 www.nxp.com
14 **     mail:                 support@nxp.com
15 **
16 **     Revisions:
17 **     - rev. 0.1 (2018-03-05)
18 **         Initial version.
19 **     - rev. 1.0 (2020-12-29)
20 **         Update feature files to align with IMXRT1170RM Rev.0.
21 **
22 ** ###################################################################
23 */
24 
25 #ifndef _MIMXRT1176_cm7_FEATURES_H_
26 #define _MIMXRT1176_cm7_FEATURES_H_
27 
28 /* SOC module features */
29 
30 /* @brief ACMP availability on the SoC. */
31 #define FSL_FEATURE_SOC_ACMP_COUNT (4)
32 /* @brief AOI availability on the SoC. */
33 #define FSL_FEATURE_SOC_AOI_COUNT (2)
34 /* @brief ASRC availability on the SoC. */
35 #define FSL_FEATURE_SOC_ASRC_COUNT (1)
36 /* @brief CAAM availability on the SoC. */
37 #define FSL_FEATURE_SOC_CAAM_COUNT (1)
38 /* @brief CCM availability on the SoC. */
39 #define FSL_FEATURE_SOC_CCM_COUNT (1)
40 /* @brief CDOG availability on the SoC. */
41 #define FSL_FEATURE_SOC_CDOG_COUNT (1)
42 /* @brief CSI availability on the SoC. */
43 #define FSL_FEATURE_SOC_CSI_COUNT (1)
44 /* @brief DAC12 availability on the SoC. */
45 #define FSL_FEATURE_SOC_DAC12_COUNT (1)
46 /* @brief DCDC availability on the SoC. */
47 #define FSL_FEATURE_SOC_DCDC_COUNT (1)
48 /* @brief DMAMUX availability on the SoC. */
49 #define FSL_FEATURE_SOC_DMAMUX_COUNT (1)
50 /* @brief EDMA availability on the SoC. */
51 #define FSL_FEATURE_SOC_EDMA_COUNT (1)
52 /* @brief EMVSIM availability on the SoC. */
53 #define FSL_FEATURE_SOC_EMVSIM_COUNT (2)
54 /* @brief ENC availability on the SoC. */
55 #define FSL_FEATURE_SOC_ENC_COUNT (4)
56 /* @brief ENET availability on the SoC. */
57 #define FSL_FEATURE_SOC_ENET_COUNT (2)
58 /* @brief ENET_QOS availability on the SoC. */
59 #define FSL_FEATURE_SOC_ENET_QOS_COUNT (1)
60 /* @brief EWM availability on the SoC. */
61 #define FSL_FEATURE_SOC_EWM_COUNT (1)
62 /* @brief FLEXCAN availability on the SoC. */
63 #define FSL_FEATURE_SOC_FLEXCAN_COUNT (3)
64 /* @brief FLEXIO availability on the SoC. */
65 #define FSL_FEATURE_SOC_FLEXIO_COUNT (2)
66 /* @brief FLEXRAM availability on the SoC. */
67 #define FSL_FEATURE_SOC_FLEXRAM_COUNT (1)
68 /* @brief FLEXSPI availability on the SoC. */
69 #define FSL_FEATURE_SOC_FLEXSPI_COUNT (2)
70 /* @brief GPT availability on the SoC. */
71 #define FSL_FEATURE_SOC_GPT_COUNT (6)
72 /* @brief I2S availability on the SoC. */
73 #define FSL_FEATURE_SOC_I2S_COUNT (4)
74 /* @brief IEE availability on the SoC. */
75 #define FSL_FEATURE_SOC_IEE_COUNT (1)
76 /* @brief IGPIO availability on the SoC. */
77 #define FSL_FEATURE_SOC_IGPIO_COUNT (15)
78 /* @brief IOMUXC availability on the SoC. */
79 #define FSL_FEATURE_SOC_IOMUXC_COUNT (1)
80 /* @brief IOMUXC_LPSR availability on the SoC. */
81 #define FSL_FEATURE_SOC_IOMUXC_LPSR_COUNT (1)
82 /* @brief KPP availability on the SoC. */
83 #define FSL_FEATURE_SOC_KPP_COUNT (1)
84 /* @brief LCDIF availability on the SoC. */
85 #define FSL_FEATURE_SOC_LCDIF_COUNT (1)
86 /* @brief LPADC availability on the SoC. */
87 #define FSL_FEATURE_SOC_LPADC_COUNT (2)
88 /* @brief LPI2C availability on the SoC. */
89 #define FSL_FEATURE_SOC_LPI2C_COUNT (6)
90 /* @brief LPSPI availability on the SoC. */
91 #define FSL_FEATURE_SOC_LPSPI_COUNT (6)
92 /* @brief LPUART availability on the SoC. */
93 #define FSL_FEATURE_SOC_LPUART_COUNT (12)
94 /* @brief MCM availability on the SoC. */
95 #define FSL_FEATURE_SOC_MCM_COUNT (1)
96 /* @brief MPU availability on the SoC. */
97 #define FSL_FEATURE_SOC_MPU_COUNT (1)
98 /* @brief MU availability on the SoC. */
99 #define FSL_FEATURE_SOC_MU_COUNT (1)
100 /* @brief OCOTP availability on the SoC. */
101 #define FSL_FEATURE_SOC_OCOTP_COUNT (1)
102 /* @brief OTFAD availability on the SoC. */
103 #define FSL_FEATURE_SOC_OTFAD_COUNT (2)
104 /* @brief PDM availability on the SoC. */
105 #define FSL_FEATURE_SOC_PDM_COUNT (1)
106 /* @brief PIT availability on the SoC. */
107 #define FSL_FEATURE_SOC_PIT_COUNT (2)
108 /* @brief PWM availability on the SoC. */
109 #define FSL_FEATURE_SOC_PWM_COUNT (4)
110 /* @brief PXP availability on the SoC. */
111 #define FSL_FEATURE_SOC_PXP_COUNT (1)
112 /* @brief PUF availability on the SoC. */
113 #define FSL_FEATURE_SOC_PUF_COUNT (1)
114 /* @brief RDC availability on the SoC. */
115 #define FSL_FEATURE_SOC_RDC_COUNT (1)
116 /* @brief RDC_SEMAPHORE availability on the SoC. */
117 #define FSL_FEATURE_SOC_RDC_SEMAPHORE_COUNT (2)
118 /* @brief SEMA4 availability on the SoC. */
119 #define FSL_FEATURE_SOC_SEMA4_COUNT (1)
120 /* @brief SEMC availability on the SoC. */
121 #define FSL_FEATURE_SOC_SEMC_COUNT (1)
122 /* @brief SNVS availability on the SoC. */
123 #define FSL_FEATURE_SOC_SNVS_COUNT (1)
124 /* @brief SPDIF availability on the SoC. */
125 #define FSL_FEATURE_SOC_SPDIF_COUNT (1)
126 /* @brief SRC availability on the SoC. */
127 #define FSL_FEATURE_SOC_SRC_COUNT (1)
128 /* @brief TMR availability on the SoC. */
129 #define FSL_FEATURE_SOC_TMR_COUNT (4)
130 /* @brief USBHS availability on the SoC. */
131 #define FSL_FEATURE_SOC_USBHS_COUNT (2)
132 /* @brief USBHSDCD availability on the SoC. */
133 #define FSL_FEATURE_SOC_USBHSDCD_COUNT (2)
134 /* @brief USBNC availability on the SoC. */
135 #define FSL_FEATURE_SOC_USBNC_COUNT (2)
136 /* @brief USBPHY availability on the SoC. */
137 #define FSL_FEATURE_SOC_USBPHY_COUNT (2)
138 /* @brief USDHC availability on the SoC. */
139 #define FSL_FEATURE_SOC_USDHC_COUNT (2)
140 /* @brief WDOG availability on the SoC. */
141 #define FSL_FEATURE_SOC_WDOG_COUNT (2)
142 /* @brief XBARA availability on the SoC. */
143 #define FSL_FEATURE_SOC_XBARA_COUNT (1)
144 /* @brief XBARB availability on the SoC. */
145 #define FSL_FEATURE_SOC_XBARB_COUNT (2)
146 /* @brief ROM API Availability */
147 #define FSL_FEATURE_BOOT_ROM_HAS_ROMAPI (1)
148 
149 /* ADC_ETC module features */
150 
151 /* @brief Has DMA model control(bit field CTRL[DMA_MODE_SEL]). */
152 #define FSL_FEATURE_ADC_ETC_HAS_CTRL_DMA_MODE_SEL (1)
153 /* @brief Has TRIGm_CHAIN_a_b IEn_EN. */
154 #define FSL_FEATURE_ADC_ETC_HAS_TRIGm_CHAIN_a_b_IEn_EN (1)
155 /* @brief Has no TSC0 trigger related bitfields (bit field CTRL[EXT0_TRIG_ENABLE], CTRL[EXT0_TRIG_PRIORITY]). */
156 #define FSL_FEATURE_ADC_ETC_HAS_NO_TSC0_TRIG (1)
157 /* @brief Has no TSC1 trigger related bitfields (bit field CTRL[EXT1_TRIG_ENABLE], CTRL[EXT1_TRIG_PRIORITY]). */
158 #define FSL_FEATURE_ADC_ETC_HAS_NO_TSC1_TRIG (1)
159 
160 /* AOI module features */
161 
162 /* @brief Maximum value of input mux. */
163 #define FSL_FEATURE_AOI_MODULE_INPUTS (4)
164 /* @brief Number of events related to number of registers AOIx_BFCRT01n/AOIx_BFCRT23n. */
165 #define FSL_FEATURE_AOI_EVENT_COUNT (4)
166 
167 /* ASRC module features */
168 
169 /* @brief Register name is ASRPM or ASRPMn */
170 #define FSL_FEATURE_ASRC_PARAMETER_REGISTER_NAME_ASRPM (1)
171 
172 /* FLEXCAN module features */
173 
174 /* @brief Has more than 64 MBs. */
175 #define FSL_FEATURE_FLEXCAN_HAS_MORE_THAN_64_MB (0)
176 /* @brief Message buffer size */
177 #define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (64)
178 /* @brief Has doze mode support (register bit field MCR[DOZE]). */
179 #define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (1)
180 /* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */
181 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) (1)
182 /* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */
183 #define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1)
184 /* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */
185 #define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (1)
186 /* @brief Instance has extended bit timing register (register CBT). */
187 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) (1)
188 /* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */
189 #define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (1)
190 /* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */
191 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) (1)
192 /* @brief Remove CAN Engine Clock Source Selection from unsupported part. */
193 #define FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE (0)
194 /* @brief Instance remove CAN Engine Clock Source Selection from unsupported part. */
195 #define FSL_FEATURE_FLEXCAN_INSTANCE_SUPPORT_ENGINE_CLK_SEL_REMOVEn(x) (0)
196 /* @brief Is affected by errata with ID 5641 (Module does not transmit a message that is enabled to be transmitted at a specific moment during the arbitration process). */
197 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (0)
198 /* @brief Is affected by errata with ID 5829 (FlexCAN: FlexCAN does not transmit a message that is enabled to be transmitted in a specific moment during the arbitration process). */
199 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5829 (0)
200 /* @brief Is affected by errata with ID 6032 (FlexCAN: A frame with wrong ID or payload is transmitted into the CAN bus when the Message Buffer under transmission is either aborted or deactivated while the CAN bus is in the Bus Idle state). */
201 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 (0)
202 /* @brief Is affected by errata with ID 9595 (FlexCAN: Corrupt frame possible if the Freeze Mode or the Low-Power Mode are entered during a Bus-Off state). */
203 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_9595 (0)
204 /* @brief Has CAN with Flexible Data rate (CAN FD) protocol. */
205 #define FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE (1)
206 /* @brief CAN instance support Flexible Data rate (CAN FD) protocol. */
207 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_FLEXIBLE_DATA_RATEn(x) (1)
208 /* @brief Has memory error control (register MECR). */
209 #define FSL_FEATURE_FLEXCAN_HAS_MEMORY_ERROR_CONTROL (1)
210 /* @brief Init memory base 1 */
211 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_1 (0x80)
212 /* @brief Init memory size 1 */
213 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_1 (0xA60)
214 /* @brief Init memory base 2 */
215 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_2 (0xF28)
216 /* @brief Init memory size 2 */
217 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_2 (0xD8)
218 /* @brief Has enhanced bit timing register (register EPRS, ENCBT, EDCBT and ETDC). */
219 #define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_BIT_TIMING_REG (0)
220 /* @brief Has Pretended Networking mode support. */
221 #define FSL_FEATURE_FLEXCAN_HAS_PN_MODE (0)
222 /* @brief Does not support Supervisor Mode (bitfield MCR[SUPV]. */
223 #define FSL_FEATURE_FLEXCAN_HAS_NO_SUPV_SUPPORT (0)
224 
225 /* CCM module features */
226 
227 /* @brief Is affected by errata with ID 50235 (Incorrect clock setting for CAN affects by LPUART clock gate). */
228 #define FSL_FEATURE_CCM_HAS_ERRATA_50235 (0)
229 
230 /* CDOG module features */
231 
232 /* @brief CDOG Has No Reset */
233 #define FSL_FEATURE_CDOG_HAS_NO_RESET (1)
234 
235 /* IGPIO module features */
236 
237 /* @brief Has data register set DR_SET. */
238 #define FSL_FEATURE_IGPIO_HAS_DR_SET (1)
239 /* @brief Has data register clear DR_CLEAR. */
240 #define FSL_FEATURE_IGPIO_HAS_DR_CLEAR (1)
241 /* @brief Has data register toggle DR_TOGGLE. */
242 #define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (1)
243 
244 /* ACMP module features */
245 
246 /* @brief Has CMP_C3. */
247 #define FSL_FEATURE_ACMP_HAS_C3_REG (1)
248 /* @brief Has C0 LINKEN Bit */
249 #define FSL_FEATURE_ACMP_HAS_C0_LINKEN_BIT (1)
250 /* @brief Has C0 OFFSET Bit */
251 #define FSL_FEATURE_ACMP_HAS_C0_OFFSET_BIT (0)
252 /* @brief Has C0 HYSTCTR Bit */
253 #define FSL_FEATURE_ACMP_HAS_C0_HYSTCTR_BIT (1)
254 /* @brief Has C1 INPSEL Bit */
255 #define FSL_FEATURE_ACMP_HAS_C1_INPSEL_BIT (0)
256 /* @brief Has C1 INNSEL Bit */
257 #define FSL_FEATURE_ACMP_HAS_C1_INNSEL_BIT (0)
258 /* @brief Has C1 DACOE Bit */
259 #define FSL_FEATURE_ACMP_HAS_C1_DACOE_BIT (0)
260 /* @brief Has C1 DMODE Bit */
261 #define FSL_FEATURE_ACMP_HAS_C1_DMODE_BIT (1)
262 /* @brief Has C2 RRE Bit */
263 #define FSL_FEATURE_ACMP_HAS_C2_RRE_BIT (0)
264 
265 /* CSI module features */
266 
267 /* @brief If CSI registers don't have prefix. */
268 #define FSL_FEATURE_CSI_NO_REG_PREFIX (1)
269 
270 /* DAC12 module features */
271 
272 /* @brief Has no ITRM register. */
273 #define FSL_FEATURE_DAC12_HAS_NO_ITRM_REGISTER (1)
274 /* @brief Has hardware trigger. */
275 #define FSL_FEATURE_DAC12_HAS_HW_TRIGGER (0)
276 
277 /* DCDC module features */
278 
279 /* @brief Has CTRL register (register CTRL0/1). */
280 #define FSL_FEATURE_DCDC_HAS_CTRL_REG (1)
281 /* @brief DCDC VDD output count. */
282 #define FSL_FEATURE_DCDC_VDD_OUTPUT_COUNT (2)
283 /* @brief Has no current alert function (register bit field REG0[CURRENT_ALERT_RESET]). */
284 #define FSL_FEATURE_DCDC_HAS_NO_CURRENT_ALERT_FUNC (1)
285 /* @brief Has switching converter differential mode (register bit field REG1[LOOPCTRL_EN_DF_HYST]). */
286 #define FSL_FEATURE_DCDC_HAS_SWITCHING_CONVERTER_DIFFERENTIAL_MODE (1)
287 /* @brief Has register bit field REG0[REG_DCDC_IN_DET]. */
288 #define FSL_FEATURE_DCDC_HAS_REG0_DCDC_IN_DET (1)
289 /* @brief Has no register bit field REG0[EN_LP_OVERLOAD_SNS]. */
290 #define FSL_FEATURE_DCDC_HAS_NO_REG0_EN_LP_OVERLOAD_SNS (1)
291 /* @brief Has register bit field REG3[REG_FBK_SEL]). */
292 #define FSL_FEATURE_DCDC_HAS_REG3_FBK_SEL (1)
293 
294 /* EDMA module features */
295 
296 /* @brief Number of DMA channels (related to number of registers TCD, DCHPRI, bit fields ERQ[ERQn], EEI[EEIn], INT[INTn], ERR[ERRn], HRS[HRSn] and bit field widths ES[ERRCHN], CEEI[CEEI], SEEI[SEEI], CERQ[CERQ], SERQ[SERQ], CDNE[CDNE], SSRT[SSRT], CERR[CERR], CINT[CINT], TCDn_CITER_ELINKYES[LINKCH], TCDn_CSR[MAJORLINKCH], TCDn_BITER_ELINKYES[LINKCH]). (Valid only for eDMA modules.) */
297 #define FSL_FEATURE_EDMA_MODULE_CHANNEL (32)
298 /* @brief Total number of DMA channels on all modules. */
299 #define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (32)
300 /* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */
301 #define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1)
302 /* @brief Has DMA_Error interrupt vector. */
303 #define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1)
304 /* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */
305 #define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32)
306 /* @brief Channel IRQ entry shared offset. */
307 #define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SHARED_OFFSET (16)
308 /* @brief If 8 bytes transfer supported. */
309 #define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (1)
310 /* @brief If 16 bytes transfer supported. */
311 #define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (0)
312 /* @brief If 32 bytes transfer supported. */
313 #define FSL_FEATURE_EDMA_SUPPORT_32_BYTES_TRANSFER (1)
314 
315 /* DMAMUX module features */
316 
317 /* @brief Number of DMA channels (related to number of register CHCFGn). */
318 #define FSL_FEATURE_DMAMUX_MODULE_CHANNEL (32)
319 /* @brief Total number of DMA channels on all modules. */
320 #define FSL_FEATURE_DMAMUX_DMAMUX_CHANNELS (64)
321 /* @brief Has the periodic trigger capability for the triggered DMA channel (register bit CHCFG0[TRIG]). */
322 #define FSL_FEATURE_DMAMUX_HAS_TRIG (1)
323 /* @brief Has DMA Channel Always ON function (register bit CHCFG0[A_ON]). */
324 #define FSL_FEATURE_DMAMUX_HAS_A_ON (1)
325 /* @brief Register CHCFGn width. */
326 #define FSL_FEATURE_DMAMUX_CHCFG_REGISTER_WIDTH (32)
327 
328 /* DSI_HOST module features */
329 
330 /* @brief Has separate submodules */
331 #define FSL_FEATURE_MIPI_DSI_HAS_SEPARATE_SUBMODULE (1)
332 
333 /* ENC module features */
334 
335 /* @brief Has no simultaneous PHASEA and PHASEB change interrupt (register bit field CTRL2[SABIE] and CTRL2[SABIRQ]). */
336 #define FSL_FEATURE_ENC_HAS_NO_CTRL2_SAB_INT (0)
337 /* @brief Has register CTRL3. */
338 #define FSL_FEATURE_ENC_HAS_CTRL3 (1)
339 /* @brief Has register LASTEDGE or LASTEDGEH. */
340 #define FSL_FEATURE_ENC_HAS_LASTEDGE (1)
341 /* @brief Has register POSDPERBFR, POSDPERH, or POSDPER. */
342 #define FSL_FEATURE_ENC_HAS_POSDPER (1)
343 /* @brief Has bitfiled FILT[FILT_PRSC]. */
344 #define FSL_FEATURE_ENC_HAS_FILT_PRSC (0)
345 
346 /* ENET module features */
347 
348 /* @brief Support Interrupt Coalesce */
349 #define FSL_FEATURE_ENET_HAS_INTERRUPT_COALESCE (1)
350 /* @brief Queue Size. */
351 #define FSL_FEATURE_ENET_QUEUE (3)
352 /* @brief Has AVB Support. */
353 #define FSL_FEATURE_ENET_HAS_AVB (1)
354 /* @brief Has Timer Pulse Width control. */
355 #define FSL_FEATURE_ENET_HAS_TIMER_PWCONTROL (1)
356 /* @brief Has Extend MDIO Support. */
357 #define FSL_FEATURE_ENET_HAS_EXTEND_MDIO (1)
358 /* @brief Has Additional 1588 Timer Channel Interrupt. */
359 #define FSL_FEATURE_ENET_HAS_ADD_1588_TIMER_CHN_INT (1)
360 /* @brief Support Interrupt Coalesce for each instance */
361 #define FSL_FEATURE_ENET_INSTANCE_HAS_INTERRUPT_COALESCEn(x) (1)
362 /* @brief Queue Size for each instance. */
363 #define FSL_FEATURE_ENET_INSTANCE_QUEUEn(x) \
364     (((x) == ENET) ? (1) : \
365     (((x) == ENET_1G) ? (3) : (-1)))
366 /* @brief Has AVB Support for each instance. */
367 #define FSL_FEATURE_ENET_INSTANCE_HAS_AVBn(x) \
368     (((x) == ENET) ? (0) : \
369     (((x) == ENET_1G) ? (1) : (-1)))
370 /* @brief Has Timer Pulse Width control for each instance. */
371 #define FSL_FEATURE_ENET_INSTANCE_HAS_TIMER_PWCONTROLn(x) \
372     (((x) == ENET) ? (1) : \
373     (((x) == ENET_1G) ? (0) : (-1)))
374 /* @brief Has Extend MDIO Support for each instance. */
375 #define FSL_FEATURE_ENET_INSTANCE_HAS_EXTEND_MDIOn(x) (1)
376 /* @brief Has Additional 1588 Timer Channel Interrupt for each instance. */
377 #define FSL_FEATURE_ENET_INSTANCE_HAS_ADD_1588_TIMER_CHN_INTn(x) (1)
378 /* @brief Has threshold for the number of frames in the receive FIFO (register bit field RSEM[STAT_SECTION_EMPTY]). */
379 #define FSL_FEATURE_ENET_HAS_RECEIVE_STATUS_THRESHOLD (1)
380 /* @brief Has trasfer clock delay (register bit field ECR[TXC_DLY]). */
381 #define FSL_FEATURE_ENET_HAS_RGMII_TXC_DELAY (1)
382 /* @brief Has receive clock delay (register bit field ECR[RXC_DLY]). */
383 #define FSL_FEATURE_ENET_HAS_RGMII_RXC_DELAY (0)
384 /* @brief PTP Timestamp CAPTURE bit always returns 0 when the capture is not over. */
385 #define FSL_FEATURE_ENET_TIMESTAMP_CAPTURE_BIT_INVALID (0)
386 /* @brief ENET Has Extra Clock Gate.(RW610). */
387 #define FSL_FEATURE_ENET_HAS_EXTRA_CLOCK_GATE (0)
388 
389 /* ENET_QOS module features */
390 
391 /* @brief ENET QOS Queue Tx checksum offload support bit map.  */
392 #define FSL_FEATURE_ENET_QOS_TX_OFFLOAD_QUEUE_SUPPORT_BITMAP (0x1)
393 
394 /* EWM module features */
395 
396 /* @brief Has clock select (register CLKCTRL). */
397 #define FSL_FEATURE_EWM_HAS_CLOCK_SELECT (1)
398 /* @brief Has clock prescaler (register CLKPRESCALER). */
399 #define FSL_FEATURE_EWM_HAS_PRESCALER (1)
400 
401 /* FLEXIO module features */
402 
403 /* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */
404 #define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1)
405 /* @brief Has Pin Data Input Register (FLEXIO_PIN) */
406 #define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1)
407 /* @brief Has pin input output related registers */
408 #define FSL_FEATURE_FLEXIO_HAS_PIN_REGISTER (0)
409 /* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */
410 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1)
411 /* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */
412 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_HALF_WORD_SWAP (1)
413 /* @brief Has Shifter Buffer N Nibble Swapped Register (FLEXIO_SHIFTBUFNISn) */
414 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_SWAP (1)
415 /* @brief Supports Shifter State Mode (FLEXIO_SHIFTCTLn[SMOD]) */
416 #define FSL_FEATURE_FLEXIO_HAS_STATE_MODE (1)
417 /* @brief Supports Shifter Logic Mode (FLEXIO_SHIFTCTLn[SMOD]) */
418 #define FSL_FEATURE_FLEXIO_HAS_LOGIC_MODE (1)
419 /* @brief Supports paralle width (FLEXIO_SHIFTCFGn[PWIDTH]) */
420 #define FSL_FEATURE_FLEXIO_HAS_PARALLEL_WIDTH (1)
421 /* @brief Reset value of the FLEXIO_VERID register */
422 #define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x2000001)
423 /* @brief Reset value of the FLEXIO_PARAM register */
424 #define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x2200808)
425 /* @brief Represent the bit width of the TIMDCE field (FLEXIO_TIMCFGLn[TIMDEC]) */
426 #define FSL_FEATURE_FLEXIO_TIMCFG_TIMDCE_FIELD_WIDTH (3)
427 /* @brief Flexio DMA request base channel */
428 #define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0)
429 
430 /* FLEXRAM module features */
431 
432 /* @brief Bank size */
433 #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_BANK_SIZE (32768)
434 /* @brief Total Bank numbers */
435 #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_TOTAL_BANK_NUMBERS (16)
436 /* @brief Has FLEXRAM_MAGIC_ADDR. */
437 #define FSL_FEATURE_FLEXRAM_HAS_MAGIC_ADDR (1)
438 /* @brief If FLEXRAM has ECC function. */
439 #define FSL_FEATURE_FLEXRAM_HAS_ECC (1)
440 /* @brief If FLEXRAM has ECC Error Injection function. */
441 #define FSL_FEATURE_FLEXRAM_HAS_ECC_ERROR_INJECTION (0)
442 
443 /* FLEXSPI module features */
444 
445 /* @brief FlexSPI AHB buffer count */
446 #define FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(x) (8)
447 /* @brief FlexSPI has no data learn. */
448 #define FSL_FEATURE_FLEXSPI_HAS_NO_DATA_LEARN (1)
449 /* @brief There is AHBBUSERROREN bit in INTEN register. */
450 #define FSL_FEATURE_FLEXSPI_HAS_INTEN_AHBBUSERROREN (1)
451 /* @brief There is CLRAHBTX_RXBUF bit in AHBCR register. */
452 #define FSL_FEATURE_FLEXSPI_HAS_AHBCR_CLRAHBTX_RXBUF (0)
453 /* @brief FLEXSPI has no IP parallel mode. */
454 #define FSL_FEATURE_FLEXSPI_HAS_NO_IP_PARALLEL_MODE (0)
455 /* @brief FLEXSPI has no AHB parallel mode. */
456 #define FSL_FEATURE_FLEXSPI_HAS_NO_AHB_PARALLEL_MODE (0)
457 /* @brief FLEXSPI support address shift. */
458 #define FSL_FEATURE_FLEXSPI_SUPPORT_ADDRESS_SHIFT (0)
459 /* @brief FlexSPI has no MCR0 ARDFEN bit */
460 #define FSL_FEATURE_FLEXSPI_HAS_NO_MCR0_ARDFEN (0)
461 /* @brief FlexSPI has no MCR0 ATDFEN bit */
462 #define FSL_FEATURE_FLEXSPI_HAS_NO_MCR0_ATDFEN (0)
463 /* @brief FlexSPI has no STS0 DATALEARNPHASEB bit */
464 #define FSL_FEATURE_FLEXSPI_HAS_NO_STS0_DATALEARNPHASEB (1)
465 
466 /* GPC_CPU_CTRL module features */
467 
468 /* No feature definitions */
469 
470 /* KEY_MANAGER module features */
471 
472 /* No feature definitions */
473 
474 /* PUF module features */
475 
476 /* @brief PUF need to setup SRAM manually */
477 #define FSL_FEATURE_PUF_PWR_HAS_MANUAL_SLEEP_CONTROL (1)
478 /* @brief PUF has SHIFT_STATUS register. */
479 #define FSL_FEATURE_PUF_HAS_SHIFT_STATUS (0)
480 /* @brief PUF has IDXBLK_SHIFT register. */
481 #define FSL_FEATURE_PUF_HAS_IDXBLK_SHIFT (1)
482 /* @brief SOC has no reset driver. */
483 #define FSL_FEATURE_PUF_HAS_NO_RESET (1)
484 
485 /* LCDIF module features */
486 
487 /* @brief LCDIF does not support alpha support. */
488 #define FSL_FEATURE_LCDIF_HAS_NO_AS (1)
489 /* @brief LCDIF does not support output reset pin to LCD panel. */
490 #define FSL_FEATURE_LCDIF_HAS_NO_RESET_PIN (1)
491 /* @brief LCDIF supports LUT. */
492 #define FSL_FEATURE_LCDIF_HAS_LUT (1)
493 
494 /* LCDIFV2 module features */
495 
496 /* @brief Clut RAM offset, see datail in RM */
497 #define FSL_FEATURE_LCDIFV2_CLUT_RAM_OFFSET (0x2000)
498 /* @brief Init doamin count, register INIT[n]_ENABLE. */
499 #define FSL_FEATURE_LCDIFV2_INT_DOMAIN_COUNT (2)
500 /* @brief Layer count */
501 #define FSL_FEATURE_LCDIFV2_LAYER_COUNT (8)
502 /* @brief CSC count in layer, register CSC_COEF[n]. */
503 #define FSL_FEATURE_LCDIFV2_LAYER_CSC_COUNT (2)
504 
505 /* LPADC module features */
506 
507 /* @brief FIFO availability on the SoC. */
508 #define FSL_FEATURE_LPADC_FIFO_COUNT (1)
509 /* @brief Has subsequent trigger priority (bitfield CFG[TPRICTRL]). */
510 #define FSL_FEATURE_LPADC_HAS_CFG_SUBSEQUENT_PRIORITY (1)
511 /* @brief Has differential mode (bitfield CMDLn[DIFF]). */
512 #define FSL_FEATURE_LPADC_HAS_CMDL_DIFF (1)
513 /* @brief Has channel scale (bitfield CMDLn[CSCALE]). */
514 #define FSL_FEATURE_LPADC_HAS_CMDL_CSCALE (1)
515 /* @brief Has conversion type select (bitfield CMDLn[CTYPE]). */
516 #define FSL_FEATURE_LPADC_HAS_CMDL_CTYPE (0)
517 /* @brief Has conversion resolution select  (bitfield CMDLn[MODE]). */
518 #define FSL_FEATURE_LPADC_HAS_CMDL_MODE (0)
519 /* @brief Has compare function enable (bitfield CMDHn[CMPEN]). */
520 #define FSL_FEATURE_LPADC_HAS_CMDH_CMPEN (1)
521 /* @brief Has Wait for trigger assertion before execution (bitfield CMDHn[WAIT_TRIG]). */
522 #define FSL_FEATURE_LPADC_HAS_CMDH_WAIT_TRIG (0)
523 /* @brief Has offset calibration (bitfield CTRL[CALOFS]). */
524 #define FSL_FEATURE_LPADC_HAS_CTRL_CALOFS (0)
525 /* @brief Has gain calibration (bitfield CTRL[CAL_REQ]). */
526 #define FSL_FEATURE_LPADC_HAS_CTRL_CAL_REQ (0)
527 /* @brief Has calibration average (bitfield CTRL[CAL_AVGS]). */
528 #define FSL_FEATURE_LPADC_HAS_CTRL_CAL_AVGS (0)
529 /* @brief Has internal clock (bitfield CFG[ADCKEN]). */
530 #define FSL_FEATURE_LPADC_HAS_CFG_ADCKEN (0)
531 /* @brief Enable support for low voltage reference on option 1 reference (bitfield CFG[VREF1RNG]). */
532 #define FSL_FEATURE_LPADC_HAS_CFG_VREF1RNG (0)
533 /* @brief Has calibration (bitfield CFG[CALOFS]). */
534 #define FSL_FEATURE_LPADC_HAS_CFG_CALOFS (0)
535 /* @brief Has offset trim (register OFSTRIM). */
536 #define FSL_FEATURE_LPADC_HAS_OFSTRIM (0)
537 /* @brief Has Trigger status register. */
538 #define FSL_FEATURE_LPADC_HAS_TSTAT (0)
539 /* @brief Has power select (bitfield CFG[PWRSEL]). */
540 #define FSL_FEATURE_LPADC_HAS_CFG_PWRSEL (1)
541 /* @brief Has alternate channel B scale (bitfield CMDLn[ALTB_CSCALE]). */
542 #define FSL_FEATURE_LPADC_HAS_CMDL_ALTB_CSCALE (0)
543 /* @brief Has alternate channel B select enable (bitfield CMDLn[ALTBEN]). */
544 #define FSL_FEATURE_LPADC_HAS_CMDL_ALTBEN (0)
545 /* @brief Has alternate channel input (bitfield CMDLn[ALTB_ADCH]). */
546 #define FSL_FEATURE_LPADC_HAS_CMDL_ALTB_ADCH (0)
547 /* @brief Has offset calibration mode (bitfield CTRL[CALOFSMODE]). */
548 #define FSL_FEATURE_LPADC_HAS_CTRL_CALOFSMODE (0)
549 /* @brief Conversion averaged bitfiled width. */
550 #define FSL_FEATURE_LPADC_CONVERSIONS_AVERAGED_BITFIELD_WIDTH (3)
551 /* @brief Enable hardware trigger command selection */
552 #define FSL_FEATURE_LPADC_HAS_TCTRL_CMD_SEL (1)
553 /* @brief Has B side channels. */
554 #define FSL_FEATURE_LPADC_HAS_B_SIDE_CHANNELS (1)
555 /* @brief Indicate whether the LPADC STAT register has trigger exception interrupt function (bitfield STAT[TEXC_INT]). */
556 #define FSL_FEATURE_LPADC_HAS_STAT_TEXC_INT (0)
557 /* @brief Indicate whether the LPADC STAT register has trigger completion interrupt function (bitfield STAT[TCOMP_INT]). */
558 #define FSL_FEATURE_LPADC_HAS_STAT_TCOMP_INT (0)
559 /* @brief Indicate whether the LPADC STAT register has calibration ready function (bitfield STAT[CAL_RDY]). */
560 #define FSL_FEATURE_LPADC_HAS_STAT_CAL_RDY (0)
561 /* @brief Indicate whether the LPADC STAT register has ADC active function (bitfield STAT[ADC_ACTIVE]). */
562 #define FSL_FEATURE_LPADC_HAS_STAT_ADC_ACTIVE (1)
563 /* @brief Indicate whether the LPADC IE register has trigger exception interrupt enable function (bitfield IE[TEXC_IE]). */
564 #define FSL_FEATURE_LPADC_HAS_IE_TEXC_IE (0)
565 /* @brief Indicate whether the LPADC IE register has trigger completion interrupt enable function (bitfield IE[TCOMP_IE]). */
566 #define FSL_FEATURE_LPADC_HAS_IE_TCOMP_IE (0)
567 /* @brief Indicate whether the LPADC CFG register has trigger resume/restart enable function (bitfield CFG[TRES]). */
568 #define FSL_FEATURE_LPADC_HAS_CFG_TRES (0)
569 /* @brief Indicate whether the LPADC CFG register has trigger command resume/restart enable function (bitfield CFG[TCMDRES]). */
570 #define FSL_FEATURE_LPADC_HAS_CFG_TCMDRES (0)
571 /* @brief Indicate whether the LPADC CFG register has high priority trigger exception disable function (bitfield CFG[HPT_EXDI]). */
572 #define FSL_FEATURE_LPADC_HAS_CFG_HPT_EXDI (0)
573 /* @brief Indicate LPADC CFG register TPRICTRL bitfield width. */
574 #define FSL_FEATURE_LPADC_CFG_TPRICTRL_BITFIELD_WIDTH (1)
575 
576 /* LPI2C module features */
577 
578 /* @brief Has separate DMA RX and TX requests. */
579 #define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0)
580 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
581 #define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (4)
582 
583 /* LPSPI module features */
584 
585 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
586 #define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (16)
587 /* @brief Has separate DMA RX and TX requests. */
588 #define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
589 /* @brief Has CCR1 (related to existence of registers CCR1). */
590 #define FSL_FEATURE_LPSPI_HAS_CCR1 (0)
591 
592 /* LPUART module features */
593 
594 /* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
595 #define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0)
596 /* @brief Has low power features (can be enabled in wait mode via register bit C1[DOZEEN] or CTRL[DOZEEN] if the registers are 32-bit wide). */
597 #define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1)
598 /* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
599 #define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
600 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
601 #define FSL_FEATURE_LPUART_HAS_FIFO (1)
602 /* @brief Has 32-bit register MODIR */
603 #define FSL_FEATURE_LPUART_HAS_MODIR (1)
604 /* @brief Hardware flow control (RTS, CTS) is supported. */
605 #define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1)
606 /* @brief Infrared (modulation) is supported. */
607 #define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1)
608 /* @brief 2 bits long stop bit is available. */
609 #define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
610 /* @brief If 10-bit mode is supported. */
611 #define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1)
612 /* @brief If 7-bit mode is supported. */
613 #define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (1)
614 /* @brief Baud rate fine adjustment is available. */
615 #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0)
616 /* @brief Baud rate oversampling is available (has bit fields C4[OSR], C5[BOTHEDGE], C5[RESYNCDIS] or BAUD[OSR], BAUD[BOTHEDGE], BAUD[RESYNCDIS] if the registers are 32-bit wide). */
617 #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1)
618 /* @brief Baud rate oversampling is available. */
619 #define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1)
620 /* @brief Baud rate oversampling is available. */
621 #define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1)
622 /* @brief Peripheral type. */
623 #define FSL_FEATURE_LPUART_IS_SCI (1)
624 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
625 #define FSL_FEATURE_LPUART_FIFO_SIZEn(x) (4)
626 /* @brief Supports two match addresses to filter incoming frames. */
627 #define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1)
628 /* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
629 #define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1)
630 /* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
631 #define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0)
632 /* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
633 #define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1)
634 /* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
635 #define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0)
636 /* @brief Has improved smart card (ISO7816 protocol) support. */
637 #define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0)
638 /* @brief Has local operation network (CEA709.1-B protocol) support. */
639 #define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
640 /* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
641 #define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1)
642 /* @brief Lin break detect available (has bit BAUD[LBKDIE]). */
643 #define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1)
644 /* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
645 #define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0)
646 /* @brief Has separate DMA RX and TX requests. */
647 #define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
648 /* @brief Has separate RX and TX interrupts. */
649 #define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0)
650 /* @brief Has LPAURT_PARAM. */
651 #define FSL_FEATURE_LPUART_HAS_PARAM (1)
652 /* @brief Has LPUART_VERID. */
653 #define FSL_FEATURE_LPUART_HAS_VERID (1)
654 /* @brief Has LPUART_GLOBAL. */
655 #define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
656 /* @brief Has LPUART_PINCFG. */
657 #define FSL_FEATURE_LPUART_HAS_PINCFG (1)
658 /* @brief Has register MODEM Control. */
659 #define FSL_FEATURE_LPUART_HAS_MCR (0)
660 /* @brief Has register Half Duplex Control. */
661 #define FSL_FEATURE_LPUART_HAS_HDCR (0)
662 /* @brief Has register Timeout. */
663 #define FSL_FEATURE_LPUART_HAS_TIMEOUT (0)
664 
665 /* CSI2RX module features */
666 
667 /* @brief If MIPI_CSI2RX registers don't have prefix. */
668 #define FSL_FEATURE_CSI2RX_HAS_NO_REG_PREFIX (1)
669 
670 /* MU module features */
671 
672 /* @brief MU side for current core */
673 #define FSL_FEATURE_MU_SIDE_A (1)
674 /* @brief MU Has register CCR */
675 #define FSL_FEATURE_MU_HAS_CCR (0)
676 /* @brief MU Has register SR[RS], BSR[ARS] */
677 #define FSL_FEATURE_MU_HAS_SR_RS (1)
678 /* @brief MU Has register CR[RDIE], CR[RAIE], SR[RDIP], SR[RAIP] */
679 #define FSL_FEATURE_MU_HAS_RESET_INT (0)
680 /* @brief MU Has register SR[MURIP] */
681 #define FSL_FEATURE_MU_HAS_SR_MURIP (0)
682 /* @brief MU Has register SR[HRIP] */
683 #define FSL_FEATURE_MU_HAS_SR_HRIP (0)
684 /* @brief MU does not support enable clock of the other core, CR[CLKE] or CCR[CLKE]. */
685 #define FSL_FEATURE_MU_NO_CLKE (1)
686 /* @brief MU does not support NMI, CR[NMI]. */
687 #define FSL_FEATURE_MU_NO_NMI (1)
688 /* @brief MU does not support hold the other core reset. CR[RSTH] or CCR[RSTH]. */
689 #define FSL_FEATURE_MU_NO_RSTH (1)
690 /* @brief MU does not supports MU reset, CR[MUR]. */
691 #define FSL_FEATURE_MU_NO_MUR (0)
692 /* @brief MU does not supports hardware reset, CR[HR] or CCR[HR]. */
693 #define FSL_FEATURE_MU_NO_HR (1)
694 /* @brief MU supports mask the hardware reset. CR[HRM] or CCR[HRM]. */
695 #define FSL_FEATURE_MU_HAS_HRM (0)
696 /* @brief MU does not support check the other core power mode. SR[PM] or BSR[APM]. */
697 #define FSL_FEATURE_MU_NO_PM (1)
698 /* @brief MU supports reset assert interrupt. CR[RAIE] or BCR[RAIE]. */
699 #define FSL_FEATURE_MU_HAS_RESET_ASSERT_INT (0)
700 /* @brief MU supports reset de-assert interrupt. CR[RDIE] or BCR[RDIE]. */
701 #define FSL_FEATURE_MU_HAS_RESET_DEASSERT_INT (0)
702 
703 /* interrupt module features */
704 
705 /* @brief Lowest interrupt request number. */
706 #define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14)
707 /* @brief Highest interrupt request number. */
708 #define FSL_FEATURE_INTERRUPT_IRQ_MAX (105)
709 
710 /* OCOTP module features */
711 
712 /* @brief Has timing control, (register TIMING). */
713 #define FSL_FEATURE_OCOTP_HAS_TIMING_CTRL (0)
714 /* @brief Support lock eFuse word write lock, (CTRL[WORDLOCK]). */
715 #define FSL_FEATURE_OCOTP_HAS_WORDLOCK (1)
716 
717 /* PDM module features */
718 
719 /* @brief PDM FIFO offset */
720 #define FSL_FEATURE_PDM_FIFO_OFFSET (4)
721 /* @brief PDM Channel Number */
722 #define FSL_FEATURE_PDM_CHANNEL_NUM (8)
723 /* @brief PDM FIFO WIDTH Size */
724 #define FSL_FEATURE_PDM_FIFO_WIDTH (4)
725 /* @brief PDM FIFO DEPTH Size */
726 #define FSL_FEATURE_PDM_FIFO_DEPTH (8)
727 /* @brief PDM has RANGE_CTRL register */
728 #define FSL_FEATURE_PDM_HAS_RANGE_CTRL (1)
729 /* @brief PDM Has Low Frequency */
730 #define FSL_FEATURE_PDM_HAS_STATUS_LOW_FREQ (1)
731 /* @brief CLKDIV factor in Medium, High and Low Quality modes */
732 #define FSL_FEATURE_PDM_HIGH_QUALITY_CLKDIV_FACTOR (93)
733 /* @brief CLKDIV factor in Very Low Quality modes */
734 #define FSL_FEATURE_PDM_VERY_LOW_QUALITY_CLKDIV_FACTOR (43)
735 /* @brief PDM Has No VADEF Bitfield In PDM VAD0_STAT Register */
736 #define FSL_FEATURE_PDM_HAS_NO_VADEF (0)
737 /* @brief PDM Has no FIR_RDY Bitfield In PDM STAT Register */
738 #define FSL_FEATURE_PDM_HAS_NO_FIR_RDY (0)
739 /* @brief PDM Has no DOZEN Bitfield In PDM CTRL_1 Register */
740 #define FSL_FEATURE_PDM_HAS_NO_DOZEN (0)
741 
742 /* PIT module features */
743 
744 /* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */
745 #define FSL_FEATURE_PIT_TIMER_COUNT (4)
746 /* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */
747 #define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (1)
748 /* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */
749 #define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1)
750 /* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
751 #define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (1)
752 /* @brief Has timer enable control. */
753 #define FSL_FEATURE_PIT_HAS_MDIS (1)
754 
755 /* PWM module features */
756 
757 /* @brief If (e)FlexPWM has module A channels (outputs). */
758 #define FSL_FEATURE_PWM_HAS_CHANNELA (1)
759 /* @brief If (e)FlexPWM has module B channels (outputs). */
760 #define FSL_FEATURE_PWM_HAS_CHANNELB (1)
761 /* @brief If (e)FlexPWM has module X channels (outputs). */
762 #define FSL_FEATURE_PWM_HAS_CHANNELX (1)
763 /* @brief If (e)FlexPWM has fractional feature. */
764 #define FSL_FEATURE_PWM_HAS_FRACTIONAL (1)
765 /* @brief If (e)FlexPWM has mux trigger source select bit field. */
766 #define FSL_FEATURE_PWM_HAS_MUX_TRIGGER_SOURCE_SEL (1)
767 /* @brief Number of submodules in each (e)FlexPWM module. */
768 #define FSL_FEATURE_PWM_SUBMODULE_COUNT (4)
769 /* @brief Number of fault channel in each (e)FlexPWM module. */
770 #define FSL_FEATURE_PWM_FAULT_CH_COUNT (1)
771 /* @brief (e)FlexPWM has no WAITEN Bitfield In CTRL2 Register. */
772 #define FSL_FEATURE_PWM_HAS_NO_WAITEN (1)
773 /* @brief If (e)FlexPWM has phase delay feature. */
774 #define FSL_FEATURE_PWM_HAS_PHASE_DELAY (0)
775 /* @brief If (e)FlexPWM has input filter capture feature. */
776 #define FSL_FEATURE_PWM_HAS_INPUT_FILTER_CAPTURE (0)
777 /* @brief If (e)FlexPWM has module capture functionality on A channels (inputs). */
778 #define FSL_FEATURE_PWM_HAS_CAPTURE_ON_CHANNELA (1)
779 /* @brief If (e)FlexPWM has module capture functionality on B channels (inputs). */
780 #define FSL_FEATURE_PWM_HAS_CAPTURE_ON_CHANNELB (1)
781 /* @brief If (e)FlexPWM has module capture functionality on X channels (inputs). */
782 #define FSL_FEATURE_PWM_HAS_CAPTURE_ON_CHANNELX (1)
783 
784 /* PXP module features */
785 
786 /* @brief PXP module has dither engine. */
787 #define FSL_FEATURE_PXP_HAS_DITHER (0)
788 /* @brief PXP module supports repeat run */
789 #define FSL_FEATURE_PXP_HAS_EN_REPEAT (1)
790 /* @brief PXP doesn't have CSC */
791 #define FSL_FEATURE_PXP_HAS_NO_CSC2 (1)
792 /* @brief PXP doesn't have LUT */
793 #define FSL_FEATURE_PXP_HAS_NO_LUT (1)
794 /* @brief PXP doesn't have PORTER_DUFF_CTR */
795 #define FSL_FEATURE_PXP_HAS_NO_PORTER_DUFF_CTRL (0)
796 /* @brief PXP 3.0 version */
797 #define FSL_FEATURE_PXP_V3 (0)
798 /* @brief PXP doesn't have ROT_POS */
799 #define FSL_FEATURE_PXP_HAS_NO_ROT_POS (1)
800 
801 /* RTWDOG module features */
802 
803 /* @brief Watchdog is available. */
804 #define FSL_FEATURE_RTWDOG_HAS_WATCHDOG (1)
805 /* @brief RTWDOG_CNT can be 32-bit written. */
806 #define FSL_FEATURE_RTWDOG_HAS_32BIT_ACCESS (1)
807 
808 /* SAI module features */
809 
810 /* @brief SAI has FIFO in this soc (register bit fields TCR1[TFW]. */
811 #define FSL_FEATURE_SAI_HAS_FIFO (1)
812 /* @brief Receive/transmit FIFO size in item count (register bit fields TCSR[FRDE], TCSR[FRIE], TCSR[FRF], TCR1[TFW], RCSR[FRDE], RCSR[FRIE], RCSR[FRF], RCR1[RFW], registers TFRn, RFRn). */
813 #define FSL_FEATURE_SAI_FIFO_COUNTn(x) (32)
814 /* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */
815 #define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) \
816     (((x) == SAI1) ? (4) : \
817     (((x) == SAI2) ? (1) : \
818     (((x) == SAI3) ? (1) : \
819     (((x) == SAI4) ? (1) : (-1)))))
820 /* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */
821 #define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32)
822 /* @brief Has support of combining multiple data channel FIFOs into single channel FIFO (register bit fields TCR3[CFR], TCR4[FCOMB], TFR0[WCP], TFR1[WCP], RCR3[CFR], RCR4[FCOMB], RFR0[RCP], RFR1[RCP]). */
823 #define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1)
824 /* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */
825 #define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1)
826 /* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */
827 #define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1)
828 /* @brief Configures if the frame sync is generated internally, a frame sync is only generated when the FIFO warning flag is clear or continuously (register bit fields TCR4[ONDEM], RCR4[ONDEM]). */
829 #define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1)
830 /* @brief Simplified bit clock source and asynchronous/synchronous mode selection (register bit fields TCR2[CLKMODE], RCR2[CLKMODE]), in comparison with the exclusively implemented TCR2[SYNC,BCS,BCI,MSEL], RCR2[SYNC,BCS,BCI,MSEL]. */
831 #define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0)
832 /* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */
833 #define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0)
834 /* @brief Interrupt source number */
835 #define FSL_FEATURE_SAI_INT_SOURCE_NUM (2)
836 /* @brief Has register of MCR. */
837 #define FSL_FEATURE_SAI_HAS_MCR (0)
838 /* @brief Has bit field MICS of the MCR register. */
839 #define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1)
840 /* @brief Has register of MDR */
841 #define FSL_FEATURE_SAI_HAS_MDR (0)
842 /* @brief Has support the BCLK bypass mode when BCLK = MCLK. */
843 #define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (1)
844 /* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
845 #define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0)
846 /* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
847 #define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1)
848 /* @brief Support synchronous with another SAI. */
849 #define FSL_FEATURE_SAI_HAS_SYNC_WITH_ANOTHER_SAI (0)
850 
851 /* SEMC module features */
852 
853 /* @brief Has WDH time in NOR controller (register bit field NORCR2[WDH]). */
854 #define FSL_FEATURE_SEMC_HAS_NOR_WDH_TIME (0)
855 /* @brief Has WDS time in NOR controller (register bit field NORCR2[WDS]). */
856 #define FSL_FEATURE_SEMC_HAS_NOR_WDS_TIME (0)
857 /* @brief Has LC time in NOR controller (register bit field NORCR2[LC]). */
858 #define FSL_FEATURE_SEMC_HAS_NOR_LC_TIME (1)
859 /* @brief Has RD time in NOR controller (register bit field NORCR2[RD]). */
860 #define FSL_FEATURE_SEMC_HAS_NOR_RD_TIME (1)
861 /* @brief Has WDH time in SRAM controller (register bit field SRAMCR2[WDH] or SRAMCR6[WDH]). */
862 #define FSL_FEATURE_SEMC_HAS_SRAM_WDH_TIME (1)
863 /* @brief Has WDS time in SRAM controller (register bit field SRAMCR2[WDS] or SRAMCR6[WDS]). */
864 #define FSL_FEATURE_SEMC_HAS_SRAM_WDS_TIME (1)
865 /* @brief Has LC time in SRAM controller (register bit field SRAMCR2[LC] or SRAMCR6[LC]). */
866 #define FSL_FEATURE_SEMC_HAS_SRAM_LC_TIME (1)
867 /* @brief Has RD time in SRAM controller (register bit field SRAMCR2[RD] or SRAMCR6[RD]). */
868 #define FSL_FEATURE_SEMC_HAS_SRAM_RD_TIME (1)
869 /* @brief SRAM count SEMC can support (register BRx). */
870 #define FSL_FEATURE_SEMC_SUPPORT_SRAM_COUNT (4)
871 /* @brief If SEMC support delay chain control (register DCCR). */
872 #define FSL_FEATURE_SEMC_HAS_DELAY_CHAIN_CONTROL (1)
873 /* @brief Has read hold time feature (register bit field SRAMCR2[RDH] or SRAMCR6[RDH]). */
874 #define FSL_FEATURE_SEMC_HAS_SRAM_RDH_TIME (1)
875 /* @brief Has read hold time feature (register bit field SRAMCR0[SYNCEN] or SRAMCR4[SYNCEN]). */
876 #define FSL_FEATURE_SEMC_HAS_SRAM_SYNCEN (1)
877 /* @brief Has read hold time feature (register bit field SRAMCR0[WAITEN] or SRAMCR4[WAITEN]). */
878 #define FSL_FEATURE_SEMC_HAS_SRAM_WAITEN (1)
879 /* @brief Has read hold time feature (register bit field SRAMCR0[WAITSP] or SRAMCR4[WAITSP]). */
880 #define FSL_FEATURE_SEMC_HAS_SRAM_WAITSP (1)
881 /* @brief Has read hold time feature (register bit field SRAMCR0[ADVH] or SRAMCR4[ADVH]). */
882 #define FSL_FEATURE_SEMC_HAS_SRAM_ADVH (1)
883 /* @brief Width of SDRAMCR0[PS] bitfields. */
884 #define FSL_FEATURE_SEMC_SUPPORT_SDRAM_PS_BITWIDTH (2)
885 /* @brief If SEMC has errata 050577. */
886 #define FSL_FEATURE_SEMC_ERRATA_050577 (0)
887 /* @brief If sdram support column address 8 bit (register bit field SRAMCR0[CLO8]). */
888 #define FSL_FEATURE_SEMC_SDRAM_SUPPORT_COLUMN_ADDRESS_8BIT (1)
889 /* @brief If SEMC has register DBICR2 (register DBICR2). */
890 #define FSL_FEATURE_SEMC_HAS_DBICR2 (1)
891 /* @brief SEMC supports hardware ECC on NAND flash interface. */
892 #define FSL_FEATURE_SEMC_HAS_NAND_HW_ECC (0)
893 
894 /* SNVS module features */
895 
896 /* @brief Has Secure Real Time Counter Enabled and Valid (bit field LPCR[SRTC_ENV]). */
897 #define FSL_FEATURE_SNVS_HAS_SRTC (1)
898 /* @brief Has Passive Tamper Filter (regitser LPTGFCR). */
899 #define FSL_FEATURE_SNVS_PASSIVE_TAMPER_FILTER (0)
900 /* @brief Has Active Tampers (regitser LPATCTLR, LPATCLKR, LPATRCnR). */
901 #define FSL_FEATURE_SNVS_HAS_ACTIVE_TAMPERS (0)
902 /* @brief Number of TAMPER. */
903 #define FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER (0)
904 
905 /* SSARC_HP module features */
906 
907 /* No feature definitions */
908 
909 /* SSARC_LP module features */
910 
911 /* No feature definitions */
912 
913 /* SCB module features */
914 
915 /* @brief L1 ICACHE line size in byte. */
916 #define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32)
917 /* @brief L1 DCACHE line size in byte. */
918 #define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32)
919 
920 /* TMPSNS module features */
921 
922 /* @brief The basic settings for access to the temperature sensor through Analog IP (AI) Interface. */
923 #define FSL_FEATURE_TMPSNS_HAS_AI_INTERFACE (1)
924 
925 /* USBPHY module features */
926 
927 /* @brief USBPHY contain DCD analog module */
928 #define FSL_FEATURE_USBPHY_HAS_DCD_ANALOG (0)
929 /* @brief USBPHY has register TRIM_OVERRIDE_EN */
930 #define FSL_FEATURE_USBPHY_HAS_TRIM_OVERRIDE_EN (1)
931 /* @brief USBPHY is 28FDSOI */
932 #define FSL_FEATURE_USBPHY_28FDSOI (1)
933 
934 /* USBHS module features */
935 
936 /* @brief EHCI module instance count */
937 #define FSL_FEATURE_USBHS_EHCI_COUNT (2)
938 /* @brief Number of endpoints supported */
939 #define FSL_FEATURE_USBHS_ENDPT_COUNT (8)
940 
941 /* USDHC module features */
942 
943 /* @brief Has external DMA support (VEND_SPEC[EXT_DMA_EN]) */
944 #define FSL_FEATURE_USDHC_HAS_EXT_DMA (0)
945 /* @brief Has HS400 mode (MIX_CTRL[HS400_MODE]) */
946 #define FSL_FEATURE_USDHC_HAS_HS400_MODE (1)
947 /* @brief Has SDR50 support (HOST_CTRL_CAP[SDR50_SUPPORT]) */
948 #define FSL_FEATURE_USDHC_HAS_SDR50_MODE (1)
949 /* @brief Has SDR104 support (HOST_CTRL_CAP[SDR104_SUPPORT]) */
950 #define FSL_FEATURE_USDHC_HAS_SDR104_MODE (1)
951 /* @brief USDHC has reset control */
952 #define FSL_FEATURE_USDHC_HAS_RESET (0)
953 /* @brief USDHC has no bitfield WTMK_LVL[WR_BRST_LEN] and WTMK_LVL[RD_BRST_LEN] */
954 #define FSL_FEATURE_USDHC_HAS_NO_RW_BURST_LEN (1)
955 /* @brief If USDHC instance support 8 bit width */
956 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_8_BIT_WIDTHn(x) \
957     (((x) == USDHC1) ? (0) : \
958     (((x) == USDHC2) ? (1) : (-1)))
959 /* @brief If USDHC instance support HS400 mode */
960 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_HS400_MODEn(x) (1)
961 /* @brief If USDHC instance support 1v8 signal */
962 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_1V8_SIGNALn(x) (1)
963 /* @brief Has no retuning time counter (HOST_CTRL_CAP[TIME_COUNT_RETURNING]) */
964 #define FSL_FEATURE_USDHC_REGISTER_HOST_CTRL_CAP_HAS_NO_RETUNING_TIME_COUNTER (1)
965 /* @brief Has no VSELECT bit in VEND_SPEC register */
966 #define FSL_FEATURE_USDHC_HAS_NO_VOLTAGE_SELECT (0)
967 
968 /* XBARA module features */
969 
970 /* @brief Number of interrupt requests. */
971 #define FSL_FEATURE_XBARA_INTERRUPT_COUNT (4)
972 
973 /* XRDC2 module features */
974 
975 /* @brief XRDC2 supports how many domains */
976 #define FSL_FEATURE_XRDC2_DOMAIN_COUNT (16)
977 
978 #endif /* _MIMXRT1176_cm7_FEATURES_H_ */
979 
980