[PATCH] aarch64/zynqmp: Use IRQs for management console

Kinsey Moore kinsey.moore at oarcorp.com
Thu Jun 22 20:45:32 UTC 2023


Swap the zynqmp management console to interrupt-driven operation to
avoid losing data in under-polled situations.
---
 bsps/aarch64/xilinx-zynqmp/console/console.c | 2 +-
 bsps/aarch64/xilinx-zynqmp/include/bsp.h     | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsps/aarch64/xilinx-zynqmp/console/console.c b/bsps/aarch64/xilinx-zynqmp/console/console.c
index 5fa8e5c93d..0b62893e67 100644
--- a/bsps/aarch64/xilinx-zynqmp/console/console.c
+++ b/bsps/aarch64/xilinx-zynqmp/console/console.c
@@ -225,7 +225,7 @@ rtems_status_code console_initialize(
   if ( zynqmp_mgmt_uart_context.port != 0 ) {
     rtems_termios_device_install(
       "/dev/ttyMGMT0",
-      &ns16550_handler_polled,
+      &ns16550_handler_interrupt,
       NULL,
       &zynqmp_mgmt_uart_context.base
     );
diff --git a/bsps/aarch64/xilinx-zynqmp/include/bsp.h b/bsps/aarch64/xilinx-zynqmp/include/bsp.h
index 572963af4c..0ccca8b196 100644
--- a/bsps/aarch64/xilinx-zynqmp/include/bsp.h
+++ b/bsps/aarch64/xilinx-zynqmp/include/bsp.h
@@ -45,6 +45,8 @@
 
 #include <bspopts.h>
 
+#define BSP_FEATURE_IRQ_EXTENSION
+
 #ifndef ASM
 
 #include <bsp/default-initial-extension.h>
-- 
2.30.2



More information about the devel mailing list