summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorPeter Dufault <dufault@hda.com>2021-04-27 13:48:47 -0400
committerVijay Kumar Banerjee <vijay@rtems.org>2021-04-27 16:46:52 -0600
commitf8b91c9503e0a55e0c2855712a6c7c8c0ed3fe41 (patch)
tree8b86655d4039409a7aeee80004a01ee31561a56d /bsps
parentpowerpc/shared/console: Make console baud rate configurable. (diff)
downloadrtems-f8b91c9503e0a55e0c2855712a6c7c8c0ed3fe41.tar.bz2
powerpc/shared/console: "termios" first open sets console baud to 9600
When the PowerPC shared console baud rate starts at anything other than 9600 the termios code will set it to 9600 at the first open.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/powerpc/shared/console/uart.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/powerpc/shared/console/uart.c b/bsps/powerpc/shared/console/uart.c
index 41db52f8ff..83c0e87baa 100644
--- a/bsps/powerpc/shared/console/uart.c
+++ b/bsps/powerpc/shared/console/uart.c
@@ -536,6 +536,10 @@ BSP_uart_termios_set(int uart, void *p)
uart_data[uart].ioMode = ttyp->device.outputUsesInterrupts;
+ /* Convert from the baud number to the "speed_t" termios setting. */
+ ttyp->termios.c_ispeed = ttyp->termios.c_ospeed =
+ rtems_termios_number_to_baud(uart_data[uart].baud);
+
return;
}