1list(APPEND CMAKE_MODULE_PATH
2    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE_PATH}
3    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE_PATH}/drivers
4    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/common
5    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/flexcomm
6    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/flexio
7    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/dmamux
8)
9
10if(CONFIG_CPU_CORTEX_A)
11    list(APPEND CMAKE_MODULE_PATH
12        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/CMSIS/Core_AArch64/Include
13    )
14else()
15    list(APPEND CMAKE_MODULE_PATH
16        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/cache/armv7-m7
17        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/CMSIS/Core/Include
18    )
19endif()
20
21function(include_ifdef feature_toggle module)
22  if(${${feature_toggle}})
23    include(${module})
24  endif()
25endfunction()
26
27function(include_driver_ifdef feature_toggle directory module)
28  if(${${feature_toggle}})
29    list(APPEND CMAKE_MODULE_PATH
30        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/${directory}
31    )
32    zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/${directory})
33    include(${module})
34  endif()
35endfunction()
36
37message("Load components for ${MCUX_DEVICE}:")
38
39#specific operation to shared drivers
40if((DEFINED CONFIG_FLASH_MCUX_FLEXSPI_XIP) AND (DEFINED CONFIG_FLASH))
41  zephyr_code_relocate(FILES ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/flexspi/fsl_flexspi.c
42    LOCATION ${CONFIG_FLASH_MCUX_FLEXSPI_XIP_MEM}_TEXT)
43endif()
44
45if(NOT CONFIG_ASSERT OR CONFIG_FORCE_NO_ASSERT)
46  zephyr_compile_definitions(NDEBUG) # squelch fsl_flexcan.c warning
47endif()
48
49zephyr_compile_definitions_ifdef(
50  CONFIG_PTP_CLOCK_MCUX
51  ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
52)
53
54zephyr_compile_definitions_ifdef(
55  CONFIG_PTP_CLOCK_NXP_ENET
56  ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
57)
58
59zephyr_library_compile_definitions_ifdef(
60  CONFIG_HAS_MCUX_CACHE FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL
61)
62
63# note: if FSL_IRQSTEER_ENABLE_MASTER_INT is not
64# defined then it will automatically be defined
65# and set to 1 via fsl_irqsteer.h
66zephyr_library_compile_definitions_ifdef(
67  CONFIG_NXP_IRQSTEER
68  FSL_IRQSTEER_ENABLE_MASTER_INT=0
69)
70
71zephyr_library_compile_definitions_ifdef(
72  CONFIG_DAI_NXP_SAI
73  MCUX_SDK_SAI_ALLOW_NULL_FIFO_WATERMARK=1
74)
75
76zephyr_library_compile_definitions_ifdef(
77  CONFIG_DAI_NXP_SAI
78  MCUX_SDK_SAI_DISABLE_IMPLICIT_CHAN_CONFIG=1
79)
80
81# Required by all SCFW-based SoCs
82if (CONFIG_SOC_MIMX8QM_A53 OR CONFIG_SOC_MIMX8QM_ADSP OR CONFIG_SOC_MIMX8QXP_ADSP)
83    list(APPEND CMAKE_MODULE_PATH
84        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE}/scfw_api
85    )
86    zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE}/scfw_api)
87    include(driver_scfw_api)
88endif()
89
90include(driver_common)
91
92#Include system_xxx file
93#This can be extended to other SoC series if needed
94if (DEFINED CONFIG_PLATFORM_SPECIFIC_INIT OR DEFINED CONFIG_SOC_SERIES_IMX_RT6XX
95    OR DEFINED CONFIG_SOC_SERIES_LPC55XXX)
96if (CONFIG_SOC_MIMXRT1166_CM4)
97include(device_system_MIMXRT1166_cm4)
98elseif (CONFIG_SOC_MIMXRT1166_CM7)
99include(device_system_MIMXRT1166_cm7)
100elseif (CONFIG_SOC_MIMXRT1176_CM4)
101include(device_system_MIMXRT1176_cm4)
102elseif (CONFIG_SOC_MIMXRT1176_CM7)
103include(device_system_MIMXRT1176_cm7)
104elseif (CONFIG_SOC_LPC55S69_CPU0)
105include(device_system_LPC55S69_cm33_core0)
106elseif (CONFIG_SOC_LPC55S69_CPU1)
107include(device_system_LPC55S69_cm33_core1)
108elseif (CONFIG_SOC_LPC54114_M4)
109include(device_system_LPC54114_cm4)
110elseif (CONFIG_SOC_LPC54114_M0)
111include(device_system_LPC54114_cm0plus)
112else()
113include(device_system)
114endif()
115endif()
116
117zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/common)
118
119#include shared drivers
120include_driver_ifdef(CONFIG_ADC_MCUX_LPADC		lpadc		driver_lpadc)
121include_driver_ifdef(CONFIG_COUNTER_MCUX_CTIMER		ctimer		driver_ctimer)
122include_driver_ifdef(CONFIG_COUNTER_MCUX_LPC_RTC	lpc_rtc		driver_lpc_rtc)
123include_driver_ifdef(CONFIG_DMA_MCUX_LPC		lpc_dma		driver_lpc_dma)
124include_driver_ifdef(CONFIG_GPIO_MCUX_LPC		lpc_gpio        driver_lpc_gpio)
125include_driver_ifdef(CONFIG_NXP_PINT			pint    	driver_pint)
126include_driver_ifdef(CONFIG_NXP_PINT			inputmux	driver_inputmux)
127include_driver_ifdef(CONFIG_I2C_MCUX_FLEXCOMM		flexcomm	driver_flexcomm)
128include_driver_ifdef(CONFIG_I2C_MCUX_FLEXCOMM		flexcomm/i2c	driver_flexcomm_i2c)
129include_driver_ifdef(CONFIG_I2S_MCUX_FLEXCOMM		flexcomm	driver_flexcomm)
130include_driver_ifdef(CONFIG_I2S_MCUX_FLEXCOMM		flexcomm/i2s	driver_flexcomm_i2s)
131include_driver_ifdef(CONFIG_MCUX_OS_TIMER		ostimer		driver_ostimer)
132include_driver_ifdef(CONFIG_PWM_MCUX_SCTIMER		sctimer		driver_sctimer)
133include_driver_ifdef(CONFIG_SOC_FLASH_LPC		flashiap	driver_flashiap)
134include_driver_ifdef(CONFIG_SPI_MCUX_FLEXCOMM		flexcomm	driver_flexcomm)
135include_driver_ifdef(CONFIG_SPI_MCUX_FLEXCOMM		flexcomm/spi	driver_flexcomm_spi)
136include_driver_ifdef(CONFIG_UART_MCUX_FLEXCOMM		flexcomm	driver_flexcomm)
137include_driver_ifdef(CONFIG_UART_MCUX_FLEXCOMM		flexcomm/usart	driver_flexcomm_usart)
138include_driver_ifdef(CONFIG_WDT_MCUX_WWDT		wwdt		driver_wwdt)
139include_driver_ifdef(CONFIG_ADC_MCUX_ADC12		adc12		driver_adc12)
140include_driver_ifdef(CONFIG_ADC_MCUX_ADC16		adc16		driver_adc16)
141include_driver_ifdef(CONFIG_IPM_IMX			mu		driver_mu)
142include_driver_ifdef(CONFIG_MBOX_NXP_IMX_MU		mu		driver_mu)
143include_driver_ifdef(CONFIG_CAN_MCUX_FLEXCAN		flexcan		driver_flexcan)
144include_driver_ifdef(CONFIG_CAN_MCUX_FLEXCAN_FD		flexcan		driver_flexcan)
145include_driver_ifdef(CONFIG_COUNTER_MCUX_PIT		pit		driver_pit)
146include_driver_ifdef(CONFIG_COUNTER_MCUX_RTC		rtc		driver_rtc)
147include_driver_ifdef(CONFIG_DAC_MCUX_DAC		dac		driver_dac)
148include_driver_ifdef(CONFIG_DAC_MCUX_DAC32		dac32		driver_dac32)
149include_driver_ifdef(CONFIG_DMA_MCUX_EDMA		dmamux		driver_dmamux)
150include_driver_ifdef(CONFIG_DMA_MCUX_EDMA_V3		dmamux		driver_dmamux)
151include_driver_ifdef(CONFIG_DMA_MCUX_EDMA		edma		driver_edma)
152include_driver_ifdef(CONFIG_DMA_MCUX_EDMA_V3		dma3		driver_dma3)
153include_driver_ifdef(CONFIG_ENTROPY_MCUX_RNGA		rnga		driver_rnga)
154include_driver_ifdef(CONFIG_ENTROPY_MCUX_TRNG		trng		driver_trng)
155include_driver_ifdef(CONFIG_ENTROPY_MCUX_CAAM		caam		driver_caam)
156include_driver_ifdef(CONFIG_ETH_NXP_ENET		enet		driver_enet)
157include_driver_ifdef(CONFIG_HAS_MCUX_SMC		smc		driver_smc)
158include_driver_ifdef(CONFIG_I2C_MCUX			i2c		driver_i2c)
159include_driver_ifdef(CONFIG_I2C_MCUX_LPI2C		lpi2c		driver_lpi2c)
160include_driver_ifdef(CONFIG_I3C_MCUX			i3c		driver_i3c)
161include_driver_ifdef(CONFIG_MCUX_ACMP			acmp		driver_acmp)
162include_driver_ifdef(CONFIG_PWM_MCUX_FTM		ftm     	driver_ftm)
163include_driver_ifdef(CONFIG_PWM_MCUX_TPM		tpm		driver_tpm)
164include_driver_ifdef(CONFIG_PWM_MCUX_PWT		pwt		driver_pwt)
165include_driver_ifdef(CONFIG_RTC_MCUX			rtc		driver_rtc)
166include_driver_ifdef(CONFIG_SPI_MCUX_DSPI		dspi		driver_dspi)
167include_driver_ifdef(CONFIG_SPI_MCUX_LPSPI		lpspi		driver_lpspi)
168include_driver_ifdef(CONFIG_UART_MCUX			uart		driver_uart)
169include_driver_ifdef(CONFIG_UART_MCUX_LPSCI		lpsci		driver_lpsci)
170include_driver_ifdef(CONFIG_UART_MCUX_LPUART		lpuart		driver_lpuart)
171include_driver_ifdef(CONFIG_WDT_MCUX_WDOG		wdog		driver_wdog)
172include_driver_ifdef(CONFIG_WDT_MCUX_WDOG32		wdog32		driver_wdog32)
173include_driver_ifdef(CONFIG_COUNTER_MCUX_GPT		gpt		driver_gpt)
174include_driver_ifdef(CONFIG_MCUX_GPT_TIMER		gpt		driver_gpt)
175include_driver_ifdef(CONFIG_COUNTER_MCUX_PIT		pit		driver_pit)
176include_driver_ifdef(CONFIG_COUNTER_MCUX_QTMR		qtmr_1		driver_qtmr_1)
177include_driver_ifdef(CONFIG_DISPLAY_MCUX_ELCDIF		elcdif		driver_elcdif)
178include_driver_ifdef(CONFIG_DISPLAY_MCUX_DCNANO_LCDIF	lcdif		driver_lcdif)
179include_driver_ifdef(CONFIG_MCUX_PXP			pxp		driver_pxp)
180include_driver_ifdef(CONFIG_ETH_MCUX			enet		driver_enet)
181include_driver_ifdef(CONFIG_GPIO_MCUX_IGPIO		igpio		driver_igpio)
182include_driver_ifdef(CONFIG_GPIO_MCUX_RGPIO		rgpio		driver_rgpio)
183include_driver_ifdef(CONFIG_I2C_MCUX_LPI2C		lpi2c		driver_lpi2c)
184include_driver_ifdef(CONFIG_I2S_MCUX_SAI		sai		driver_sai)
185include_driver_ifdef(CONFIG_DAI_NXP_SAI			sai		driver_sai)
186include_driver_ifdef(CONFIG_MEMC_MCUX_FLEXSPI		flexspi		driver_flexspi)
187include_driver_ifdef(CONFIG_PWM_MCUX			pwm		driver_pwm)
188include_driver_ifdef(CONFIG_SPI_MCUX_LPSPI		lpspi		driver_lpspi)
189include_driver_ifdef(CONFIG_UART_MCUX_LPUART		lpuart		driver_lpuart)
190include_driver_ifdef(CONFIG_VIDEO_MCUX_CSI		csi		driver_csi)
191include_driver_ifdef(CONFIG_WDT_MCUX_IMX_WDOG		wdog01		driver_wdog01)
192include_driver_ifdef(CONFIG_DMA_MCUX_LPC		lpc_dma		driver_lpc_dma)
193include_driver_ifdef(CONFIG_MEMC_MCUX_FLEXSPI		flexspi		driver_flexspi)
194include_driver_ifdef(CONFIG_HAS_MCUX_RDC		rdc		driver_rdc)
195include_driver_ifdef(CONFIG_UART_MCUX_IUART		iuart		driver_iuart)
196include_driver_ifdef(CONFIG_ADC_MCUX_12B1MSPS_SAR	adc_12b1msps_sar	driver_adc_12b1msps_sar)
197include_driver_ifdef(CONFIG_HWINFO_MCUX_SRC		src		driver_src)
198include_driver_ifdef(CONFIG_HWINFO_MCUX_SIM		sim		driver_sim)
199include_driver_ifdef(CONFIG_HWINFO_MCUX_RCM		rcm		driver_rcm)
200include_driver_ifdef(CONFIG_IPM_MCUX			mailbox		driver_mailbox)
201include_driver_ifdef(CONFIG_MBOX_NXP_MAILBOX			mailbox		driver_mailbox)
202include_driver_ifdef(CONFIG_COUNTER_MCUX_SNVS		snvs_hp		driver_snvs_hp)
203include_driver_ifdef(CONFIG_COUNTER_MCUX_SNVS_SRTC	snvs_lp		driver_snvs_lp)
204include_driver_ifdef(CONFIG_COUNTER_MCUX_LPTMR		lptmr		driver_lptmr)
205include_driver_ifdef(CONFIG_MCUX_LPTMR_TIMER		lptmr		driver_lptmr)
206include_driver_ifdef(CONFIG_IMX_USDHC			usdhc		driver_usdhc)
207include_driver_ifdef(CONFIG_MIPI_DSI_MCUX		mipi_dsi_split	driver_mipi_dsi_split)
208include_driver_ifdef(CONFIG_MIPI_DSI_MCUX_2L		mipi_dsi	driver_mipi_dsi)
209include_driver_ifdef(CONFIG_ADC_LPC_ADC			lpc_adc		driver_lpc_adc)
210include_driver_ifdef(CONFIG_MCUX_SDIF			sdif		driver_sdif)
211include_driver_ifdef(CONFIG_ADC_MCUX_ETC		adc_etc		driver_adc_etc)
212include_driver_ifdef(CONFIG_MCUX_XBARA			xbara		driver_xbara)
213include_driver_ifdef(CONFIG_QDEC_MCUX			enc		driver_enc)
214include_driver_ifdef(CONFIG_CRYPTO_MCUX_DCP			dcp		driver_dcp)
215include_driver_ifdef(CONFIG_DMA_MCUX_SMARTDMA		smartdma	driver_lpc_smartdma)
216include_driver_ifdef(CONFIG_DAC_MCUX_LPDAC			dac_1		driver_dac_1)
217include_driver_ifdef(CONFIG_NXP_IRQSTEER			irqsteer	driver_irqsteer)
218include_driver_ifdef(CONFIG_AUDIO_DMIC_MCUX		dmic		driver_dmic)
219include_driver_ifdef(CONFIG_DMA_NXP_EDMA	edma_rev2		driver_edma_rev2)
220
221if ((${MCUX_DEVICE} MATCHES "MIMXRT1[0-9][0-9][0-9]") AND (NOT (CONFIG_SOC_MIMXRT1166_CM4 OR CONFIG_SOC_MIMXRT1176_CM4)))
222  include_driver_ifdef(CONFIG_HAS_MCUX_CACHE		cache/armv7-m7	driver_cache_armv7_m7)
223elseif(${MCUX_DEVICE} MATCHES "MIMXRT(5|6)")
224  include_driver_ifdef(CONFIG_HAS_MCUX_CACHE		cache/cache64	driver_cache_cache64)
225elseif((${MCUX_DEVICE} MATCHES "MK(28|66)") OR (${MCUX_DEVICE} MATCHES "MKE(14|16|18)") OR (CONFIG_SOC_MIMXRT1166_CM4) OR (CONFIG_SOC_MIMXRT1176_CM4))
226  include_driver_ifdef(CONFIG_HAS_MCUX_CACHE		cache/lmem	driver_cache_lmem)
227endif()
228
229if (${MCUX_DEVICE} MATCHES "MIMXRT11[0-9][0-9]")
230   include_driver_ifdef(CONFIG_PM_MCUX_GPC		gpc_3		driver_gpc_3)
231   include_ifdef(CONFIG_HWINFO_MCUX_SRC_V2		driver_soc_src)
232elseif (${MCUX_DEVICE} MATCHES "MIMXRT10[0-9][0-9]")
233   include_driver_ifdef(CONFIG_PM_MCUX_GPC		gpc_1		driver_gpc_1)
234   include_driver_ifdef(CONFIG_PM_MCUX_DCDC		dcdc_1		driver_dcdc_1)
235   include_driver_ifdef(CONFIG_PM_MCUX_PMU		pmu		driver_pmu)
236endif()
237
238if("${CONFIG_SOC_FAMILY}" STREQUAL "nxp_kinetis")
239
240  include_driver_ifdef(CONFIG_SOC_FLASH_MCUX		flash		driver_flash)
241
242  include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/port/driver_port.cmake)
243  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/port)
244
245  if(${MCUX_DEVICE} MATCHES "MK(80|82|64|66|M34|M35|E14F|E16F|E18F|22F12)")
246    include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/sysmpu/driver_sysmpu.cmake)
247    zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/sysmpu)
248  endif()
249
250endif()
251
252if("${CONFIG_SOC_FAMILY}" STREQUAL "nxp_lpc")
253
254if ((${MCUX_DEVICE} MATCHES "LPC8[0-9][0-9]") OR (${MCUX_DEVICE} MATCHES "LPC5(1|4)"))
255  include_driver_ifdef(CONFIG_SOC_FLASH_MCUX		iap		driver_iap)
256  include_driver_ifdef(CONFIG_ENTROPY_MCUX_RNG		iap		driver_rng)
257elseif (${MCUX_DEVICE} MATCHES "LPC55")
258  if (${MCUX_DEVICE} MATCHES "LPC55S*3")
259   if(${CONFIG_SOC_FLASH_MCUX})
260      list(APPEND CMAKE_MODULE_PATH
261        ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/LPC55S36/drivers
262      )
263      zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/LPC55S36/drivers/flash)
264      include(driver_flashiap)
265    endif()
266  else()
267    include_driver_ifdef(CONFIG_SOC_FLASH_MCUX		iap1		driver_iap1)
268  endif()
269  include_driver_ifdef(CONFIG_ENTROPY_MCUX_RNG		rng_1		driver_rng_1)
270endif()
271
272if (${MCUX_DEVICE} MATCHES "LPC5")
273  include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iocon/driver_lpc_iocon.cmake)
274  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iocon)
275  if (${MCUX_DEVICE} MATCHES "LPC55S*3" AND (DEFINED CONFIG_ADC_MCUX_LPADC OR DEFINED CONFIG_DAC_MCUX_LPDAC))
276    include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/vref_1/driver_vref_1.cmake)
277    zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/vref_1)
278  endif()
279elseif (${MCUX_DEVICE} MATCHES "LPC8")
280  include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iocon_lite/driver_lpc_iocon_lite.cmake)
281  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iocon_lite)
282endif()
283
284endif()
285
286if(${MCUX_DEVICE} MATCHES "MIMXRT(5|6)")
287  include(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iopctl/driver_lpc_iopctl.cmake)
288  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/drivers/lpc_iopctl)
289endif()
290
291if(CONFIG_ETH_MCUX)
292  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy)
293  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy/device/phyksz8081)
294  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy/device/phyar8031)
295  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy/device/phylan8720a)
296  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy/device/phyrtl8211f)
297  zephyr_library_sources(mcux-sdk/components/phy/device/phyksz8081/fsl_phyksz8081.c)
298  zephyr_library_sources(mcux-sdk/components/phy/device/phyar8031/fsl_phyar8031.c)
299  zephyr_library_sources(mcux-sdk/components/phy/device/phylan8720a/fsl_phylan8720a.c)
300  zephyr_library_sources(mcux-sdk/components/phy/device/phyrtl8211f/fsl_phyrtl8211f.c)
301
302  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/phy/mdio/enet)
303  #zephyr_library_sources(mcux-sdk/components/phy/mdio/enet/fsl_enet_mdio.c)
304endif()
305
306if (CONFIG_USB_DEVICE_DRIVER)
307  list(APPEND CMAKE_MODULE_PATH
308    ${CMAKE_CURRENT_LIST_DIR}/middleware/mcux-sdk-middleware-usb
309  )
310  include(middleware_usb_phy)
311  include_ifdef(CONFIG_USB_DC_NXP_EHCI         middleware_usb_device_ehci)
312  include_ifdef(CONFIG_USB_DC_NXP_LPCIP3511    middleware_usb_device_ip3511fs)
313
314  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/middleware/mcux-sdk-middleware-usb/device)
315  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/middleware/mcux-sdk-middleware-usb/phy)
316  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/middleware/mcux-sdk-middleware-usb/include)
317endif()
318
319if(CONFIG_ENTROPY_MCUX_CSS)
320  list(APPEND CMAKE_MODULE_PATH
321    ${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc
322  )
323  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxClCss/inc)
324  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxCsslFlowProtection/inc)
325  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxCsslSecureCounter/inc)
326  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxCsslCPreProcessor/inc)
327  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxClMemory/inc)
328  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/platforms)
329  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/platforms/LPC55S3x/inc)
330  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/compiler/iar)
331  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/platforms/crypto_ip/inc/css/2.13.4)
332  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/platforms/crypto_ip/inc/fame)
333  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxClKey/src)
334  zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/components/css_pkc/src/comps/mcuxClSession/inc)
335  include(component_css)
336endif()
337