Commit 445614cc authored by Tom Rini's avatar Tom Rini

Revert "Revert "stm32f4: fix serial output""

Due to a misunderstanding, in 698a12be we reverted changes that we in
fact wanted to keep.  So lets fix that mistake and bring the code back
to how it should have been.

This reverts commit 698a12be.
Signed-off-by: 's avatarTom Rini <trini@konsulko.com>
parent 2e2ce6c0
......@@ -128,6 +128,9 @@ static void stm32_serial_putc(const char c)
struct stm32_serial *usart =
(struct stm32_serial *)usart_base[USART_PORT];
if (c == '\n')
stm32_serial_putc('\r');
while ((readl(&usart->sr) & USART_SR_FLAG_TXE) == 0)
;
writel(c, &usart->dr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment