diff options
author | Abner Chang <abner.chang@hpe.com> | 2019-06-29 11:18:05 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-06-29 16:56:26 +0300 |
commit | 08b196956d684678e930850bc1b54d602dfff555 (patch) | |
tree | eb14144504deb6e793fac1ef24fc07e67eec62be /platform/sifive | |
parent | fa6fd6bf86e97140cf3c991f605cf04a0b24ab50 (diff) | |
download | opensbi-08b196956d684678e930850bc1b54d602dfff555.tar.xz |
include: Add version info to struct sbi_platform
Add version control of sbi_platform structure
- Add opensbi_version, this gives information of opensbi revision on
which the sbi_platform table was created.
- Add platform_version field in sbi_platform structure for platform
level version control.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/sifive')
-rw-r--r-- | platform/sifive/fu540/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index e67f20a..46b48b8 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -209,6 +209,8 @@ const struct sbi_platform_operations platform_ops = { }; const struct sbi_platform platform = { + .opensbi_version = OPENSBI_VERSION, + .platform_version = SBI_PLATFORM_VERSION(0x0, 0x01), .name = "SiFive Freedom U540", .features = SBI_PLATFORM_DEFAULT_FEATURES, .hart_count = FU540_HART_COUNT, |