mirror of https://github.com/acidanthera/audk.git
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:
parent
0c805f4f8f
commit
112c6c2237
|
@ -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,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
PL011SerialPortLib.c
|
||||
|
||||
[LibraryClasses]
|
||||
PL011UartClockLib
|
||||
PL011UartLib
|
||||
PcdLib
|
||||
|
||||
|
|
Loading…
Reference in New Issue