1 /* 2 ** ################################################################### 3 ** Version: rev. 5.0, 2021-03-01 4 ** Build: b230203 5 ** 6 ** Abstract: 7 ** Chip specific module features. 8 ** 9 ** Copyright 2016 Freescale Semiconductor, Inc. 10 ** Copyright 2016-2023 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. 1.0 (2019-10-11) 20 ** Initial version. 21 ** - rev. 2.0 (2020-02-21) 22 ** Rev.B Header. 23 ** - rev. 3.0 (2020-06-22) 24 ** Rev.C Header. 25 ** - rev. 4.0 (2020-11-16) 26 ** Rev.D Header. 27 ** - rev. 5.0 (2021-03-01) 28 ** Rev.D Header Final. 29 ** 30 ** ################################################################### 31 */ 32 33 #ifndef _MIMX8ML8_cm7_FEATURES_H_ 34 #define _MIMX8ML8_cm7_FEATURES_H_ 35 36 /* SOC module features */ 37 38 /* @brief AIPSTZ availability on the SoC. */ 39 #define FSL_FEATURE_SOC_AIPSTZ_COUNT (5) 40 /* @brief APBH availability on the SoC. */ 41 #define FSL_FEATURE_SOC_APBH_COUNT (1) 42 /* @brief ASRC availability on the SoC. */ 43 #define FSL_FEATURE_SOC_ASRC_COUNT (1) 44 /* @brief BCH availability on the SoC. */ 45 #define FSL_FEATURE_SOC_BCH_COUNT (1) 46 /* @brief CCM availability on the SoC. */ 47 #define FSL_FEATURE_SOC_CCM_COUNT (1) 48 /* @brief CCM_ANALOG availability on the SoC. */ 49 #define FSL_FEATURE_SOC_CCM_ANALOG_COUNT (1) 50 /* @brief DDRC availability on the SoC. */ 51 #define FSL_FEATURE_SOC_DDRC_COUNT (1) 52 /* @brief ECSPI availability on the SoC. */ 53 #define FSL_FEATURE_SOC_ECSPI_COUNT (3) 54 /* @brief EDMA availability on the SoC. */ 55 #define FSL_FEATURE_SOC_EDMA_COUNT (1) 56 /* @brief ENET availability on the SoC. */ 57 #define FSL_FEATURE_SOC_ENET_COUNT (1) 58 /* @brief ENET_QOS availability on the SoC. */ 59 #define FSL_FEATURE_SOC_ENET_QOS_COUNT (1) 60 /* @brief FLEXCAN availability on the SoC. */ 61 #define FSL_FEATURE_SOC_FLEXCAN_COUNT (2) 62 /* @brief FLEXSPI availability on the SoC. */ 63 #define FSL_FEATURE_SOC_FLEXSPI_COUNT (1) 64 /* @brief GPC availability on the SoC. */ 65 #define FSL_FEATURE_SOC_GPC_COUNT (1) 66 /* @brief GPC_PGC availability on the SoC. */ 67 #define FSL_FEATURE_SOC_GPC_PGC_COUNT (1) 68 /* @brief GPMI availability on the SoC. */ 69 #define FSL_FEATURE_SOC_GPMI_COUNT (1) 70 /* @brief GPT availability on the SoC. */ 71 #define FSL_FEATURE_SOC_GPT_COUNT (6) 72 /* @brief I2S availability on the SoC. */ 73 #define FSL_FEATURE_SOC_I2S_COUNT (6) 74 /* @brief IGPIO availability on the SoC. */ 75 #define FSL_FEATURE_SOC_IGPIO_COUNT (5) 76 /* @brief II2C availability on the SoC. */ 77 #define FSL_FEATURE_SOC_II2C_COUNT (6) 78 /* @brief IOMUXC availability on the SoC. */ 79 #define FSL_FEATURE_SOC_IOMUXC_COUNT (1) 80 /* @brief IOMUXC_GPR availability on the SoC. */ 81 #define FSL_FEATURE_SOC_IOMUXC_GPR_COUNT (1) 82 /* @brief IPWM availability on the SoC. */ 83 #define FSL_FEATURE_SOC_IPWM_COUNT (4) 84 /* @brief IRQSTEER availability on the SoC. */ 85 #define FSL_FEATURE_SOC_IRQSTEER_COUNT (2) 86 /* @brief ISI availability on the SoC. */ 87 #define FSL_FEATURE_SOC_ISI_COUNT (1) 88 /* @brief IUART availability on the SoC. */ 89 #define FSL_FEATURE_SOC_IUART_COUNT (4) 90 /* @brief LCDIF availability on the SoC. */ 91 #define FSL_FEATURE_SOC_LCDIF_COUNT (3) 92 /* @brief MU availability on the SoC. */ 93 #define FSL_FEATURE_SOC_MU_COUNT (1) 94 /* @brief NPU availability on the SoC. */ 95 #define FSL_FEATURE_SOC_NPU_COUNT (1) 96 /* @brief OCOTP availability on the SoC. */ 97 #define FSL_FEATURE_SOC_OCOTP_COUNT (1) 98 /* @brief PDM availability on the SoC. */ 99 #define FSL_FEATURE_SOC_PDM_COUNT (1) 100 /* @brief RDC availability on the SoC. */ 101 #define FSL_FEATURE_SOC_RDC_COUNT (1) 102 /* @brief RDC_SEMAPHORE availability on the SoC. */ 103 #define FSL_FEATURE_SOC_RDC_SEMAPHORE_COUNT (2) 104 /* @brief SDMA availability on the SoC. */ 105 #define FSL_FEATURE_SOC_SDMA_COUNT (3) 106 /* @brief SEMA4 availability on the SoC. */ 107 #define FSL_FEATURE_SOC_SEMA4_COUNT (1) 108 /* @brief SNVS availability on the SoC. */ 109 #define FSL_FEATURE_SOC_SNVS_COUNT (1) 110 /* @brief SPBA availability on the SoC. */ 111 #define FSL_FEATURE_SOC_SPBA_COUNT (2) 112 /* @brief SRC availability on the SoC. */ 113 #define FSL_FEATURE_SOC_SRC_COUNT (1) 114 /* @brief USB availability on the SoC. */ 115 #define FSL_FEATURE_SOC_USB_COUNT (2) 116 /* @brief USDHC availability on the SoC. */ 117 #define FSL_FEATURE_SOC_USDHC_COUNT (3) 118 /* @brief WDOG availability on the SoC. */ 119 #define FSL_FEATURE_SOC_WDOG_COUNT (3) 120 /* @brief XTALOSC availability on the SoC. */ 121 #define FSL_FEATURE_SOC_XTALOSC_COUNT (1) 122 123 /* CACHE module features */ 124 125 /* @brief L1 ICACHE line size in byte. */ 126 #define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32) 127 /* @brief L1 DCACHE line size in byte. */ 128 #define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32) 129 130 /* CCM module features */ 131 132 /* @brief Is affected by errata with ID 50235 (Incorrect clock setting for CAN affects by LPUART clock gate). */ 133 #define FSL_FEATURE_CCM_HAS_ERRATA_50235 (0) 134 135 /* ECSPI module features */ 136 137 /* @brief ECSPI Tx FIFO Size. */ 138 #define FSL_FEATURE_ECSPI_TX_FIFO_SIZEn(x) (64) 139 140 /* EDMA module features */ 141 142 /* @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.) */ 143 #define FSL_FEATURE_EDMA_MODULE_CHANNEL (32) 144 /* @brief Total number of DMA channels on all modules. */ 145 #define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (32) 146 /* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */ 147 #define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1) 148 /* @brief Has DMA_Error interrupt vector. */ 149 #define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1) 150 /* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */ 151 #define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32) 152 /* @brief If channel clock controlled independently */ 153 #define FSL_FEATURE_EDMA_CHANNEL_HAS_OWN_CLOCK_GATE (1) 154 /* @brief Number of channel for each EDMA instance, (only defined for soc with different channel numbers for difference instance) */ 155 #define FSL_FEATURE_EDMA_INSTANCE_CHANNELn(x) (32) 156 /* @brief Has no register bit fields MP_CSR[EBW]. */ 157 #define FSL_FEATURE_EDMA_HAS_NO_MP_CSR_EBW (1) 158 /* @brief If dma has channel mux */ 159 #define FSL_FEATURE_EDMA_HAS_CHANNEL_MUX (0) 160 /* @brief If dma has common clock gate */ 161 #define FSL_FEATURE_EDMA_HAS_COMMON_CLOCK_GATE (0) 162 /* @brief If dma channel IRQ support parameter */ 163 #define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SUPPORT_PARAMETER (0) 164 /* @brief If 8 bytes transfer supported. */ 165 #define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (1) 166 /* @brief If 16 bytes transfer supported. */ 167 #define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (1) 168 /* @brief If 64 bytes transfer supported. */ 169 #define FSL_FEATURE_EDMA_SUPPORT_64_BYTES_TRANSFER (1) 170 /* @brief Has no register bit fields CH_SBR[ATTR]. */ 171 #define FSL_FEATURE_EDMA_HAS_NO_CH_SBR_ATTR (1) 172 173 /* ENET module features */ 174 175 /* @brief Support Interrupt Coalesce */ 176 #define FSL_FEATURE_ENET_HAS_INTERRUPT_COALESCE (1) 177 /* @brief Queue Size. */ 178 #define FSL_FEATURE_ENET_QUEUE (3) 179 /* @brief Has AVB Support. */ 180 #define FSL_FEATURE_ENET_HAS_AVB (1) 181 /* @brief Has Timer Pulse Width control. */ 182 #define FSL_FEATURE_ENET_HAS_TIMER_PWCONTROL (0) 183 /* @brief Has Extend MDIO Support. */ 184 #define FSL_FEATURE_ENET_HAS_EXTEND_MDIO (1) 185 /* @brief Has Additional 1588 Timer Channel Interrupt. */ 186 #define FSL_FEATURE_ENET_HAS_ADD_1588_TIMER_CHN_INT (1) 187 /* @brief Support Interrupt Coalesce for each instance */ 188 #define FSL_FEATURE_ENET_INSTANCE_HAS_INTERRUPT_COALESCEn(x) (1) 189 /* @brief Queue Size for each instance. */ 190 #define FSL_FEATURE_ENET_INSTANCE_QUEUEn(x) (3) 191 /* @brief Has AVB Support for each instance. */ 192 #define FSL_FEATURE_ENET_INSTANCE_HAS_AVBn(x) (1) 193 /* @brief Has Timer Pulse Width control for each instance. */ 194 #define FSL_FEATURE_ENET_INSTANCE_HAS_TIMER_PWCONTROLn(x) (0) 195 /* @brief Has Extend MDIO Support for each instance. */ 196 #define FSL_FEATURE_ENET_INSTANCE_HAS_EXTEND_MDIOn(x) (1) 197 /* @brief Has Additional 1588 Timer Channel Interrupt for each instance. */ 198 #define FSL_FEATURE_ENET_INSTANCE_HAS_ADD_1588_TIMER_CHN_INTn(x) (1) 199 /* @brief Has threshold for the number of frames in the receive FIFO (register bit field RSEM[STAT_SECTION_EMPTY]). */ 200 #define FSL_FEATURE_ENET_HAS_RECEIVE_STATUS_THRESHOLD (1) 201 /* @brief Has trasfer clock delay (register bit field ECR[TXC_DLY]). */ 202 #define FSL_FEATURE_ENET_HAS_RGMII_TXC_DELAY (1) 203 /* @brief Has receive clock delay (register bit field ECR[RXC_DLY]). */ 204 #define FSL_FEATURE_ENET_HAS_RGMII_RXC_DELAY (1) 205 /* @brief PTP Timestamp CAPTURE bit always returns 0 when the capture is not over. */ 206 #define FSL_FEATURE_ENET_TIMESTAMP_CAPTURE_BIT_INVALID (0) 207 /* @brief ENET Has Extra Clock Gate.(RW610). */ 208 #define FSL_FEATURE_ENET_HAS_EXTRA_CLOCK_GATE (0) 209 210 /* ENET_QOS module features */ 211 212 /* No feature definitions */ 213 214 /* FLEXCAN module features */ 215 216 #if defined(CPU_MIMX8ML8CVNKZ) 217 /* @brief Message buffer size */ 218 #define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (64) 219 /* @brief Has doze mode support (register bit field MCR[DOZE]). */ 220 #define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (1) 221 /* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */ 222 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) (1) 223 /* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */ 224 #define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1) 225 /* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */ 226 #define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (1) 227 /* @brief Instance has extended bit timing register (register CBT). */ 228 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) (1) 229 /* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */ 230 #define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (1) 231 /* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */ 232 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) (1) 233 /* @brief Remove CAN Engine Clock Source Selection from unsupported part. */ 234 #define FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE (0) 235 /* @brief Instance remove CAN Engine Clock Source Selection from unsupported part. */ 236 #define FSL_FEATURE_FLEXCAN_INSTANCE_SUPPORT_ENGINE_CLK_SEL_REMOVEn(x) (0) 237 /* @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). */ 238 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (0) 239 /* @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). */ 240 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5829 (0) 241 /* @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). */ 242 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 (0) 243 /* @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). */ 244 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_9595 (0) 245 /* @brief Has CAN with Flexible Data rate (CAN FD) protocol. */ 246 #define FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE (1) 247 /* @brief CAN instance support Flexible Data rate (CAN FD) protocol. */ 248 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_FLEXIBLE_DATA_RATEn(x) (1) 249 /* @brief Has memory error control (register MECR). */ 250 #define FSL_FEATURE_FLEXCAN_HAS_MEMORY_ERROR_CONTROL (1) 251 /* @brief Init memory base 1 */ 252 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_1 (0x80) 253 /* @brief Init memory size 1 */ 254 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_1 (0xA60) 255 /* @brief Init memory base 2 */ 256 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_2 (0xF28) 257 /* @brief Init memory size 2 */ 258 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_2 (0xD8) 259 /* @brief Has enhanced bit timing register (register EPRS, ENCBT, EDCBT and ETDC). */ 260 #define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_BIT_TIMING_REG (0) 261 /* @brief Has Pretended Networking mode support. */ 262 #define FSL_FEATURE_FLEXCAN_HAS_PN_MODE (0) 263 /* @brief Does not support Supervisor Mode (bitfield MCR[SUPV]. */ 264 #define FSL_FEATURE_FLEXCAN_HAS_NO_SUPV_SUPPORT (0) 265 #elif defined(CPU_MIMX8ML8DVNLZ) 266 /* @brief Message buffer size */ 267 #define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (64) 268 /* @brief Has doze mode support (register bit field MCR[DOZE]). */ 269 #define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (1) 270 /* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */ 271 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) (1) 272 /* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */ 273 #define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1) 274 /* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */ 275 #define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (1) 276 /* @brief Instance has extended bit timing register (register CBT). */ 277 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) (1) 278 /* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */ 279 #define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (1) 280 /* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */ 281 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) (1) 282 /* @brief Remove CAN Engine Clock Source Selection from unsupported part. */ 283 #define FSL_FEATURE_FLEXCAN_SUPPORT_ENGINE_CLK_SEL_REMOVE (0) 284 /* @brief Instance remove CAN Engine Clock Source Selection from unsupported part. */ 285 #define FSL_FEATURE_FLEXCAN_INSTANCE_SUPPORT_ENGINE_CLK_SEL_REMOVEn(x) (0) 286 /* @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). */ 287 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (0) 288 /* @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). */ 289 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5829 (0) 290 /* @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). */ 291 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 (0) 292 /* @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). */ 293 #define FSL_FEATURE_FLEXCAN_HAS_ERRATA_9595 (0) 294 /* @brief Has CAN with Flexible Data rate (CAN FD) protocol. */ 295 #define FSL_FEATURE_FLEXCAN_HAS_FLEXIBLE_DATA_RATE (0) 296 /* @brief CAN instance support Flexible Data rate (CAN FD) protocol. */ 297 #define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_FLEXIBLE_DATA_RATEn(x) (0) 298 /* @brief Has memory error control (register MECR). */ 299 #define FSL_FEATURE_FLEXCAN_HAS_MEMORY_ERROR_CONTROL (1) 300 /* @brief Init memory base 1 */ 301 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_1 (0x80) 302 /* @brief Init memory size 1 */ 303 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_1 (0xA60) 304 /* @brief Init memory base 2 */ 305 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_BASE_2 (0xF28) 306 /* @brief Init memory size 2 */ 307 #define FSL_FEATURE_FLEXCAN_INIT_MEMORY_SIZE_2 (0xD8) 308 /* @brief Has enhanced bit timing register (register EPRS, ENCBT, EDCBT and ETDC). */ 309 #define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_BIT_TIMING_REG (0) 310 /* @brief Has Pretended Networking mode support. */ 311 #define FSL_FEATURE_FLEXCAN_HAS_PN_MODE (0) 312 /* @brief Does not support Supervisor Mode (bitfield MCR[SUPV]. */ 313 #define FSL_FEATURE_FLEXCAN_HAS_NO_SUPV_SUPPORT (0) 314 #endif /* defined(CPU_MIMX8ML8CVNKZ) */ 315 316 /* IGPIO module features */ 317 318 /* @brief Has data register set DR_SET. */ 319 #define FSL_FEATURE_IGPIO_HAS_DR_SET (0) 320 /* @brief Has data register clear DR_CLEAR. */ 321 #define FSL_FEATURE_IGPIO_HAS_DR_CLEAR (0) 322 /* @brief Has data register toggle DR_TOGGLE. */ 323 #define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (0) 324 325 /* SAI module features */ 326 327 /* @brief SAI has FIFO in this soc (register bit fields TCR1[TFW]. */ 328 #define FSL_FEATURE_SAI_HAS_FIFO (1) 329 /* @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). */ 330 #define FSL_FEATURE_SAI_FIFO_COUNTn(x) (128) 331 /* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */ 332 #define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) (8) 333 /* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */ 334 #define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32) 335 /* @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]). */ 336 #define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1) 337 /* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */ 338 #define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1) 339 /* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */ 340 #define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1) 341 /* @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]). */ 342 #define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1) 343 /* @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]. */ 344 #define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0) 345 /* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */ 346 #define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0) 347 /* @brief Interrupt source number */ 348 #define FSL_FEATURE_SAI_INT_SOURCE_NUM (1) 349 /* @brief Has register of MCR. */ 350 #define FSL_FEATURE_SAI_HAS_MCR (1) 351 /* @brief Has bit field MICS of the MCR register. */ 352 #define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1) 353 /* @brief Has register of MDR */ 354 #define FSL_FEATURE_SAI_HAS_MDR (0) 355 /* @brief Has support the BCLK bypass mode when BCLK = MCLK. */ 356 #define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (1) 357 /* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */ 358 #define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (1) 359 /* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */ 360 #define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1) 361 /* @brief SAI5 AND SAI6 SHARE ONE IRQNUMBER. */ 362 #define FSL_FEATURE_SAI_SAI5_SAI6_SHARE_IRQ (1) 363 364 /* ISI module features */ 365 366 /* No feature definitions */ 367 368 /* MEMORY module features */ 369 370 /* @brief Memory map has offset between subsystems. */ 371 #define FSL_FEATURE_MEMORY_HAS_ADDRESS_OFFSET (1) 372 373 /* MU module features */ 374 375 /* @brief MU side for current core */ 376 #define FSL_FEATURE_MU_SIDE_B (1) 377 /* @brief MU Has register CCR */ 378 #define FSL_FEATURE_MU_HAS_CCR (0) 379 /* @brief MU Has register SR[RS], BSR[ARS] */ 380 #define FSL_FEATURE_MU_HAS_SR_RS (1) 381 /* @brief MU Has register CR[RDIE], CR[RAIE], SR[RDIP], SR[RAIP] */ 382 #define FSL_FEATURE_MU_HAS_RESET_INT (0) 383 /* @brief MU Has register SR[MURIP] */ 384 #define FSL_FEATURE_MU_HAS_SR_MURIP (0) 385 /* @brief MU Has register SR[HRIP] */ 386 #define FSL_FEATURE_MU_HAS_SR_HRIP (0) 387 /* @brief MU does not support enable clock of the other core, CR[CLKE] or CCR[CLKE]. */ 388 #define FSL_FEATURE_MU_NO_CLKE (1) 389 /* @brief MU does not support NMI, CR[NMI]. */ 390 #define FSL_FEATURE_MU_NO_NMI (1) 391 /* @brief MU does not support hold the other core reset. CR[RSTH] or CCR[RSTH]. */ 392 #define FSL_FEATURE_MU_NO_RSTH (1) 393 /* @brief MU does not supports MU reset, CR[MUR]. */ 394 #define FSL_FEATURE_MU_NO_MUR (1) 395 /* @brief MU does not supports hardware reset, CR[HR] or CCR[HR]. */ 396 #define FSL_FEATURE_MU_NO_HR (1) 397 /* @brief MU supports mask the hardware reset. CR[HRM] or CCR[HRM]. */ 398 #define FSL_FEATURE_MU_HAS_HRM (1) 399 /* @brief MU does not support check the other core power mode. SR[PM] or BSR[APM]. */ 400 #define FSL_FEATURE_MU_NO_PM (0) 401 /* @brief MU supports reset assert interrupt. CR[RAIE] or BCR[RAIE]. */ 402 #define FSL_FEATURE_MU_HAS_RESET_ASSERT_INT (0) 403 /* @brief MU supports reset de-assert interrupt. CR[RDIE] or BCR[RDIE]. */ 404 #define FSL_FEATURE_MU_HAS_RESET_DEASSERT_INT (0) 405 406 /* interrupt module features */ 407 408 /* @brief Lowest interrupt request number. */ 409 #define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14) 410 /* @brief Highest interrupt request number. */ 411 #define FSL_FEATURE_INTERRUPT_IRQ_MAX (105) 412 413 /* PDM module features */ 414 415 /* @brief PDM FIFO offset */ 416 #define FSL_FEATURE_PDM_FIFO_OFFSET (4) 417 /* @brief PDM Channel Number */ 418 #define FSL_FEATURE_PDM_CHANNEL_NUM (8) 419 /* @brief PDM FIFO WIDTH Size */ 420 #define FSL_FEATURE_PDM_FIFO_WIDTH (4) 421 /* @brief PDM FIFO DEPTH Size */ 422 #define FSL_FEATURE_PDM_FIFO_DEPTH (32) 423 /* @brief PDM has RANGE_CTRL register */ 424 #define FSL_FEATURE_PDM_HAS_RANGE_CTRL (1) 425 /* @brief PDM Has Low Frequency */ 426 #define FSL_FEATURE_PDM_HAS_STATUS_LOW_FREQ (1) 427 /* @brief CLKDIV factor in Medium, High and Low Quality modes */ 428 #define FSL_FEATURE_PDM_HIGH_QUALITY_CLKDIV_FACTOR (125) 429 /* @brief CLKDIV factor in Very Low Quality modes */ 430 #define FSL_FEATURE_PDM_VERY_LOW_QUALITY_CLKDIV_FACTOR (19) 431 /* @brief PDM Has No VADEF Bitfield In PDM VAD0_STAT Register */ 432 #define FSL_FEATURE_PDM_HAS_NO_VADEF (0) 433 /* @brief PDM Has no FIR_RDY Bitfield In PDM STAT Register */ 434 #define FSL_FEATURE_PDM_HAS_NO_FIR_RDY (1) 435 436 /* RDC module features */ 437 438 /* @brief Memory address need shift when configure the RDC. */ 439 #define FSL_FEATURE_RDC_MEM_REGION_ADDR_SHIFT (1) 440 441 /* SDMA module features */ 442 443 /* @brief SDMA module channel number. */ 444 #define FSL_FEATURE_SDMA_MODULE_CHANNEL (32) 445 /* @brief SDMA module event number. */ 446 #define FSL_FEATURE_SDMA_EVENT_NUM (48) 447 /* @brief SDMA ROM memory to memory script start address. */ 448 #define FSL_FEATURE_SDMA_M2M_ADDR (644) 449 /* @brief SDMA ROM peripheral to memory script start address. */ 450 #define FSL_FEATURE_SDMA_P2M_ADDR (685) 451 /* @brief SDMA ROM memory to peripheral script start address. */ 452 #define FSL_FEATURE_SDMA_M2P_ADDR (749) 453 /* @brief SDMA ROM uart to memory script start address. */ 454 #define FSL_FEATURE_SDMA_UART2M_ADDR (819) 455 /* @brief SDMA ROM peripheral on SPBA to memory script start address. */ 456 #define FSL_FEATURE_SDMA_SHP2M_ADDR (893) 457 /* @brief SDMA ROM memory to peripheral on SPBA script start address. */ 458 #define FSL_FEATURE_SDMA_M2SHP_ADDR (962) 459 /* @brief SDMA ROM UART on SPBA to memory script start address. */ 460 #define FSL_FEATURE_SDMA_UARTSH2M_ADDR (1034) 461 /* @brief SDMA ROM SPDIF to memory script start address. */ 462 #define FSL_FEATURE_SDMA_SPDIF2M_ADDR (1102) 463 /* @brief SDMA ROM memory to SPDIF script start address. */ 464 #define FSL_FEATURE_SDMA_M2SPDIF_ADDR (1136) 465 /* @brief SDMA ROM memory to MULTI_FIFO_SAI_TX script start address. */ 466 #define FSL_FEATURE_SDMA_MULTI_FIFO_SAI_TX_ADDR (6235) 467 /* @brief SDMA ROM memory to MULTI_FIFO_SAI_RX script start address. */ 468 #define FSL_FEATURE_SDMA_MULTI_FIFO_SAI_RX_ADDR (6729) 469 470 /* SEMA4 module features */ 471 472 /* @brief Gate counts */ 473 #define FSL_FEATURE_SEMA4_GATE_COUNT (16) 474 475 /* SPBA module features */ 476 477 /* @brief SPBA module start address. */ 478 #define FSL_FEATURE_SPBA_STARTn(x) \ 479 (((x) == SPBA1) ? (0x30800000) : \ 480 (((x) == SPBA2) ? (0x30C00000) : (-1))) 481 /* @brief SPBA module end address. */ 482 #define FSL_FEATURE_SPBA_ENDn(x) \ 483 (((x) == SPBA1) ? (0x308FFFFF) : \ 484 (((x) == SPBA2) ? (0x30CFFFFF) : (-1))) 485 486 /* SysTick module features */ 487 488 /* @brief Systick has external reference clock. */ 489 #define FSL_FEATURE_SYSTICK_HAS_EXT_REF (0) 490 /* @brief Systick external reference clock is core clock divided by this value. */ 491 #define FSL_FEATURE_SYSTICK_EXT_REF_CORE_DIV (0) 492 493 /* IUART module features */ 494 495 /* @brief UART Transmit/Receive FIFO Size */ 496 #define FSL_FEATURE_IUART_FIFO_SIZEn(x) (32) 497 /* @brief UART RX MUXed input selected option */ 498 #define FSL_FEATURE_IUART_RXDMUXSEL (1) 499 500 /* USDHC module features */ 501 502 /* @brief Has external DMA support (VEND_SPEC[EXT_DMA_EN]) */ 503 #define FSL_FEATURE_USDHC_HAS_EXT_DMA (1) 504 /* @brief Has HS400 mode (MIX_CTRL[HS400_MODE]) */ 505 #define FSL_FEATURE_USDHC_HAS_HS400_MODE (1) 506 /* @brief Has SDR50 support (HOST_CTRL_CAP[SDR50_SUPPORT]) */ 507 #define FSL_FEATURE_USDHC_HAS_SDR50_MODE (1) 508 /* @brief Has SDR104 support (HOST_CTRL_CAP[SDR104_SUPPORT]) */ 509 #define FSL_FEATURE_USDHC_HAS_SDR104_MODE (1) 510 /* @brief USDHC has reset control */ 511 #define FSL_FEATURE_USDHC_HAS_RESET (0) 512 /* @brief USDHC has no bitfield WTMK_LVL[WR_BRST_LEN] and WTMK_LVL[RD_BRST_LEN] */ 513 #define FSL_FEATURE_USDHC_HAS_NO_RW_BURST_LEN (1) 514 /* @brief If USDHC instance support 8 bit width */ 515 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_8_BIT_WIDTHn(x) (1) 516 /* @brief If USDHC instance support HS400 mode */ 517 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_HS400_MODEn(x) (0) 518 /* @brief If USDHC instance support 1v8 signal */ 519 #define FSL_FEATURE_USDHC_INSTANCE_SUPPORT_1V8_SIGNALn(x) (1) 520 /* @brief Has no retuning time counter (HOST_CTRL_CAP[TIME_COUNT_RETURNING]) */ 521 #define FSL_FEATURE_USDHC_REGISTER_HOST_CTRL_CAP_HAS_NO_RETUNING_TIME_COUNTER (1) 522 523 #endif /* _MIMX8ML8_cm7_FEATURES_H_ */ 524 525