]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: qemu: Enable PRE_CONSOLE_BUFFER
authorBin Meng <bmeng@tinylab.org>
Sun, 23 Jul 2023 04:40:38 +0000 (12:40 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 2 Aug 2023 08:32:36 +0000 (16:32 +0800)
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>
board/emulation/qemu-riscv/Kconfig

index 976c350e50be62d226c68f99d0b2b7b8fdbd691c..7220c55350e675c1437c35c1476bab2c23046930 100644 (file)
@@ -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