ArmPlatformPkg: Include PL011UartClock Lib

This patch gets PL011 baud rate clock from
pl011 uart clock lib instead of Pcd.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
Udit Kumar 2018-06-13 01:44:09 +05:30 committed by Ard Biesheuvel
parent 0c805f4f8f
commit 112c6c2237
2 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@
#include <Library/IoLib.h>
#include <Library/PcdLib.h>
#include <Library/PL011UartClockLib.h>
#include <Library/PL011UartLib.h>
#include <Library/SerialPortLib.h>
@ -48,7 +49,7 @@ SerialPortInitialize (
return PL011UartInitializePort (
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
FixedPcdGet32 (PL011UartClkInHz),
PL011UartClockGetFreq(),
&BaudRate,
&ReceiveFifoDepth,
&Parity,
@ -156,7 +157,7 @@ SerialPortSetAttributes (
{
return PL011UartInitializePort (
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
FixedPcdGet32 (PL011UartClkInHz),
PL011UartClockGetFreq(),
BaudRate,
ReceiveFifoDepth,
Parity,

View File

@ -26,6 +26,7 @@
PL011SerialPortLib.c
[LibraryClasses]
PL011UartClockLib
PL011UartLib
PcdLib