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

Add SocGetSvr API to get the System Version Register(SVR)

Signed-off-by: Wasim Khan <wasim.k...@nxp.com>
---
 Silicon/NXP/LX2160A/Library/SocLib/SocLib.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c 
b/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c
index 6f774eb7dc6c..3939afb2fb0c 100644
--- a/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c
+++ b/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c
@@ -67,6 +67,20 @@ SocGetClock (
 }
 
 /**
+  Function to get SoC's System Version Register(SVR)
+ **/
+UINT32
+SocGetSvr (
+  VOID
+  )
+{
+  LX2160A_DEVICE_CONFIG  *DeviceConfig;
+
+  DeviceConfig = (LX2160A_DEVICE_CONFIG  *)LX2160A_DCFG_ADDRESS;
+  return DcfgRead32 ((UINTN)&DeviceConfig->Svr);
+}
+
+/**
   Function to initialize SoC specific constructs
  **/
 VOID
-- 
2.7.4


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

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

Reply via email to