]> git.baikalelectronics.ru Git - uboot.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)
commit731707bf0403365f2aafa576eadd1318e56bb64a
tree4ee3986080112f2ebe3827ab249756836131cd17
parent9d13db1044682c8a008c99f5c0566fdd53f195cb
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