[edk2-devel] [edk2-platforms][PATCH 1/1] Platform/RaspberryPi: Fix mini UART baud divisor calculation

Mario Bălănică mariobalanica02 at gmail.com
Sat Apr 3 15:17:07 UTC 2021


Hi Pete,

I've submitted this patch because the mini UART serial console produces garbage since UEFI v1.25 (due to the wrong baud rate).
It has been tested on the firmware shipped with UEFI v1.24 and it works fine. I don't see any reason to test it on older versions than this.

The core clock is not fixed. I've made PcdSerialClockRate patchable here:

> 
> @@ -465,6 +464,9 @@ [PcdsFixedAtBuild.common]
> gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"EDK2"
> gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
> 
> +[PcdsPatchableInModule]
> + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|500000000
> +
> 

500 MHz is the default clock rate (assuming it hasn't been changed in config.txt).
The PCD gets patched in both the PEI and DXE phases to the value read from mailbox.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#73668): https://edk2.groups.io/g/devel/message/73668
Mute This Topic: https://groups.io/mt/81808942/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210403/4009319e/attachment.htm>


More information about the edk2-devel-archive mailing list