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 GPIO
12	help
13	  Enable support for the SAM SPI driver.
14
15if SPI_SAM
16config SPI_SAM_DMA
17	bool "SPI SAM DMA Support"
18	select DMA
19	help
20	  Enable using DMA with SPI for SPI instances that enable dma channels in
21	  their device tree node.
22
23if SPI_RTIO
24config SPI_SAM_RTIO_SQ_SIZE
25	int "Number of avialable submission queue entries"
26	default 8 # Sensible default that covers most common spi transactions
27	help
28	  When RTIO is use with SPI each driver holds a context with which blocking
29	  API calls use to perform SPI transactions. This queue needs to be as deep
30	  as the longest set of spi_buf_sets used, where normal SPI operations are
31	  used (equal length buffers). It may need to be slightly deeper where the
32	  spi buffer sets for transmit/receive are not always matched equally in
33	  length as these are transformed into normal transceives.
34
35endif # SPI_RTIO
36
37endif # SPI_SAM
38