summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-08 18:15:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-12 11:21:49 +0100
commit3ab3ca1317974b53a488072d5212d2cdf589ae60 (patch)
tree84e76df68dd5a307b4fcbdfa2979371d155b5a47 /common
parent1f66cbe01759930c27497eec24d28adca6d6bc94 (diff)
downloadbarebox-3ab3ca1317974b53a488072d5212d2cdf589ae60.tar.gz
barebox-3ab3ca1317974b53a488072d5212d2cdf589ae60.tar.xz
RISC-V: virt: riscvemu: add HTIF DEBUG_LL support
Default console of riscvemu is available Virt I/O console and as a HTIF blocking character device. We already support Virt I/O console, but the HTIF is easier to support for very early low level debugging. Add DEBUG_LL support to facilitate using it. Note: when using a framebuffer, riscvemu doesn't allocate a default console, so barebox calling into HTIF will segfault the emulator. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220108171524.587144-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 814b820e2a..de4f26f3c2 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1401,6 +1401,15 @@ config DEBUG_RISCV_VIRT
depends on SOC_VIRT
select DEBUG_LL_NS16550
+config DEBUG_RISCVEMU_HTIF
+ bool "riscvemu HTIF port"
+ depends on SOC_VIRT
+ help
+ When run without graphics support, tinyemu will expose access
+ to the Virt I/O console as HTIF blocking console device as well.
+ This is useful for low level debugging before Virt I/O DMA is
+ initialized.
+
config DEBUG_SIFIVE
bool "SiFive serial0 port"
depends on SOC_SIFIVE