[PATCH v1 3/3] bsps/xilinx-zynqmp: Avoid constant UART reinit
Kinsey Moore
kinsey.moore at oarcorp.com
Fri Mar 12 16:14:04 UTC 2021
Constantly reinitializing the Cadence UART on every character output
causes data corruption/loss. Only initialize the UART once for early
output.
---
bsps/aarch64/xilinx-zynqmp/console/console.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsps/aarch64/xilinx-zynqmp/console/console.c b/bsps/aarch64/xilinx-zynqmp/console/console.c
index 84e158d3f6..d1948f1a0c 100644
--- a/bsps/aarch64/xilinx-zynqmp/console/console.c
+++ b/bsps/aarch64/xilinx-zynqmp/console/console.c
@@ -112,6 +112,7 @@ static void zynqmp_debug_console_early_init(char c)
&zynqmp_uart_instances[BSP_CONSOLE_MINOR].base;
zynq_uart_initialize(base);
+ BSP_output_char = zynqmp_debug_console_out;
zynqmp_debug_console_out(c);
}
--
2.20.1
More information about the devel
mailing list