]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: Fix PL011 FIFO size test
authorEvan Lloyd <evan.lloyd@arm.com>
Wed, 21 Sep 2016 20:33:13 +0000 (21:33 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Tue, 11 Oct 2016 13:23:33 +0000 (14:23 +0100)
commit719a347c5df53a1dca6f80e06a285424228436e1
treec03ece96dbc86074e84252ee2854fe70a5773737
parentb3b58d4da79639ffb02e9a0556e21962bf918d1e
ArmPlatformPkg: Fix PL011 FIFO size test

This change updates PL011UartInitializePort to compare ReceiveFifoDepth
with the correct hardware FIFO size instead of the constant 32 used
previously.
This corrects a minor bug where a request for a fifo size > 15 and < 32
would not have been honoured on a system with a 16 byte FIFO.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c