From: Patrice Chotard <patrice.chotard@st.com>
Date: Thu, 20 Sep 2018 13:14:15 +0000 (+0200)
Subject: serial: serial_stm32: Enable uart FIFO for STM32F7xx SoCs
X-Git-Tag: v2025.01-rc5-pxa1908~3453
X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B?a=commitdiff_plain;h=95a077217b06cd8e4ad8cacb526bf430185dc0a3;p=u-boot.git

serial: serial_stm32: Enable uart FIFO for STM32F7xx SoCs

Since commit 7b3b74d32127 ("serial: serial_stm32: Enable overrun")
on STM32F7xx based boards, the first lines of serial output are
missing during boot (we no more see the U-Boot release version,
board model and DRAM size).

By enabling the uart FIFO on STM32F7, the complete U-boot log
can be sent correctly.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

diff --git a/drivers/serial/serial_stm32.h b/drivers/serial/serial_stm32.h
index ccafa31219..5549f8c536 100644
--- a/drivers/serial/serial_stm32.h
+++ b/drivers/serial/serial_stm32.h
@@ -37,7 +37,7 @@ struct stm32_uart_info stm32f4_info = {
 struct stm32_uart_info stm32f7_info = {
 	.uart_enable_bit = 0,
 	.stm32f4 = false,
-	.has_fifo = false,
+	.has_fifo = true,
 };
 
 struct stm32_uart_info stm32h7_info = {