Skip to content

Commit

Permalink
UefiPayloadEntry: Set serial ClockRate from parsed SerialInfo
Browse files Browse the repository at this point in the history
Signed-off-by: Matt DeVillier <[email protected]>
  • Loading branch information
MrChromebox committed Sep 19, 2024
1 parent b9a5590 commit 9528582
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9528582

Please sign in to comment.