]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: baytrail: Fix boot hang with a debug build
authorBin Meng <bmeng.cn@gmail.com>
Thu, 1 Jun 2017 10:41:13 +0000 (03:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 5 Jun 2017 00:55:22 +0000 (08:55 +0800)
It was observed that when -DDEBUG is used to generate a debug build,
U-Boot does not boot on MinnowMax board. A workaround is to disable
CONFIG_DEBUG_UART. The real issue is that in order to have the debug
uart to work, BayTrail SoC needs to be configured so that its internal
uart is available to be used as the debug uart.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/baytrail/Kconfig
arch/x86/cpu/baytrail/early_uart.c

index 1c8ac370b30b7920ebb38bc13abd3f97411ca300..6c851864861bcb6eadfb9a44ee3adb27b91225d8 100644 (file)
@@ -17,4 +17,8 @@ config INTERNAL_UART
          reason, it is recommended that the UART port be used for
          debug purposes only, eg: U-Boot console.
 
+config DEBUG_UART
+       bool
+       select DEBUG_UART_BOARD_INIT
+
 endif
index 471d592b49fddb45ed215bcf177311fdcec73a13..afab21f1dd0887901aa14174226fcc7080a4276d 100644 (file)
@@ -80,3 +80,8 @@ int setup_internal_uart(int enable)
 
        return 0;
 }
+
+void board_debug_uart_init(void)
+{
+       setup_internal_uart(1);
+}