diff mbox series

[1/1] cmd: sbi: formatting PolarFire Hart Software Services version

Message ID 20240306152149.180561-1-heinrich.schuchardt@canonical.com
State Accepted
Commit 3a223ff63c0699e3ab977b41fa8e94ab07aa11a5
Delegated to: Andes
Headers show
Series [1/1] cmd: sbi: formatting PolarFire Hart Software Services version | expand

Commit Message

Heinrich Schuchardt March 6, 2024, 3:21 p.m. UTC
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>
---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index dec7dd651d6..628ef3a591c 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -80,6 +80,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;