Hi Ryan. It is apparent from you confusion that we need to clarify our comment. However, I think that is the only problem - response inline below. The original problem was that not all UARTs on Juno have the same clock source, so the PL011 driver could never work on all the UARTS. This particular change only matches the driver update, and I will add something to highlight that dependency to the comment.
-----Original Message----- From: Ryan Harkin [mailto:ryan.harkin@linaro.org] Sent: 03 May 2016 11:49 To: Evan Lloyd Cc: Linaro UEFI Mailman List; Leif Lindholm Subject: Re: [PATCH] Platforms/ARM: Juno: PL011 PCD changes
...
The generic PL011 driver has been updated to allow for UARTs on a board having different clock sources (as is the case on Juno). This changes the Juno code to make use of the new driver options.
The solution involves using the Baud rate and new PL011UartClkInHz PCDs to configure the UART ports.
...
@@ -126,8 +126,7 @@ ## PL011 - Serial Terminal gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF80000 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
- gArmPlatformTokenSpaceGuid.PL011UartInteger|4
- gArmPlatformTokenSpaceGuid.PL011UartFractional|0
- gArmPlatformTokenSpaceGuid.PL011UartClkInHz|7372800
Where did this number come from? I presume it's the result of a calculation. I wonder if there's a way of calling out the calculation, although I'm not even sure if PCDs can take anything other than a static value. Perhaps a comment is the best we can hope for?
The clock rate is fixed in the hardware, so the value of PL011UartClkInHz is derived from the Juno TRM. The actual change is that the PL011 interface has been modified to accept a clock frequency value, rather than the Integer/fractional PCDs (they WERE the result of a calculation, which was wrong for some of the uarts).
gArmPlatformTokenSpaceGuid.PL011UartInterrupt|115
## PL031 RealTimeClock
2.7.0
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.