serial: stm32: add fifo support
authorGerald Baeza <gerald.baeza@st.com>
Thu, 13 Jul 2017 15:08:30 +0000 (15:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:32:32 +0000 (07:32 -0700)
commit351a762aa8051960695a0f131731518e93b957fa
tree6279043932331bad9e8382d1a4a5c744e5fa23eb
parent270e5a74fe4c78a857d65f1a129d3d77a36b8d58
serial: stm32: add fifo support

This patch adds fifo mode support for rx and tx.

A fifo configuration is set in each port structure.
Add has_fifo flag to usart configuration to use fifo only when possible.

Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h