aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt2021-01-19 19:30:04 +0100
committerHeinrich Schuchardt2021-01-25 01:15:33 +0100
commit9c6d050966be910586aba358a8c63364afe37e03 (patch)
tree3a1590d2192e34496a8ccec9aecbcde5e92775ba
parent69d29fe1c0aeb33f42633a75555d30b7921c02aa (diff)
doc: document sbi command
Add a man-page for the sbi command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--MAINTAINERS1
-rw-r--r--doc/usage/index.rst1
-rw-r--r--doc/usage/sbi.rst49
3 files changed, 51 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index a7a62dff814..e7a6dd9ce2d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -951,6 +951,7 @@ S: Maintained
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-riscv.git
F: arch/riscv/
F: cmd/riscv/
+F: doc/usage/sbi.rst
F: drivers/timer/andes_plmt_timer.c
F: drivers/timer/sifive_clint_timer.c
F: tools/prelink-riscv.c
diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 6def2507663..eedcdb110be 100644
--- a/doc/usage/index.rst
+++ b/doc/usage/index.rst
@@ -19,3 +19,4 @@ Shell commands
button
mbr
pstore
+ sbi
diff --git a/doc/usage/sbi.rst b/doc/usage/sbi.rst
new file mode 100644
index 00000000000..96d8861057f
--- /dev/null
+++ b/doc/usage/sbi.rst
@@ -0,0 +1,49 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+sbi command
+===========
+
+Synopsis
+--------
+
+::
+
+ sbi
+
+Description
+-----------
+
+The sbi command is used to display information about the SBI (Supervisor Binary
+Interface) implementation on RISC-V systems.
+
+The output may look like:
+
+::
+
+ => sbi
+ SBI 0.2
+ OpenSBI
+ Extensions:
+ sbi_set_timer
+ sbi_console_putchar
+ sbi_console_getchar
+ sbi_clear_ipi
+ sbi_send_ipi
+ sbi_remote_fence_i
+ sbi_remote_sfence_vma
+ sbi_remote_sfence_vma_asid
+ sbi_shutdown
+ SBI Base Functionality
+ Timer Extension
+ IPI Extension
+ RFENCE Extension
+ Hart State Management Extension
+
+The first line indicates the version of the RISC-V SBI specification.
+The second line indicates the implementation.
+The further lines enumerate the implemented extensions.
+
+Configuration
+-------------
+
+To use the sbi command you must specify CONFIG_CMD_SBI=y.