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	help
10	  Enable XMC4XXX SPI driver.
11
12
13if SPI_XMC4XXX
14
15config SPI_XMC4XXX_INTERRUPT
16	bool "XMC4XXX SPI interrupt mode"
17	help
18	  Enables interrupt support for XMC4XXX SPI driver.
19
20config SPI_XMC4XXX_DMA
21	bool "XMC4XXX SPI DMA support"
22	select DMA
23	help
24	  Enables DMA for SPI transfers.
25
26if SPI_XMC4XXX_DMA
27
28config SPI_XMC4XXX_DMA_TIMEOUT_MSEC
29	int "Timeout in milliseconds for an SPI transaction to complete if using DMA"
30	default 1000
31	help
32	  Sets timeout in milliseconds for an SPI transaction to complete when using DMA.
33
34endif # SPI_XMC4XXX_DMA
35
36endif # SPI_XMC4XXX
37