30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From c9336b68556d0af79bbceeaf19abb21ec417a0a9 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Sun, 21 Oct 2018 12:43:58 -0500
|
|
Subject: [PATCH 4/5] [DO NOT MERGE] allwinner: Enable UART at runtime
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
Change-Id: Id186d6001fa6c188589bd9e9582c549000c1a423
|
|
---
|
|
plat/allwinner/common/sunxi_bl31_setup.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/plat/allwinner/common/sunxi_bl31_setup.c b/plat/allwinner/common/sunxi_bl31_setup.c
|
|
index fe511d02c..45023ad81 100644
|
|
--- a/plat/allwinner/common/sunxi_bl31_setup.c
|
|
+++ b/plat/allwinner/common/sunxi_bl31_setup.c
|
|
@@ -82,6 +82,10 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|
/* Initialize the debug console as soon as possible */
|
|
console_16550_register(SUNXI_UART0_BASE, SUNXI_UART0_CLK_IN_HZ,
|
|
SUNXI_UART0_BAUDRATE, &console);
|
|
+ console_set_scope(&console,
|
|
+ CONSOLE_FLAG_BOOT |
|
|
+ CONSOLE_FLAG_RUNTIME |
|
|
+ CONSOLE_FLAG_CRASH);
|
|
|
|
#ifdef BL32_BASE
|
|
/* Populate entry point information for BL32 */
|
|
--
|
|
2.28.0
|
|
|