drivers: serial: sifive: use interrupt-cell to set IRQ priority
This patch replace CONFIG_UART_SIFIVE_PORT_0_IRQ_PRIORITY into interrupt-cell of device-tree to set IRQ priority. Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
This commit is contained in:
parent
649cc167a8
commit
eb86d1eec1
2 changed files with 2 additions and 18 deletions
|
@ -20,13 +20,6 @@ menuconfig UART_SIFIVE_PORT_0
|
|||
This tells the driver to configure the UART port at boot, depending on
|
||||
the additional configure options below.
|
||||
|
||||
config UART_SIFIVE_PORT_0_IRQ_PRIORITY
|
||||
int "Port 0 Interrupt Priority"
|
||||
default 1
|
||||
depends on UART_SIFIVE_PORT_0
|
||||
help
|
||||
Port 0 Interrupt Priority
|
||||
|
||||
config UART_SIFIVE_PORT_0_RXCNT_IRQ
|
||||
int "Port 0 RX Interrupt Threshold Count"
|
||||
default 0
|
||||
|
@ -50,13 +43,6 @@ menuconfig UART_SIFIVE_PORT_1
|
|||
This tells the driver to configure the UART port at boot, depending on
|
||||
the additional configure options below.
|
||||
|
||||
config UART_SIFIVE_PORT_1_IRQ_PRIORITY
|
||||
int "Port 1 Interrupt Priority"
|
||||
default 1
|
||||
depends on UART_SIFIVE_PORT_1
|
||||
help
|
||||
Port 1 Interrupt Priority
|
||||
|
||||
config UART_SIFIVE_PORT_1_RXCNT_IRQ
|
||||
int "Port 0 RX Interrupt Threshold Count"
|
||||
default 0
|
||||
|
|
|
@ -402,8 +402,7 @@ DEVICE_DT_INST_DEFINE(0,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void uart_sifive_irq_cfg_func_0(void)
|
||||
{
|
||||
IRQ_CONNECT(DT_INST_IRQN(0),
|
||||
CONFIG_UART_SIFIVE_PORT_0_IRQ_PRIORITY,
|
||||
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
|
||||
uart_sifive_irq_handler, DEVICE_DT_INST_GET(0),
|
||||
0);
|
||||
|
||||
|
@ -442,8 +441,7 @@ DEVICE_DT_INST_DEFINE(1,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void uart_sifive_irq_cfg_func_1(void)
|
||||
{
|
||||
IRQ_CONNECT(DT_INST_IRQN(1),
|
||||
CONFIG_UART_SIFIVE_PORT_1_IRQ_PRIORITY,
|
||||
IRQ_CONNECT(DT_INST_IRQN(1), DT_INST_IRQ(1, priority),
|
||||
uart_sifive_irq_handler, DEVICE_DT_INST_GET(1),
|
||||
0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue