
The debug_uart function is useful for debugging early init problems. While blackfin has its own means of doing this, it would be better to support the standard approach. Add a call to init the debug UART early in start-up.
Signed-off-by: Simon Glass sjg@chromium.org ---
arch/blackfin/cpu/cpu.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/blackfin/cpu/cpu.c b/arch/blackfin/cpu/cpu.c index d039c4f..d3f8762 100644 --- a/arch/blackfin/cpu/cpu.c +++ b/arch/blackfin/cpu/cpu.c @@ -11,6 +11,7 @@
#include <common.h> #include <command.h> +#include <debug_uart.h> #include <libfdt.h> #include <serial.h> #include <version.h> @@ -297,6 +298,10 @@ void cpu_init_f(ulong bootflag, ulong loaded_from_ldr) memcpy(&_sdata_l1, &_data_l1_lma, (unsigned long)_data_l1_len); }
+#ifdef CONFIG_DEBUG_UART + debug_uart_init(); +#endif + /* * Blackfin uses the BSS section before relcation. This is where the * device tree is located, so we must relocate it before any BSS