[PATCH 31/34] x86: coral: Allow init of debug UART in U-Boot proper

Simon Glass sjg at chromium.org
Sat Mar 27 04:18:05 CET 2021


At present the debug UART is only set up in SPL, on the assumption that
the boot flow will always pass through there. When booting from coreboot,
SPL is not used, so the debug UART is not available.

Move the code into a common place so that it can be used in U-Boot proper
also. Add the required init to start_from_spl.S as well.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/x86/cpu/apollolake/cpu_common.c        | 60 +++++++++++++++++++++
 arch/x86/cpu/apollolake/cpu_spl.c           | 58 --------------------
 arch/x86/cpu/start_from_spl.S               |  4 ++
 arch/x86/include/asm/arch-apollolake/uart.h |  1 +
 4 files changed, 65 insertions(+), 58 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list