mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
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>
This commit is contained in:
parent
20905f5fa6
commit
c0b4fc1a1b
@ -20,6 +20,7 @@
|
|||||||
#include <asm/arch/scu.h>
|
#include <asm/arch/scu.h>
|
||||||
#include <asm/arch/nic301.h>
|
#include <asm/arch/nic301.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
|
#include <debug_uart.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
|
|
||||||
@ -153,6 +154,11 @@ void board_init_f(ulong dummy)
|
|||||||
/* unfreeze / thaw all IO banks */
|
/* unfreeze / thaw all IO banks */
|
||||||
sys_mgr_frzctrl_thaw_req();
|
sys_mgr_frzctrl_thaw_req();
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_UART
|
||||||
|
socfpga_per_reset(SOCFPGA_RESET(UART0), 0);
|
||||||
|
debug_uart_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = spl_early_init();
|
ret = spl_early_init();
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("spl_early_init() failed: %d\n", ret);
|
debug("spl_early_init() failed: %d\n", ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user