1# Copyright (c) 2020 Linumiz
2#
3# Author: Parthiban Nallathambi <parthiban@linumiz.com>
4# SPDX-License-Identifier: Apache-2.0
5
6config UART_XMC4XXX
7	bool "XMC4XX UART driver"
8	default y
9	depends on DT_HAS_INFINEON_XMC4XXX_UART_ENABLED
10	select SERIAL_HAS_DRIVER
11	select SERIAL_SUPPORT_INTERRUPT
12	select SERIAL_SUPPORT_ASYNC if DT_HAS_INFINEON_XMC4XXX_DMA_ENABLED
13	select DMA if UART_ASYNC_API
14	select PINCTRL
15	help
16	  This option enables the XMC4XX UART driver.
17
18if UART_XMC4XXX
19
20config UART_XMC4XXX_RX_FIFO_INT_TRIGGER
21	bool "Continue to trigger fifo rx interrupt"
22	default n
23	help
24	  When this option is enabled, an interrupt will continue to trigger
25	  if there is data in the receive fifo. Otherwise, an interrupt will
26	  trigger only once on the first received byte. The receive fifo will
27	  need to be fully flushed so that the interrupt will trigger again.
28
29endif
30