1# Copyright (c) 2022 Schlumberger 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig SPI_XMC4XXX 5 bool "XMC4XX SPI driver" 6 default y 7 depends on DT_HAS_INFINEON_XMC4XXX_SPI_ENABLED 8 select GPIO 9 select PINCTRL 10 help 11 Enable XMC4XXX SPI driver. 12 13 14if SPI_XMC4XXX 15 16config SPI_XMC4XXX_INTERRUPT 17 bool "XMC4XXX SPI interrupt mode" 18 help 19 Enables interrupt support for XMC4XXX SPI driver. 20 21config SPI_XMC4XXX_DMA 22 bool "XMC4XXX SPI DMA support" 23 select DMA 24 help 25 Enables DMA for SPI transfers. 26 27if SPI_XMC4XXX_DMA 28 29config SPI_XMC4XXX_DMA_TIMEOUT_MSEC 30 int "Timeout in milliseconds for an SPI transaction to complete if using DMA" 31 default 1000 32 help 33 Sets timeout in milliseconds for an SPI transaction to complete when using DMA. 34 35endif # SPI_XMC4XXX_DMA 36 37endif # SPI_XMC4XXX 38