diff options
| author | gparikh <gparikh@qti.qualcomm.com> | 2026-07-17 05:56:57 +0300 |
|---|---|---|
| committer | Vishal Oliyil Kunnil <vishalo@users.noreply.github.com> | 2026-09-03 02:48:11 +0300 |
| commit | 061beb4c4bd259c073743f5ac01b5a1da4ce2010 (patch) | |
| tree | a8437a5323a9b6a6850b32012ba1b72683dc0471 /Platform/Qualcomm/Common | |
| parent | c8295e076affae5cf04fd4234db13a0e025f44e1 (diff) | |
| download | edk2-platforms-master.tar.xz | |
Add Qualcomm SMEM lib implementation.
Signed-off-by: gparikh <gparikh@qti.qualcomm.com>
Diffstat (limited to 'Platform/Qualcomm/Common')
2 files changed, 11 insertions, 5 deletions
diff --git a/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.c b/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.c index e8c96674d0..330fb1d9b0 100644 --- a/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.c +++ b/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.c @@ -10,7 +10,7 @@ #include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
-#include <Library/SmemLib.h>
+#include <Library/QualcommSmemLib.h>
#include "PlatformInfoInternal.h"
/**
@@ -71,7 +71,7 @@ PlatformInfoInit ( )
{
PlatformInfoDrvCtx *DrvCtx;
- UINT32 Size;
+ UINTN Size;
PlatformInfoSmemType *Smem;
EFI_STATUS Status;
@@ -81,8 +81,14 @@ PlatformInfoInit ( return EFI_SUCCESS;
}
- Smem = SmemGetAddr (SmemHwSwBuildId, &Size);
- if (Smem == NULL) {
+ Status = QualcommSmemLookup (
+ QUALCOMM_SMEM_HOST_COMMON,
+ SMEM_HW_SW_BUILD_ID,
+ QUALCOMM_SMEM_FLAG_NONE,
+ (VOID **)&Smem,
+ &Size
+ );
+ if (EFI_ERROR (Status)) {
return EFI_NOT_FOUND;
}
diff --git a/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.inf b/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.inf index c117c1ee23..7ca0c85465 100644 --- a/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.inf +++ b/Platform/Qualcomm/Common/QualcommCommonPlatformPkg/Library/PlatformInfoLib/PlatformInfoLib.inf @@ -31,4 +31,4 @@ [LibraryClasses]
BaseMemoryLib
MemoryAllocationLib
- SmemLib
+ QualcommSmemLib
|
