summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2019-05-10 18:56:10 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-05-10 18:56:10 -0700
commit4425f8ff0e74ed19ea440a28e5b1e14351f9055b (patch)
treed81afee9e9ce08aee7a7f982ef7832344a449d4a
parent81c618f151cd259d30124b047f9aee352a2a67d1 (diff)
parent489de781c40c499d6612a881da92cb4abcd35e01 (diff)
Merge "QcomModulePkg : Fix getddrinfo function"
-rw-r--r--QcomModulePkg/Library/BootLib/UpdateDeviceTree.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/QcomModulePkg/Library/BootLib/UpdateDeviceTree.c b/QcomModulePkg/Library/BootLib/UpdateDeviceTree.c
index 93155cbcf9..58c9ffd70c 100644
--- a/QcomModulePkg/Library/BootLib/UpdateDeviceTree.c
+++ b/QcomModulePkg/Library/BootLib/UpdateDeviceTree.c
@@ -78,14 +78,15 @@ GetDDRInfo (UINT8 *DdrDeviceType)
(VOID **)&DdrInfoIf);
if (Status != EFI_SUCCESS) {
DEBUG ((EFI_D_VERBOSE,
- "Error locating DDR Info protocol. Fail to get DDR type:%r\n",
+ "INFO: Unable to get DDR Info protocol. DDR type not updated:%r\n",
Status));
return Status;
}
Status = DdrInfoIf->GetDDRDetails (DdrInfoIf, &DdrInfo);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR, "GetDDR details failed\n"));
+ DEBUG ((EFI_D_ERROR, "INFO: GetDDR details failed\n"));
+ return Status;
}
*DdrDeviceType = DdrInfo.device_type;
@@ -250,23 +251,23 @@ UpdateGranuleInfo (VOID *fdt)
UINT32 GranuleSize;
INT32 Ret;
- GranuleNodeOffset = fdt_path_offset (fdt, "/mem-offline");
- if (GranuleNodeOffset < 0) {
- DEBUG ((EFI_D_ERROR, "WARNING: Could not find mem-offline node.\n"));
- return;
- }
-
Status = GetGranuleSize (&GranuleSize);
if (EFI_ERROR (Status)) {
- DEBUG ((EFI_D_ERROR,
- "Update Granule Size failed!!! Status = %r\r\n",
+ DEBUG ((EFI_D_VERBOSE,
+ "Unable to get Granule Size, Status = %r\r\n",
Status));
return;
}
+ GranuleNodeOffset = fdt_path_offset (fdt, "/mem-offline");
+ if (GranuleNodeOffset < 0) {
+ DEBUG ((EFI_D_VERBOSE, "INFO: Could not find mem-offline node.\n"));
+ return;
+ }
+
Ret = fdt_setprop_u32 (fdt, GranuleNodeOffset, "granule", GranuleSize);
if (Ret) {
- DEBUG ((EFI_D_ERROR, "WARNING: Granule size update failed.\n"));
+ DEBUG ((EFI_D_ERROR, "INFO: Granule size update failed.\n"));
}
}
@@ -526,9 +527,6 @@ UpdateDeviceTree (VOID *fdt,
} else {
DEBUG ((EFI_D_VERBOSE, "ddr_device_type is added to memory node\n"));
}
- } else {
- DEBUG (
- (EFI_D_ERROR, "ERROR: Cannot update ddr_device_type - %r\n", Status));
}
UpdateSplashMemInfo (fdt);