]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: stm32: Wait TC bit before performing initialization
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 31 May 2023 06:01:30 +0000 (08:01 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:29:29 +0000 (11:29 +0200)
commitb4dbc5d65a67456db9cfe874d123e1c87860301d
tree7ad910087de646219df5e2a460ae0ecebc888acc
parent6d9f86571d10309f00dc9a7f3d8b9882cfd23ce4
serial: stm32: Wait TC bit before performing initialization

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@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/serial/serial_stm32.c
drivers/serial/serial_stm32.h