diff options
author | Simon Glass <sjg@chromium.org> | 2017-07-25 14:29:57 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-28 18:02:47 (GMT) |
commit | 9b6b3c1b50bac5a1fe8870c2c19d62c118a79147 (patch) | |
tree | 208e93bc1e494ea6c75848da8727a1b914383aad /arch/arm/mach-tegra/spl.c | |
parent | 0f6507a7e44c189eb20d77732c5114823918eadd (diff) | |
download | u-boot-9b6b3c1b50bac5a1fe8870c2c19d62c118a79147.tar.xz |
tegra: spl: Enable debug UART
Enable the debug UART in SPL to allow early serial output even if the
standard UART does not work (e.g. due to driver model problem).
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/spl.c')
-rw-r--r-- | arch/arm/mach-tegra/spl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/spl.c b/arch/arm/mach-tegra/spl.c index 41c88cb..189b3da 100644 --- a/arch/arm/mach-tegra/spl.c +++ b/arch/arm/mach-tegra/spl.c @@ -7,6 +7,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> +#include <debug_uart.h> #include <spl.h> #include <asm/io.h> @@ -32,6 +33,9 @@ void spl_board_init(void) gpio_early_init_uart(); clock_early_init(); +#ifdef CONFIG_DEBUG_UART + debug_uart_init(); +#endif preloader_console_init(); } |