aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBin Meng2023-07-23 12:40:38 +0800
committerLeo Yu-Chi Liang2023-08-02 16:32:36 +0800
commit608b80b5b855d0c55a5fa7de11c1338bf2541855 (patch)
tree6355f6c5c8def81ecac82bd6dbaa6e641e956df9 /board
parent6b343ab38d9665e5062134549323f998c60c35d6 (diff)
riscv: qemu: Enable PRE_CONSOLE_BUFFER
By default the video console only outputs messages after it's ready. Messages before that won't show on the video console, but U-Boot has an option to buffer the console messages before it's ready. Enable this support, and carefully select an address for the buffer. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Rick Chen <rick@andestech.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/emulation/qemu-riscv/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
index 976c350e50b..7220c55350e 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -25,6 +25,10 @@ config SPL_OPENSBI_LOAD_ADDR
hex
default 0x80100000
+config PRE_CON_BUF_ADDR
+ hex
+ default 0x81000000
+
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select GENERIC_RISCV
@@ -71,5 +75,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
imply VIDEO
imply VIDEO_BOCHS
imply SYS_WHITE_ON_BLACK
+ imply PRE_CONSOLE_BUFFER
endif