[PATCH] bsps/xilinx-zynq: Init debug console only once

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 28 14:19:22 UTC 2022


Initialize the debug console only once during early system initialization.
---
 bsps/arm/xilinx-zynq/console/debug-console.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/bsps/arm/xilinx-zynq/console/debug-console.c b/bsps/arm/xilinx-zynq/console/debug-console.c
index 0e9b756f30..1423708bb7 100644
--- a/bsps/arm/xilinx-zynq/console/debug-console.c
+++ b/bsps/arm/xilinx-zynq/console/debug-console.c
@@ -52,10 +52,7 @@ static void zynq_debug_console_init(void)
 
 static void zynq_debug_console_early_init(char c)
 {
-  rtems_termios_device_context *base =
-    &zynq_uart_instances[BSP_CONSOLE_MINOR].base;
-
-  zynq_uart_initialize(base);
+  zynq_debug_console_init();
   zynq_debug_console_out(c);
 }
 
-- 
2.35.3



More information about the devel mailing list