aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h552
1 files changed, 552 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h
new file mode 100644
index 000000000..2c6d31e9e
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1011/MIMXRT1011_features.h
@@ -0,0 +1,552 @@
1/*
2** ###################################################################
3** Version: rev. 1.0, 2019-08-01
4** Build: b200921
5**
6** Abstract:
7** Chip specific module features.
8**
9** Copyright 2016 Freescale Semiconductor, Inc.
10** Copyright 2016-2020 NXP
11** All rights reserved.
12**
13** SPDX-License-Identifier: BSD-3-Clause
14**
15** http: www.nxp.com
16** mail: [email protected]
17**
18** Revisions:
19** - rev. 0.1 (2019-02-14)
20** Initial version.
21** - rev. 1.0 (2019-08-01)
22** Rev.0 Header GA
23**
24** ###################################################################
25*/
26
27#ifndef _MIMXRT1011_FEATURES_H_
28#define _MIMXRT1011_FEATURES_H_
29
30/* SOC module features */
31
32/* @brief ADC availability on the SoC. */
33#define FSL_FEATURE_SOC_ADC_COUNT (1)
34/* @brief AIPSTZ availability on the SoC. */
35#define FSL_FEATURE_SOC_AIPSTZ_COUNT (2)
36/* @brief AOI availability on the SoC. */
37#define FSL_FEATURE_SOC_AOI_COUNT (1)
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 DCDC availability on the SoC. */
43#define FSL_FEATURE_SOC_DCDC_COUNT (1)
44/* @brief DCP availability on the SoC. */
45#define FSL_FEATURE_SOC_DCP_COUNT (1)
46/* @brief DMAMUX availability on the SoC. */
47#define FSL_FEATURE_SOC_DMAMUX_COUNT (1)
48/* @brief EDMA availability on the SoC. */
49#define FSL_FEATURE_SOC_EDMA_COUNT (1)
50/* @brief EWM availability on the SoC. */
51#define FSL_FEATURE_SOC_EWM_COUNT (1)
52/* @brief FLEXIO availability on the SoC. */
53#define FSL_FEATURE_SOC_FLEXIO_COUNT (1)
54/* @brief FLEXRAM availability on the SoC. */
55#define FSL_FEATURE_SOC_FLEXRAM_COUNT (1)
56/* @brief FLEXSPI availability on the SoC. */
57#define FSL_FEATURE_SOC_FLEXSPI_COUNT (1)
58/* @brief GPC availability on the SoC. */
59#define FSL_FEATURE_SOC_GPC_COUNT (1)
60/* @brief GPT availability on the SoC. */
61#define FSL_FEATURE_SOC_GPT_COUNT (2)
62/* @brief I2S availability on the SoC. */
63#define FSL_FEATURE_SOC_I2S_COUNT (2)
64/* @brief IGPIO availability on the SoC. */
65#define FSL_FEATURE_SOC_IGPIO_COUNT (3)
66/* @brief IOMUXC availability on the SoC. */
67#define FSL_FEATURE_SOC_IOMUXC_COUNT (1)
68/* @brief IOMUXC_GPR availability on the SoC. */
69#define FSL_FEATURE_SOC_IOMUXC_GPR_COUNT (1)
70/* @brief IOMUXC_SNVS availability on the SoC. */
71#define FSL_FEATURE_SOC_IOMUXC_SNVS_COUNT (1)
72/* @brief KPP availability on the SoC. */
73#define FSL_FEATURE_SOC_KPP_COUNT (1)
74/* @brief LPI2C availability on the SoC. */
75#define FSL_FEATURE_SOC_LPI2C_COUNT (2)
76/* @brief LPSPI availability on the SoC. */
77#define FSL_FEATURE_SOC_LPSPI_COUNT (2)
78/* @brief LPUART availability on the SoC. */
79#define FSL_FEATURE_SOC_LPUART_COUNT (4)
80/* @brief OCOTP availability on the SoC. */
81#define FSL_FEATURE_SOC_OCOTP_COUNT (1)
82/* @brief OTFAD availability on the SoC. */
83#define FSL_FEATURE_SOC_OTFAD_COUNT (1)
84/* @brief PIT availability on the SoC. */
85#define FSL_FEATURE_SOC_PIT_COUNT (1)
86/* @brief PMU availability on the SoC. */
87#define FSL_FEATURE_SOC_PMU_COUNT (1)
88/* @brief PWM availability on the SoC. */
89#define FSL_FEATURE_SOC_PWM_COUNT (1)
90/* @brief ROMC availability on the SoC. */
91#define FSL_FEATURE_SOC_ROMC_COUNT (1)
92/* @brief SNVS availability on the SoC. */
93#define FSL_FEATURE_SOC_SNVS_COUNT (1)
94/* @brief SPDIF availability on the SoC. */
95#define FSL_FEATURE_SOC_SPDIF_COUNT (1)
96/* @brief SRC availability on the SoC. */
97#define FSL_FEATURE_SOC_SRC_COUNT (1)
98/* @brief TEMPMON availability on the SoC. */
99#define FSL_FEATURE_SOC_TEMPMON_COUNT (1)
100/* @brief TRNG availability on the SoC. */
101#define FSL_FEATURE_SOC_TRNG_COUNT (1)
102/* @brief USBHS availability on the SoC. */
103#define FSL_FEATURE_SOC_USBHS_COUNT (1)
104/* @brief USBNC availability on the SoC. */
105#define FSL_FEATURE_SOC_USBNC_COUNT (1)
106/* @brief USBPHY availability on the SoC. */
107#define FSL_FEATURE_SOC_USBPHY_COUNT (1)
108/* @brief USB_ANALOG availability on the SoC. */
109#define FSL_FEATURE_SOC_USB_ANALOG_COUNT (1)
110/* @brief WDOG availability on the SoC. */
111#define FSL_FEATURE_SOC_WDOG_COUNT (2)
112/* @brief XBARA availability on the SoC. */
113#define FSL_FEATURE_SOC_XBARA_COUNT (1)
114/* @brief XTALOSC24M availability on the SoC. */
115#define FSL_FEATURE_SOC_XTALOSC24M_COUNT (1)
116
117/* ADC module features */
118
119/* @brief Remove Hardware Trigger feature. */
120#define FSL_FEATURE_ADC_SUPPORT_HARDWARE_TRIGGER_REMOVE (0)
121/* @brief Remove ALT Clock selection feature. */
122#define FSL_FEATURE_ADC_SUPPORT_ALTCLK_REMOVE (0)
123/* @brief Conversion control count (related to number of registers HCn and Rn). */
124#define FSL_FEATURE_ADC_CONVERSION_CONTROL_COUNT (8)
125
126/* ADC_ETC module features */
127
128/* @brief Has DMA model control(bit field CTRL[DMA_MODE_SEL]). */
129#define FSL_FEATURE_ADC_ETC_HAS_CTRL_DMA_MODE_SEL (1)
130/* @brief Has TRIGm_CHAIN_a_b IEn_EN. */
131#define FSL_FEATURE_ADC_ETC_HAS_TRIGm_CHAIN_a_b_IEn_EN (1)
132
133/* AOI module features */
134
135/* @brief Maximum value of input mux. */
136#define FSL_FEATURE_AOI_MODULE_INPUTS (4)
137/* @brief Number of events related to number of registers AOIx_BFCRT01n/AOIx_BFCRT23n. */
138#define FSL_FEATURE_AOI_EVENT_COUNT (4)
139
140/* CCM module features */
141
142/* @brief Is affected by errata with ID 50235 (Incorrect clock setting for CAN affects by LPUART clock gate). */
143#define FSL_FEATURE_CCM_HAS_ERRATA_50235 (0)
144
145/* DCDC module features */
146
147/* @brief Has CTRL register (register CTRL0/1). */
148#define FSL_FEATURE_DCDC_HAS_CTRL_REG (0)
149/* @brief DCDC VDD output count. */
150#define FSL_FEATURE_DCDC_VDD_OUTPUT_COUNT (1)
151/* @brief Has no current alert function (register bit field REG0[CURRENT_ALERT_RESET]). */
152#define FSL_FEATURE_DCDC_HAS_NO_CURRENT_ALERT_FUNC (0)
153/* @brief Has switching converter differential mode (register bit field REG1[LOOPCTRL_EN_DF_HYST]). */
154#define FSL_FEATURE_DCDC_HAS_SWITCHING_CONVERTER_DIFFERENTIAL_MODE (0)
155/* @brief Has register bit field REG0[REG_DCDC_IN_DET]. */
156#define FSL_FEATURE_DCDC_HAS_REG0_DCDC_IN_DET (0)
157/* @brief Has no register bit field REG0[EN_LP_OVERLOAD_SNS]. */
158#define FSL_FEATURE_DCDC_HAS_NO_REG0_EN_LP_OVERLOAD_SNS (0)
159/* @brief Has register bit field REG3[REG_FBK_SEL]). */
160#define FSL_FEATURE_DCDC_HAS_REG3_FBK_SEL (0)
161
162/* EDMA module features */
163
164/* @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.) */
165#define FSL_FEATURE_EDMA_MODULE_CHANNEL (16)
166/* @brief Total number of DMA channels on all modules. */
167#define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (16)
168/* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */
169#define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1)
170/* @brief Has DMA_Error interrupt vector. */
171#define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1)
172/* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */
173#define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (16)
174/* @brief Channel IRQ entry shared offset. */
175#define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SHARED_OFFSET (0)
176/* @brief If 8 bytes transfer supported. */
177#define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (1)
178/* @brief If 16 bytes transfer supported. */
179#define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (0)
180/* @brief If 32 bytes transfer supported. */
181#define FSL_FEATURE_EDMA_SUPPORT_32_BYTES_TRANSFER (1)
182
183/* DMAMUX module features */
184
185/* @brief Number of DMA channels (related to number of register CHCFGn). */
186#define FSL_FEATURE_DMAMUX_MODULE_CHANNEL (16)
187/* @brief Total number of DMA channels on all modules. */
188#define FSL_FEATURE_DMAMUX_DMAMUX_CHANNELS (16)
189/* @brief Has the periodic trigger capability for the triggered DMA channel (register bit CHCFG0[TRIG]). */
190#define FSL_FEATURE_DMAMUX_HAS_TRIG (1)
191/* @brief Has DMA Channel Always ON function (register bit CHCFG0[A_ON]). */
192#define FSL_FEATURE_DMAMUX_HAS_A_ON (1)
193/* @brief Register CHCFGn width. */
194#define FSL_FEATURE_DMAMUX_CHCFG_REGISTER_WIDTH (32)
195
196/* EWM module features */
197
198/* @brief Has clock select (register CLKCTRL). */
199#define FSL_FEATURE_EWM_HAS_CLOCK_SELECT (1)
200/* @brief Has clock prescaler (register CLKPRESCALER). */
201#define FSL_FEATURE_EWM_HAS_PRESCALER (1)
202
203/* FLEXIO module features */
204
205/* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */
206#define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1)
207/* @brief Has Pin Data Input Register (FLEXIO_PIN) */
208#define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1)
209/* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */
210#define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1)
211/* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */
212#define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_HALF_WORD_SWAP (1)
213/* @brief Has Shifter Buffer N Nibble Swapped Register (FLEXIO_SHIFTBUFNISn) */
214#define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_SWAP (1)
215/* @brief Supports Shifter State Mode (FLEXIO_SHIFTCTLn[SMOD]) */
216#define FSL_FEATURE_FLEXIO_HAS_STATE_MODE (1)
217/* @brief Supports Shifter Logic Mode (FLEXIO_SHIFTCTLn[SMOD]) */
218#define FSL_FEATURE_FLEXIO_HAS_LOGIC_MODE (1)
219/* @brief Supports paralle width (FLEXIO_SHIFTCFGn[PWIDTH]) */
220#define FSL_FEATURE_FLEXIO_HAS_PARALLEL_WIDTH (1)
221/* @brief Reset value of the FLEXIO_VERID register */
222#define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x1010001)
223/* @brief Reset value of the FLEXIO_PARAM register */
224#define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x2200808)
225/* @brief Flexio DMA request base channel */
226#define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0)
227
228/* FLEXRAM module features */
229
230/* @brief Bank size */
231#define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_BANK_SIZE (32768)
232/* @brief Total Bank numbers */
233#define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_TOTAL_BANK_NUMBERS (4)
234/* @brief Has FLEXRAM_MAGIC_ADDR. */
235#define FSL_FEATURE_FLEXRAM_HAS_MAGIC_ADDR (1)
236
237/* FLEXSPI module features */
238
239/* @brief FlexSPI AHB buffer count */
240#define FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(x) (4)
241/* @brief FlexSPI has no data learn. */
242#define FSL_FEATURE_FLEXSPI_HAS_NO_DATA_LEARN (1)
243/* @brief There is AHBBUSERROREN bit in INTEN register. */
244#define FSL_FEATURE_FLEXSPI_HAS_INTEN_AHBBUSERROREN (1)
245/* @brief There is CLRAHBTX_RXBUF bit in AHBCR register. */
246#define FSL_FEATURE_FLEXSPI_HAS_AHBCR_CLRAHBTX_RXBUF (1)
247
248/* GPC module features */
249
250/* @brief Has DVFS0 Change Request. */
251#define FSL_FEATURE_GPC_HAS_CNTR_DVFS0CR (0)
252/* @brief Has GPC interrupt/event masking. */
253#define FSL_FEATURE_GPC_HAS_CNTR_GPCIRQM (0)
254/* @brief Has L2 cache power control. */
255#define FSL_FEATURE_GPC_HAS_CNTR_L2PGE (0)
256/* @brief Has FLEXRAM PDRAM0(bank1-7) power control. */
257#define FSL_FEATURE_GPC_HAS_CNTR_PDRAM0PGE (1)
258/* @brief Has VADC power control. */
259#define FSL_FEATURE_GPC_HAS_CNTR_VADC (0)
260/* @brief Has Display power control. */
261#define FSL_FEATURE_GPC_HAS_CNTR_DISPLAY (0)
262/* @brief Supports IRQ 0-31. */
263#define FSL_FEATURE_GPC_HAS_IRQ_0_31 (1)
264
265/* IGPIO module features */
266
267/* @brief Has data register set DR_SET. */
268#define FSL_FEATURE_IGPIO_HAS_DR_SET (1)
269/* @brief Has data register clear DR_CLEAR. */
270#define FSL_FEATURE_IGPIO_HAS_DR_CLEAR (1)
271/* @brief Has data register toggle DR_TOGGLE. */
272#define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (1)
273
274/* LPI2C module features */
275
276/* @brief Has separate DMA RX and TX requests. */
277#define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0)
278/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
279#define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (4)
280
281/* LPSPI module features */
282
283/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
284#define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (16)
285/* @brief Has separate DMA RX and TX requests. */
286#define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
287
288/* LPUART module features */
289
290/* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
291#define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0)
292/* @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). */
293#define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1)
294/* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
295#define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
296/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
297#define FSL_FEATURE_LPUART_HAS_FIFO (1)
298/* @brief Has 32-bit register MODIR */
299#define FSL_FEATURE_LPUART_HAS_MODIR (1)
300/* @brief Hardware flow control (RTS, CTS) is supported. */
301#define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1)
302/* @brief Infrared (modulation) is supported. */
303#define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1)
304/* @brief 2 bits long stop bit is available. */
305#define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
306/* @brief If 10-bit mode is supported. */
307#define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1)
308/* @brief If 7-bit mode is supported. */
309#define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (1)
310/* @brief Baud rate fine adjustment is available. */
311#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0)
312/* @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). */
313#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1)
314/* @brief Baud rate oversampling is available. */
315#define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1)
316/* @brief Baud rate oversampling is available. */
317#define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1)
318/* @brief Peripheral type. */
319#define FSL_FEATURE_LPUART_IS_SCI (1)
320/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
321#define FSL_FEATURE_LPUART_FIFO_SIZEn(x) (4)
322/* @brief Supports two match addresses to filter incoming frames. */
323#define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1)
324/* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
325#define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1)
326/* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
327#define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0)
328/* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
329#define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1)
330/* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
331#define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0)
332/* @brief Has improved smart card (ISO7816 protocol) support. */
333#define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0)
334/* @brief Has local operation network (CEA709.1-B protocol) support. */
335#define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
336/* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
337#define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1)
338/* @brief Lin break detect available (has bit BAUD[LBKDIE]). */
339#define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1)
340/* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
341#define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0)
342/* @brief Has separate DMA RX and TX requests. */
343#define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
344/* @brief Has separate RX and TX interrupts. */
345#define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0)
346/* @brief Has LPAURT_PARAM. */
347#define FSL_FEATURE_LPUART_HAS_PARAM (1)
348/* @brief Has LPUART_VERID. */
349#define FSL_FEATURE_LPUART_HAS_VERID (1)
350/* @brief Has LPUART_GLOBAL. */
351#define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
352/* @brief Has LPUART_PINCFG. */
353#define FSL_FEATURE_LPUART_HAS_PINCFG (1)
354
355/* interrupt module features */
356
357/* @brief Lowest interrupt request number. */
358#define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14)
359/* @brief Highest interrupt request number. */
360#define FSL_FEATURE_INTERRUPT_IRQ_MAX (79)
361
362/* OCOTP module features */
363
364/* @brief Has timing control, (register TIMING). */
365#define FSL_FEATURE_OCOTP_HAS_TIMING_CTRL (1)
366/* @brief Support lock eFuse word write lock, (CTRL[WORDLOCK]). */
367#define FSL_FEATURE_OCOTP_HAS_WORDLOCK (0)
368/* @brief Has status register. (Register HW_OCOTP_OUT_STATUS0). */
369#define FSL_FEATURE_OCOTP_HAS_STATUS (0)
370
371/* OTFAD module features */
372
373/* @brief OTFAD has Security Violation Mode (SVM) */
374#define FSL_FEATURE_OTFAD_HAS_SVM_MODE (1)
375/* @brief OTFAD has Key Blob Processing */
376#define FSL_FEATURE_OTFAD_HAS_KEYBLOB_PROCESSING (1)
377/* @brief OTFAD has interrupt request enable */
378#define FSL_FEATURE_OTFAD_HAS_HAS_IRQ_ENABLE (1)
379/* @brief OTFAD has Force Error */
380#define FSL_FEATURE_OTFAD_HAS_FORCE_ERR (1)
381
382/* PIT module features */
383
384/* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */
385#define FSL_FEATURE_PIT_TIMER_COUNT (4)
386/* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */
387#define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (1)
388/* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */
389#define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1)
390/* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
391#define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (1)
392/* @brief Has timer enable control. */
393#define FSL_FEATURE_PIT_HAS_MDIS (1)
394
395/* PWM module features */
396
397/* @brief If (e)FlexPWM has module A channels (outputs). */
398#define FSL_FEATURE_PWM_HAS_CHANNELA (1)
399/* @brief If (e)FlexPWM has module B channels (outputs). */
400#define FSL_FEATURE_PWM_HAS_CHANNELB (1)
401/* @brief If (e)FlexPWM has module X channels (outputs). */
402#define FSL_FEATURE_PWM_HAS_CHANNELX (1)
403/* @brief If (e)FlexPWM has fractional feature. */
404#define FSL_FEATURE_PWM_HAS_FRACTIONAL (1)
405/* @brief If (e)FlexPWM has mux trigger source select bit field. */
406#define FSL_FEATURE_PWM_HAS_MUX_TRIGGER_SOURCE_SEL (1)
407/* @brief Number of submodules in each (e)FlexPWM module. */
408#define FSL_FEATURE_PWM_SUBMODULE_COUNT (4U)
409/* @brief Number of fault channel in each (e)FlexPWM module. */
410#define FSL_FEATURE_PWM_FAULT_CH_COUNT (1)
411
412/* RTWDOG module features */
413
414/* @brief Watchdog is available. */
415#define FSL_FEATURE_RTWDOG_HAS_WATCHDOG (1)
416/* @brief RTWDOG_CNT can be 32-bit written. */
417#define FSL_FEATURE_RTWDOG_HAS_32BIT_ACCESS (1)
418
419/* SAI module features */
420
421/* @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). */
422#define FSL_FEATURE_SAI_FIFO_COUNT (32)
423/* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */
424#define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) \
425 (((x) == SAI1) ? (2) : \
426 (((x) == SAI3) ? (1) : (-1)))
427/* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */
428#define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32)
429/* @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]). */
430#define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1)
431/* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */
432#define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1)
433/* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */
434#define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1)
435/* @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]). */
436#define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1)
437/* @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]. */
438#define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0)
439/* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */
440#define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0)
441/* @brief Interrupt source number */
442#define FSL_FEATURE_SAI_INT_SOURCE_NUM (2)
443/* @brief Has register of MCR. */
444#define FSL_FEATURE_SAI_HAS_MCR (0)
445/* @brief Has bit field MICS of the MCR register. */
446#define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1)
447/* @brief Has register of MDR */
448#define FSL_FEATURE_SAI_HAS_MDR (0)
449/* @brief Has support the BCLK bypass mode when BCLK = MCLK. */
450#define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (0)
451/* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
452#define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0)
453/* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
454#define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1)
455
456/* SNVS module features */
457
458/* @brief Has Secure Real Time Counter Enabled and Valid (bit field LPCR[SRTC_ENV]). */
459#define FSL_FEATURE_SNVS_HAS_SRTC (1)
460
461/* SRC module features */
462
463/* @brief There is MASK_WDOG3_RST bit in SCR register. */
464#define FSL_FEATURE_SRC_HAS_SCR_MASK_WDOG3_RST (1)
465/* @brief There is MIX_RST_STRCH bit in SCR register. */
466#define FSL_FEATURE_SRC_HAS_SCR_MIX_RST_STRCH (0)
467/* @brief There is DBG_RST_MSK_PG bit in SCR register. */
468#define FSL_FEATURE_SRC_HAS_SCR_DBG_RST_MSK_PG (1)
469/* @brief There is WDOG3_RST_OPTN bit in SCR register. */
470#define FSL_FEATURE_SRC_HAS_SCR_WDOG3_RST_OPTN (0)
471/* @brief There is CORES_DBG_RST bit in SCR register. */
472#define FSL_FEATURE_SRC_HAS_SCR_CORES_DBG_RST (0)
473/* @brief There is MTSR bit in SCR register. */
474#define FSL_FEATURE_SRC_HAS_SCR_MTSR (0)
475/* @brief There is CORE0_DBG_RST bit in SCR register. */
476#define FSL_FEATURE_SRC_HAS_SCR_CORE0_DBG_RST (1)
477/* @brief There is CORE0_RST bit in SCR register. */
478#define FSL_FEATURE_SRC_HAS_SCR_CORE0_RST (1)
479/* @brief There is LOCKUP_RST bit in SCR register. */
480#define FSL_FEATURE_SRC_HAS_SCR_LOCKUP_RST (1)
481/* @brief There is SWRC bit in SCR register. */
482#define FSL_FEATURE_SRC_HAS_SCR_SWRC (0)
483/* @brief There is EIM_RST bit in SCR register. */
484#define FSL_FEATURE_SRC_HAS_SCR_EIM_RST (0)
485/* @brief There is LUEN bit in SCR register. */
486#define FSL_FEATURE_SRC_HAS_SCR_LUEN (0)
487/* @brief There is no WRBC bit in SCR register. */
488#define FSL_FEATURE_SRC_HAS_NO_SCR_WRBC (1)
489/* @brief There is no WRE bit in SCR register. */
490#define FSL_FEATURE_SRC_HAS_NO_SCR_WRE (1)
491/* @brief There is SISR register. */
492#define FSL_FEATURE_SRC_HAS_SISR (0)
493/* @brief There is RESET_OUT bit in SRSR register. */
494#define FSL_FEATURE_SRC_HAS_SRSR_RESET_OUT (0)
495/* @brief There is WDOG3_RST_B bit in SRSR register. */
496#define FSL_FEATURE_SRC_HAS_SRSR_WDOG3_RST_B (1)
497/* @brief There is JTAG_SW_RST bit in SRSR register. */
498#define FSL_FEATURE_SRC_HAS_SRSR_JTAG_SW_RST (1)
499/* @brief There is SW bit in SRSR register. */
500#define FSL_FEATURE_SRC_HAS_SRSR_SW (0)
501/* @brief There is IPP_USER_RESET_B bit in SRSR register. */
502#define FSL_FEATURE_SRC_HAS_SRSR_IPP_USER_RESET_B (1)
503/* @brief There is SNVS bit in SRSR register. */
504#define FSL_FEATURE_SRC_HAS_SRSR_SNVS (0)
505/* @brief There is CSU_RESET_B bit in SRSR register. */
506#define FSL_FEATURE_SRC_HAS_SRSR_CSU_RESET_B (1)
507/* @brief There is LOCKUP bit in SRSR register. */
508#define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP (1)
509/* @brief There is LOCKUP_SYSRESETREQ bit in SRSR register. */
510#define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP_SYSRESETREQ (0)
511/* @brief There is POR bit in SRSR register. */
512#define FSL_FEATURE_SRC_HAS_SRSR_POR (0)
513/* @brief There is IPP_RESET_B bit in SRSR register. */
514#define FSL_FEATURE_SRC_HAS_SRSR_IPP_RESET_B (1)
515/* @brief There is no WBI bit in SCR register. */
516#define FSL_FEATURE_SRC_HAS_NO_SRSR_WBI (1)
517
518/* SCB module features */
519
520/* @brief L1 ICACHE line size in byte. */
521#define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32)
522/* @brief L1 DCACHE line size in byte. */
523#define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32)
524
525/* TRNG module features */
526
527/* @brief TRNG has no TRNG_ACC bitfield. */
528#define FSL_FEATURE_TRNG_HAS_NO_TRNG_ACC (1)
529
530/* USBHS module features */
531
532/* @brief EHCI module instance count */
533#define FSL_FEATURE_USBHS_EHCI_COUNT (1)
534/* @brief Number of endpoints supported */
535#define FSL_FEATURE_USBHS_ENDPT_COUNT (8)
536
537/* USBPHY module features */
538
539/* @brief USBPHY contain DCD analog module */
540#define FSL_FEATURE_USBPHY_HAS_DCD_ANALOG (0)
541/* @brief USBPHY has register TRIM_OVERRIDE_EN */
542#define FSL_FEATURE_USBPHY_HAS_TRIM_OVERRIDE_EN (0)
543/* @brief USBPHY is 28FDSOI */
544#define FSL_FEATURE_USBPHY_28FDSOI (0)
545
546/* XBARA module features */
547
548/* @brief Number of interrupt requests. */
549#define FSL_FEATURE_XBARA_INTERRUPT_COUNT (4)
550
551#endif /* _MIMXRT1011_FEATURES_H_ */
552