[PATCH] bsps/xilinx-zynqmp-rpu: Avoid constant UART reinit
Kinsey Moore
kinsey.moore at oarcorp.com
Wed Mar 27 17:34:46 UTC 2024
Constant reinitializations for BSP_output_char causes loss of output
data on QEMU. This change only initializes the UART once.
---
bsps/arm/xilinx-zynqmp-rpu/console/console-config.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsps/arm/xilinx-zynqmp-rpu/console/console-config.c b/bsps/arm/xilinx-zynqmp-rpu/console/console-config.c
index f52e008f2b..67e1e92c62 100644
--- a/bsps/arm/xilinx-zynqmp-rpu/console/console-config.c
+++ b/bsps/arm/xilinx-zynqmp-rpu/console/console-config.c
@@ -108,6 +108,7 @@ static void zynqmp_debug_console_early_init(char c)
zynq_uart_initialize(base);
zynqmp_debug_console_out(c);
+ BSP_output_char = zynqmp_debug_console_out;
}
static int zynqmp_debug_console_in(void)
--
2.39.2
More information about the devel
mailing list