1# Atmel SAM SPI 2 3# Copyright (c) 2019 Gerson Fernando Budke 4# Copyright (c) 2018 qianfan Zhao 5# SPDX-License-Identifier: Apache-2.0 6 7config SPI_SAM 8 bool "Atmel SAM series SPI driver" 9 default y 10 depends on DT_HAS_ATMEL_SAM_SPI_ENABLED 11 select PINCTRL 12 select GPIO 13 help 14 Enable support for the SAM SPI driver. 15 16if SPI_SAM 17config SPI_SAM_DMA 18 bool "SPI SAM DMA Support" 19 default y if SPI_RTIO 20 select DMA 21 help 22 Enable using DMA with SPI for SPI instances that enable dma channels in 23 their device tree node. 24 25if SPI_RTIO 26config SPI_SAM_RTIO_SQ_SIZE 27 int "Number of available submission queue entries" 28 default 8 # Sensible default that covers most common spi transactions 29 help 30 When RTIO is use with SPI each driver holds a context with which blocking 31 API calls use to perform SPI transactions. This queue needs to be as deep 32 as the longest set of spi_buf_sets used, where normal SPI operations are 33 used (equal length buffers). It may need to be slightly deeper where the 34 spi buffer sets for transmit/receive are not always matched equally in 35 length as these are transformed into normal transceives. 36 37endif # SPI_RTIO 38 39endif # SPI_SAM 40