1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_MKM34Z7
7    bool
8    select MCUX_CPU_ARCH_ARM_CM0P
9if MCUX_USE_SOC_MKM34Z7
10
11# Part Number
12config MCUX_SOC_PART_MKM34Z256xxx7
13    bool
14
15config MCUX_DEVICE
16    default "MKM34Z7"
17
18config MCUX_DEVICE_ID
19    default "MKM34Z256xxx7" if MCUX_SOC_PART_MKM34Z256xxx7
20
21
22# Select supported components
23config MCUX_USE_SOC_MKM34Z7
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_lists
47    select MCUX_HAS_component_lptmr_adapter
48    select MCUX_HAS_component_lpuart_adapter
49    select MCUX_HAS_component_pit_adapter
50    select MCUX_HAS_component_serial_manager
51    select MCUX_HAS_component_serial_manager_uart
52    select MCUX_HAS_component_uart_adapter
53    select MCUX_HAS_driver_adc16
54    select MCUX_HAS_driver_afe
55    select MCUX_HAS_driver_cmp
56    select MCUX_HAS_driver_cmsis_i2c
57    select MCUX_HAS_driver_cmsis_spi
58    select MCUX_HAS_driver_cmsis_uart
59    select MCUX_HAS_driver_common
60    select MCUX_HAS_driver_crc
61    select MCUX_HAS_driver_dma
62    select MCUX_HAS_driver_dmamux
63    select MCUX_HAS_driver_ewm
64    select MCUX_HAS_driver_flash
65    select MCUX_HAS_driver_gpio
66    select MCUX_HAS_driver_i2c
67    select MCUX_HAS_driver_i2c_dma
68    select MCUX_HAS_driver_i2c_freertos
69    select MCUX_HAS_driver_irtc
70    select MCUX_HAS_driver_llwu
71    select MCUX_HAS_driver_lptmr
72    select MCUX_HAS_driver_lpuart
73    select MCUX_HAS_driver_lpuart_dma
74    select MCUX_HAS_driver_lpuart_freertos
75    select MCUX_HAS_driver_mmau
76    select MCUX_HAS_driver_pdb
77    select MCUX_HAS_driver_pit
78    select MCUX_HAS_driver_pmc
79    select MCUX_HAS_driver_port
80    select MCUX_HAS_driver_qtmr_2
81    select MCUX_HAS_driver_rcm
82    select MCUX_HAS_driver_rnga
83    select MCUX_HAS_driver_sim
84    select MCUX_HAS_driver_slcd
85    select MCUX_HAS_driver_smc
86    select MCUX_HAS_driver_spi
87    select MCUX_HAS_driver_spi_dma
88    select MCUX_HAS_driver_spi_freertos
89    select MCUX_HAS_driver_sysmpu
90    select MCUX_HAS_driver_uart
91    select MCUX_HAS_driver_uart_dma
92    select MCUX_HAS_driver_uart_freertos
93    select MCUX_HAS_driver_vref
94    select MCUX_HAS_driver_wdog
95    select MCUX_HAS_driver_xbar
96    select MCUX_HAS_utilities_misc_utilities
97    select MCUX_HAS_utility_assert
98    select MCUX_HAS_utility_assert_lite
99    select MCUX_HAS_utility_debug_console
100    select MCUX_HAS_utility_debug_console_lite
101    select MCUX_HAS_utility_notifier
102    select MCUX_HAS_utility_shell
103    select MCUX_HAS_utility_str
104
105#### SOC specific dependency ####
106config MCUX_USE_RTE_Device
107    bool
108    select MCUX_USE_driver_dma
109    select MCUX_USE_driver_dmamux
110
111config MCUX_USE_component_serial_manager_uart
112    bool
113    select MCUX_USE_component_uart_adapter
114
115config MCUX_USE_driver_cmsis_i2c
116    bool
117    select MCUX_USE_driver_i2c_dma
118
119config MCUX_USE_driver_cmsis_spi
120    bool
121    select MCUX_USE_driver_spi_dma
122
123config MCUX_USE_driver_cmsis_uart
124    bool
125    select MCUX_USE_driver_uart_dma
126
127config MCUX_USE_driver_i2c_dma
128    bool
129    select MCUX_USE_driver_dma
130
131config MCUX_USE_driver_lpuart_dma
132    bool
133    select MCUX_USE_driver_dma
134
135config MCUX_USE_driver_spi_dma
136    bool
137    select MCUX_USE_driver_dma
138
139config MCUX_USE_driver_uart_dma
140    bool
141    select MCUX_USE_driver_dma
142
143config MCUX_USE_utility_debug_console_lite
144    bool
145    select MCUX_USE_component_uart_adapter
146
147
148#### SOC level drivers ####
149# device_MKM34Z7_CMSIS
150config MCUX_USE_device_MKM34Z7_CMSIS
151    bool "Device MKM34Z7_cmsis"
152    select MCUX_USE_CMSIS_Include_core_cm
153    help
154      Device MKM34Z7_cmsis
155
156# device_MKM34Z7_startup
157config MCUX_USE_device_MKM34Z7_startup
158    bool "Device MKM34Z7_startup"
159    help
160      Device MKM34Z7_startup
161
162# device_MKM34Z7_system
163config MCUX_USE_device_MKM34Z7_system
164    bool "Device MKM34Z7_system"
165    help
166      Device MKM34Z7_system
167
168rsource "drivers/Kconfig"
169
170endif # MCUX_USE_SOC_MKM34Z7