2019-11-01 13:45:29 +01:00
|
|
|
# SiFive Freedom UART configuration option
|
|
|
|
|
2017-03-14 22:16:37 +01:00
|
|
|
# Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
menuconfig UART_SIFIVE
|
|
|
|
bool "SiFive Freedom serial driver"
|
2022-07-20 13:46:30 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_SIFIVE_UART0_ENABLED
|
2017-03-14 22:16:37 +01:00
|
|
|
select SERIAL_HAS_DRIVER
|
2017-06-22 11:26:58 -05:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2024-09-18 11:11:49 +02:00
|
|
|
select PINCTRL if SOC_SERIES_SIFIVE_FREEDOM_FE300
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
2018-08-15 15:41:21 -07:00
|
|
|
This option enables the SiFive Freedom serial driver.
|
2017-03-14 22:16:37 +01:00
|
|
|
|
|
|
|
# ---------- Port 0 ----------
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
menuconfig UART_SIFIVE_PORT_0
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "SIFIVE Port 0"
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
This tells the driver to configure the UART port at boot, depending on
|
|
|
|
the additional configure options below.
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
config UART_SIFIVE_PORT_0_RXCNT_IRQ
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 0 RX Interrupt Threshold Count"
|
|
|
|
default 0
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE_PORT_0
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
Port 0 RX Threshold at which the RX FIFO interrupt triggers.
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
config UART_SIFIVE_PORT_0_TXCNT_IRQ
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 0 TX Interrupt Threshold Count"
|
2020-03-23 16:09:21 -05:00
|
|
|
default 1
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE_PORT_0
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
Port 0 TX Threshold at which the TX FIFO interrupt triggers.
|
|
|
|
|
|
|
|
# ---------- Port 1 ----------
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
menuconfig UART_SIFIVE_PORT_1
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "SIFIVE Port 1"
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
This tells the driver to configure the UART port at boot, depending on
|
|
|
|
the additional configure options below.
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
config UART_SIFIVE_PORT_1_RXCNT_IRQ
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 0 RX Interrupt Threshold Count"
|
|
|
|
default 0
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE_PORT_1
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
Port 1 RX Threshold at which the RX FIFO interrupt triggers.
|
|
|
|
|
2018-08-15 15:41:21 -07:00
|
|
|
config UART_SIFIVE_PORT_1_TXCNT_IRQ
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 1 TX Interrupt Threshold Count"
|
2021-10-28 01:49:44 +02:00
|
|
|
default 1
|
2018-08-15 15:41:21 -07:00
|
|
|
depends on UART_SIFIVE_PORT_1
|
2017-03-14 22:16:37 +01:00
|
|
|
help
|
|
|
|
Port 1 TX Threshold at which the TX FIFO interrupt triggers.
|