[U-Boot] [PATCH v3 1/4] dm: serial: Replace setparity by setconfig

Simon Glass sjg at chromium.org
Wed Aug 8 09:55:40 UTC 2018


On 3 August 2018 at 07:07, Patrice Chotard <patrice.chotard at 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 at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at 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 at chromium.org>


More information about the U-Boot mailing list