[U-Boot] [PATCH 2/2] rockchip: rk3399: spl: ensure that debug_uart_init is called

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Fri Feb 1 15:55:18 UTC 2019


With the latest changes to add support for the Chromebook Bob,
initialisation through debug_uart_init() did no longer get called for
other targets.

Fix this, by moving debug_uart_init() out of the Bob-specific

Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
---

 arch/arm/mach-rockchip/rk3399-board-spl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-rockchip/rk3399-board-spl.c b/arch/arm/mach-rockchip/rk3399-board-spl.c
index 906aaf4..ccc136f 100644
--- a/arch/arm/mach-rockchip/rk3399-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3399-board-spl.c
@@ -185,11 +185,11 @@ void board_init_f(ulong dummy)
 
 #define EARLY_UART
 #ifdef EARLY_UART
+	debug_uart_init();
+
 # ifdef CONFIG_TARGET_CHROMEBOOK_BOB
 	int sum, i;
 
-	debug_uart_init();
-
 	/*
 	 * Add a delay and ensure that the compiler does not optimise this out.
 	 * This is needed since the power rails tail a while to turn on, and
-- 
2.1.4



More information about the U-Boot mailing list