1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_MIMXRT1176_CM4
7    bool
8    select MCUX_USE_SOC_MIMXRT1176
9    select MCUX_CPU_ARCH_ARM_CM4F
10    select MCUX_CPU_HAS_SP_FPU
11
12config MCUX_USE_SOC_MIMXRT1176_CM7
13    bool
14    select MCUX_USE_SOC_MIMXRT1176
15    select MCUX_CPU_ARCH_ARM_CM7F
16    select MCUX_CPU_HAS_DP_FPU
17
18config MCUX_USE_SOC_MIMXRT1176
19    bool
20
21if MCUX_USE_SOC_MIMXRT1176
22
23# Part Number
24config MCUX_SOC_PART_MIMXRT1176xxxxx
25    bool
26
27config MCUX_DEVICE
28    default "MIMXRT1176"
29
30config MCUX_DEVICE_ID
31    default "MIMXRT1176xxxxx" if MCUX_SOC_PART_MIMXRT1176xxxxx
32
33config MCUX_CORE_ID
34    default "cm4" if MCUX_USE_SOC_MIMXRT1176_CM4
35    default "cm7" if MCUX_USE_SOC_MIMXRT1176_CM7
36
37# Select supported components
38config MCUX_USE_SOC_MIMXRT1176
39    select MCUX_HAS_CMSIS_DSP_Include
40    select MCUX_HAS_CMSIS_DSP_Source
41    select MCUX_HAS_CMSIS_Device_API_OSTick
42    select MCUX_HAS_CMSIS_Device_API_RTOS2
43    select MCUX_HAS_CMSIS_Driver_Include_CAN
44    select MCUX_HAS_CMSIS_Driver_Include_Ethernet
45    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
46    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
47    select MCUX_HAS_CMSIS_Driver_Include_Flash
48    select MCUX_HAS_CMSIS_Driver_Include_I2C
49    select MCUX_HAS_CMSIS_Driver_Include_MCI
50    select MCUX_HAS_CMSIS_Driver_Include_NAND
51    select MCUX_HAS_CMSIS_Driver_Include_SAI
52    select MCUX_HAS_CMSIS_Driver_Include_SPI
53    select MCUX_HAS_CMSIS_Driver_Include_USART
54    select MCUX_HAS_CMSIS_Driver_Include_USB_Device
55    select MCUX_HAS_CMSIS_Driver_Include_USB_Host
56    select MCUX_HAS_CMSIS_Driver_Include_WiFi
57    select MCUX_HAS_CMSIS_Include_core_cm
58    select MCUX_HAS_CMSIS_NN_Source
59    select MCUX_HAS_CMSIS_RTOS2_NonSecure
60    select MCUX_HAS_CMSIS_RTOS2_Secure
61    select MCUX_HAS_component_gpt_adapter
62    select MCUX_HAS_component_igpio_adapter
63    select MCUX_HAS_component_lists
64    select MCUX_HAS_component_lpi2c_adapter
65    select MCUX_HAS_component_lpspi_adapter
66    select MCUX_HAS_component_lpuart_adapter
67    select MCUX_HAS_component_lpuart_dma_adapter
68    select MCUX_HAS_component_pit_adapter
69    select MCUX_HAS_component_serial_manager
70    select MCUX_HAS_component_serial_manager_spi
71    select MCUX_HAS_component_serial_manager_swo if (MCUX_CPU_ARCH_ARM_CM4F || MCUX_CPU_ARCH_ARM_CM7F)
72    select MCUX_HAS_component_serial_manager_uart
73    select MCUX_HAS_driver_acmp
74    select MCUX_HAS_driver_adc_etc
75    select MCUX_HAS_driver_aoi
76    select MCUX_HAS_driver_asrc
77    select MCUX_HAS_driver_asrc_edma
78    select MCUX_HAS_driver_caam
79    select MCUX_HAS_driver_cache_armv7_m7 if (MCUX_CPU_ARCH_ARM_CM7F)
80    select MCUX_HAS_driver_cache_lmem if (MCUX_CPU_ARCH_ARM_CM4F)
81    select MCUX_HAS_driver_cdog
82    select MCUX_HAS_driver_cmsis_enet
83    select MCUX_HAS_driver_cmsis_lpi2c
84    select MCUX_HAS_driver_cmsis_lpspi
85    select MCUX_HAS_driver_cmsis_lpuart
86    select MCUX_HAS_driver_common
87    select MCUX_HAS_driver_csi
88    select MCUX_HAS_driver_dac12
89    select MCUX_HAS_driver_dcic
90    select MCUX_HAS_driver_dmamux
91    select MCUX_HAS_driver_edma
92    select MCUX_HAS_driver_elcdif
93    select MCUX_HAS_driver_enc
94    select MCUX_HAS_driver_enet
95    select MCUX_HAS_driver_enet_qos
96    select MCUX_HAS_driver_ewm
97    select MCUX_HAS_driver_flexcan
98    select MCUX_HAS_driver_flexcan_edma
99    select MCUX_HAS_driver_flexio
100    select MCUX_HAS_driver_flexio_camera
101    select MCUX_HAS_driver_flexio_camera_edma
102    select MCUX_HAS_driver_flexio_i2c_master
103    select MCUX_HAS_driver_flexio_i2s
104    select MCUX_HAS_driver_flexio_i2s_edma
105    select MCUX_HAS_driver_flexio_mculcd
106    select MCUX_HAS_driver_flexio_mculcd_edma
107    select MCUX_HAS_driver_flexio_spi
108    select MCUX_HAS_driver_flexio_spi_edma
109    select MCUX_HAS_driver_flexio_uart
110    select MCUX_HAS_driver_flexio_uart_edma
111    select MCUX_HAS_driver_flexram
112    select MCUX_HAS_driver_flexspi
113    select MCUX_HAS_driver_flexspi_edma
114    select MCUX_HAS_driver_gpt
115    select MCUX_HAS_driver_iee
116    select MCUX_HAS_driver_iee_apc
117    select MCUX_HAS_driver_igpio
118    select MCUX_HAS_driver_key_manager
119    select MCUX_HAS_driver_kpp
120    select MCUX_HAS_driver_lcdifv2
121    select MCUX_HAS_driver_lpadc
122    select MCUX_HAS_driver_lpi2c
123    select MCUX_HAS_driver_lpi2c_edma
124    select MCUX_HAS_driver_lpi2c_freertos
125    select MCUX_HAS_driver_lpspi
126    select MCUX_HAS_driver_lpspi_edma
127    select MCUX_HAS_driver_lpspi_freertos
128    select MCUX_HAS_driver_lpuart
129    select MCUX_HAS_driver_lpuart_edma
130    select MCUX_HAS_driver_lpuart_freertos
131    select MCUX_HAS_driver_mecc
132    select MCUX_HAS_driver_mipi_csi2rx
133    select MCUX_HAS_driver_mipi_dsi_split
134    select MCUX_HAS_driver_mu
135    select MCUX_HAS_driver_ocotp
136    select MCUX_HAS_driver_pdm
137    select MCUX_HAS_driver_pdm_edma
138    select MCUX_HAS_driver_pit
139    select MCUX_HAS_driver_puf
140    select MCUX_HAS_driver_pwm
141    select MCUX_HAS_driver_pxp
142    select MCUX_HAS_driver_qtmr_1
143    select MCUX_HAS_driver_rdc
144    select MCUX_HAS_driver_rdc_sema42
145    select MCUX_HAS_driver_rtwdog
146    select MCUX_HAS_driver_sai
147    select MCUX_HAS_driver_sai_edma
148    select MCUX_HAS_driver_sema4
149    select MCUX_HAS_driver_semc
150    select MCUX_HAS_driver_smartcard_emvsim
151    select MCUX_HAS_driver_smartcard_phy_emvsim
152    select MCUX_HAS_driver_snvs_hp
153    select MCUX_HAS_driver_snvs_lp
154    select MCUX_HAS_driver_spdif
155    select MCUX_HAS_driver_spdif_edma
156    select MCUX_HAS_driver_ssarc
157    select MCUX_HAS_driver_tempsensor
158    select MCUX_HAS_driver_usdhc
159    select MCUX_HAS_driver_wdog01
160    select MCUX_HAS_driver_xbara
161    select MCUX_HAS_driver_xbarb
162    select MCUX_HAS_driver_xecc
163    select MCUX_HAS_driver_xrdc2
164    select MCUX_HAS_utilities_misc_utilities
165    select MCUX_HAS_utility_assert
166    select MCUX_HAS_utility_assert_lite
167    select MCUX_HAS_utility_debug_console
168    select MCUX_HAS_utility_debug_console_lite
169    select MCUX_HAS_utility_incbin
170    select MCUX_HAS_utility_notifier
171    select MCUX_HAS_utility_shell
172    select MCUX_HAS_utility_str
173
174#### SOC specific dependency ####
175config MCUX_USE_RTE_Device
176    bool
177    select MCUX_USE_driver_edma
178
179config MCUX_USE_component_serial_manager_uart
180    bool
181    select MCUX_USE_component_lpuart_adapter
182
183config MCUX_USE_driver_asrc_edma
184    bool
185    select MCUX_USE_driver_edma
186
187config MCUX_USE_driver_caam
188    bool
189    select MCUX_USE_driver_memory
190
191config MCUX_USE_driver_cmsis_lpi2c
192    bool
193    select MCUX_USE_driver_lpi2c_edma
194
195config MCUX_USE_driver_cmsis_lpspi
196    bool
197    select MCUX_USE_driver_lpspi_edma
198
199config MCUX_USE_driver_cmsis_lpuart
200    bool
201    select MCUX_USE_driver_lpuart_edma
202
203config MCUX_USE_driver_csi
204    bool
205    select MCUX_USE_driver_memory
206
207config MCUX_USE_driver_edma
208    bool
209    select MCUX_USE_driver_memory
210
211config MCUX_USE_driver_elcdif
212    bool
213    select MCUX_USE_driver_memory
214
215config MCUX_USE_driver_enet
216    bool
217    select MCUX_USE_driver_memory
218
219config MCUX_USE_driver_enet_qos
220    bool
221    select MCUX_USE_driver_memory
222
223config MCUX_USE_driver_flexcan_edma
224    bool
225    select MCUX_USE_driver_edma
226
227config MCUX_USE_driver_flexio_camera_edma
228    bool
229    select MCUX_USE_driver_edma
230
231config MCUX_USE_driver_flexio_i2s_edma
232    bool
233    select MCUX_USE_driver_edma
234
235config MCUX_USE_driver_flexio_mculcd_edma
236    bool
237    select MCUX_USE_driver_edma
238
239config MCUX_USE_driver_flexio_spi_edma
240    bool
241    select MCUX_USE_driver_edma
242
243config MCUX_USE_driver_flexio_uart_edma
244    bool
245    select MCUX_USE_driver_edma
246
247config MCUX_USE_driver_flexspi_edma
248    bool
249    select MCUX_USE_driver_edma
250
251config MCUX_USE_driver_lcdifv2
252    bool
253    select MCUX_USE_driver_memory
254
255config MCUX_USE_driver_lpi2c_edma
256    bool
257    select MCUX_USE_driver_edma
258
259config MCUX_USE_driver_lpspi_edma
260    bool
261    select MCUX_USE_driver_edma
262
263config MCUX_USE_driver_lpuart_edma
264    bool
265    select MCUX_USE_driver_edma
266
267config MCUX_USE_driver_pdm_edma
268    bool
269    select MCUX_USE_driver_edma
270
271config MCUX_USE_driver_pxp
272    bool
273    select MCUX_USE_driver_memory
274
275config MCUX_USE_driver_sai_edma
276    bool
277    select MCUX_USE_driver_edma
278
279config MCUX_USE_driver_spdif_edma
280    bool
281    select MCUX_USE_driver_edma
282
283config MCUX_USE_driver_usdhc
284    bool
285    select MCUX_USE_driver_memory
286
287config MCUX_USE_utility_debug_console_lite
288    bool
289    select MCUX_USE_component_lpuart_adapter
290
291
292#### SOC level drivers ####
293# device_MIMXRT1176_CMSIS
294config MCUX_USE_device_MIMXRT1176_CMSIS
295    bool "Device MIMXRT1176_cmsis"
296    select MCUX_USE_CMSIS_Include_core_cm
297    help
298      Device MIMXRT1176_cmsis
299
300# device_MIMXRT1176_startup
301config MCUX_USE_device_MIMXRT1176_startup
302    bool "Device MIMXRT1176_startup"
303    help
304      Device MIMXRT1176_startup
305
306# device_MIMXRT1176_system
307config MCUX_USE_device_MIMXRT1176_system
308    bool "Device MIMXRT1176_system"
309    help
310      Device MIMXRT1176_system
311
312rsource "drivers/Kconfig"
313rsource "drivers/cm7/Kconfig"
314rsource "drivers/cm4/Kconfig"
315rsource "xip/Kconfig"
316
317endif # MCUX_USE_SOC_MIMXRT1176