
8 Aug
2018
8 Aug
'18
11:55 a.m.
On 3 August 2018 at 07:07, Patrice Chotard patrice.chotard@st.com wrote:
Replace setparity by more generic setconfig ops to allow uart parity, bits word length and stop bits number change.
Adds SERIAL_GET_PARITY/BITS/STOP macros.
Signed-off-by: Patrick Delaunay patrick.delaunay@st.com Signed-off-by: Patrice Chotard patrice.chotard@st.com
Changes in v3:
- Update SERIAL_PAR_MASK definition
- Don't remove setparity ops declaration in patch 1 to not break bissectability
Changes in v2:
- Update SERIAL_BITS_MASK and SERIAL_STOP_MASK
- Update serial_setconfig prototype
drivers/serial/serial-uclass.c | 16 ++++++++++++++ include/serial.h | 47 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org