From 94a7d17b090c16b0d65b92278d7c595113b3f750 Mon Sep 17 00:00:00 2001 From: Aaron Nyholm Date: Thu, 16 Mar 2023 11:42:09 +1100 Subject: aarch64/versal: Fix uart interrupt issues --- bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bsps') diff --git a/bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c b/bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c index b009f83c37..bf469f66b2 100644 --- a/bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c +++ b/bsps/aarch64/xilinx-versal/dev/serial/versal-uart.c @@ -31,7 +31,6 @@ #include -#ifdef VERSAL_CONSOLE_USE_INTERRUPTS static uint32_t versal_uart_intr_all(void) { return VERSAL_UARTI_OEI | @@ -47,6 +46,7 @@ static uint32_t versal_uart_intr_all(void) VERSAL_UARTI_RIMI; } +#ifdef VERSAL_CONSOLE_USE_INTERRUPTS static void versal_uart_intr_clear(volatile versal_uart *regs, uint32_t ints) { regs->uarticr = ints; @@ -61,6 +61,7 @@ static void versal_uart_intr_enable(volatile versal_uart *regs, uint32_t ints) { regs->uartimsc |= ints; } +#endif static void versal_uart_intr_disable(volatile versal_uart *regs, uint32_t ints) { @@ -72,6 +73,7 @@ static void versal_uart_intr_disableall(volatile versal_uart *regs) versal_uart_intr_disable(regs, versal_uart_intr_all()); } +#ifdef VERSAL_CONSOLE_USE_INTERRUPTS static bool versal_uart_flags_clear(volatile versal_uart *regs, uint32_t flags) { return (regs->uartfr & flags) == 0; -- cgit v1.2.3