drivers: serial: stm32: Support for parity in DTS for STM32 uart.

Add support for devicetree property 'parity' for stm32 serial devices.

Signed-off-by: Pauli Salmenrinne <susundberg@gmail.com>
This commit is contained in:
Pauli Salmenrinne 2020-03-18 13:40:21 +02:00 committed by Kumar Gala
commit 30003ffb86
5 changed files with 48 additions and 4 deletions

View file

@ -19,6 +19,8 @@ struct uart_stm32_config {
struct stm32_pclken pclken;
/* initial hardware flow control, 1 for RTS/CTS */
bool hw_flow_control;
/* initial parity, 0 for none, 1 for odd, 2 for even */
int parity;
};
/* driver data */