diff options
Diffstat (limited to 'roms/opensbi/include/sbi/sbi_version.h')
-rw-r--r-- | roms/opensbi/include/sbi/sbi_version.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/opensbi/include/sbi/sbi_version.h b/roms/opensbi/include/sbi/sbi_version.h new file mode 100644 index 000000000..3f734fe9d --- /dev/null +++ b/roms/opensbi/include/sbi/sbi_version.h @@ -0,0 +1,24 @@ +/* + * 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 9 + +/** + * 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 |