1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_MIMXRT1021
7    bool
8    select MCUX_CPU_ARCH_ARM_CM7F
9    select MCUX_CPU_HAS_DP_FPU
10if MCUX_USE_SOC_MIMXRT1021
11
12# Part Number
13config MCUX_SOC_PART_MIMXRT1021xxxxx
14    bool
15
16config MCUX_DEVICE
17    default "MIMXRT1021"
18
19config MCUX_DEVICE_ID
20    default "MIMXRT1021xxxxx" if MCUX_SOC_PART_MIMXRT1021xxxxx
21
22
23# Select supported components
24config MCUX_USE_SOC_MIMXRT1021
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_enc
76    select MCUX_HAS_driver_enet
77    select MCUX_HAS_driver_ewm
78    select MCUX_HAS_driver_flexcan
79    select MCUX_HAS_driver_flexio
80    select MCUX_HAS_driver_flexio_camera
81    select MCUX_HAS_driver_flexio_camera_edma
82    select MCUX_HAS_driver_flexio_i2c_master
83    select MCUX_HAS_driver_flexio_i2s
84    select MCUX_HAS_driver_flexio_i2s_edma
85    select MCUX_HAS_driver_flexio_mculcd
86    select MCUX_HAS_driver_flexio_mculcd_edma
87    select MCUX_HAS_driver_flexio_spi
88    select MCUX_HAS_driver_flexio_spi_edma
89    select MCUX_HAS_driver_flexio_uart
90    select MCUX_HAS_driver_flexio_uart_edma
91    select MCUX_HAS_driver_flexram
92    select MCUX_HAS_driver_flexspi
93    select MCUX_HAS_driver_flexspi_edma
94    select MCUX_HAS_driver_gpc_1
95    select MCUX_HAS_driver_gpt
96    select MCUX_HAS_driver_igpio
97    select MCUX_HAS_driver_kpp
98    select MCUX_HAS_driver_lpi2c
99    select MCUX_HAS_driver_lpi2c_edma
100    select MCUX_HAS_driver_lpi2c_freertos
101    select MCUX_HAS_driver_lpspi
102    select MCUX_HAS_driver_lpspi_edma
103    select MCUX_HAS_driver_lpspi_freertos
104    select MCUX_HAS_driver_lpuart
105    select MCUX_HAS_driver_lpuart_edma
106    select MCUX_HAS_driver_lpuart_freertos
107    select MCUX_HAS_driver_ocotp
108    select MCUX_HAS_driver_pit
109    select MCUX_HAS_driver_pmu
110    select MCUX_HAS_driver_pwm
111    select MCUX_HAS_driver_qtmr_1
112    select MCUX_HAS_driver_rtwdog
113    select MCUX_HAS_driver_sai
114    select MCUX_HAS_driver_sai_edma
115    select MCUX_HAS_driver_semc
116    select MCUX_HAS_driver_snvs_hp
117    select MCUX_HAS_driver_snvs_lp
118    select MCUX_HAS_driver_spdif
119    select MCUX_HAS_driver_spdif_edma
120    select MCUX_HAS_driver_src
121    select MCUX_HAS_driver_tempmon
122    select MCUX_HAS_driver_trng
123    select MCUX_HAS_driver_usdhc
124    select MCUX_HAS_driver_wdog01
125    select MCUX_HAS_driver_xbara
126    select MCUX_HAS_driver_xbarb
127    select MCUX_HAS_utilities_misc_utilities
128    select MCUX_HAS_utility_assert
129    select MCUX_HAS_utility_assert_lite
130    select MCUX_HAS_utility_debug_console
131    select MCUX_HAS_utility_debug_console_lite
132    select MCUX_HAS_utility_notifier
133    select MCUX_HAS_utility_shell
134    select MCUX_HAS_utility_str
135
136#### SOC specific dependency ####
137config MCUX_USE_RTE_Device
138    bool
139    select MCUX_USE_driver_edma
140
141config MCUX_USE_component_serial_manager_uart
142    bool
143    select MCUX_USE_component_lpuart_adapter
144
145config MCUX_USE_driver_cmsis_lpi2c
146    bool
147    select MCUX_USE_driver_lpi2c_edma
148
149config MCUX_USE_driver_cmsis_lpspi
150    bool
151    select MCUX_USE_driver_lpspi_edma
152
153config MCUX_USE_driver_cmsis_lpuart
154    bool
155    select MCUX_USE_driver_lpuart_edma
156
157config MCUX_USE_driver_dcp
158    bool
159    select MCUX_USE_driver_cache_armv7_m7
160
161config MCUX_USE_driver_flexio_camera_edma
162    bool
163    select MCUX_USE_driver_edma
164
165config MCUX_USE_driver_flexio_i2s_edma
166    bool
167    select MCUX_USE_driver_edma
168
169config MCUX_USE_driver_flexio_mculcd_edma
170    bool
171    select MCUX_USE_driver_edma
172
173config MCUX_USE_driver_flexio_spi_edma
174    bool
175    select MCUX_USE_driver_edma
176
177config MCUX_USE_driver_flexio_uart_edma
178    bool
179    select MCUX_USE_driver_edma
180
181config MCUX_USE_driver_flexspi_edma
182    bool
183    select MCUX_USE_driver_edma
184
185config MCUX_USE_driver_lpi2c_edma
186    bool
187    select MCUX_USE_driver_edma
188
189config MCUX_USE_driver_lpspi_edma
190    bool
191    select MCUX_USE_driver_edma
192
193config MCUX_USE_driver_lpuart_edma
194    bool
195    select MCUX_USE_driver_edma
196
197config MCUX_USE_driver_sai_edma
198    bool
199    select MCUX_USE_driver_edma
200
201config MCUX_USE_driver_spdif_edma
202    bool
203    select MCUX_USE_driver_edma
204
205config MCUX_USE_utility_debug_console_lite
206    bool
207    select MCUX_USE_component_lpuart_adapter
208
209
210#### SOC level drivers ####
211# device_MIMXRT1021_CMSIS
212config MCUX_USE_device_MIMXRT1021_CMSIS
213    bool "Device MIMXRT1021_cmsis"
214    select MCUX_USE_CMSIS_Include_core_cm
215    help
216      Device MIMXRT1021_cmsis
217
218# device_MIMXRT1021_startup
219config MCUX_USE_device_MIMXRT1021_startup
220    bool "Device MIMXRT1021_startup"
221    help
222      Device MIMXRT1021_startup
223
224# device_MIMXRT1021_system
225config MCUX_USE_device_MIMXRT1021_system
226    bool "Device MIMXRT1021_system"
227    help
228      Device MIMXRT1021_system
229
230rsource "drivers/Kconfig"
231rsource "xip/Kconfig"
232
233endif # MCUX_USE_SOC_MIMXRT1021