1# Copyright 2018, 2024 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4config SPI_MCUX_LPSPI
5	bool "NXP LPSPI peripheral"
6	default y
7	depends on DT_HAS_NXP_LPSPI_ENABLED
8	depends on CLOCK_CONTROL
9	select PINCTRL
10	help
11	  Enable support for NXP LPSPI.
12
13if SPI_MCUX_LPSPI
14
15config SPI_MCUX_LPSPI_DMA
16	bool "MCUX LPSPI SPI DMA Support"
17	default y
18	select DMA
19	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_LPSPI),dmas)
20	help
21	  Enable the SPI DMA mode for SPI instances
22	  that enable dma channels in their device tree node.
23
24config SPI_MCUX_LPSPI_CPU
25	bool "NXP MCUX LPSPI driver"
26	default y
27	depends on $(dt_compat_any_not_has_prop,$(DT_COMPAT_NXP_LPSPI),dmas) || !SPI_MCUX_LPSPI_DMA
28	help
29	  Use the CPU-based LPSPI driver.
30
31endif # SPI_MCUX_LPSPI
32