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