From e1589c2278e80b39822ac8827c4ae0e9a4557361 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Tue, 21 Jan 2020 21:49:46 -0800 Subject: [PATCH] driver: uart: ns16550: Setting default options Commit 68a235932f93c432638d94a641f923f1210e992f changed this driver to not use hard-coded options. The problem was that these options were never being set. This commit just set an initial value that can be changed later. Fix 68a235932f93c432638d94a641f923f1210e992f Signed-off-by: Flavio Ceolin --- drivers/serial/uart_ns16550_port_x.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/serial/uart_ns16550_port_x.h b/drivers/serial/uart_ns16550_port_x.h index 012a7df7e88..103bfaa0b0e 100644 --- a/drivers/serial/uart_ns16550_port_x.h +++ b/drivers/serial/uart_ns16550_port_x.h @@ -32,6 +32,10 @@ static const struct uart_ns16550_device_config uart_ns16550_dev_cfg_@NUM@ = { static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_@NUM@ = { .uart_config.baudrate = DT_UART_NS16550_PORT_@NUM@_BAUD_RATE, + .uart_config.parity = UART_CFG_PARITY_NONE, + .uart_config.stop_bits = UART_CFG_STOP_BITS_1, + .uart_config.data_bits = UART_CFG_DATA_BITS_8, + .uart_config.flow_ctrl = UART_CFG_FLOW_CTRL_NONE, .options = CONFIG_UART_NS16550_PORT_@NUM@_OPTIONS, #ifdef DT_UART_NS16550_PORT_@NUM@_DLF