Add SocGetSvr API to get the System Version Register(SVR) Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
@@ -66,6 +66,20 @@ SocGetClock (
return ReturnValue;
}
+/**
+ 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
**/