From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Wed, 6 Mar 2024 14:48:52 +0000 (+0100)
Subject: cmd: sbi: formatting PolarFire Hart Software Services version
X-Git-Tag: v2025.01-rc5-pxa1908~622^2~2
X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B?a=commitdiff_plain;h=3a223ff63c0699e3ab977b41fa8e94ab07aa11a5;p=u-boot.git

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>
---

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index 87f7966f06..bd9d9c4765 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;