blob: 8ff926c931bc8f0dc50c962a027ad423b45fa7a9 [file] [log] [blame]
# Copyright 2018, 2024 NXP
# SPDX-License-Identifier: Apache-2.0
config SPI_MCUX_LPSPI
bool "NXP LPSPI peripheral"
default y
depends on DT_HAS_NXP_LPSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for NXP LPSPI.
if SPI_MCUX_LPSPI
config SPI_MCUX_LPSPI_DMA
bool "MCUX LPSPI SPI DMA Support"
default y
select DMA
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_LPSPI),dmas)
help
Enable the SPI DMA mode for SPI instances
that enable dma channels in their device tree node.
config SPI_MCUX_LPSPI_CPU
bool "NXP MCUX LPSPI driver"
default y
depends on $(dt_compat_any_not_has_prop,$(DT_COMPAT_NXP_LPSPI),dmas) || !SPI_MCUX_LPSPI_DMA
help
Use the CPU-based LPSPI driver.
endif # SPI_MCUX_LPSPI