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