1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_MIMXRT1042
7    bool
8    select MCUX_CPU_ARCH_ARM_CM7F
9    select MCUX_CPU_HAS_DP_FPU
10if MCUX_USE_SOC_MIMXRT1042
11
12# Part Number
13config MCUX_SOC_PART_MIMXRT1042xxxxB
14    bool
15
16config MCUX_DEVICE
17    default "MIMXRT1042"
18
19config MCUX_DEVICE_ID
20    default "MIMXRT1042xxxxB" if MCUX_SOC_PART_MIMXRT1042xxxxB
21
22
23# Select supported components
24config MCUX_USE_SOC_MIMXRT1042
25    select MCUX_HAS_CMSIS_DSP_Include
26    select MCUX_HAS_CMSIS_DSP_Source
27    select MCUX_HAS_CMSIS_Device_API_OSTick
28    select MCUX_HAS_CMSIS_Device_API_RTOS2
29    select MCUX_HAS_CMSIS_Driver_Include_CAN
30    select MCUX_HAS_CMSIS_Driver_Include_Ethernet
31    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
32    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
33    select MCUX_HAS_CMSIS_Driver_Include_Flash
34    select MCUX_HAS_CMSIS_Driver_Include_I2C
35    select MCUX_HAS_CMSIS_Driver_Include_MCI
36    select MCUX_HAS_CMSIS_Driver_Include_NAND
37    select MCUX_HAS_CMSIS_Driver_Include_SAI
38    select MCUX_HAS_CMSIS_Driver_Include_SPI
39    select MCUX_HAS_CMSIS_Driver_Include_USART
40    select MCUX_HAS_CMSIS_Driver_Include_USB_Device
41    select MCUX_HAS_CMSIS_Driver_Include_USB_Host
42    select MCUX_HAS_CMSIS_Driver_Include_WiFi
43    select MCUX_HAS_CMSIS_Include_core_cm
44    select MCUX_HAS_CMSIS_NN_Source
45    select MCUX_HAS_CMSIS_RTOS2_NonSecure
46    select MCUX_HAS_CMSIS_RTOS2_Secure
47    select MCUX_HAS_component_gpt_adapter
48    select MCUX_HAS_component_igpio_adapter
49    select MCUX_HAS_component_lists
50    select MCUX_HAS_component_lpi2c_adapter
51    select MCUX_HAS_component_lpspi_adapter
52    select MCUX_HAS_component_lpuart_adapter
53    select MCUX_HAS_component_lpuart_dma_adapter
54    select MCUX_HAS_component_pit_adapter
55    select MCUX_HAS_component_serial_manager
56    select MCUX_HAS_component_serial_manager_spi
57    select MCUX_HAS_component_serial_manager_swo if (MCUX_CPU_ARCH_ARM_CM7F)
58    select MCUX_HAS_component_serial_manager_uart
59    select MCUX_HAS_driver_adc_12b1msps_sar
60    select MCUX_HAS_driver_adc_etc
61    select MCUX_HAS_driver_aipstz
62    select MCUX_HAS_driver_aoi
63    select MCUX_HAS_driver_bee
64    select MCUX_HAS_driver_cache_armv7_m7
65    select MCUX_HAS_driver_cmp
66    select MCUX_HAS_driver_cmsis_enet
67    select MCUX_HAS_driver_cmsis_lpi2c
68    select MCUX_HAS_driver_cmsis_lpspi
69    select MCUX_HAS_driver_cmsis_lpuart
70    select MCUX_HAS_driver_common
71    select MCUX_HAS_driver_dcdc_1
72    select MCUX_HAS_driver_dcp
73    select MCUX_HAS_driver_dmamux
74    select MCUX_HAS_driver_edma
75    select MCUX_HAS_driver_elcdif
76    select MCUX_HAS_driver_enc
77    select MCUX_HAS_driver_enet
78    select MCUX_HAS_driver_ewm
79    select MCUX_HAS_driver_flexcan
80    select MCUX_HAS_driver_flexcan_edma
81    select MCUX_HAS_driver_flexio
82    select MCUX_HAS_driver_flexio_camera
83    select MCUX_HAS_driver_flexio_camera_edma
84    select MCUX_HAS_driver_flexio_i2c_master
85    select MCUX_HAS_driver_flexio_i2s
86    select MCUX_HAS_driver_flexio_i2s_edma
87    select MCUX_HAS_driver_flexio_mculcd
88    select MCUX_HAS_driver_flexio_mculcd_edma
89    select MCUX_HAS_driver_flexio_spi
90    select MCUX_HAS_driver_flexio_spi_edma
91    select MCUX_HAS_driver_flexio_uart
92    select MCUX_HAS_driver_flexio_uart_edma
93    select MCUX_HAS_driver_flexram
94    select MCUX_HAS_driver_flexspi
95    select MCUX_HAS_driver_flexspi_edma
96    select MCUX_HAS_driver_gpc_1
97    select MCUX_HAS_driver_gpt
98    select MCUX_HAS_driver_igpio
99    select MCUX_HAS_driver_lpi2c
100    select MCUX_HAS_driver_lpi2c_edma
101    select MCUX_HAS_driver_lpi2c_freertos
102    select MCUX_HAS_driver_lpspi
103    select MCUX_HAS_driver_lpspi_edma
104    select MCUX_HAS_driver_lpspi_freertos
105    select MCUX_HAS_driver_lpuart
106    select MCUX_HAS_driver_lpuart_edma
107    select MCUX_HAS_driver_lpuart_freertos
108    select MCUX_HAS_driver_ocotp
109    select MCUX_HAS_driver_pit
110    select MCUX_HAS_driver_pmu
111    select MCUX_HAS_driver_pwm
112    select MCUX_HAS_driver_pxp
113    select MCUX_HAS_driver_qtmr_1
114    select MCUX_HAS_driver_rtwdog
115    select MCUX_HAS_driver_sai
116    select MCUX_HAS_driver_sai_edma
117    select MCUX_HAS_driver_semc
118    select MCUX_HAS_driver_snvs_hp
119    select MCUX_HAS_driver_snvs_lp
120    select MCUX_HAS_driver_spdif
121    select MCUX_HAS_driver_spdif_edma
122    select MCUX_HAS_driver_src
123    select MCUX_HAS_driver_tempmon
124    select MCUX_HAS_driver_trng
125    select MCUX_HAS_driver_usdhc
126    select MCUX_HAS_driver_wdog01
127    select MCUX_HAS_driver_xbara
128    select MCUX_HAS_driver_xbarb
129    select MCUX_HAS_utilities_misc_utilities
130    select MCUX_HAS_utility_assert
131    select MCUX_HAS_utility_assert_lite
132    select MCUX_HAS_utility_debug_console
133    select MCUX_HAS_utility_debug_console_lite
134    select MCUX_HAS_utility_notifier
135    select MCUX_HAS_utility_shell
136    select MCUX_HAS_utility_str
137
138#### SOC specific dependency ####
139config MCUX_USE_RTE_Device
140    bool
141    select MCUX_USE_driver_edma
142
143config MCUX_USE_component_serial_manager_uart
144    bool
145    select MCUX_USE_component_lpuart_adapter
146
147config MCUX_USE_driver_cmsis_lpi2c
148    bool
149    select MCUX_USE_driver_lpi2c_edma
150
151config MCUX_USE_driver_cmsis_lpspi
152    bool
153    select MCUX_USE_driver_lpspi_edma
154
155config MCUX_USE_driver_cmsis_lpuart
156    bool
157    select MCUX_USE_driver_lpuart_edma
158
159config MCUX_USE_driver_dcp
160    bool
161    select MCUX_USE_driver_cache_armv7_m7
162
163config MCUX_USE_driver_flexcan_edma
164    bool
165    select MCUX_USE_driver_edma
166
167config MCUX_USE_driver_flexio_camera_edma
168    bool
169    select MCUX_USE_driver_edma
170
171config MCUX_USE_driver_flexio_i2s_edma
172    bool
173    select MCUX_USE_driver_edma
174
175config MCUX_USE_driver_flexio_mculcd_edma
176    bool
177    select MCUX_USE_driver_edma
178
179config MCUX_USE_driver_flexio_spi_edma
180    bool
181    select MCUX_USE_driver_edma
182
183config MCUX_USE_driver_flexio_uart_edma
184    bool
185    select MCUX_USE_driver_edma
186
187config MCUX_USE_driver_flexspi_edma
188    bool
189    select MCUX_USE_driver_edma
190
191config MCUX_USE_driver_lpi2c_edma
192    bool
193    select MCUX_USE_driver_edma
194
195config MCUX_USE_driver_lpspi_edma
196    bool
197    select MCUX_USE_driver_edma
198
199config MCUX_USE_driver_lpuart_edma
200    bool
201    select MCUX_USE_driver_edma
202
203config MCUX_USE_driver_sai_edma
204    bool
205    select MCUX_USE_driver_edma
206
207config MCUX_USE_driver_spdif_edma
208    bool
209    select MCUX_USE_driver_edma
210
211config MCUX_USE_utility_debug_console_lite
212    bool
213    select MCUX_USE_component_lpuart_adapter
214
215
216#### SOC level drivers ####
217# device_MIMXRT1042_CMSIS
218config MCUX_USE_device_MIMXRT1042_CMSIS
219    bool "Device MIMXRT1042_cmsis"
220    select MCUX_USE_CMSIS_Include_core_cm
221    help
222      Device MIMXRT1042_cmsis
223
224# device_MIMXRT1042_startup
225config MCUX_USE_device_MIMXRT1042_startup
226    bool "Device MIMXRT1042_startup"
227    help
228      Device MIMXRT1042_startup
229
230# device_MIMXRT1042_system
231config MCUX_USE_device_MIMXRT1042_system
232    bool "Device MIMXRT1042_system"
233    help
234      Device MIMXRT1042_system
235
236rsource "drivers/Kconfig"
237rsource "xip/Kconfig"
238
239endif # MCUX_USE_SOC_MIMXRT1042