]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: provide command sbi
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 20 Aug 2020 17:43:39 +0000 (19:43 +0200)
committerAndes <uboot@andestech.com>
Tue, 25 Aug 2020 01:34:47 +0000 (09:34 +0800)
commitc92b50a44b95e706b9c0c97544bd7504fe6d36e9
treeabda21707d0a9aa1fbd1529ba89b9820dfb4eb4b
parent27cef4e4a3ba791078534fda1dbeb814bd530ad5
cmd: provide command sbi

Provide a command to display information about the SBI implementation.

The output might 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 command can be used to construct a unit test checking that the
communication with the SEE is working.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>
Tested-by: Pragnesh Patel <pragnesh.patel@openfive.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Tested-by: Rick Chen <rick@andestech.com>
arch/riscv/include/asm/sbi.h
arch/riscv/lib/sbi.c
cmd/Kconfig
cmd/riscv/Makefile
cmd/riscv/sbi.c [new file with mode: 0644]