mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00

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>
25 lines
502 B
C
25 lines
502 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __SBI_VERSION_H__
|
|
#define __SBI_VERSION_H__
|
|
|
|
#define OPENSBI_VERSION_MAJOR 0
|
|
#define OPENSBI_VERSION_MINOR 3
|
|
|
|
/**
|
|
* OpenSBI 32-bit version with:
|
|
* 1. upper 16-bits as major number
|
|
* 2. lower 16-bits as minor number
|
|
*/
|
|
#define OPENSBI_VERSION ((OPENSBI_VERSION_MAJOR << 16) | \
|
|
(OPENSBI_VERSION_MINOR))
|
|
|
|
#endif
|