diff options
author | Ajan Zhong <ajan.zhong@newfw.com> | 2024-12-24 09:53:14 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-24 03:18:31 +0000 |
commit | e8c7b14da07172bb0739cc3a6d4afb3e326e8e3c (patch) | |
tree | b1b15d596bcbf986cfda19c3deefb5040b7cb8e0 | |
parent | c52dddf1eb9abd8e721ba4cc6bdab3f5f45b4256 (diff) | |
download | edk2-e8c7b14da07172bb0739cc3a6d4afb3e326e8e3c.tar.gz |
UefiPayloadPkg: Set PixelsPerScanLine property in GraphicInfo HOB
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 <ajan.zhong@newfw.com>
-rw-r--r-- | UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c index ab669569a1..372ca07765 100644 --- a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c +++ b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c @@ -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;
|