diff options
author | Simon Goldschmidt | 2018-08-13 09:33:47 +0200 |
---|---|---|
committer | Marek Vasut | 2018-08-13 15:29:54 +0200 |
commit | c0b4fc1a1bb20cccba48e9b58c974102389ad2d0 (patch) | |
tree | 90a8f93ddb0f12424c4db61c9d6fcdc6a7635c31 /arch | |
parent | 20905f5fa60bffc5c929e573b93b4d9b9855cc61 (diff) |
arm: socfpga: cyclone5: handle debug uart
If CONFIG_DEBUG_UART is enabled, correctly initialize
the debug uart before console is initialized to debug
early boot problems in SPL.
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-socfpga/spl_gen5.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c index 0d5526656d8..0e685f6ee5e 100644 --- a/arch/arm/mach-socfpga/spl_gen5.c +++ b/arch/arm/mach-socfpga/spl_gen5.c @@ -20,6 +20,7 @@ #include <asm/arch/scu.h> #include <asm/arch/nic301.h> #include <asm/sections.h> +#include <debug_uart.h> #include <fdtdec.h> #include <watchdog.h> @@ -153,6 +154,11 @@ void board_init_f(ulong dummy) /* unfreeze / thaw all IO banks */ sys_mgr_frzctrl_thaw_req(); +#ifdef CONFIG_DEBUG_UART + socfpga_per_reset(SOCFPGA_RESET(UART0), 0); + debug_uart_init(); +#endif + ret = spl_early_init(); if (ret) { debug("spl_early_init() failed: %d\n", ret); |