1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_MKE15Z7
7    bool
8    select MCUX_CPU_ARCH_ARM_CM0P
9if MCUX_USE_SOC_MKE15Z7
10
11# Part Number
12config MCUX_SOC_PART_MKE15Z128xxx7
13    bool
14
15config MCUX_SOC_PART_MKE15Z256xxx7
16    bool
17
18config MCUX_DEVICE
19    default "MKE15Z7"
20
21config MCUX_DEVICE_ID
22    default "MKE15Z128xxx7" if MCUX_SOC_PART_MKE15Z128xxx7
23    default "MKE15Z256xxx7" if MCUX_SOC_PART_MKE15Z256xxx7
24
25
26# Select supported components
27config MCUX_USE_SOC_MKE15Z7
28    select MCUX_HAS_CMSIS_DSP_Include
29    select MCUX_HAS_CMSIS_DSP_Source
30    select MCUX_HAS_CMSIS_Device_API_OSTick
31    select MCUX_HAS_CMSIS_Device_API_RTOS2
32    select MCUX_HAS_CMSIS_Driver_Include_CAN
33    select MCUX_HAS_CMSIS_Driver_Include_Ethernet
34    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
35    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
36    select MCUX_HAS_CMSIS_Driver_Include_Flash
37    select MCUX_HAS_CMSIS_Driver_Include_I2C
38    select MCUX_HAS_CMSIS_Driver_Include_MCI
39    select MCUX_HAS_CMSIS_Driver_Include_NAND
40    select MCUX_HAS_CMSIS_Driver_Include_SAI
41    select MCUX_HAS_CMSIS_Driver_Include_SPI
42    select MCUX_HAS_CMSIS_Driver_Include_USART
43    select MCUX_HAS_CMSIS_Driver_Include_USB_Device
44    select MCUX_HAS_CMSIS_Driver_Include_USB_Host
45    select MCUX_HAS_CMSIS_Driver_Include_WiFi
46    select MCUX_HAS_CMSIS_Include_core_cm
47    select MCUX_HAS_CMSIS_NN_Source
48    select MCUX_HAS_CMSIS_RTOS2_NonSecure
49    select MCUX_HAS_CMSIS_RTOS2_Secure
50    select MCUX_HAS_component_ftm_adapter
51    select MCUX_HAS_component_gpio_adapter
52    select MCUX_HAS_component_lists
53    select MCUX_HAS_component_lpi2c_adapter
54    select MCUX_HAS_component_lpit_adapter
55    select MCUX_HAS_component_lpspi_adapter
56    select MCUX_HAS_component_lptmr_adapter
57    select MCUX_HAS_component_lpuart_adapter
58    select MCUX_HAS_component_lpuart_dma_adapter
59    select MCUX_HAS_component_serial_manager
60    select MCUX_HAS_component_serial_manager_spi
61    select MCUX_HAS_component_serial_manager_uart
62    select MCUX_HAS_driver_acmp
63    select MCUX_HAS_driver_adc12
64    select MCUX_HAS_driver_cmsis_lpi2c
65    select MCUX_HAS_driver_cmsis_lpspi
66    select MCUX_HAS_driver_cmsis_lpuart
67    select MCUX_HAS_driver_common
68    select MCUX_HAS_driver_crc
69    select MCUX_HAS_driver_dmamux
70    select MCUX_HAS_driver_edma
71    select MCUX_HAS_driver_ewm
72    select MCUX_HAS_driver_flash
73    select MCUX_HAS_driver_flexio
74    select MCUX_HAS_driver_flexio_i2c_master
75    select MCUX_HAS_driver_flexio_i2s
76    select MCUX_HAS_driver_flexio_i2s_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_ftm
82    select MCUX_HAS_driver_gpio
83    select MCUX_HAS_driver_lpi2c
84    select MCUX_HAS_driver_lpi2c_edma
85    select MCUX_HAS_driver_lpi2c_freertos
86    select MCUX_HAS_driver_lpit
87    select MCUX_HAS_driver_lpspi
88    select MCUX_HAS_driver_lpspi_edma
89    select MCUX_HAS_driver_lpspi_freertos
90    select MCUX_HAS_driver_lptmr
91    select MCUX_HAS_driver_lpuart
92    select MCUX_HAS_driver_lpuart_edma
93    select MCUX_HAS_driver_lpuart_freertos
94    select MCUX_HAS_driver_mmdvsq
95    select MCUX_HAS_driver_pdb
96    select MCUX_HAS_driver_pmc
97    select MCUX_HAS_driver_port
98    select MCUX_HAS_driver_pwt
99    select MCUX_HAS_driver_rcm
100    select MCUX_HAS_driver_rtc
101    select MCUX_HAS_driver_sim
102    select MCUX_HAS_driver_smc
103    select MCUX_HAS_driver_trgmux
104    select MCUX_HAS_driver_tsi_v5
105    select MCUX_HAS_driver_wdog32
106    select MCUX_HAS_utilities_misc_utilities
107    select MCUX_HAS_utility_assert
108    select MCUX_HAS_utility_assert_lite
109    select MCUX_HAS_utility_debug_console
110    select MCUX_HAS_utility_debug_console_lite
111    select MCUX_HAS_utility_notifier
112    select MCUX_HAS_utility_shell
113    select MCUX_HAS_utility_str
114
115#### SOC specific dependency ####
116config MCUX_USE_RTE_Device
117    bool
118    select MCUX_USE_driver_dmamux
119    select MCUX_USE_driver_edma
120
121config MCUX_USE_component_serial_manager_uart
122    bool
123    select MCUX_USE_component_lpuart_adapter
124
125config MCUX_USE_driver_cmsis_lpi2c
126    bool
127    select MCUX_USE_driver_lpi2c_edma
128
129config MCUX_USE_driver_cmsis_lpspi
130    bool
131    select MCUX_USE_driver_lpspi_edma
132
133config MCUX_USE_driver_cmsis_lpuart
134    bool
135    select MCUX_USE_driver_lpuart_edma
136
137config MCUX_USE_driver_flexio_i2s_edma
138    bool
139    select MCUX_USE_driver_edma
140
141config MCUX_USE_driver_flexio_spi_edma
142    bool
143    select MCUX_USE_driver_edma
144
145config MCUX_USE_driver_flexio_uart_edma
146    bool
147    select MCUX_USE_driver_edma
148
149config MCUX_USE_driver_lpi2c_edma
150    bool
151    select MCUX_USE_driver_edma
152
153config MCUX_USE_driver_lpspi_edma
154    bool
155    select MCUX_USE_driver_edma
156
157config MCUX_USE_driver_lpuart_edma
158    bool
159    select MCUX_USE_driver_edma
160
161config MCUX_USE_utility_debug_console_lite
162    bool
163    select MCUX_USE_component_lpuart_adapter
164
165
166#### SOC level drivers ####
167# device_MKE15Z7_CMSIS
168config MCUX_USE_device_MKE15Z7_CMSIS
169    bool "Device MKE15Z7_cmsis"
170    select MCUX_USE_CMSIS_Include_core_cm
171    help
172      Device MKE15Z7_cmsis
173
174# device_MKE15Z7_startup
175config MCUX_USE_device_MKE15Z7_startup
176    bool "Device MKE15Z7_startup"
177    help
178      Device MKE15Z7_startup
179
180# device_MKE15Z7_system
181config MCUX_USE_device_MKE15Z7_system
182    bool "Device MKE15Z7_system"
183    help
184      Device MKE15Z7_system
185
186rsource "drivers/Kconfig"
187
188endif # MCUX_USE_SOC_MKE15Z7