]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: sbi: formatting PolarFire Hart Software Services version
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 6 Mar 2024 14:48:52 +0000 (15:48 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 12 Mar 2024 06:36:13 +0000 (14:36 +0800)
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>
cmd/riscv/sbi.c

index 87f7966f06bb64a725922f5a1edeefe2bd5dabdc..bd9d9c4765da3275251c7360ec74a171b054e1b9 100644 (file)
@@ -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;