[PATCH v2 0/2] risc-v: implement DBCN based debug console

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Sep 4 13:24:02 CEST 2023


Currently we only offer an SBI based debug UART for SBI v0.1.
With OpenSBI 1.3 the Debug Console Extension (DBCN) has become available.
This allows us to implement a debug UART in a device independent manor.

v2:
	In the driver check that we are in S-mode.

Heinrich Schuchardt (2):
  risc-v: implement DBCN write byte
  risc-v: implement DBCN based debug console

 arch/riscv/include/asm/sbi.h |  1 +
 arch/riscv/lib/sbi.c         | 16 ++++++++++++++++
 drivers/serial/Kconfig       |  5 ++++-
 drivers/serial/serial_sbi.c  | 20 ++++++++++++++++++++
 4 files changed, 41 insertions(+), 1 deletion(-)

-- 
2.40.1



More information about the U-Boot mailing list