1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_LPC51U68
7    bool
8    select MCUX_CPU_ARCH_ARM_CM0P
9if MCUX_USE_SOC_LPC51U68
10
11# Part Number
12config MCUX_SOC_PART_LPC51U68
13    bool
14
15config MCUX_DEVICE
16    default "LPC51U68"
17
18config MCUX_DEVICE_ID
19    default "LPC51U68" if MCUX_SOC_PART_LPC51U68
20
21
22# Select supported components
23config MCUX_USE_SOC_LPC51U68
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_ctimer_adapter
47    select MCUX_HAS_component_flexcomm_i2c_adapter
48    select MCUX_HAS_component_flexcomm_spi_adapter
49    select MCUX_HAS_component_gint_adapter
50    select MCUX_HAS_component_lists
51    select MCUX_HAS_component_lpc_gpio_adapter
52    select MCUX_HAS_component_mrt_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_usart_adapter
57    select MCUX_HAS_component_usart_dma_adapter
58    select MCUX_HAS_driver_cmsis_flexcomm_i2c
59    select MCUX_HAS_driver_cmsis_flexcomm_spi
60    select MCUX_HAS_driver_cmsis_flexcomm_usart
61    select MCUX_HAS_driver_common
62    select MCUX_HAS_driver_ctimer
63    select MCUX_HAS_driver_flashiap
64    select MCUX_HAS_driver_flexcomm
65    select MCUX_HAS_driver_flexcomm_i2c
66    select MCUX_HAS_driver_flexcomm_i2c_dma
67    select MCUX_HAS_driver_flexcomm_i2c_freertos
68    select MCUX_HAS_driver_flexcomm_i2s
69    select MCUX_HAS_driver_flexcomm_i2s_dma
70    select MCUX_HAS_driver_flexcomm_spi
71    select MCUX_HAS_driver_flexcomm_spi_dma
72    select MCUX_HAS_driver_flexcomm_spi_freertos
73    select MCUX_HAS_driver_flexcomm_usart
74    select MCUX_HAS_driver_flexcomm_usart_dma
75    select MCUX_HAS_driver_flexcomm_usart_freertos
76    select MCUX_HAS_driver_fmeas
77    select MCUX_HAS_driver_gint
78    select MCUX_HAS_driver_iap
79    select MCUX_HAS_driver_inputmux
80    select MCUX_HAS_driver_lpc_adc
81    select MCUX_HAS_driver_lpc_crc
82    select MCUX_HAS_driver_lpc_dma
83    select MCUX_HAS_driver_lpc_gpio
84    select MCUX_HAS_driver_lpc_iocon
85    select MCUX_HAS_driver_lpc_rtc
86    select MCUX_HAS_driver_mrt
87    select MCUX_HAS_driver_pint
88    select MCUX_HAS_driver_sctimer
89    select MCUX_HAS_driver_utick
90    select MCUX_HAS_driver_wwdt
91    select MCUX_HAS_utilities_misc_utilities
92    select MCUX_HAS_utility_assert
93    select MCUX_HAS_utility_assert_lite
94    select MCUX_HAS_utility_debug_console
95    select MCUX_HAS_utility_debug_console_lite
96    select MCUX_HAS_utility_notifier
97    select MCUX_HAS_utility_shell
98    select MCUX_HAS_utility_str
99
100#### SOC specific dependency ####
101config MCUX_USE_RTE_Device
102    bool
103    select MCUX_USE_driver_lpc_dma
104
105config MCUX_USE_component_serial_manager_uart
106    bool
107    select MCUX_USE_component_usart_adapter
108
109config MCUX_USE_driver_flexcomm_i2c_dma
110    bool
111    select MCUX_USE_driver_lpc_dma
112
113config MCUX_USE_driver_flexcomm_i2s_dma
114    bool
115    select MCUX_USE_driver_lpc_dma
116
117config MCUX_USE_driver_flexcomm_spi_dma
118    bool
119    select MCUX_USE_driver_lpc_dma
120
121config MCUX_USE_driver_flexcomm_usart_dma
122    bool
123    select MCUX_USE_driver_lpc_dma
124
125config MCUX_USE_utility_debug_console_lite
126    bool
127    select MCUX_USE_component_usart_adapter
128
129
130#### SOC level drivers ####
131# device_LPC51U68_CMSIS
132config MCUX_USE_device_LPC51U68_CMSIS
133    bool "Device LPC51U68_cmsis"
134    select MCUX_USE_CMSIS_Include_core_cm
135    help
136      Device LPC51U68_cmsis
137
138# device_LPC51U68_startup
139config MCUX_USE_device_LPC51U68_startup
140    bool "Device LPC51U68_startup"
141    help
142      Device LPC51U68_startup
143
144# device_LPC51U68_system
145config MCUX_USE_device_LPC51U68_system
146    bool "Device LPC51U68_system"
147    help
148      Device LPC51U68_system
149
150# driver_fro_calib
151config MCUX_USE_driver_fro_calib
152    bool "Driver fro_calib"
153    select MCUX_USE_driver_common
154    help
155      FRO calibration Lib
156
157# driver_power
158config MCUX_USE_driver_power
159    bool "power"
160    select MCUX_USE_driver_common
161    help
162      Power driver
163
164rsource "drivers/Kconfig"
165
166endif # MCUX_USE_SOC_LPC51U68