1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_K32L2A41A
7    bool
8    select MCUX_CPU_ARCH_ARM_CM0P
9if MCUX_USE_SOC_K32L2A41A
10
11# Part Number
12config MCUX_SOC_PART_K32L2A41xxxxA
13    bool
14
15config MCUX_DEVICE
16    default "K32L2A41A"
17
18config MCUX_DEVICE_ID
19    default "K32L2A41xxxxA" if MCUX_SOC_PART_K32L2A41xxxxA
20
21
22# Select supported components
23config MCUX_USE_SOC_K32L2A41A
24    select MCUX_HAS_CMSIS_DSP_Include
25    select MCUX_HAS_CMSIS_DSP_Source
26    select MCUX_HAS_CMSIS_Device_API_OSTick
27    select MCUX_HAS_CMSIS_Device_API_RTOS2
28    select MCUX_HAS_CMSIS_Driver_Include_CAN
29    select MCUX_HAS_CMSIS_Driver_Include_Ethernet
30    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
31    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
32    select MCUX_HAS_CMSIS_Driver_Include_Flash
33    select MCUX_HAS_CMSIS_Driver_Include_I2C
34    select MCUX_HAS_CMSIS_Driver_Include_MCI
35    select MCUX_HAS_CMSIS_Driver_Include_NAND
36    select MCUX_HAS_CMSIS_Driver_Include_SAI
37    select MCUX_HAS_CMSIS_Driver_Include_SPI
38    select MCUX_HAS_CMSIS_Driver_Include_USART
39    select MCUX_HAS_CMSIS_Driver_Include_USB_Device
40    select MCUX_HAS_CMSIS_Driver_Include_USB_Host
41    select MCUX_HAS_CMSIS_Driver_Include_WiFi
42    select MCUX_HAS_CMSIS_Include_core_cm
43    select MCUX_HAS_CMSIS_NN_Source
44    select MCUX_HAS_CMSIS_RTOS2_NonSecure
45    select MCUX_HAS_CMSIS_RTOS2_Secure
46    select MCUX_HAS_component_gpio_adapter
47    select MCUX_HAS_component_lists
48    select MCUX_HAS_component_lpi2c_adapter
49    select MCUX_HAS_component_lpit_adapter
50    select MCUX_HAS_component_lpspi_adapter
51    select MCUX_HAS_component_lptmr_adapter
52    select MCUX_HAS_component_lpuart_adapter
53    select MCUX_HAS_component_lpuart_dma_adapter
54    select MCUX_HAS_component_serial_manager
55    select MCUX_HAS_component_serial_manager_spi
56    select MCUX_HAS_component_serial_manager_uart
57    select MCUX_HAS_component_tpm_adapter
58    select MCUX_HAS_driver_adc16
59    select MCUX_HAS_driver_cmp
60    select MCUX_HAS_driver_cmsis_lpi2c
61    select MCUX_HAS_driver_cmsis_lpspi
62    select MCUX_HAS_driver_cmsis_lpuart
63    select MCUX_HAS_driver_common
64    select MCUX_HAS_driver_crc
65    select MCUX_HAS_driver_dac
66    select MCUX_HAS_driver_dmamux
67    select MCUX_HAS_driver_edma
68    select MCUX_HAS_driver_flash
69    select MCUX_HAS_driver_flexio
70    select MCUX_HAS_driver_flexio_camera
71    select MCUX_HAS_driver_flexio_camera_edma
72    select MCUX_HAS_driver_flexio_i2c_master
73    select MCUX_HAS_driver_flexio_i2s
74    select MCUX_HAS_driver_flexio_i2s_edma
75    select MCUX_HAS_driver_flexio_mculcd
76    select MCUX_HAS_driver_flexio_mculcd_edma
77    select MCUX_HAS_driver_flexio_spi
78    select MCUX_HAS_driver_flexio_spi_edma
79    select MCUX_HAS_driver_flexio_uart
80    select MCUX_HAS_driver_flexio_uart_edma
81    select MCUX_HAS_driver_gpio
82    select MCUX_HAS_driver_intmux
83    select MCUX_HAS_driver_llwu
84    select MCUX_HAS_driver_lpi2c
85    select MCUX_HAS_driver_lpi2c_edma
86    select MCUX_HAS_driver_lpi2c_freertos
87    select MCUX_HAS_driver_lpit
88    select MCUX_HAS_driver_lpspi
89    select MCUX_HAS_driver_lpspi_edma
90    select MCUX_HAS_driver_lpspi_freertos
91    select MCUX_HAS_driver_lptmr
92    select MCUX_HAS_driver_lpuart
93    select MCUX_HAS_driver_lpuart_edma
94    select MCUX_HAS_driver_lpuart_freertos
95    select MCUX_HAS_driver_mmdvsq
96    select MCUX_HAS_driver_pmc
97    select MCUX_HAS_driver_port
98    select MCUX_HAS_driver_rcm
99    select MCUX_HAS_driver_rtc
100    select MCUX_HAS_driver_sim
101    select MCUX_HAS_driver_smartcard_emvsim
102    select MCUX_HAS_driver_smartcard_phy_emvsim
103    select MCUX_HAS_driver_smc
104    select MCUX_HAS_driver_tpm
105    select MCUX_HAS_driver_trgmux
106    select MCUX_HAS_driver_trng
107    select MCUX_HAS_driver_tsi_v4
108    select MCUX_HAS_driver_tstmr
109    select MCUX_HAS_driver_vref
110    select MCUX_HAS_driver_wdog32
111    select MCUX_HAS_utilities_misc_utilities
112    select MCUX_HAS_utility_assert
113    select MCUX_HAS_utility_assert_lite
114    select MCUX_HAS_utility_debug_console
115    select MCUX_HAS_utility_debug_console_lite
116    select MCUX_HAS_utility_notifier
117    select MCUX_HAS_utility_shell
118    select MCUX_HAS_utility_str
119
120#### SOC specific dependency ####
121config MCUX_USE_RTE_Device
122    bool
123    select MCUX_USE_driver_dmamux
124    select MCUX_USE_driver_edma
125
126config MCUX_USE_component_serial_manager_uart
127    bool
128    select MCUX_USE_component_lpuart_adapter
129
130config MCUX_USE_driver_cmsis_lpi2c
131    bool
132    select MCUX_USE_driver_lpi2c_edma
133
134config MCUX_USE_driver_cmsis_lpspi
135    bool
136    select MCUX_USE_driver_lpspi_edma
137
138config MCUX_USE_driver_cmsis_lpuart
139    bool
140    select MCUX_USE_driver_lpuart_edma
141
142config MCUX_USE_driver_flexio_camera_edma
143    bool
144    select MCUX_USE_driver_edma
145
146config MCUX_USE_driver_flexio_i2s_edma
147    bool
148    select MCUX_USE_driver_edma
149
150config MCUX_USE_driver_flexio_mculcd_edma
151    bool
152    select MCUX_USE_driver_edma
153
154config MCUX_USE_driver_flexio_spi_edma
155    bool
156    select MCUX_USE_driver_edma
157
158config MCUX_USE_driver_flexio_uart_edma
159    bool
160    select MCUX_USE_driver_edma
161
162config MCUX_USE_driver_lpi2c_edma
163    bool
164    select MCUX_USE_driver_edma
165
166config MCUX_USE_driver_lpspi_edma
167    bool
168    select MCUX_USE_driver_edma
169
170config MCUX_USE_driver_lpuart_edma
171    bool
172    select MCUX_USE_driver_edma
173
174config MCUX_USE_utility_debug_console_lite
175    bool
176    select MCUX_USE_component_lpuart_adapter
177
178
179#### SOC level drivers ####
180# device_K32L2A41A_CMSIS
181config MCUX_USE_device_K32L2A41A_CMSIS
182    bool "Device K32L2A41A_cmsis"
183    select MCUX_USE_CMSIS_Include_core_cm
184    help
185      Device K32L2A41A_cmsis
186
187# device_K32L2A41A_startup
188config MCUX_USE_device_K32L2A41A_startup
189    bool "Device K32L2A41A_startup"
190    help
191      Device K32L2A41A_startup
192
193# device_K32L2A41A_system
194config MCUX_USE_device_K32L2A41A_system
195    bool "Device K32L2A41A_system"
196    help
197      Device K32L2A41A_system
198
199rsource "drivers/Kconfig"
200
201endif # MCUX_USE_SOC_K32L2A41A