[PATCH 1/2] serial: stm32: Wait TC bit before performing initialization

Patrick DELAUNAY patrick.delaunay at foss.st.com
Fri Jun 16 11:02:36 CEST 2023


Hi,

On 5/31/23 08:01, Patrice Chotard wrote:
> In case there is still chars from previous bootstage to transmit, wait
> for TC (Transmission Complete) bit to be set which ensure that the last
> data written in the USART_TDR has been transmitted out of the shift
> register.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>
>   drivers/serial/serial_stm32.c | 15 +++++++++++++++
>   drivers/serial/serial_stm32.h |  1 +
>   2 files changed, 16 insertions(+)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick




More information about the U-Boot mailing list