2019-11-01 13:45:29 +01:00
|
|
|
# Atmel SAM SPI
|
|
|
|
|
2019-11-21 00:01:35 +01:00
|
|
|
# Copyright (c) 2019 Gerson Fernando Budke
|
2018-10-09 05:28:30 +02:00
|
|
|
# Copyright (c) 2018 qianfan Zhao
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-04-23 14:06:55 +02:00
|
|
|
config SPI_SAM
|
2018-10-09 05:28:30 +02:00
|
|
|
bool "Atmel SAM series SPI driver"
|
2022-07-20 23:14:56 +02:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ATMEL_SAM_SPI_ENABLED
|
2022-01-03 21:34:27 +01:00
|
|
|
select GPIO
|
2018-10-09 05:28:30 +02:00
|
|
|
help
|
|
|
|
Enable support for the SAM SPI driver.
|
2022-10-04 16:47:05 +02:00
|
|
|
|
|
|
|
if SPI_SAM
|
|
|
|
config SPI_SAM_DMA
|
|
|
|
bool "SPI SAM DMA Support"
|
|
|
|
select DMA
|
|
|
|
help
|
|
|
|
Enable using DMA with SPI for SPI instances that enable dma channels in
|
|
|
|
their device tree node.
|
2023-02-22 03:42:54 +01:00
|
|
|
|
|
|
|
if SPI_RTIO
|
|
|
|
config SPI_SAM_RTIO_SQ_SIZE
|
|
|
|
int "Number of avialable submission queue entries"
|
|
|
|
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
|
|
|
|
|
2022-10-04 16:47:05 +02:00
|
|
|
endif # SPI_SAM
|