Skip to content

Commit

Permalink
UefiPayloadPkg: Set PixelsPerScanLine property in GraphicInfo HOB
Browse files Browse the repository at this point in the history
PixelsPerScanLine is required in some UEFI capable OS distribution.
To align with simple-framebuffer definition in kernel Documentation:
devicetree/bindings/display/simple-framebuffer.txt, no property node
will be introduced for PixelsPerScanLine.

Set value of PixelsPerScanLine to HorizontalResolution, as they are
identical in most cases.

Signed-off-by: Ajan Zhong <[email protected]>
  • Loading branch information
AjanZhong authored and mergify[bot] committed Dec 24, 2024
1 parent c52dddf commit e8c7b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ ParseFrameBuffer (
GmaStr++;
DEBUG ((DEBUG_INFO, " display (%s)", GmaStr));
}

// In most case, PixelsPerScanLine is identical to HorizontalResolution
GraphicsInfo->GraphicsMode.PixelsPerScanLine = GraphicsInfo->GraphicsMode.HorizontalResolution;
}

return GmaStr;
Expand Down

0 comments on commit e8c7b14

Please sign in to comment.