From 9528582de4aeaf35e04554f13efc61d54e275b4a Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 31 Jul 2023 11:43:28 -0500 Subject: [PATCH] UefiPayloadEntry: Set serial ClockRate from parsed SerialInfo Signed-off-by: Matt DeVillier --- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c index 030a5baed9146..8c62eb4e1a232 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -432,6 +432,9 @@ _ModuleEntryPoint ( UniversalSerialPort->RegisterBase = SerialPortInfo.BaseAddr; UniversalSerialPort->BaudRate = SerialPortInfo.Baud; UniversalSerialPort->RegisterStride = (UINT8)SerialPortInfo.RegWidth; + if (UniversalSerialPort->Header.Revision >= 2) { + UniversalSerialPort->ClockRate = SerialPortInfo.InputHertz; + } } // The library constructors might depend on serial port, so call it after serial port hob