From: Wasim Khan <wasim.khan@nxp.com>
Define macros to retrieve System Version Register(SVR)
related information
Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
---
Silicon/NXP/Chassis3V2/Include/Chassis.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Silicon/NXP/Chassis3V2/Include/Chassis.h b/Silicon/NXP/Chassis3V2/Include/Chassis.h
index cbc6b20e244d..c302e5c9a719 100644
--- a/Silicon/NXP/Chassis3V2/Include/Chassis.h
+++ b/Silicon/NXP/Chassis3V2/Include/Chassis.h
@@ -12,6 +12,10 @@
#define NXP_LAYERSCAPE_CHASSIS3V2_DCFG_ADDRESS 0x1E00000
+#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFE)
+#define SVR_MAJOR(svr) (((svr) >> 4) & 0xf)
+#define SVR_MINOR(svr) (((svr) >> 0) & 0xf)
+
/**
The Device Configuration Unit provides general purpose configuration and
status for the device. These registers only support 32-bit accesses.
--
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#61052): https://edk2.groups.io/g/devel/message/61052
Mute This Topic: https://groups.io/mt/74793009/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-