1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_USE_SOC_LPC55S28
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_LPC55S28
12
13# Part Number
14config MCUX_SOC_PART_LPC55S28
15    bool
16
17config MCUX_DEVICE
18    default "LPC55S28"
19
20config MCUX_DEVICE_ID
21    default "LPC55S28" if MCUX_SOC_PART_LPC55S28
22
23
24# Select supported components
25config MCUX_USE_SOC_LPC55S28
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_cmp_1
65    select MCUX_HAS_driver_cmsis_flexcomm_i2c
66    select MCUX_HAS_driver_cmsis_flexcomm_spi
67    select MCUX_HAS_driver_cmsis_flexcomm_usart
68    select MCUX_HAS_driver_common
69    select MCUX_HAS_driver_ctimer
70    select MCUX_HAS_driver_flexcomm
71    select MCUX_HAS_driver_flexcomm_i2c
72    select MCUX_HAS_driver_flexcomm_i2c_dma
73    select MCUX_HAS_driver_flexcomm_i2c_freertos
74    select MCUX_HAS_driver_flexcomm_i2s
75    select MCUX_HAS_driver_flexcomm_i2s_dma
76    select MCUX_HAS_driver_flexcomm_spi
77    select MCUX_HAS_driver_flexcomm_spi_dma
78    select MCUX_HAS_driver_flexcomm_spi_freertos
79    select MCUX_HAS_driver_flexcomm_usart
80    select MCUX_HAS_driver_flexcomm_usart_dma
81    select MCUX_HAS_driver_flexcomm_usart_freertos
82    select MCUX_HAS_driver_gint
83    select MCUX_HAS_driver_hashcrypt
84    select MCUX_HAS_driver_iap1
85    select MCUX_HAS_driver_inputmux
86    select MCUX_HAS_driver_lpadc
87    select MCUX_HAS_driver_lpc_crc
88    select MCUX_HAS_driver_lpc_dma
89    select MCUX_HAS_driver_lpc_gpio
90    select MCUX_HAS_driver_lpc_iocon
91    select MCUX_HAS_driver_lpc_rtc
92    select MCUX_HAS_driver_mrt
93    select MCUX_HAS_driver_ostimer
94    select MCUX_HAS_driver_pint
95    select MCUX_HAS_driver_plu
96    select MCUX_HAS_driver_prince
97    select MCUX_HAS_driver_puf
98    select MCUX_HAS_driver_rng_1
99    select MCUX_HAS_driver_sctimer
100    select MCUX_HAS_driver_sdif
101    select MCUX_HAS_driver_sysctl
102    select MCUX_HAS_driver_utick
103    select MCUX_HAS_driver_wwdt
104    select MCUX_HAS_utilities_misc_utilities
105    select MCUX_HAS_utility_assert
106    select MCUX_HAS_utility_assert_lite
107    select MCUX_HAS_utility_debug_console
108    select MCUX_HAS_utility_debug_console_lite
109    select MCUX_HAS_utility_notifier
110    select MCUX_HAS_utility_shell
111    select MCUX_HAS_utility_str
112
113#### SOC specific dependency ####
114config MCUX_USE_RTE_Device
115    bool
116    select MCUX_USE_driver_lpc_dma
117
118config MCUX_USE_component_serial_manager_uart
119    bool
120    select MCUX_USE_component_usart_adapter
121
122config MCUX_USE_driver_flexcomm_i2c_dma
123    bool
124    select MCUX_USE_driver_lpc_dma
125
126config MCUX_USE_driver_flexcomm_i2s_dma
127    bool
128    select MCUX_USE_driver_lpc_dma
129
130config MCUX_USE_driver_flexcomm_spi_dma
131    bool
132    select MCUX_USE_driver_lpc_dma
133
134config MCUX_USE_driver_flexcomm_usart_dma
135    bool
136    select MCUX_USE_driver_lpc_dma
137
138config MCUX_USE_driver_prince
139    bool
140    select MCUX_USE_driver_iap1
141    select MCUX_USE_driver_puf
142
143config MCUX_USE_utility_debug_console_lite
144    bool
145    select MCUX_USE_component_usart_adapter
146
147
148#### SOC level drivers ####
149# device_LPC55S28_CMSIS
150config MCUX_USE_device_LPC55S28_CMSIS
151    bool "Device LPC55S28_cmsis"
152    select MCUX_USE_CMSIS_Include_core_cm
153    help
154      Device LPC55S28_cmsis
155
156# device_LPC55S28_startup
157config MCUX_USE_device_LPC55S28_startup
158    bool "Device LPC55S28_startup"
159    help
160      Device LPC55S28_startup
161
162# device_LPC55S28_system
163config MCUX_USE_device_LPC55S28_system
164    bool "Device LPC55S28_system"
165    help
166      Device LPC55S28_system
167
168# driver_fro_calib
169config MCUX_USE_driver_fro_calib
170    bool "Driver fro_calib"
171    select MCUX_USE_driver_common
172    help
173      FRO calibration Lib
174
175rsource "drivers/Kconfig"
176
177endif # MCUX_USE_SOC_LPC55S28