serial: Add a debug console using the RISC-V SBI interface
authorSamuel Holland <samuel@sholland.org>
Sun, 12 Sep 2021 15:56:09 +0000 (10:56 -0500)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 7 Oct 2021 08:08:23 +0000 (16:08 +0800)
commit41f7be733444b9221c828ee9c7c22cddfac5a28c
treec1c7d9166ae8d2ede7fa861d08b56be6ef459951
parent425c08faa8a2d6af5d9c1d83a97572f6401137bf
serial: Add a debug console using the RISC-V SBI interface

The RISC-V SBI interface v0.1 provides a function for printing a
character to the console. Even though SBI v0.1 functions are deprecated,
the SBI console is quite useful for early debugging, because it works
without any dcache, memory, or MMIO access in S mode.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
drivers/serial/Makefile
drivers/serial/serial_sbi.c [new file with mode: 0644]