From: Wasim Khan <wasim.k...@nxp.com>

Define macros to retrieve System Version Register(SVR)
related information

Signed-off-by: Wasim Khan <wasim.k...@nxp.com>
---
 Silicon/NXP/Chassis2/Include/Chassis.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Silicon/NXP/Chassis2/Include/Chassis.h 
b/Silicon/NXP/Chassis2/Include/Chassis.h
index e5edd80134a4..7e8bf224884b 100644
--- a/Silicon/NXP/Chassis2/Include/Chassis.h
+++ b/Silicon/NXP/Chassis2/Include/Chassis.h
@@ -12,6 +12,10 @@
 
 #define  NXP_LAYERSCAPE_CHASSIS2_DCFG_ADDRESS  0x1EE0000
 
+#define SVR_SOC_VER(svr)            (((svr) >> 8) & 0xFFFFFE)
+#define SVR_MAJOR(svr)              (((svr) >> 4) & 0xf)
+#define SVR_MINOR(svr)              (((svr) >> 0) & 0xf)
+
 /* SMMU Defintions */
 #define SMMU_BASE_ADDR             0x09000000
 #define SMMU_REG_SCR0              (SMMU_BASE_ADDR + 0x0)
-- 
2.7.4


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#61067): https://edk2.groups.io/g/devel/message/61067
Mute This Topic: https://groups.io/mt/74793024/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to