diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-03-06 15:48:52 +0100 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-03-12 14:36:13 +0800 |
commit | 3a223ff63c0699e3ab977b41fa8e94ab07aa11a5 (patch) | |
tree | 0303b5fee0050f3591c51e251fd8adeb36dd78b4 | |
parent | 4de6d37fa289a4da32a395e5cc97a6649b948144 (diff) | |
download | u-boot-3a223ff63c0699e3ab977b41fa8e94ab07aa11a5.zip u-boot-3a223ff63c0699e3ab977b41fa8e94ab07aa11a5.tar.gz u-boot-3a223ff63c0699e3ab977b41fa8e94ab07aa11a5.tar.bz2 |
cmd: sbi: formatting PolarFire Hart Software Services version
The 'PolarFire Hart Software Services' SBI implementation returns the
version of the incorporated OpenSBI. Format the number accordingly.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
-rw-r--r-- | cmd/riscv/sbi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 87f7966..bd9d9c4 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -81,6 +81,7 @@ static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc, break; switch (impl_id) { case 1: /* OpenSBI */ + case 8: /* PolarFire Hart Software Services */ printf("%ld.%ld", vers >> 16, vers & 0xffff); break; |