X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CorebootModulePkg%2FCbSupportDxe%2FCbSupportDxe.c;h=7671304753242ad0d51c550a60466ce2a8efcaef;hp=d81b7c23b71737aaa24ffc5f4b3eb8abf00f938d;hb=3aa865685a1292aef17d2efa812376d180fc00f9;hpb=f3a90fbf8b8d816def4be94914295b479f218a1a diff --git a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c index d81b7c23b7..7671304753 100755 --- a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c +++ b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c @@ -134,6 +134,7 @@ CbDxeEntryPoint ( EFI_HOB_GUID_TYPE *GuidHob; SYSTEM_TABLE_INFO *pSystemTableInfo; ACPI_BOARD_INFO *pAcpiBoardInfo; + FRAME_BUFFER_INFO *FbInfo; Status = EFI_SUCCESS; // @@ -183,6 +184,21 @@ CbDxeEntryPoint ( mPmCtrlReg = (UINTN)pAcpiBoardInfo->PmCtrlRegBase; DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%lx\n", (UINT64)mPmCtrlReg)); + // + // Find the frame buffer information and update PCDs + // + GuidHob = GetFirstGuidHob (&gUefiFrameBufferInfoGuid); + ASSERT (GuidHob != NULL); + FbInfo = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob); + Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution); + ASSERT_EFI_ERROR (Status); + Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution); + ASSERT_EFI_ERROR (Status); + Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution); + ASSERT_EFI_ERROR (Status); + Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution); + ASSERT_EFI_ERROR (Status); + // // Register callback on the ready to boot event // in order to enable SCI