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"
|
2019-07-18 23:05:53 -04:00
|
|
|
depends on SOC_RISCV_SIFIVE_FREEDOM
|
2017-03-14 22:16:37 +01:00
|
|
|
select SERIAL_HAS_DRIVER
|
2017-06-22 11:26:58 -05:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
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
|
|
|
|
bool "Enable SIFIVE Port 0"
|
|
|
|
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_IRQ_PRIORITY
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 0 Interrupt Priority"
|
|
|
|
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 Interrupt Priority
|
|
|
|
|
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
|
|
|
|
bool "Enable SIFIVE Port 1"
|
|
|
|
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_IRQ_PRIORITY
|
2017-03-14 22:16:37 +01:00
|
|
|
int "Port 1 Interrupt Priority"
|
|
|
|
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 Interrupt Priority
|
|
|
|
|
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"
|
|
|
|
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 TX Threshold at which the TX FIFO interrupt triggers.
|