From: Simon Glass Date: Wed, 14 Dec 2016 20:27:59 -0700 Subject: [U-Boot] [PATCH 28/29] blackfin: Set up the debug UART if enabled In-Reply-To: <1481772480-29544-1-git-send-email-sjg@chromium.org> References: <1481772480-29544-1-git-send-email-sjg@chromium.org> Message-ID: <1481772480-29544-29-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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 #include +#include #include #include #include @@ -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 -- 2.8.0.rc3.226.g39d4020