[U-Boot] [PATCH 1/2] serial: add skipping init option

Jun Nie jun.nie at linaro.org
Fri Mar 22 07:20:03 UTC 2019


add skipping init option to avoid corrupt data in console
if serial is already initilized when u-boot start its excution.

Signed-off-by: Jun Nie <jun.nie at linaro.org>
---
 drivers/serial/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 887cd68..7aeaffb 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -459,6 +459,12 @@ config DEBUG_UART_NS16550_CHECK_ENABLED
 	  Note that this does not work for every ns16550-compatible UART and
 	  so has to be enabled carefully or you might notice lost characters.
 
+config UART_SKIP_INIT
+       bool "Skip UART initialization"
+       help
+         Select this if the UART you want to use for output is already
+         initialized by the time U-Boot starts its execution.
+
 config ALTERA_JTAG_UART
 	bool "Altera JTAG UART support"
 	depends on DM_SERIAL
-- 
2.7.4



More information about the U-Boot mailing list