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>
This commit is contained in:
committed by
Leo Yu-Chi Liang
parent
4de6d37fa2
commit
3a223ff63c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user