]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commite6e07a47b8d6b2d4b0bcbacbaecec6139b61a303
treec1c7d9166ae8d2ede7fa861d08b56be6ef459951
parent270e81b39864546f564fe6894f0d63cf1739672a
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]