]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/PL011UartLib: Check PID2 if FiFoDepth is zero
authorIrene Park <ipark@nvidia.com>
Tue, 9 Jun 2020 17:56:31 +0000 (13:56 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 2 Jul 2020 07:11:26 +0000 (07:11 +0000)
commitc8edb70945099fd35a0997d3f3db105efc144e13
tree5a8c828479f146af8ee0f1004df28913eee2a5e8
parent00217f1919270007d7a911f89b32e39b9dcaa907
ArmPlatformPkg/PL011UartLib: Check PID2 if FiFoDepth is zero

PL011UartLib determines its FIFO depth based on the PID2 value but
the register PID2 is not mandatory as per the SBSA spec.
This change won't check PID2 if PcdUartDefaultReceiveFifoDepth is set
to a value > 0.

Signed-off-by: Irene Park <ipark@nvidia.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.c
ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf