aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h674
1 files changed, 674 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h
new file mode 100644
index 000000000..56d26b53b
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8QX1/MIMX8QX1_cm4_features.h
@@ -0,0 +1,674 @@
1/*
2** ###################################################################
3** Version: rev. 3.0, 2019-11-05
4** Build: b200603
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: [email protected]
17**
18** Revisions:
19** - rev. 1.0 (2017-09-19)
20** Initial version.
21** - rev. 2.0 (2018-08-22)
22** RevB Header EAR
23** - rev. 3.0 (2019-11-05)
24** RevC Header RFP
25**
26** ###################################################################
27*/
28
29#ifndef _MIMX8QX1_cm4_FEATURES_H_
30#define _MIMX8QX1_cm4_FEATURES_H_
31
32/* SOC module features */
33
34#if defined(CPU_MIMX8QX1AVLFZ)
35 /* @brief APBH availability on the SoC. */
36 #define FSL_FEATURE_SOC_APBH_COUNT (1)
37 /* @brief ASMC availability on the SoC. */
38 #define FSL_FEATURE_SOC_ASMC_COUNT (1)
39 /* @brief ASRC availability on the SoC. */
40 #define FSL_FEATURE_SOC_ASRC_COUNT (2)
41 /* @brief BCH availability on the SoC. */
42 #define FSL_FEATURE_SOC_BCH_COUNT (1)
43 /* @brief EDMA availability on the SoC. */
44 #define FSL_FEATURE_SOC_EDMA_COUNT (5)
45 /* @brief ENET availability on the SoC. */
46 #define FSL_FEATURE_SOC_ENET_COUNT (2)
47 /* @brief ESAI availability on the SoC. */
48 #define FSL_FEATURE_SOC_ESAI_COUNT (1)
49 /* @brief FLEXCAN availability on the SoC. */
50 #define FSL_FEATURE_SOC_FLEXCAN_COUNT (3)
51 /* @brief FLEXSPI availability on the SoC. */
52 #define FSL_FEATURE_SOC_FLEXSPI_COUNT (2)
53 /* @brief FTM availability on the SoC. */
54 #define FSL_FEATURE_SOC_FTM_COUNT (2)
55 /* @brief GPIO availability on the SoC. */
56 #define FSL_FEATURE_SOC_GPIO_COUNT (13)
57 /* @brief GPMI availability on the SoC. */
58 #define FSL_FEATURE_SOC_GPMI_COUNT (1)
59 /* @brief GPT availability on the SoC. */
60 #define FSL_FEATURE_SOC_GPT_COUNT (11)
61 /* @brief I2S availability on the SoC. */
62 #define FSL_FEATURE_SOC_I2S_COUNT (6)
63 /* @brief INTMUX availability on the SoC. */
64 #define FSL_FEATURE_SOC_INTMUX_COUNT (2)
65 /* @brief IRQSTEER availability on the SoC. */
66 #define FSL_FEATURE_SOC_IRQSTEER_COUNT (1)
67 /* @brief ISI availability on the SoC. */
68 #define FSL_FEATURE_SOC_ISI_COUNT (8)
69 /* @brief KPP availability on the SoC. */
70 #define FSL_FEATURE_SOC_KPP_COUNT (1)
71 /* @brief LCDIF availability on the SoC. */
72 #define FSL_FEATURE_SOC_LCDIF_COUNT (1)
73 /* @brief LMEM availability on the SoC. */
74 #define FSL_FEATURE_SOC_LMEM_COUNT (1)
75 /* @brief LPADC availability on the SoC. */
76 #define FSL_FEATURE_SOC_LPADC_COUNT (1)
77 /* @brief LPI2C availability on the SoC. */
78 #define FSL_FEATURE_SOC_LPI2C_COUNT (12)
79 /* @brief LPIT availability on the SoC. */
80 #define FSL_FEATURE_SOC_LPIT_COUNT (2)
81 /* @brief LPSPI availability on the SoC. */
82 #define FSL_FEATURE_SOC_LPSPI_COUNT (4)
83 /* @brief LPUART availability on the SoC. */
84 #define FSL_FEATURE_SOC_LPUART_COUNT (6)
85 /* @brief MCM availability on the SoC. */
86 #define FSL_FEATURE_SOC_MCM_COUNT (1)
87 /* @brief MIPI_CSI2RX availability on the SoC. */
88 #define FSL_FEATURE_SOC_MIPI_CSI2RX_COUNT (1)
89 /* @brief MIPI_DSI_HOST availability on the SoC. */
90 #define FSL_FEATURE_SOC_MIPI_DSI_HOST_COUNT (2)
91 /* @brief MMCAU availability on the SoC. */
92 #define FSL_FEATURE_SOC_MMCAU_COUNT (1)
93 /* @brief MU availability on the SoC. */
94 #define FSL_FEATURE_SOC_MU_COUNT (41)
95 /* @brief PWM availability on the SoC. */
96 #define FSL_FEATURE_SOC_PWM_COUNT (13)
97 /* @brief ROMC availability on the SoC. */
98 #define FSL_FEATURE_SOC_ROMC_COUNT (2)
99 /* @brief SEMA42 availability on the SoC. */
100 #define FSL_FEATURE_SOC_SEMA42_COUNT (2)
101 /* @brief SPDIF availability on the SoC. */
102 #define FSL_FEATURE_SOC_SPDIF_COUNT (1)
103 /* @brief TPM availability on the SoC. */
104 #define FSL_FEATURE_SOC_TPM_COUNT (2)
105 /* @brief TSTMR availability on the SoC. */
106 #define FSL_FEATURE_SOC_TSTMR_COUNT (1)
107 /* @brief USB availability on the SoC. */
108 #define FSL_FEATURE_SOC_USB_COUNT (1)
109 /* @brief USB3 availability on the SoC. */
110 #define FSL_FEATURE_SOC_USB3_COUNT (1)
111 /* @brief USBDCD availability on the SoC. */
112 #define FSL_FEATURE_SOC_USBDCD_COUNT (1)
113 /* @brief USBNC availability on the SoC. */
114 #define FSL_FEATURE_SOC_USBNC_COUNT (1)
115 /* @brief USBPHY availability on the SoC. */
116 #define FSL_FEATURE_SOC_USBPHY_COUNT (1)
117 /* @brief USDHC availability on the SoC. */
118 #define FSL_FEATURE_SOC_USDHC_COUNT (3)
119 /* @brief WDOG availability on the SoC. */
120 #define FSL_FEATURE_SOC_WDOG_COUNT (2)
121#elif defined(CPU_MIMX8QX1AVOFZ)
122 /* @brief APBH availability on the SoC. */
123 #define FSL_FEATURE_SOC_APBH_COUNT (1)
124 /* @brief ASMC availability on the SoC. */
125 #define FSL_FEATURE_SOC_ASMC_COUNT (1)
126 /* @brief ASRC availability on the SoC. */
127 #define FSL_FEATURE_SOC_ASRC_COUNT (2)
128 /* @brief BCH availability on the SoC. */
129 #define FSL_FEATURE_SOC_BCH_COUNT (1)
130 /* @brief EDMA availability on the SoC. */
131 #define FSL_FEATURE_SOC_EDMA_COUNT (5)
132 /* @brief ENET availability on the SoC. */
133 #define FSL_FEATURE_SOC_ENET_COUNT (2)
134 /* @brief ESAI availability on the SoC. */
135 #define FSL_FEATURE_SOC_ESAI_COUNT (1)
136 /* @brief FLEXCAN availability on the SoC. */
137 #define FSL_FEATURE_SOC_FLEXCAN_COUNT (3)
138 /* @brief FLEXSPI availability on the SoC. */
139 #define FSL_FEATURE_SOC_FLEXSPI_COUNT (2)
140 /* @brief FTM availability on the SoC. */
141 #define FSL_FEATURE_SOC_FTM_COUNT (2)
142 /* @brief GPIO availability on the SoC. */
143 #define FSL_FEATURE_SOC_GPIO_COUNT (13)
144 /* @brief GPMI availability on the SoC. */
145 #define FSL_FEATURE_SOC_GPMI_COUNT (1)
146 /* @brief GPT availability on the SoC. */
147 #define FSL_FEATURE_SOC_GPT_COUNT (11)
148 /* @brief I2S availability on the SoC. */
149 #define FSL_FEATURE_SOC_I2S_COUNT (6)
150 /* @brief INTMUX availability on the SoC. */
151 #define FSL_FEATURE_SOC_INTMUX_COUNT (2)
152 /* @brief IRQSTEER availability on the SoC. */
153 #define FSL_FEATURE_SOC_IRQSTEER_COUNT (1)
154 /* @brief ISI availability on the SoC. */
155 #define FSL_FEATURE_SOC_ISI_COUNT (8)
156 /* @brief KPP availability on the SoC. */
157 #define FSL_FEATURE_SOC_KPP_COUNT (1)
158 /* @brief LCDIF availability on the SoC. */
159 #define FSL_FEATURE_SOC_LCDIF_COUNT (1)
160 /* @brief LMEM availability on the SoC. */
161 #define FSL_FEATURE_SOC_LMEM_COUNT (1)
162 /* @brief LPADC availability on the SoC. */
163 #define FSL_FEATURE_SOC_LPADC_COUNT (1)
164 /* @brief LPI2C availability on the SoC. */
165 #define FSL_FEATURE_SOC_LPI2C_COUNT (12)
166 /* @brief LPIT availability on the SoC. */
167 #define FSL_FEATURE_SOC_LPIT_COUNT (2)
168 /* @brief LPSPI availability on the SoC. */
169 #define FSL_FEATURE_SOC_LPSPI_COUNT (4)
170 /* @brief LPUART availability on the SoC. */
171 #define FSL_FEATURE_SOC_LPUART_COUNT (6)
172 /* @brief MCM availability on the SoC. */
173 #define FSL_FEATURE_SOC_MCM_COUNT (1)
174 /* @brief MIPI_CSI2RX availability on the SoC. */
175 #define FSL_FEATURE_SOC_MIPI_CSI2RX_COUNT (1)
176 /* @brief MIPI_DSI_HOST availability on the SoC. */
177 #define FSL_FEATURE_SOC_MIPI_DSI_HOST_COUNT (2)
178 /* @brief MMCAU availability on the SoC. */
179 #define FSL_FEATURE_SOC_MMCAU_COUNT (1)
180 /* @brief MU availability on the SoC. */
181 #define FSL_FEATURE_SOC_MU_COUNT (41)
182 /* @brief PWM availability on the SoC. */
183 #define FSL_FEATURE_SOC_PWM_COUNT (13)
184 /* @brief ROMC availability on the SoC. */
185 #define FSL_FEATURE_SOC_ROMC_COUNT (2)
186 /* @brief SEMA42 availability on the SoC. */
187 #define FSL_FEATURE_SOC_SEMA42_COUNT (2)
188 /* @brief SPDIF availability on the SoC. */
189 #define FSL_FEATURE_SOC_SPDIF_COUNT (1)
190 /* @brief TPM availability on the SoC. */
191 #define FSL_FEATURE_SOC_TPM_COUNT (2)
192 /* @brief TSTMR availability on the SoC. */
193 #define FSL_FEATURE_SOC_TSTMR_COUNT (1)
194 /* @brief USB availability on the SoC. */
195 #define FSL_FEATURE_SOC_USB_COUNT (1)
196 /* @brief USBDCD availability on the SoC. */
197 #define FSL_FEATURE_SOC_USBDCD_COUNT (1)
198 /* @brief USBNC availability on the SoC. */
199 #define FSL_FEATURE_SOC_USBNC_COUNT (1)
200 /* @brief USBPHY availability on the SoC. */
201 #define FSL_FEATURE_SOC_USBPHY_COUNT (1)
202 /* @brief USDHC availability on the SoC. */
203 #define FSL_FEATURE_SOC_USDHC_COUNT (3)
204 /* @brief WDOG availability on the SoC. */
205 #define FSL_FEATURE_SOC_WDOG_COUNT (2)
206#endif
207
208/* LPADC module features */
209
210/* @brief Has subsequent trigger priority (bitfield CFG[TPRICTRL]). */
211#define FSL_FEATURE_LPADC_HAS_CFG_SUBSEQUENT_PRIORITY (1)
212/* @brief Has differential mode (bitfield CMDLn[DIFF]). */
213#define FSL_FEATURE_LPADC_HAS_CMDL_DIFF (1)
214/* @brief Has channel scale (bitfield CMDLn[CSCALE]). */
215#define FSL_FEATURE_LPADC_HAS_CMDL_CSCALE (1)
216/* @brief Has conversion type select (bitfield CMDLn[CTYPE]). */
217#define FSL_FEATURE_LPADC_HAS_CMDL_CTYPE (0)
218/* @brief Has conversion resolution select (bitfield CMDLn[MODE]). */
219#define FSL_FEATURE_LPADC_HAS_CMDL_MODE (0)
220/* @brief Has Wait for trigger assertion before execution (bitfield CMDHn[WAIT_TRIG]). */
221#define FSL_FEATURE_LPADC_HAS_CMDH_WAIT_TRIG (0)
222/* @brief Has offset calibration (bitfield CTRL[CALOFS]). */
223#define FSL_FEATURE_LPADC_HAS_CTRL_CALOFS (0)
224/* @brief Has gain calibration (bitfield CTRL[CAL_REQ]). */
225#define FSL_FEATURE_LPADC_HAS_CTRL_CAL_REQ (0)
226/* @brief Has calibration average (bitfield CTRL[CAL_AVGS]). */
227#define FSL_FEATURE_LPADC_HAS_CTRL_CAL_AVGS (0)
228/* @brief Has internal clock (bitfield CFG[ADCKEN]). */
229#define FSL_FEATURE_LPADC_HAS_CFG_ADCKEN (0)
230/* @brief Enable support for low voltage reference on option 1 reference (bitfield CFG[VREF1RNG]). */
231#define FSL_FEATURE_LPADC_HAS_CFG_VREF1RNG (0)
232/* @brief Has calibration (bitfield CFG[CALOFS]). */
233#define FSL_FEATURE_LPADC_HAS_CFG_CALOFS (0)
234/* @brief Has offset trim (register OFSTRIM). */
235#define FSL_FEATURE_LPADC_HAS_OFSTRIM (0)
236
237/* FLEXCAN module features */
238
239/* @brief Message buffer size */
240#define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (64)
241/* @brief Has doze mode support (register bit field MCR[DOZE]). */
242#define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (1)
243/* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */
244#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) (1)
245/* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */
246#define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1)
247/* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */
248#define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (1)
249/* @brief Instance has extended bit timing register (register CBT). */
250#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) (1)
251/* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */
252#define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (1)
253/* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */
254#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) (1)
255/* @brief Remove CAN Engine Clock Source Selection from unsupported part. */
256#define FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE (0)
257/* @brief Instance remove CAN Engine Clock Source Selection from unsupported part. */
258#define FSL_FEATURE_FLEXCAN_INSTANCE_SUPPORT_ENGINE_CLK_SEL_REMOVEn(x) (0)
259/* @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). */
260#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (1)
261/* @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). */
262#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5829 (0)
263/* @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). */
264#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 (0)
265/* @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). */
266#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_9595 (0)
267/* @brief Has CAN with Flexible Data rate (CAN FD) protocol. */
268#define FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE (1)
269/* @brief CAN instance support Flexible Data rate (CAN FD) protocol. */
270#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_FLEXIBLE_DATA_RATEn(x) (1)
271/* @brief Has extra MB interrupt or common one. */
272#define FSL_FEATURE_FLEXCAN_HAS_EXTRA_MB_INT (0)
273/* @brief Has memory error control (register MECR). */
274#define FSL_FEATURE_FLEXCAN_HAS_MEMORY_ERROR_CONTROL (0)
275
276/* EDMA module features */
277
278/* @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.) */
279#define FSL_FEATURE_EDMA_MODULE_CHANNEL (32)
280/* @brief Total number of DMA channels on all modules. */
281#define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (32)
282/* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */
283#define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1)
284/* @brief Has DMA_Error interrupt vector. */
285#define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1)
286/* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */
287#define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32)
288/* @brief If channel clock controlled independently */
289#define FSL_FEATURE_EDMA_CHANNEL_HAS_OWN_CLOCK_GATE (1)
290/* @brief Number of channel for each EDMA instance, (only defined for soc with different channel numbers for difference instance) */
291#define FSL_FEATURE_EDMA_INSTANCE_CHANNELn(x) \
292 (((x) == ADMA__EDMA0) ? (32) : \
293 (((x) == ADMA__EDMA1) ? (16) : \
294 (((x) == ADMA__EDMA2) ? (32) : \
295 (((x) == ADMA__EDMA3) ? (16) : \
296 (((x) == CONNECTIVITY__EDMA) ? (5) : (-1))))))
297/* @brief Has no register bit fields MP_CSR[EBW]. */
298#define FSL_FEATURE_EDMA_HAS_NO_MP_CSR_EBW (0)
299
300/* ESAI module features */
301
302/* @brief ESAI FIFO Size. */
303#define FSL_FEATURE_ESAI_FIFO_SIZEn(x) (128)
304
305/* FTM module features */
306
307/* @brief Number of channels. */
308#define FSL_FEATURE_FTM_CHANNEL_COUNTn(x) (8)
309/* @brief MU Has register CCR */
310#define FSL_FEATURE_FTM_HAS_COUNTER_RESET_BY_CAPTURE_EVENT (1)
311/* @brief Has extended deadtime value. */
312#define FSL_FEATURE_FTM_HAS_EXTENDED_DEADTIME_VALUE (0)
313/* @brief Enable pwm output for the module. */
314#define FSL_FEATURE_FTM_HAS_ENABLE_PWM_OUTPUT (1)
315/* @brief Has half-cycle reload for the module. */
316#define FSL_FEATURE_FTM_HAS_HALFCYCLE_RELOAD (0)
317/* @brief Has reload interrupt. */
318#define FSL_FEATURE_FTM_HAS_RELOAD_INTERRUPT (0)
319/* @brief Has reload initialization trigger. */
320#define FSL_FEATURE_FTM_HAS_RELOAD_INITIALIZATION_TRIGGER (1)
321/* @brief Has DMA support, bitfield CnSC[DMA]. */
322#define FSL_FEATURE_FTM_HAS_DMA_SUPPORT (1)
323/* @brief If channel 6 is used to generate channel trigger, bitfield EXTTRIG[CH6TRIG]. */
324#define FSL_FEATURE_FTM_HAS_CHANNEL6_TRIGGER (1)
325/* @brief If channel 7 is used to generate channel trigger, bitfield EXTTRIG[CH7TRIG]. */
326#define FSL_FEATURE_FTM_HAS_CHANNEL7_TRIGGER (1)
327
328/* LPI2C module features */
329
330/* @brief Has separate DMA RX and TX requests. */
331#define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
332/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
333#define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) \
334 (((x) == SCU__LPI2C) ? (4) : \
335 (((x) == CM4__LPI2C) ? (4) : \
336 (((x) == DI_MIPI_DSI_LVDS_0__LPI2C0) ? (16) : \
337 (((x) == DI_MIPI_DSI_LVDS_0__LPI2C1) ? (16) : \
338 (((x) == DI_MIPI_DSI_LVDS_1__LPI2C0) ? (16) : \
339 (((x) == DI_MIPI_DSI_LVDS_1__LPI2C1) ? (16) : \
340 (((x) == MIPI_CSI__LPI2C) ? (16) : \
341 (((x) == CI_PI__LPI2C0) ? (16) : \
342 (((x) == ADMA__LPI2C0) ? (16) : \
343 (((x) == ADMA__LPI2C1) ? (16) : \
344 (((x) == ADMA__LPI2C2) ? (16) : \
345 (((x) == ADMA__LPI2C3) ? (16) : (-1)))))))))))))
346
347/* LPSPI module features */
348
349/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
350#define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (64)
351/* @brief Has separate DMA RX and TX requests. */
352#define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
353
354/* LPUART module features */
355
356/* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
357#define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0)
358/* @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). */
359#define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1)
360/* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
361#define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
362/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
363#define FSL_FEATURE_LPUART_HAS_FIFO (1)
364/* @brief Has 32-bit register MODIR */
365#define FSL_FEATURE_LPUART_HAS_MODIR (1)
366/* @brief Hardware flow control (RTS, CTS) is supported. */
367#define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1)
368/* @brief Infrared (modulation) is supported. */
369#define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1)
370/* @brief 2 bits long stop bit is available. */
371#define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
372/* @brief If 10-bit mode is supported. */
373#define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1)
374/* @brief If 7-bit mode is supported. */
375#define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (1)
376/* @brief Baud rate fine adjustment is available. */
377#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0)
378/* @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). */
379#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1)
380/* @brief Baud rate oversampling is available. */
381#define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1)
382/* @brief Baud rate oversampling is available. */
383#define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1)
384/* @brief Peripheral type. */
385#define FSL_FEATURE_LPUART_IS_SCI (1)
386/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
387#define FSL_FEATURE_LPUART_FIFO_SIZEn(x) \
388 (((x) == SCU__LPUART) ? (32) : \
389 (((x) == CM4__LPUART) ? (32) : \
390 (((x) == ADMA__LPUART0) ? (64) : \
391 (((x) == ADMA__LPUART1) ? (64) : \
392 (((x) == ADMA__LPUART2) ? (64) : \
393 (((x) == ADMA__LPUART3) ? (64) : (-1)))))))
394/* @brief Maximal data width without parity bit. */
395#define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_NO_PARITY (10)
396/* @brief Maximal data width with parity bit. */
397#define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_PARITY (9)
398/* @brief Supports two match addresses to filter incoming frames. */
399#define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1)
400/* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
401#define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1)
402/* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
403#define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0)
404/* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
405#define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1)
406/* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
407#define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0)
408/* @brief Has improved smart card (ISO7816 protocol) support. */
409#define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0)
410/* @brief Has local operation network (CEA709.1-B protocol) support. */
411#define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
412/* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
413#define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1)
414/* @brief Lin break detect available (has bit BAUD[LBKDIE]). */
415#define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1)
416/* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
417#define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0)
418/* @brief Has separate DMA RX and TX requests. */
419#define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0)
420/* @brief Has separate RX and TX interrupts. */
421#define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0)
422/* @brief Has LPAURT_PARAM. */
423#define FSL_FEATURE_LPUART_HAS_PARAM (1)
424/* @brief Has LPUART_VERID. */
425#define FSL_FEATURE_LPUART_HAS_VERID (1)
426/* @brief Has LPUART_GLOBAL. */
427#define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
428/* @brief Has LPUART_PINCFG. */
429#define FSL_FEATURE_LPUART_HAS_PINCFG (1)
430
431/* SAI module features */
432
433/* @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). */
434#define FSL_FEATURE_SAI_FIFO_COUNT (64)
435/* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */
436#define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) (1)
437/* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */
438#define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32)
439/* @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]). */
440#define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (0)
441/* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */
442#define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1)
443/* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */
444#define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1)
445/* @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]). */
446#define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1)
447/* @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]. */
448#define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0)
449/* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */
450#define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0)
451/* @brief Interrupt source number */
452#define FSL_FEATURE_SAI_INT_SOURCE_NUM (1)
453/* @brief Has register of MCR. */
454#define FSL_FEATURE_SAI_HAS_MCR (0)
455/* @brief Has bit field MICS of the MCR register. */
456#define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1)
457/* @brief Has register of MDR */
458#define FSL_FEATURE_SAI_HAS_MDR (0)
459/* @brief Has support the BCLK bypass mode when BCLK = MCLK. */
460#define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (0)
461/* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
462#define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0)
463/* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
464#define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (0)
465
466/* ASMC module features */
467
468/* @brief Has high speed run mode. */
469#define FSL_FEATURE_ASMC_HAS_HIGH_SPEED_RUN_MODE (0)
470
471/* INTMUX module features */
472
473/* @brief Number of INTMUX channels (related to number of register CHn_CSR). */
474#define FSL_FEATURE_INTMUX_CHANNEL_COUNT (8)
475/* @brief Number of INTMUX IRQ source. */
476#define FSL_FEATURE_INTMUX_IRQ_COUNT (32)
477/* @brief The start IRQ index of first INTMUX source IRQ. */
478#define FSL_FEATURE_INTMUX_IRQ_START_INDEX (563)
479/* @brief The direction of INTMUX. OUT, route the CM4 subsystem IRQ to System. */
480#define FSL_FEATURE_INTMUX_DIRECTION_OUT (1)
481/* @brief The total number of level1 interrupt vectors. */
482#define FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS (51)
483
484/* LPIT module features */
485
486/* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */
487#define FSL_FEATURE_LPIT_TIMER_COUNT (4)
488/* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */
489#define FSL_FEATURE_LPIT_HAS_LIFETIME_TIMER (0)
490/* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */
491#define FSL_FEATURE_LPIT_HAS_CHAIN_MODE (0)
492/* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
493#define FSL_FEATURE_LPIT_HAS_SHARED_IRQ_HANDLER (1)
494
495/* MU module features */
496
497/* @brief MU side for current core */
498#define FSL_FEATURE_MU_SIDE_B (1)
499/* @brief MU Has register CCR */
500#define FSL_FEATURE_MU_HAS_CCR (0)
501/* @brief MU Has register SR[RS], BSR[ARS] */
502#define FSL_FEATURE_MU_HAS_SR_RS (1)
503/* @brief MU Has register CR[RDIE], CR[RAIE], SR[RDIP], SR[RAIP] */
504#define FSL_FEATURE_MU_HAS_RESET_INT (0)
505/* @brief MU Has register SR[MURIP] */
506#define FSL_FEATURE_MU_HAS_SR_MURIP (0)
507/* @brief brief MU Has register SR[HRIP] */
508#define FSL_FEATURE_MU_HAS_SR_HRIP (0)
509/* @brief brief MU does not support enable clock of the other core, CR[CLKE] or CCR[CLKE]. */
510#define FSL_FEATURE_MU_NO_CLKE (1)
511/* @brief brief MU does not support NMI, CR[NMI]. */
512#define FSL_FEATURE_MU_NO_NMI (1)
513/* @brief brief MU does not support hold the other core reset. CR[RSTH] or CCR[RSTH]. */
514#define FSL_FEATURE_MU_NO_RSTH (1)
515/* @brief brief MU does not supports MU reset, CR[MUR]. */
516#define FSL_FEATURE_MU_NO_MUR (1)
517/* @brief brief MU does not supports hardware reset, CR[HR] or CCR[HR]. */
518#define FSL_FEATURE_MU_NO_HR (1)
519/* @brief brief MU supports mask the hardware reset. CR[HRM] or CCR[HRM]. */
520#define FSL_FEATURE_MU_HAS_HRM (1)
521
522/* RGPIO module features */
523
524/* @brief Has GPIO attribute checker register (GACR). */
525#define FSL_FEATURE_RGPIO_HAS_ATTRIBUTE_CHECKER (0)
526
527/* SEMA42 module features */
528
529/* @brief Gate counts */
530#define FSL_FEATURE_SEMA42_GATE_COUNT (16)
531
532/* TPM module features */
533
534/* @brief Number of channels. */
535#define FSL_FEATURE_TPM_CHANNEL_COUNTn(x) (6)
536/* @brief Has counter reset by the selected input capture event (register bits C0SC[ICRST], C1SC[ICRST], ...). */
537#define FSL_FEATURE_TPM_HAS_COUNTER_RESET_BY_CAPTURE_EVENT (0)
538/* @brief Has TPM_PARAM. */
539#define FSL_FEATURE_TPM_HAS_PARAM (1)
540/* @brief Has TPM_VERID. */
541#define FSL_FEATURE_TPM_HAS_VERID (1)
542/* @brief Has TPM_GLOBAL. */
543#define FSL_FEATURE_TPM_HAS_GLOBAL (1)
544/* @brief Has TPM_TRIG. */
545#define FSL_FEATURE_TPM_HAS_TRIG (1)
546/* @brief Has counter pause on trigger. */
547#define FSL_FEATURE_TPM_HAS_PAUSE_COUNTER_ON_TRIGGER (1)
548/* @brief Has external trigger selection. */
549#define FSL_FEATURE_TPM_HAS_EXTERNAL_TRIGGER_SELECTION (1)
550/* @brief Has TPM_COMBINE register. */
551#define FSL_FEATURE_TPM_HAS_COMBINE (1)
552/* @brief Whether COMBINE register has effect. */
553#define FSL_FEATURE_TPM_COMBINE_HAS_EFFECTn(x) (1)
554/* @brief Has TPM_POL. */
555#define FSL_FEATURE_TPM_HAS_POL (1)
556/* @brief Has TPM_FILTER register. */
557#define FSL_FEATURE_TPM_HAS_FILTER (1)
558/* @brief Whether FILTER register has effect. */
559#define FSL_FEATURE_TPM_FILTER_HAS_EFFECTn(x) (1)
560/* @brief Has TPM_QDCTRL register. */
561#define FSL_FEATURE_TPM_HAS_QDCTRL (1)
562/* @brief Whether QDCTRL register has effect. */
563#define FSL_FEATURE_TPM_QDCTRL_HAS_EFFECTn(x) (1)
564
565/* TSTMR module features */
566
567/* @brief TSTMR clock frequency is 1MHZ. */
568#define FSL_FEATURE_TSTMR_CLOCK_FREQUENCY_1MHZ (0)
569/* @brief TSTMR clock frequency is 1MHZ. */
570#define FSL_FEATURE_TSTMR_CLOCK_FREQUENCY_8MHZ (1)
571
572/* WDOG module features */
573
574/* @brief Watchdog is available. */
575#define FSL_FEATURE_WDOG_HAS_WATCHDOG (1)
576/* @brief WDOG_CNT can be 32-bit written. */
577#define FSL_FEATURE_WDOG_HAS_32BIT_ACCESS (1)
578
579/* ENET module features */
580
581/* @brief Support Interrupt Coalesce */
582#define FSL_FEATURE_ENET_HAS_INTERRUPT_COALESCE (1)
583/* @brief Queue Size. */
584#define FSL_FEATURE_ENET_QUEUE (3)
585/* @brief Has AVB Support. */
586#define FSL_FEATURE_ENET_HAS_AVB (1)
587/* @brief Has Timer Pulse Width control. */
588#define FSL_FEATURE_ENET_HAS_TIMER_PWCONTROL (1)
589/* @brief Has Extend MDIO Support. */
590#define FSL_FEATURE_ENET_HAS_EXTEND_MDIO (1)
591/* @brief Has Additional 1588 Timer Channel Interrupt. */
592#define FSL_FEATURE_ENET_HAS_ADD_1588_TIMER_CHN_INT (0)
593/* @brief Support Interrupt Coalesce for each instance */
594#define FSL_FEATURE_ENET_INSTANCE_HAS_INTERRUPT_COALESCEn(x) (0)
595/* @brief Queue Size for each instance. */
596#define FSL_FEATURE_ENET_INSTANCE_QUEUEn(x) (3)
597/* @brief Has AVB Support for each instance. */
598#define FSL_FEATURE_ENET_INSTANCE_HAS_AVBn(x) (1)
599/* @brief Has Timer Pulse Width control for each instance. */
600#define FSL_FEATURE_ENET_INSTANCE_HAS_TIMER_PWCONTROLn(x) (1)
601/* @brief Has Extend MDIO Support for each instance. */
602#define FSL_FEATURE_ENET_INSTANCE_HAS_EXTEND_MDIOn(x) (1)
603/* @brief Has Additional 1588 Timer Channel Interrupt for each instance. */
604#define FSL_FEATURE_ENET_INSTANCE_HAS_ADD_1588_TIMER_CHN_INTn(x) (0)
605/* @brief Has threshold for the number of frames in the receive FIFO (register bit field RSEM[STAT_SECTION_EMPTY]). */
606#define FSL_FEATURE_ENET_HAS_RECEIVE_STATUS_THRESHOLD (1)
607/* @brief ENET need workaround for ERRATA_007885. */
608#define FSL_FEATURE_ENET_HAS_ERRATA_007885 (1)
609
610/* USDHC module features */
611
612/* @brief Has external DMA support (VEND_SPEC[EXT_DMA_EN]) */
613#define FSL_FEATURE_USDHC_HAS_EXT_DMA (0)
614/* @brief Has HS400 mode (MIX_CTRL[HS400_MODE]) */
615#define FSL_FEATURE_USDHC_HAS_HS400_MODE (1)
616/* @brief Has SDR50 support (HOST_CTRL_CAP[SDR50_SUPPORT]) */
617#define FSL_FEATURE_USDHC_HAS_SDR50_MODE (0)
618/* @brief Has SDR104 support (HOST_CTRL_CAP[SDR104_SUPPORT]) */
619#define FSL_FEATURE_USDHC_HAS_SDR104_MODE (0)
620/* @brief USDHC has reset control */
621#define FSL_FEATURE_USDHC_HAS_RESET (0)
622/* @brief USDHC has no bitfield WTMK_LVL[WR_BRST_LEN] and WTMK_LVL[RD_BRST_LEN] */
623#define FSL_FEATURE_USDHC_HAS_NO_RW_BURST_LEN (1)
624
625/* MIPI_DSI_HOST module features */
626
627/* @brief Offset between MIPI DSI controller and CSR in the MIPI DSI subsystem. */
628#define FSL_FEATURE_DSI_CSR_OFFSET (0x7000)
629/* @brief Use Mixel combo PHY. */
630#define FSL_FEATURE_LDB_COMBO_PHY (1)
631
632/* IRQSTEER module features */
633
634/* @brief Number of IRQSTEER CHn_MASK register. */
635#define FSL_FEATURE_IRQSTEER_CHn_MASK_COUNT (16)
636/* @brief The start IRQ index of first IRQSTEER source IRQ. */
637#define FSL_FEATURE_IRQSTEER_IRQ_START_INDEX (51)
638/* @brief Number of IRQSTEER master. */
639#define FSL_FEATURE_IRQSTEER_MASTER_COUNT (8)
640
641/* LMEM module features */
642
643/* @brief Has process identifier support. */
644#define FSL_FEATURE_LMEM_HAS_SYSTEMBUS_CACHE (1)
645/* @brief Support instruction cache demote. */
646#define FSL_FEATURE_LMEM_SUPPORT_ICACHE_DEMOTE_REMOVE (1)
647/* @brief Has no NONCACHEABLE section. */
648#define FSL_FEATURE_HAS_NO_NONCACHEABLE_SECTION (0)
649/* @brief L1 ICACHE line size in byte. */
650#define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32)
651/* @brief L1 DCACHE line size in byte. */
652#define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32)
653
654/* FLEXSPI module features */
655
656/* @brief FlexSPI AHB buffer count */
657#define FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(x) (8)
658/* @brief There is AHBBUSERROREN bit in INTEN register. */
659#define FSL_FEATURE_FLEXSPI_HAS_INTEN_AHBBUSERROREN (0)
660/* @brief There is CLRAHBTX_RXBUF bit in AHBCR register. */
661#define FSL_FEATURE_FLEXSPI_HAS_AHBCR_CLRAHBTX_RXBUF (1)
662
663/* MEMORY module features */
664
665/* @brief Memory map has offset between subsystems. */
666#define FSL_FEATURE_MEMORY_HAS_ADDRESS_OFFSET (1)
667
668/* MIPI_CSI2RX module features */
669
670/* @brief Offset between MIPI CSI controller and CSR in the MIPI CSI subsystem. */
671#define FSL_FEATURE_CSI2RX_CSR_OFFSET (0x6000)
672
673#endif /* _MIMX8QX1_cm4_FEATURES_H_ */
674