rockchip: rk3399: spl: ensure that debug_uart_init is called
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:48:31 +0000 (16:48 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:59:14 +0000 (16:59 +0100)
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@theobroma-systems.com>
arch/arm/mach-rockchip/rk3399-board-spl.c

index 906aaf4624143c490eec650517f82767b532e676..ccc136f388193c36a74eb68213dd2d499918525c 100644 (file)
@@ -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