PR created - https://github.com/tianocore/edk2/pull/5513 LGTM but I can't check it against UPL. @Dong, Guo Would you be able to take a look please'? On Wed, 4 Oct 2023 at 21:02, MrChromebox wrote: > Fixes serial output on platforms using coreboot and a non-default > clock rate such as AMD Picasso and newer Zen-based platforms. > > Signed-off-by: Matt DeVillier > Change-Id: I91290397852176754e9a34ec6e5829044f41d15a > --- > UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c | 5 +++++ > UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf | 1 + > 2 files changed, 6 insertions(+) > > diff --git a/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c > b/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c > index 60a17b8fc2..e3d47ac2fa 100644 > --- a/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c > +++ b/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c > @@ -90,6 +90,11 @@ PlatformHookSerialPortInitialize ( > return Status; > } > > + Status = PcdSet32S (PcdSerialClockRate, SerialPortInfo->ClockRate); > + if (RETURN_ERROR (Status)) { > + return Status; > + } > + > return RETURN_SUCCESS; > } > > diff --git a/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf > b/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf > index 7ac6bfa1b1..e2908cfbca 100644 > --- a/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf > +++ b/UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf > @@ -38,3 +38,4 @@ > gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase ## PRODUCES > gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate ## PRODUCES > gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride ## PRODUCES > + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate ## PRODUCES > -- > 2.34.1 > > > > ------------ > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#109337): https://edk2.groups.io/g/devel/message/109337 > Mute This Topic: https://groups.io/mt/101763377/6718866 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [sean@starlabs.systems] > ------------ > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117355): https://edk2.groups.io/g/devel/message/117355 Mute This Topic: https://groups.io/mt/101763377/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-