forked from Mirrors/opensbi
lib: utils: Add Implementation ID and Version as RPMI MPXY attributes
The latest frozen RPMI spec has added Implementation ID and Implementation Version as message protocol specific mpxy attributes. Add support for these. Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250618053854.2577299-1-rpathak@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -523,6 +523,12 @@ static int rpmi_shmem_mbox_get_attribute(struct mbox_chan *chan,
|
||||
case RPMI_CHANNEL_ATTR_SERVICEGROUP_VERSION:
|
||||
*((u32 *)out_value) = srvgrp_chan->servicegroup_version;
|
||||
break;
|
||||
case RPMI_CHANNEL_ATTR_IMPL_ID:
|
||||
*((u32 *)out_value) = mctl->impl_id;
|
||||
break;
|
||||
case RPMI_CHANNEL_ATTR_IMPL_VERSION:
|
||||
*((u32 *)out_value) = mctl->impl_version;
|
||||
break;
|
||||
default:
|
||||
return SBI_ENOTSUPP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user