1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_LPC55S16
7    bool
8    select MCUX_CPU_ARCH_ARM_CM33
9    select MCUX_CPU_HAS_SP_FPU
10    select MCUX_CPU_ARM_HAS_DSP
11if MCUX_USE_SOC_LPC55S16
12
13# Part Number
14config MCUX_SOC_PART_LPC55S16
15    bool
16
17config MCUX_DEVICE
18    default "LPC55S16"
19
20config MCUX_DEVICE_ID
21    default "LPC55S16" if MCUX_SOC_PART_LPC55S16
22
23
24# Select supported components
25config MCUX_USE_SOC_LPC55S16
26    select MCUX_HAS_CMSIS_DSP_Include
27    select MCUX_HAS_CMSIS_DSP_Source
28    select MCUX_HAS_CMSIS_Device_API_OSTick
29    select MCUX_HAS_CMSIS_Device_API_RTOS2
30    select MCUX_HAS_CMSIS_Driver_Include_CAN
31    select MCUX_HAS_CMSIS_Driver_Include_Ethernet
32    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
33    select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
34    select MCUX_HAS_CMSIS_Driver_Include_Flash
35    select MCUX_HAS_CMSIS_Driver_Include_I2C
36    select MCUX_HAS_CMSIS_Driver_Include_MCI
37    select MCUX_HAS_CMSIS_Driver_Include_NAND
38    select MCUX_HAS_CMSIS_Driver_Include_SAI
39    select MCUX_HAS_CMSIS_Driver_Include_SPI
40    select MCUX_HAS_CMSIS_Driver_Include_USART
41    select MCUX_HAS_CMSIS_Driver_Include_USB_Device
42    select MCUX_HAS_CMSIS_Driver_Include_USB_Host
43    select MCUX_HAS_CMSIS_Driver_Include_WiFi
44    select MCUX_HAS_CMSIS_Include_core_cm
45    select MCUX_HAS_CMSIS_NN_Source
46    select MCUX_HAS_CMSIS_RTOS2_NonSecure
47    select MCUX_HAS_CMSIS_RTOS2_Secure
48    select MCUX_HAS_component_ctimer_adapter
49    select MCUX_HAS_component_flexcomm_i2c_adapter
50    select MCUX_HAS_component_flexcomm_spi_adapter
51    select MCUX_HAS_component_gint_adapter
52    select MCUX_HAS_component_lists
53    select MCUX_HAS_component_lpc_gpio_adapter
54    select MCUX_HAS_component_mrt_adapter
55    select MCUX_HAS_component_ostimer_adapter
56    select MCUX_HAS_component_serial_manager
57    select MCUX_HAS_component_serial_manager_spi
58    select MCUX_HAS_component_serial_manager_swo if (MCUX_CPU_ARCH_ARM_CM33)
59    select MCUX_HAS_component_serial_manager_uart
60    select MCUX_HAS_component_usart_adapter
61    select MCUX_HAS_component_usart_dma_adapter
62    select MCUX_HAS_driver_anactrl
63    select MCUX_HAS_driver_casper
64    select MCUX_HAS_driver_cdog
65    select MCUX_HAS_driver_cmp_1
66    select MCUX_HAS_driver_cmsis_flexcomm_i2c
67    select MCUX_HAS_driver_cmsis_flexcomm_spi
68    select MCUX_HAS_driver_cmsis_flexcomm_usart
69    select MCUX_HAS_driver_common
70    select MCUX_HAS_driver_ctimer
71    select MCUX_HAS_driver_flexcomm
72    select MCUX_HAS_driver_flexcomm_i2c
73    select MCUX_HAS_driver_flexcomm_i2c_dma
74    select MCUX_HAS_driver_flexcomm_i2c_freertos
75    select MCUX_HAS_driver_flexcomm_i2s
76    select MCUX_HAS_driver_flexcomm_i2s_dma
77    select MCUX_HAS_driver_flexcomm_spi
78    select MCUX_HAS_driver_flexcomm_spi_dma
79    select MCUX_HAS_driver_flexcomm_spi_freertos
80    select MCUX_HAS_driver_flexcomm_usart
81    select MCUX_HAS_driver_flexcomm_usart_dma
82    select MCUX_HAS_driver_flexcomm_usart_freertos
83    select MCUX_HAS_driver_gint
84    select MCUX_HAS_driver_hashcrypt
85    select MCUX_HAS_driver_iap1
86    select MCUX_HAS_driver_inputmux
87    select MCUX_HAS_driver_lpadc
88    select MCUX_HAS_driver_lpc_crc
89    select MCUX_HAS_driver_lpc_dma
90    select MCUX_HAS_driver_lpc_gpio
91    select MCUX_HAS_driver_lpc_iocon
92    select MCUX_HAS_driver_lpc_rtc
93    select MCUX_HAS_driver_mcan
94    select MCUX_HAS_driver_mrt
95    select MCUX_HAS_driver_ostimer
96    select MCUX_HAS_driver_pint
97    select MCUX_HAS_driver_plu
98    select MCUX_HAS_driver_prince
99    select MCUX_HAS_driver_puf
100    select MCUX_HAS_driver_rng_1
101    select MCUX_HAS_driver_sctimer
102    select MCUX_HAS_driver_sysctl
103    select MCUX_HAS_driver_utick
104    select MCUX_HAS_driver_wwdt
105    select MCUX_HAS_utilities_misc_utilities
106    select MCUX_HAS_utility_assert
107    select MCUX_HAS_utility_assert_lite
108    select MCUX_HAS_utility_debug_console
109    select MCUX_HAS_utility_debug_console_lite
110    select MCUX_HAS_utility_notifier
111    select MCUX_HAS_utility_shell
112    select MCUX_HAS_utility_str
113
114#### SOC specific dependency ####
115config MCUX_USE_RTE_Device
116    bool
117    select MCUX_USE_driver_lpc_dma
118
119config MCUX_USE_component_serial_manager_uart
120    bool
121    select MCUX_USE_component_usart_adapter
122
123config MCUX_USE_driver_flexcomm_i2c_dma
124    bool
125    select MCUX_USE_driver_lpc_dma
126
127config MCUX_USE_driver_flexcomm_i2s_dma
128    bool
129    select MCUX_USE_driver_lpc_dma
130
131config MCUX_USE_driver_flexcomm_spi_dma
132    bool
133    select MCUX_USE_driver_lpc_dma
134
135config MCUX_USE_driver_flexcomm_usart_dma
136    bool
137    select MCUX_USE_driver_lpc_dma
138
139config MCUX_USE_driver_prince
140    bool
141    select MCUX_USE_driver_iap1
142    select MCUX_USE_driver_puf
143
144config MCUX_USE_utility_debug_console_lite
145    bool
146    select MCUX_USE_component_usart_adapter
147
148
149#### SOC level drivers ####
150# device_LPC55S16_CMSIS
151config MCUX_USE_device_LPC55S16_CMSIS
152    bool "Device LPC55S16_cmsis"
153    select MCUX_USE_CMSIS_Include_core_cm
154    help
155      Device LPC55S16_cmsis
156
157# device_LPC55S16_startup
158config MCUX_USE_device_LPC55S16_startup
159    bool "Device LPC55S16_startup"
160    help
161      Device LPC55S16_startup
162
163# device_LPC55S16_system
164config MCUX_USE_device_LPC55S16_system
165    bool "Device LPC55S16_system"
166    help
167      Device LPC55S16_system
168
169# driver_fro_calib
170config MCUX_USE_driver_fro_calib
171    bool "Driver fro_calib"
172    select MCUX_USE_driver_common
173    help
174      FRO calibration Lib
175
176rsource "drivers/Kconfig"
177
178endif # MCUX_USE_SOC_LPC55S16