Always set framebuffer cache attribute

- Allocate framebuffer resource even if  ENABLE_FRAMEBUFFER_INIT=0

Signed-off-by: Andrey Vinokurtsev <avinok@gmail.com>
This commit is contained in:
andreyv1978 2020-08-28 15:07:11 +01:00 committed by Maurice Ma
parent 1b62d76ae7
commit 302bb701de
1 changed files with 3 additions and 4 deletions

View File

@ -982,10 +982,9 @@ BoardInit (
BuildOsConfigDataHob ();
break;
case PostPciEnumeration:
if (PcdGetBool (PcdFramebufferInitEnabled)) {
// Enable framebuffer as WC for performance
SetFrameBufferWriteCombining ();
}
// Enable framebuffer as WC for performance
SetFrameBufferWriteCombining ();
if (PcdGetBool (PcdSeedListEnabled)) {
Status = GenerateSeeds ();
if (EFI_ERROR (Status)) {