summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2021-07-07 16:22:41 +0800
committerAnup Patel <[email protected]>2021-07-11 14:13:32 +0530
commitb88b3661d43760fbc06bc83de2c5b204a2bb03dd (patch)
tree5760e7f5e3fed5d078b094138b78f75a9c50b471 /include
parentdcb756b01ac3b9d9bf56c125b17f4c80ee31a35b (diff)
firmware: Define a macro for version of struct fw_dynamic_info
Avoid using a magic number, instead use a macro for the version of struct fw_dynamic_info. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/fw_dynamic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi/fw_dynamic.h b/include/sbi/fw_dynamic.h
index 25c0eb88..a07266ef 100644
--- a/include/sbi/fw_dynamic.h
+++ b/include/sbi/fw_dynamic.h
@@ -31,7 +31,8 @@
#define FW_DYNAMIC_INFO_MAGIC_VALUE 0x4942534f
/** Maximum supported info version */
-#define FW_DYNAMIC_INFO_VERSION_MAX 0x2
+#define FW_DYNAMIC_INFO_VERSION_2 0x2
+#define FW_DYNAMIC_INFO_VERSION_MAX FW_DYNAMIC_INFO_VERSION_2
/** Possible next mode values */
#define FW_DYNAMIC_INFO_NEXT_MODE_U 0x0