From afcf36de70aa2503f725f80fa2ad9b1c15bea20a Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 9 Oct 2023 14:05:34 +0900 Subject: [PATCH] rpi: advertise correct default speed of miniuart Does not implement setting the baud rate yet, but correctly advertises that we set it to 921600 by default. --- kernel/arch/aarch64/rpi_miniuart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/arch/aarch64/rpi_miniuart.c b/kernel/arch/aarch64/rpi_miniuart.c index b39677b6..4707fa8f 100644 --- a/kernel/arch/aarch64/rpi_miniuart.c +++ b/kernel/arch/aarch64/rpi_miniuart.c @@ -128,6 +128,7 @@ static void miniuart_thread(void * arg) { pty->slave->gid = 2; /* dialout group */ pty->slave->mask = 0660; pty->_private = arg; + pty->tios.c_cflag = CREAD | CS8 | B921600; vfs_mount("/dev/ttyUART1", pty->slave); /* Enable interrupts */