driver: uart: ns16550: Setting default options
Commit68a235932f
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. Fix68a235932f
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
e337882189
commit
e1589c2278
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue