]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: serial_stm32: Add reset support
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 4 Dec 2018 13:11:36 +0000 (14:11 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 15 Dec 2018 16:49:56 +0000 (11:49 -0500)
commitf828fa4d822b61de624a6e8db288d3778a69ee7a
tree4ee3986080112f2ebe3827ab249756836131cd17
parent655c6d997d47838229ed2d31a7338dcdffea886a
serial: serial_stm32: Add reset support

In some cases, UART is configured by early boot stage.
To be sure of the initial state of UART and to avoid
spurious chars on console, reset the serial block before
configuring it.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_stm32.c