]> git.dujemihanovic.xyz Git - u-boot.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)
commitcfb31e0b9e23809fc3733b733b20b3443e15c704
tree2671dc0d6d62e88bf8de5b2a42750c2562d284d8
parentca7e93fa9f6c417a2d260440ff4c0aaded259989
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