summaryrefslogtreecommitdiffstats
path: root/bsps/microblaze/shared/dev/serial/uartlite.c
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2022-10-19 13:46:14 -0500
committerJoel Sherrill <joel@rtems.org>2023-02-06 14:29:24 -0600
commit9d5354e89785c38ec66fc8829bcd4fffac94e856 (patch)
treef8fac116e78f385c0f78fd21c79db0cb2c40646c /bsps/microblaze/shared/dev/serial/uartlite.c
parentbsps/microblaze: Add device tree support to JFFS2 QSPI (diff)
downloadrtems-9d5354e89785c38ec66fc8829bcd4fffac94e856.tar.bz2
bsps/microblaze: Add device tree support to UART Lite
Diffstat (limited to 'bsps/microblaze/shared/dev/serial/uartlite.c')
-rw-r--r--bsps/microblaze/shared/dev/serial/uartlite.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bsps/microblaze/shared/dev/serial/uartlite.c b/bsps/microblaze/shared/dev/serial/uartlite.c
index a5fc4fe82b..953c630759 100644
--- a/bsps/microblaze/shared/dev/serial/uartlite.c
+++ b/bsps/microblaze/shared/dev/serial/uartlite.c
@@ -70,8 +70,15 @@ static bool uart_first_open(
#ifdef BSP_MICROBLAZE_FPGA_CONSOLE_INTERRUPTS
XUartLite_EnableIntr( ctx->address );
+
+ uint32_t uart_irq_num = try_get_prop_from_device_tree(
+ "xlnx,xps-uartlite-1.00.a",
+ "interrupts",
+ 1
+ );
+
sc = rtems_interrupt_handler_install(
- 1,
+ uart_irq_num,
"UART",
RTEMS_INTERRUPT_SHARED,
microblaze_uart_interrupt,