]> git.baikalelectronics.ru Git - uboot.git/commit
cmd/sbi: add missing SBI information
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 17 Mar 2022 06:36:15 +0000 (07:36 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 6 Apr 2022 01:40:05 +0000 (09:40 +0800)
commitaf6843bdbd0fa32231ecc002cb8c50ed7b723124
tree2671dc0d6d62e88bf8de5b2a42750c2562d284d8
parent3e1dee9e01d7d1683f8286205c355e935409258d
cmd/sbi: add missing SBI information

Let the sbi command display:

* machine vendor ID
* machine architecture ID
* machine implementation ID

With this patch the output for the HiFive Unmatched looks like

    => sbi
    SBI 0.3
    OpenSBI 0.9
    Machine:
      Vendor ID 489
      Architecture ID 8000000000000007
      Implementation ID 20181004
    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
      System Reset Extension

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
cmd/riscv/sbi.c