mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-01-28 01:47:24 +01:00
Revert "Revert "stm32f4: fix serial output""
Due to a misunderstanding, in698a12bwe 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 commit698a12bef9. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
2e2ce6c0c8
commit
445614cc2f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue