1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_K32L2B31A
7    bool
8    select MCUX_CPU_ARCH_ARM_CM0P
9if MCUX_USE_SOC_K32L2B31A
10
11# Part Number
12config MCUX_SOC_PART_K32L2B31xxxxA
13    bool
14
15config MCUX_DEVICE
16    default "K32L2B31A"
17
18config MCUX_DEVICE_ID
19    default "K32L2B31xxxxA" if MCUX_SOC_PART_K32L2B31xxxxA
20
21
22# Select supported components
23config MCUX_USE_SOC_K32L2B31A
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_i2c_adapter
48    select MCUX_HAS_component_lists
49    select MCUX_HAS_component_lptmr_adapter
50    select MCUX_HAS_component_lpuart_adapter
51    select MCUX_HAS_component_lpuart_dma_adapter
52    select MCUX_HAS_component_pit_adapter
53    select MCUX_HAS_component_serial_manager
54    select MCUX_HAS_component_serial_manager_spi
55    select MCUX_HAS_component_serial_manager_uart
56    select MCUX_HAS_component_spi_adapter
57    select MCUX_HAS_component_tpm_adapter
58    select MCUX_HAS_component_uart_adapter
59    select MCUX_HAS_driver_adc16
60    select MCUX_HAS_driver_cmp
61    select MCUX_HAS_driver_cmsis_i2c
62    select MCUX_HAS_driver_cmsis_lpuart
63    select MCUX_HAS_driver_cmsis_spi
64    select MCUX_HAS_driver_cmsis_uart
65    select MCUX_HAS_driver_common
66    select MCUX_HAS_driver_cop
67    select MCUX_HAS_driver_dac
68    select MCUX_HAS_driver_dma
69    select MCUX_HAS_driver_dmamux
70    select MCUX_HAS_driver_flash
71    select MCUX_HAS_driver_flexio
72    select MCUX_HAS_driver_flexio_i2c_master
73    select MCUX_HAS_driver_flexio_i2s
74    select MCUX_HAS_driver_flexio_i2s_dma
75    select MCUX_HAS_driver_flexio_spi
76    select MCUX_HAS_driver_flexio_spi_dma
77    select MCUX_HAS_driver_flexio_uart
78    select MCUX_HAS_driver_flexio_uart_dma
79    select MCUX_HAS_driver_gpio
80    select MCUX_HAS_driver_i2c
81    select MCUX_HAS_driver_i2c_dma
82    select MCUX_HAS_driver_i2c_freertos
83    select MCUX_HAS_driver_llwu
84    select MCUX_HAS_driver_lptmr
85    select MCUX_HAS_driver_lpuart
86    select MCUX_HAS_driver_lpuart_dma
87    select MCUX_HAS_driver_lpuart_freertos
88    select MCUX_HAS_driver_pit
89    select MCUX_HAS_driver_pmc
90    select MCUX_HAS_driver_port
91    select MCUX_HAS_driver_rcm
92    select MCUX_HAS_driver_rtc
93    select MCUX_HAS_driver_sim
94    select MCUX_HAS_driver_slcd
95    select MCUX_HAS_driver_smc
96    select MCUX_HAS_driver_spi
97    select MCUX_HAS_driver_spi_dma
98    select MCUX_HAS_driver_spi_freertos
99    select MCUX_HAS_driver_tpm
100    select MCUX_HAS_driver_uart
101    select MCUX_HAS_driver_uart_dma
102    select MCUX_HAS_driver_uart_freertos
103    select MCUX_HAS_driver_vref
104    select MCUX_HAS_utilities_misc_utilities
105    select MCUX_HAS_utility_assert
106    select MCUX_HAS_utility_assert_lite
107    select MCUX_HAS_utility_debug_console
108    select MCUX_HAS_utility_debug_console_lite
109    select MCUX_HAS_utility_notifier
110    select MCUX_HAS_utility_shell
111    select MCUX_HAS_utility_str
112
113#### SOC specific dependency ####
114config MCUX_USE_RTE_Device
115    bool
116    select MCUX_USE_driver_dma
117    select MCUX_USE_driver_dmamux
118
119config MCUX_USE_component_serial_manager_uart
120    bool
121    select MCUX_USE_component_lpuart_adapter
122
123config MCUX_USE_driver_cmsis_i2c
124    bool
125    select MCUX_USE_driver_i2c_dma
126
127config MCUX_USE_driver_cmsis_lpuart
128    bool
129    select MCUX_USE_driver_lpuart_dma
130
131config MCUX_USE_driver_cmsis_spi
132    bool
133    select MCUX_USE_driver_spi_dma
134
135config MCUX_USE_driver_cmsis_uart
136    bool
137    select MCUX_USE_driver_uart_dma
138
139config MCUX_USE_driver_flexio_i2s_dma
140    bool
141    select MCUX_USE_driver_dma
142
143config MCUX_USE_driver_flexio_spi_dma
144    bool
145    select MCUX_USE_driver_dma
146
147config MCUX_USE_driver_flexio_uart_dma
148    bool
149    select MCUX_USE_driver_dma
150
151config MCUX_USE_driver_i2c_dma
152    bool
153    select MCUX_USE_driver_dma
154
155config MCUX_USE_driver_lpuart_dma
156    bool
157    select MCUX_USE_driver_dma
158
159config MCUX_USE_driver_spi_dma
160    bool
161    select MCUX_USE_driver_dma
162
163config MCUX_USE_driver_uart_dma
164    bool
165    select MCUX_USE_driver_dma
166
167config MCUX_USE_utility_debug_console_lite
168    bool
169    select MCUX_USE_component_lpuart_adapter
170
171
172#### SOC level drivers ####
173# device_K32L2B31A_CMSIS
174config MCUX_USE_device_K32L2B31A_CMSIS
175    bool "Device K32L2B31A_cmsis"
176    select MCUX_USE_CMSIS_Include_core_cm
177    help
178      Device K32L2B31A_cmsis
179
180# device_K32L2B31A_startup
181config MCUX_USE_device_K32L2B31A_startup
182    bool "Device K32L2B31A_startup"
183    help
184      Device K32L2B31A_startup
185
186# device_K32L2B31A_system
187config MCUX_USE_device_K32L2B31A_system
188    bool "Device K32L2B31A_system"
189    help
190      Device K32L2B31A_system
191
192rsource "drivers/Kconfig"
193
194endif # MCUX_USE_SOC_K32L2B31A