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	help
13	  This option enables the SiFive Freedom serial driver.
14
15# ---------- Port 0 ----------
16
17menuconfig UART_SIFIVE_PORT_0
18	bool "SIFIVE Port 0"
19	depends on UART_SIFIVE
20	help
21	  This tells the driver to configure the UART port at boot, depending on
22	  the additional configure options below.
23
24config UART_SIFIVE_PORT_0_RXCNT_IRQ
25	int "Port 0 RX Interrupt Threshold Count"
26	default 0
27	depends on UART_SIFIVE_PORT_0
28	help
29	  Port 0 RX Threshold at which the RX FIFO interrupt triggers.
30
31config UART_SIFIVE_PORT_0_TXCNT_IRQ
32	int "Port 0 TX Interrupt Threshold Count"
33	default 1
34	depends on UART_SIFIVE_PORT_0
35	help
36	  Port 0 TX Threshold at which the TX FIFO interrupt triggers.
37
38# ---------- Port 1 ----------
39
40menuconfig UART_SIFIVE_PORT_1
41	bool "SIFIVE Port 1"
42	depends on UART_SIFIVE
43	help
44	  This tells the driver to configure the UART port at boot, depending on
45	  the additional configure options below.
46
47config UART_SIFIVE_PORT_1_RXCNT_IRQ
48	int "Port 0 RX Interrupt Threshold Count"
49	default 0
50	depends on UART_SIFIVE_PORT_1
51	help
52	  Port 1 RX Threshold at which the RX FIFO interrupt triggers.
53
54config UART_SIFIVE_PORT_1_TXCNT_IRQ
55	int "Port 1 TX Interrupt Threshold Count"
56	default 1
57	depends on UART_SIFIVE_PORT_1
58	help
59	  Port 1 TX Threshold at which the TX FIFO interrupt triggers.
60