1# SiFive Freedom UART configuration option
2
3# Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig UART_SIFIVE
7	bool "SiFive Freedom serial driver"
8	default y
9	depends on DT_HAS_SIFIVE_UART0_ENABLED
10	select SERIAL_HAS_DRIVER
11	select SERIAL_SUPPORT_INTERRUPT
12	select PINCTRL if SOC_SERIES_SIFIVE_FREEDOM_FE300
13	help
14	  This option enables the SiFive Freedom serial driver.
15
16# ---------- Port 0 ----------
17
18menuconfig UART_SIFIVE_PORT_0
19	bool "SIFIVE Port 0"
20	depends on UART_SIFIVE
21	help
22	  This tells the driver to configure the UART port at boot, depending on
23	  the additional configure options below.
24
25config UART_SIFIVE_PORT_0_RXCNT_IRQ
26	int "Port 0 RX Interrupt Threshold Count"
27	default 0
28	depends on UART_SIFIVE_PORT_0
29	help
30	  Port 0 RX Threshold at which the RX FIFO interrupt triggers.
31
32config UART_SIFIVE_PORT_0_TXCNT_IRQ
33	int "Port 0 TX Interrupt Threshold Count"
34	default 1
35	depends on UART_SIFIVE_PORT_0
36	help
37	  Port 0 TX Threshold at which the TX FIFO interrupt triggers.
38
39# ---------- Port 1 ----------
40
41menuconfig UART_SIFIVE_PORT_1
42	bool "SIFIVE Port 1"
43	depends on UART_SIFIVE
44	help
45	  This tells the driver to configure the UART port at boot, depending on
46	  the additional configure options below.
47
48config UART_SIFIVE_PORT_1_RXCNT_IRQ
49	int "Port 0 RX Interrupt Threshold Count"
50	default 0
51	depends on UART_SIFIVE_PORT_1
52	help
53	  Port 1 RX Threshold at which the RX FIFO interrupt triggers.
54
55config UART_SIFIVE_PORT_1_TXCNT_IRQ
56	int "Port 1 TX Interrupt Threshold Count"
57	default 1
58	depends on UART_SIFIVE_PORT_1
59	help
60	  Port 1 TX Threshold at which the TX FIFO interrupt triggers.
61