2019-11-01 20:45:29 +08:00
|
|
|
# MCUXpresso SDK SPI
|
|
|
|
|
2018-09-15 05:06:13 +08:00
|
|
|
# Copyright (c) 2018, NXP
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-10-22 07:04:04 +08:00
|
|
|
config SPI_MCUX_LPSPI
|
2018-09-15 05:06:13 +08:00
|
|
|
bool "MCUX SPI driver"
|
2022-07-21 05:14:56 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_IMX_LPSPI_ENABLED
|
|
|
|
depends on CLOCK_CONTROL
|
2023-04-19 22:41:53 +08:00
|
|
|
select PINCTRL
|
2018-09-15 05:06:13 +08:00
|
|
|
help
|
|
|
|
Enable support for mcux spi driver.
|
2021-11-02 03:53:09 +08:00
|
|
|
|
|
|
|
if SPI_MCUX_LPSPI
|
|
|
|
config SPI_MCUX_LPSPI_DMA
|
|
|
|
bool "MCUX LPSPI SPI DMA Support"
|
|
|
|
select DMA
|
|
|
|
help
|
|
|
|
Enable the SPI DMA mode for SPI instances
|
|
|
|
that enable dma channels in their device tree node.
|
2023-08-30 02:26:38 +08:00
|
|
|
|
|
|
|
if SPI_RTIO
|
|
|
|
config SPI_MCUX_RTIO_SQ_SIZE
|
2024-01-13 01:41:50 +08:00
|
|
|
int "number of available submission queue entries"
|
2023-08-30 02:26:38 +08:00
|
|
|
default 8 # sensible default that covers most common spi transactions
|
|
|
|
help
|
|
|
|
when rtio is use with spi each driver holds a context with which blocking
|
|
|
|
api calls use to perform spi transactions. this queue needs to be as deep
|
|
|
|
as the longest set of spi_buf_sets used, where normal spi operations are
|
|
|
|
used (equal length buffers). it may need to be slightly deeper where the
|
|
|
|
spi buffer sets for transmit/receive are not always matched equally in
|
|
|
|
length as these are transformed into normal transceives.
|
|
|
|
endif # SPI_RTIO
|
|
|
|
|
2021-11-02 03:53:09 +08:00
|
|
|
endif # SPI_MCUX_LPSPI
|