Callisto4Bootloader: device/MIMXRT1062_features.h Source File

Callisto4Bootloader

MIMXRT1062_features.h
Go to the documentation of this file.
1 /*
2 ** ###################################################################
3 ** Version: rev. 1.0, 2018-11-16
4 ** Build: b191008
5 **
6 ** Abstract:
7 ** Chip specific module features.
8 **
9 ** Copyright 2016 Freescale Semiconductor, Inc.
10 ** Copyright 2016-2019 NXP
11 ** All rights reserved.
12 **
13 ** SPDX-License-Identifier: BSD-3-Clause
14 **
15 ** http: www.nxp.com
16 ** mail: support@nxp.com
17 **
18 ** Revisions:
19 ** - rev. 0.1 (2017-01-10)
20 ** Initial version.
21 ** - rev. 1.0 (2018-11-16)
22 ** Update feature files to align with IMXRT1060RM Rev.0.
23 **
24 ** ###################################################################
25 */
26
27 #ifndef _MIMXRT1062_FEATURES_H_
28 #define _MIMXRT1062_FEATURES_H_
29
30 /* SOC module features */
31
32 /* @brief ADC availability on the SoC. */
33 #define FSL_FEATURE_SOC_ADC_COUNT (2)
34 /* @brief AIPSTZ availability on the SoC. */
35 #define FSL_FEATURE_SOC_AIPSTZ_COUNT (4)
36 /* @brief AOI availability on the SoC. */
37 #define FSL_FEATURE_SOC_AOI_COUNT (2)
38 /* @brief CCM availability on the SoC. */
39 #define FSL_FEATURE_SOC_CCM_COUNT (1)
40 /* @brief CCM_ANALOG availability on the SoC. */
41 #define FSL_FEATURE_SOC_CCM_ANALOG_COUNT (1)
42 /* @brief CMP availability on the SoC. */
43 #define FSL_FEATURE_SOC_CMP_COUNT (4)
44 /* @brief CSI availability on the SoC. */
45 #define FSL_FEATURE_SOC_CSI_COUNT (1)
46 /* @brief DCDC availability on the SoC. */
47 #define FSL_FEATURE_SOC_DCDC_COUNT (1)
48 /* @brief DCP availability on the SoC. */
49 #define FSL_FEATURE_SOC_DCP_COUNT (1)
50 /* @brief DMAMUX availability on the SoC. */
51 #define FSL_FEATURE_SOC_DMAMUX_COUNT (1)
52 /* @brief EDMA availability on the SoC. */
53 #define FSL_FEATURE_SOC_EDMA_COUNT (1)
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 EWM availability on the SoC. */
59 #define FSL_FEATURE_SOC_EWM_COUNT (1)
60 /* @brief FLEXCAN availability on the SoC. */
61 #define FSL_FEATURE_SOC_FLEXCAN_COUNT (3)
62 /* @brief FLEXIO availability on the SoC. */
63 #define FSL_FEATURE_SOC_FLEXIO_COUNT (3)
64 /* @brief FLEXRAM availability on the SoC. */
65 #define FSL_FEATURE_SOC_FLEXRAM_COUNT (1)
66 /* @brief FLEXSPI availability on the SoC. */
67 #define FSL_FEATURE_SOC_FLEXSPI_COUNT (2)
68 /* @brief GPC availability on the SoC. */
69 #define FSL_FEATURE_SOC_GPC_COUNT (1)
70 /* @brief GPT availability on the SoC. */
71 #define FSL_FEATURE_SOC_GPT_COUNT (2)
72 /* @brief I2S availability on the SoC. */
73 #define FSL_FEATURE_SOC_I2S_COUNT (3)
74 /* @brief IGPIO availability on the SoC. */
75 #define FSL_FEATURE_SOC_IGPIO_COUNT (9)
76 /* @brief IOMUXC availability on the SoC. */
77 #define FSL_FEATURE_SOC_IOMUXC_COUNT (1)
78 /* @brief IOMUXC_GPR availability on the SoC. */
79 #define FSL_FEATURE_SOC_IOMUXC_GPR_COUNT (1)
80 /* @brief IOMUXC_SNVS availability on the SoC. */
81 #define FSL_FEATURE_SOC_IOMUXC_SNVS_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 LPI2C availability on the SoC. */
87 #define FSL_FEATURE_SOC_LPI2C_COUNT (4)
88 /* @brief LPSPI availability on the SoC. */
89 #define FSL_FEATURE_SOC_LPSPI_COUNT (4)
90 /* @brief LPUART availability on the SoC. */
91 #define FSL_FEATURE_SOC_LPUART_COUNT (8)
92 /* @brief OCOTP availability on the SoC. */
93 #define FSL_FEATURE_SOC_OCOTP_COUNT (1)
94 /* @brief PIT availability on the SoC. */
95 #define FSL_FEATURE_SOC_PIT_COUNT (1)
96 /* @brief PMU availability on the SoC. */
97 #define FSL_FEATURE_SOC_PMU_COUNT (1)
98 /* @brief PWM availability on the SoC. */
99 #define FSL_FEATURE_SOC_PWM_COUNT (4)
100 /* @brief PXP availability on the SoC. */
101 #define FSL_FEATURE_SOC_PXP_COUNT (1)
102 /* @brief ROMC availability on the SoC. */
103 #define FSL_FEATURE_SOC_ROMC_COUNT (1)
104 /* @brief SEMC availability on the SoC. */
105 #define FSL_FEATURE_SOC_SEMC_COUNT (1)
106 /* @brief SNVS availability on the SoC. */
107 #define FSL_FEATURE_SOC_SNVS_COUNT (1)
108 /* @brief SPDIF availability on the SoC. */
109 #define FSL_FEATURE_SOC_SPDIF_COUNT (1)
110 /* @brief SRC availability on the SoC. */
111 #define FSL_FEATURE_SOC_SRC_COUNT (1)
112 /* @brief TEMPMON availability on the SoC. */
113 #define FSL_FEATURE_SOC_TEMPMON_COUNT (1)
114 /* @brief TMR availability on the SoC. */
115 #define FSL_FEATURE_SOC_TMR_COUNT (4)
116 /* @brief TRNG availability on the SoC. */
117 #define FSL_FEATURE_SOC_TRNG_COUNT (1)
118 /* @brief TSC availability on the SoC. */
119 #define FSL_FEATURE_SOC_TSC_COUNT (1)
120 /* @brief USBHS availability on the SoC. */
121 #define FSL_FEATURE_SOC_USBHS_COUNT (2)
122 /* @brief USBNC availability on the SoC. */
123 #define FSL_FEATURE_SOC_USBNC_COUNT (2)
124 /* @brief USBPHY availability on the SoC. */
125 #define FSL_FEATURE_SOC_USBPHY_COUNT (2)
126 /* @brief USB_ANALOG availability on the SoC. */
127 #define FSL_FEATURE_SOC_USB_ANALOG_COUNT (1)
128 /* @brief USDHC availability on the SoC. */
129 #define FSL_FEATURE_SOC_USDHC_COUNT (2)
130 /* @brief WDOG availability on the SoC. */
131 #define FSL_FEATURE_SOC_WDOG_COUNT (2)
132 /* @brief XBARA availability on the SoC. */
133 #define FSL_FEATURE_SOC_XBARA_COUNT (1)
134 /* @brief XBARB availability on the SoC. */
135 #define FSL_FEATURE_SOC_XBARB_COUNT (2)
136 /* @brief XTALOSC24M availability on the SoC. */
137 #define FSL_FEATURE_SOC_XTALOSC24M_COUNT (1)
138
139 /* ADC module features */
140
141 /* @brief Remove Hardware Trigger feature. */
142 #define FSL_FEATURE_ADC_SUPPORT_HARDWARE_TRIGGER_REMOVE (0)
143 /* @brief Remove ALT Clock selection feature. */
144 #define FSL_FEATURE_ADC_SUPPORT_ALTCLK_REMOVE (1)
145 /* @brief Conversion control count (related to number of registers HCn and Rn). */
146 #define FSL_FEATURE_ADC_CONVERSION_CONTROL_COUNT (8)
147
148 /* ADC_ETC module features */
149
150 /* @brief Has DMA model control(bit field CTRL[DMA_MODE_SEL]). */
151 #define FSL_FEATURE_ADC_ETC_HAS_CTRL_DMA_MODE_SEL (1)
152
153 /* AOI module features */
154
155 /* @brief Maximum value of input mux. */
156 #define FSL_FEATURE_AOI_MODULE_INPUTS (4)
157 /* @brief Number of events related to number of registers AOIx_BFCRT01n/AOIx_BFCRT23n. */
158 #define FSL_FEATURE_AOI_EVENT_COUNT (4)
159
160 /* FLEXCAN module features */
161
162 /* @brief Message buffer size */
163 #define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (64)
164 /* @brief Has doze mode support (register bit field MCR[DOZE]). */
165 #define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (1)
166 /* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */
167 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) \
168 (((x) == CAN1) ? (0) : \
169 (((x) == CAN2) ? (0) : \
170 (((x) == CAN3) ? (1) : (-1))))
171 /* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */
172 #define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1)
173 /* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */
174 #define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (1)
175 /* @brief Instance has extended bit timing register (register CBT). */
176 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) \
177 (((x) == CAN1) ? (0) : \
178 (((x) == CAN2) ? (0) : \
179 (((x) == CAN3) ? (1) : (-1))))
180 /* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */
181 #define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (1)
182 /* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */
183 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) \
184 (((x) == CAN1) ? (0) : \
185 (((x) == CAN2) ? (0) : \
186 (((x) == CAN3) ? (1) : (-1))))
187 /* @brief Remove CAN Engine Clock Source Selection from unsupported part. */
188 #define FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE (1)
189 /* @brief Instance remove CAN Engine Clock Source Selection from unsupported part. */
190 #define FSL_FEATURE_FLEXCAN_INSTANCE_SUPPORT_ENGINE_CLK_SEL_REMOVEn(x) \
191 (((x) == CAN1) ? (1) : \
192 (((x) == CAN2) ? (1) : \
193 (((x) == CAN3) ? (0) : (-1))))
194 /* @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). */
195 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (0)
196 /* @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). */
197 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5829 (1)
198 /* @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). */
199 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 (1)
200 /* @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). */
201 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_9595 (1)
202 /* @brief Has CAN with Flexible Data rate (CAN FD) protocol. */
203 #define FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE (1)
204 /* @brief CAN instance support Flexible Data rate (CAN FD) protocol. */
205 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_FLEXIBLE_DATA_RATEn(x) \
206 (((x) == CAN1) ? (0) : \
207 (((x) == CAN2) ? (0) : \
208 (((x) == CAN3) ? (1) : (-1))))
209 /* @brief Has extra MB interrupt or common one. */
210 #define FSL_FEATURE_FLEXCAN_HAS_EXTRA_MB_INT (1)
211
212 /* CCM module features */
213
214 /* @brief Is affected by errata with ID 50235 (Incorrect clock setting for CAN affects by LPUART clock gate). */
215 #define FSL_FEATURE_CCM_HAS_ERRATA_50235 (1)
216
217 /* CMP module features */
218
219 /* @brief Has Trigger mode in CMP (register bit field CR1[TRIGM]). */
220 #define FSL_FEATURE_CMP_HAS_TRIGGER_MODE (0)
221 /* @brief Has Window mode in CMP (register bit field CR1[WE]). */
222 #define FSL_FEATURE_CMP_HAS_WINDOW_MODE (1)
223 /* @brief Has External sample supported in CMP (register bit field CR1[SE]). */
224 #define FSL_FEATURE_CMP_HAS_EXTERNAL_SAMPLE_SUPPORT (1)
225 /* @brief Has DMA support in CMP (register bit field SCR[DMAEN]). */
226 #define FSL_FEATURE_CMP_HAS_DMA (1)
227 /* @brief Has Pass Through mode in CMP (register bit field MUXCR[PSTM]). */
228 #define FSL_FEATURE_CMP_HAS_PASS_THROUGH_MODE (0)
229 /* @brief Has DAC Test function in CMP (register DACTEST). */
230 #define FSL_FEATURE_CMP_HAS_DAC_TEST (0)
231
232 /* EDMA module features */
233
234 /* @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.) */
235 #define FSL_FEATURE_EDMA_MODULE_CHANNEL (32)
236 /* @brief Total number of DMA channels on all modules. */
237 #define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (32)
238 /* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */
239 #define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1)
240 /* @brief Has DMA_Error interrupt vector. */
241 #define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1)
242 /* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */
243 #define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32)
244 /* @brief Channel IRQ entry shared offset. */
245 #define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SHARED_OFFSET (16)
246 /* @brief If 8 bytes transfer supported. */
247 #define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (1)
248 /* @brief If 16 bytes transfer supported. */
249 #define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (0)
250
251 /* DMAMUX module features */
252
253 /* @brief Number of DMA channels (related to number of register CHCFGn). */
254 #define FSL_FEATURE_DMAMUX_MODULE_CHANNEL (32)
255 /* @brief Total number of DMA channels on all modules. */
256 #define FSL_FEATURE_DMAMUX_DMAMUX_CHANNELS (FSL_FEATURE_SOC_DMAMUX_COUNT * 32)
257 /* @brief Has the periodic trigger capability for the triggered DMA channel (register bit CHCFG0[TRIG]). */
258 #define FSL_FEATURE_DMAMUX_HAS_TRIG (1)
259 /* @brief Has DMA Channel Always ON function (register bit CHCFG0[A_ON]). */
260 #define FSL_FEATURE_DMAMUX_HAS_A_ON (1)
261
262 /* ENET module features */
263
264 /* @brief Support Interrupt Coalesce */
265 #define FSL_FEATURE_ENET_HAS_INTERRUPT_COALESCE (1)
266 /* @brief Queue Size. */
267 #define FSL_FEATURE_ENET_QUEUE (1)
268 /* @brief Has AVB Support. */
269 #define FSL_FEATURE_ENET_HAS_AVB (0)
270 /* @brief Has Timer Pulse Width control. */
271 #define FSL_FEATURE_ENET_HAS_TIMER_PWCONTROL (1)
272 /* @brief Has Extend MDIO Support. */
273 #define FSL_FEATURE_ENET_HAS_EXTEND_MDIO (1)
274 /* @brief Has Additional 1588 Timer Channel Interrupt. */
275 #define FSL_FEATURE_ENET_HAS_ADD_1588_TIMER_CHN_INT (0)
276
277 /* EWM module features */
278
279 /* @brief Has clock select (register CLKCTRL). */
280 #define FSL_FEATURE_EWM_HAS_CLOCK_SELECT (1)
281 /* @brief Has clock prescaler (register CLKPRESCALER). */
282 #define FSL_FEATURE_EWM_HAS_PRESCALER (1)
283
284 /* FLEXIO module features */
285
286 /* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */
287 #define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1)
288 /* @brief Has Pin Data Input Register (FLEXIO_PIN) */
289 #define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1)
290 /* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */
291 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1)
292 /* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */
293 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_HALF_WORD_SWAP (1)
294 /* @brief Has Shifter Buffer N Nibble Swapped Register (FLEXIO_SHIFTBUFNISn) */
295 #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_SWAP (1)
296 /* @brief Supports Shifter State Mode (FLEXIO_SHIFTCTLn[SMOD]) */
297 #define FSL_FEATURE_FLEXIO_HAS_STATE_MODE (1)
298 /* @brief Supports Shifter Logic Mode (FLEXIO_SHIFTCTLn[SMOD]) */
299 #define FSL_FEATURE_FLEXIO_HAS_LOGIC_MODE (1)
300 /* @brief Supports paralle width (FLEXIO_SHIFTCFGn[PWIDTH]) */
301 #define FSL_FEATURE_FLEXIO_HAS_PARALLEL_WIDTH (1)
302 /* @brief Reset value of the FLEXIO_VERID register */
303 #define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x1010001)
304 /* @brief Reset value of the FLEXIO_PARAM register */
305 #define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x2200404)
306 /* @brief Flexio DMA request base channel */
307 #define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0)
308
309 /* FLEXRAM module features */
310
311 /* @brief Bank size */
312 #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_BANK_SIZE (32768)
313 /* @brief Total Bank numbers */
314 #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_TOTAL_BANK_NUMBERS (16)
315 /* @brief Has FLEXRAM_MAGIC_ADDR. */
316 #define FSL_FEATURE_FLEXRAM_HAS_MAGIC_ADDR (0)
317
318 /* FLEXSPI module features */
319
320 /* @brief FlexSPI AHB buffer count */
321 #define FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(x) (4)
322 /* @brief FlexSPI has no data learn. */
323 #define FSL_FEATURE_FLEXSPI_HAS_NO_DATA_LEARN (1)
324 /* @brief There is AHBBUSERROREN bit in INTEN register. */
325 #define FSL_FEATURE_FLEXSPI_HAS_INTEN_AHBBUSERROREN (0)
326
327 /* GPC module features */
328
329 /* @brief Has DVFS0 Change Request. */
330 #define FSL_FEATURE_GPC_HAS_CNTR_DVFS0CR (0)
331 /* @brief Has GPC interrupt/event masking. */
332 #define FSL_FEATURE_GPC_HAS_CNTR_GPCIRQM (0)
333 /* @brief Has L2 cache power control. */
334 #define FSL_FEATURE_GPC_HAS_CNTR_L2PGE (0)
335 /* @brief Has FLEXRAM PDRAM0(bank1-7) power control. */
336 #define FSL_FEATURE_GPC_HAS_CNTR_PDRAM0PGE (1)
337 /* @brief Has VADC power control. */
338 #define FSL_FEATURE_GPC_HAS_CNTR_VADC (0)
339 /* @brief Has Display power control. */
340 #define FSL_FEATURE_GPC_HAS_CNTR_DISPLAY (0)
341 /* @brief Supports IRQ 0-31. */
342 #define FSL_FEATURE_GPC_HAS_IRQ_0_31 (1)
343
344 /* IGPIO module features */
345
346 /* @brief Has data register set DR_SET. */
347 #define FSL_FEATURE_IGPIO_HAS_DR_SET (1)
348 /* @brief Has data register clear DR_CLEAR. */
349 #define FSL_FEATURE_IGPIO_HAS_DR_CLEAR (1)
350 /* @brief Has data register toggle DR_TOGGLE. */
351 #define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (1)
352
353 /* LCDIF module features */
354
355 /* @brief LCDIF does not support alpha support. */
356 #define FSL_FEATURE_LCDIF_HAS_NO_AS (1)
357 /* @brief LCDIF does not support output reset pin to LCD panel. */
358 #define FSL_FEATURE_LCDIF_HAS_NO_RESET_PIN (1)
359 /* @brief LCDIF supports LUT. */
360 #define FSL_FEATURE_LCDIF_HAS_LUT (1)
361
362 /* LPI2C module features */
363
364 /* @brief Has separate DMA RX and TX requests. */
365 #define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0)
366 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
367 #define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (4)
368
369 /* LPSPI module features */
370
371 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
372 #define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (16)
373 /* @brief Has separate DMA RX and TX requests. */
374 #define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
375
376 /* LPUART module features */
377
378 /* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
379 #define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0)
380 /* @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). */
381 #define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1)
382 /* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
383 #define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
384 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
385 #define FSL_FEATURE_LPUART_HAS_FIFO (1)
386 /* @brief Has 32-bit register MODIR */
387 #define FSL_FEATURE_LPUART_HAS_MODIR (1)
388 /* @brief Hardware flow control (RTS, CTS) is supported. */
389 #define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1)
390 /* @brief Infrared (modulation) is supported. */
391 #define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1)
392 /* @brief 2 bits long stop bit is available. */
393 #define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
394 /* @brief If 10-bit mode is supported. */
395 #define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1)
396 /* @brief If 7-bit mode is supported. */
397 #define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (1)
398 /* @brief Baud rate fine adjustment is available. */
399 #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0)
400 /* @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). */
401 #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1)
402 /* @brief Baud rate oversampling is available. */
403 #define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1)
404 /* @brief Baud rate oversampling is available. */
405 #define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1)
406 /* @brief Peripheral type. */
407 #define FSL_FEATURE_LPUART_IS_SCI (1)
408 /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
409 #define FSL_FEATURE_LPUART_FIFO_SIZEn(x) (4)
410 /* @brief Maximal data width without parity bit. */
411 #define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_NO_PARITY (10)
412 /* @brief Maximal data width with parity bit. */
413 #define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_PARITY (9)
414 /* @brief Supports two match addresses to filter incoming frames. */
415 #define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1)
416 /* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
417 #define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1)
418 /* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
419 #define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0)
420 /* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
421 #define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1)
422 /* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
423 #define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0)
424 /* @brief Has improved smart card (ISO7816 protocol) support. */
425 #define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0)
426 /* @brief Has local operation network (CEA709.1-B protocol) support. */
427 #define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
428 /* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
429 #define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1)
430 /* @brief Lin break detect available (has bit BAUD[LBKDIE]). */
431 #define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1)
432 /* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
433 #define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0)
434 /* @brief Has separate DMA RX and TX requests. */
435 #define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
436 /* @brief Has separate RX and TX interrupts. */
437 #define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0)
438 /* @brief Has LPAURT_PARAM. */
439 #define FSL_FEATURE_LPUART_HAS_PARAM (1)
440 /* @brief Has LPUART_VERID. */
441 #define FSL_FEATURE_LPUART_HAS_VERID (1)
442 /* @brief Has LPUART_GLOBAL. */
443 #define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
444 /* @brief Has LPUART_PINCFG. */
445 #define FSL_FEATURE_LPUART_HAS_PINCFG (1)
446
447 /* interrupt module features */
448
449 /* @brief Lowest interrupt request number. */
450 #define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14)
451 /* @brief Highest interrupt request number. */
452 #define FSL_FEATURE_INTERRUPT_IRQ_MAX (157)
453
454 /* OCOTP module features */
455
456 /* No feature definitions */
457
458 /* PIT module features */
459
460 /* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */
461 #define FSL_FEATURE_PIT_TIMER_COUNT (4)
462 /* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */
463 #define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (1)
464 /* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */
465 #define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1)
466 /* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
467 #define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (1)
468 /* @brief Has timer enable control. */
469 #define FSL_FEATURE_PIT_HAS_MDIS (1)
470
471 /* PMU module features */
472
473 /* @brief PMU supports lower power control. */
474 #define FSL_FEATURE_PMU_HAS_LOWPWR_CTRL (0)
475
476 /* PWM module features */
477
478 /* @brief Number of each EflexPWM module channels (outputs). */
479 #define FSL_FEATURE_PWM_CHANNEL_COUNT (12U)
480 /* @brief Number of EflexPWM module A channels (outputs). */
481 #define FSL_FEATURE_PWM_CHANNELA_COUNT (4U)
482 /* @brief Number of EflexPWM module B channels (outputs). */
483 #define FSL_FEATURE_PWM_CHANNELB_COUNT (4U)
484 /* @brief Number of EflexPWM module X channels (outputs). */
485 #define FSL_FEATURE_PWM_CHANNELX_COUNT (4U)
486 /* @brief Number of each EflexPWM module compare channels interrupts. */
487 #define FSL_FEATURE_PWM_CMP_INT_HANDLER_COUNT (4U)
488 /* @brief Number of each EflexPWM module reload channels interrupts. */
489 #define FSL_FEATURE_PWM_RELOAD_INT_HANDLER_COUNT (4U)
490 /* @brief Number of each EflexPWM module capture channels interrupts. */
491 #define FSL_FEATURE_PWM_CAP_INT_HANDLER_COUNT (1U)
492 /* @brief Number of each EflexPWM module reload error channels interrupts. */
493 #define FSL_FEATURE_PWM_RERR_INT_HANDLER_COUNT (1U)
494 /* @brief Number of each EflexPWM module fault channels interrupts. */
495 #define FSL_FEATURE_PWM_FAULT_INT_HANDLER_COUNT (1U)
496 /* @brief Number of submodules in each EflexPWM module. */
497 #define FSL_FEATURE_PWM_SUBMODULE_COUNT (4U)
498
499 /* PXP module features */
500
501 /* @brief PXP module has dither engine. */
502 #define FSL_FEATURE_PXP_HAS_DITHER (0)
503 /* @brief PXP module supports repeat run */
504 #define FSL_FEATURE_PXP_HAS_EN_REPEAT (1)
505 /* @brief PXP doesn't have CSC */
506 #define FSL_FEATURE_PXP_HAS_NO_CSC2 (1)
507 /* @brief PXP doesn't have LUT */
508 #define FSL_FEATURE_PXP_HAS_NO_LUT (1)
509
510 /* RTWDOG module features */
511
512 /* @brief Watchdog is available. */
513 #define FSL_FEATURE_RTWDOG_HAS_WATCHDOG (1)
514 /* @brief RTWDOG_CNT can be 32-bit written. */
515 #define FSL_FEATURE_RTWDOG_HAS_32BIT_ACCESS (1)
516
517 /* SAI module features */
518
519 /* @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). */
520 #define FSL_FEATURE_SAI_FIFO_COUNT (32)
521 /* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */
522 #define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) \
523 (((x) == SAI1) ? (4) : \
524 (((x) == SAI2) ? (1) : \
525 (((x) == SAI3) ? (1) : (-1))))
526 /* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */
527 #define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32)
528 /* @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]). */
529 #define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1)
530 /* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */
531 #define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1)
532 /* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */
533 #define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1)
534 /* @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]). */
535 #define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1)
536 /* @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]. */
537 #define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0)
538 /* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */
539 #define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0)
540 /* @brief Interrupt source number */
541 #define FSL_FEATURE_SAI_INT_SOURCE_NUM (2)
542 /* @brief Has register of MCR. */
543 #define FSL_FEATURE_SAI_HAS_MCR (0)
544 /* @brief Has bit field MICS of the MCR register. */
545 #define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1)
546 /* @brief Has register of MDR */
547 #define FSL_FEATURE_SAI_HAS_MDR (0)
548 /* @brief Has support the BCLK bypass mode when BCLK = MCLK. */
549 #define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (0)
550 /* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
551 #define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0)
552 /* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
553 #define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1)
554
555 /* SEMC module features */
556
557 /* @brief Has WDH time in NOR controller (register bit field NORCR2[WDH]). */
558 #define FSL_FEATURE_SEMC_HAS_NOR_WDH_TIME (0)
559 /* @brief Has WDS time in NOR controller (register bit field NORCR2[WDS]).) */
560 #define FSL_FEATURE_SEMC_HAS_NOR_WDS_TIME (0)
561
562 /* SNVS module features */
563
564 /* @brief Has Secure Real Time Counter Enabled and Valid (bit field LPCR[SRTC_ENV]). */
565 #define FSL_FEATURE_SNVS_HAS_SRTC (1)
566
567 /* SRC module features */
568
569 /* @brief There is MASK_WDOG3_RST bit in SCR register. */
570 #define FSL_FEATURE_SRC_HAS_SCR_MASK_WDOG3_RST (1)
571 /* @brief There is MIX_RST_STRCH bit in SCR register. */
572 #define FSL_FEATURE_SRC_HAS_SCR_MIX_RST_STRCH (0)
573 /* @brief There is DBG_RST_MSK_PG bit in SCR register. */
574 #define FSL_FEATURE_SRC_HAS_SCR_DBG_RST_MSK_PG (1)
575 /* @brief There is WDOG3_RST_OPTN bit in SCR register. */
576 #define FSL_FEATURE_SRC_HAS_SCR_WDOG3_RST_OPTN (0)
577 /* @brief There is CORES_DBG_RST bit in SCR register. */
578 #define FSL_FEATURE_SRC_HAS_SCR_CORES_DBG_RST (0)
579 /* @brief There is MTSR bit in SCR register. */
580 #define FSL_FEATURE_SRC_HAS_SCR_MTSR (0)
581 /* @brief There is CORE0_DBG_RST bit in SCR register. */
582 #define FSL_FEATURE_SRC_HAS_SCR_CORE0_DBG_RST (1)
583 /* @brief There is CORE0_RST bit in SCR register. */
584 #define FSL_FEATURE_SRC_HAS_SCR_CORE0_RST (1)
585 /* @brief There is LOCKUP_RST bit in SCR register. */
586 #define FSL_FEATURE_SRC_HAS_SCR_LOCKUP_RST (0)
587 /* @brief There is SWRC bit in SCR register. */
588 #define FSL_FEATURE_SRC_HAS_SCR_SWRC (0)
589 /* @brief There is EIM_RST bit in SCR register. */
590 #define FSL_FEATURE_SRC_HAS_SCR_EIM_RST (0)
591 /* @brief There is LUEN bit in SCR register. */
592 #define FSL_FEATURE_SRC_HAS_SCR_LUEN (0)
593 /* @brief There is no WRBC bit in SCR register. */
594 #define FSL_FEATURE_SRC_HAS_NO_SCR_WRBC (1)
595 /* @brief There is no WRE bit in SCR register. */
596 #define FSL_FEATURE_SRC_HAS_NO_SCR_WRE (1)
597 /* @brief There is SISR register. */
598 #define FSL_FEATURE_SRC_HAS_SISR (0)
599 /* @brief There is RESET_OUT bit in SRSR register. */
600 #define FSL_FEATURE_SRC_HAS_SRSR_RESET_OUT (0)
601 /* @brief There is WDOG3_RST_B bit in SRSR register. */
602 #define FSL_FEATURE_SRC_HAS_SRSR_WDOG3_RST_B (1)
603 /* @brief There is JTAG_SW_RST bit in SRSR register. */
604 #define FSL_FEATURE_SRC_HAS_SRSR_JTAG_SW_RST (1)
605 /* @brief There is SW bit in SRSR register. */
606 #define FSL_FEATURE_SRC_HAS_SRSR_SW (0)
607 /* @brief There is IPP_USER_RESET_B bit in SRSR register. */
608 #define FSL_FEATURE_SRC_HAS_SRSR_IPP_USER_RESET_B (1)
609 /* @brief There is SNVS bit in SRSR register. */
610 #define FSL_FEATURE_SRC_HAS_SRSR_SNVS (0)
611 /* @brief There is CSU_RESET_B bit in SRSR register. */
612 #define FSL_FEATURE_SRC_HAS_SRSR_CSU_RESET_B (1)
613 /* @brief There is LOCKUP bit in SRSR register. */
614 #define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP (0)
615 /* @brief There is LOCKUP_SYSRESETREQ bit in SRSR register. */
616 #define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP_SYSRESETREQ (1)
617 /* @brief There is POR bit in SRSR register. */
618 #define FSL_FEATURE_SRC_HAS_SRSR_POR (0)
619 /* @brief There is IPP_RESET_B bit in SRSR register. */
620 #define FSL_FEATURE_SRC_HAS_SRSR_IPP_RESET_B (1)
621 /* @brief There is no WBI bit in SCR register. */
622 #define FSL_FEATURE_SRC_HAS_NO_SRSR_WBI (1)
623
624 /* SCB module features */
625
626 /* @brief L1 ICACHE line size in byte. */
627 #define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32)
628 /* @brief L1 DCACHE line size in byte. */
629 #define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32)
630
631 /* TRNG module features */
632
633 /* @brief TRNG has no TRNG_ACC bitfield. */
634 #define FSL_FEATURE_TRNG_HAS_NO_TRNG_ACC (1)
635
636 /* USBHS module features */
637
638 /* @brief EHCI module instance count */
639 #define FSL_FEATURE_USBHS_EHCI_COUNT (2)
640 /* @brief Number of endpoints supported */
641 #define FSL_FEATURE_USBHS_ENDPT_COUNT (8)
642
643 /* USDHC module features */
644
645 /* @brief Has external DMA support (VEND_SPEC[EXT_DMA_EN]) */
646 #define FSL_FEATURE_USDHC_HAS_EXT_DMA (0)
647 /* @brief Has HS400 mode (MIX_CTRL[HS400_MODE]) */
648 #define FSL_FEATURE_USDHC_HAS_HS400_MODE (0)
649 /* @brief Has SDR50 support (HOST_CTRL_CAP[SDR50_SUPPORT]) */
650 #define FSL_FEATURE_USDHC_HAS_SDR50_MODE (1)
651 /* @brief Has SDR104 support (HOST_CTRL_CAP[SDR104_SUPPORT]) */
652 #define FSL_FEATURE_USDHC_HAS_SDR104_MODE (1)
653 /* @brief USDHC has reset control */
654 #define FSL_FEATURE_USDHC_HAS_RESET (0)
655 /* @brief USDHC has no bitfield WTMK_LVL[WR_BRST_LEN] and WTMK_LVL[RD_BRST_LEN] */
656 #define FSL_FEATURE_USDHC_HAS_NO_RW_BURST_LEN (0)
657
658 /* XBARA module features */
659
660 /* @brief Number of interrupt requests. */
661 #define FSL_FEATURE_XBARA_INTERRUPT_COUNT (4)
662
663 #endif /* _MIMXRT1062_FEATURES_H_ */
664