On 3 August 2018 at 07:07, Patrice Chotard <patrice.chot...@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.delau...@st.com>
> Signed-off-by: Patrice Chotard <patrice.chot...@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 <s...@chromium.org>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to