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/IoLib.h>
|
||||||
#include <Library/PcdLib.h>
|
#include <Library/PcdLib.h>
|
||||||
|
#include <Library/PL011UartClockLib.h>
|
||||||
#include <Library/PL011UartLib.h>
|
#include <Library/PL011UartLib.h>
|
||||||
#include <Library/SerialPortLib.h>
|
#include <Library/SerialPortLib.h>
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ SerialPortInitialize (
|
||||||
|
|
||||||
return PL011UartInitializePort (
|
return PL011UartInitializePort (
|
||||||
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
|
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
|
||||||
FixedPcdGet32 (PL011UartClkInHz),
|
PL011UartClockGetFreq(),
|
||||||
&BaudRate,
|
&BaudRate,
|
||||||
&ReceiveFifoDepth,
|
&ReceiveFifoDepth,
|
||||||
&Parity,
|
&Parity,
|
||||||
|
@ -156,7 +157,7 @@ SerialPortSetAttributes (
|
||||||
{
|
{
|
||||||
return PL011UartInitializePort (
|
return PL011UartInitializePort (
|
||||||
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
|
(UINTN)FixedPcdGet64 (PcdSerialRegisterBase),
|
||||||
FixedPcdGet32 (PL011UartClkInHz),
|
PL011UartClockGetFreq(),
|
||||||
BaudRate,
|
BaudRate,
|
||||||
ReceiveFifoDepth,
|
ReceiveFifoDepth,
|
||||||
Parity,
|
Parity,
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
PL011SerialPortLib.c
|
PL011SerialPortLib.c
|
||||||
|
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
|
PL011UartClockLib
|
||||||
PL011UartLib
|
PL011UartLib
|
||||||
PcdLib
|
PcdLib
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue