EFI_HOB_GUID_TYPE *GuidHob;\r
SYSTEM_TABLE_INFO *pSystemTableInfo;\r
ACPI_BOARD_INFO *pAcpiBoardInfo;\r
+ FRAME_BUFFER_INFO *FbInfo;\r
\r
Status = EFI_SUCCESS;\r
//\r
mPmCtrlReg = (UINTN)pAcpiBoardInfo->PmCtrlRegBase;\r
DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%lx\n", (UINT64)mPmCtrlReg));\r
\r
+ //\r
+ // Find the frame buffer information and update PCDs\r
+ //\r
+ GuidHob = GetFirstGuidHob (&gUefiFrameBufferInfoGuid);\r
+ if (GuidHob != NULL) {\r
+ FbInfo = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
+ Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
+ ASSERT_EFI_ERROR (Status);\r
+ Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution);\r
+ ASSERT_EFI_ERROR (Status);\r
+ Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
+ ASSERT_EFI_ERROR (Status);\r
+ Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
+\r
//\r
// Register callback on the ready to boot event\r
// in order to enable SCI\r