diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-16 17:08:08 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-17 10:01:29 +0000 |
commit | 12156134fe82e5c574a78898184935c0486b29ad (patch) | |
tree | 55eddbd879d61d6d10ce58c57e300f1d356c30c8 /ArmPlatformPkg/Library/PL011SerialPortLib | |
parent | 12c6484058a8c5a8751c51eb24e9bb95497649c6 (diff) | |
download | edk2-12156134fe82e5c574a78898184935c0486b29ad.zip edk2-12156134fe82e5c574a78898184935c0486b29ad.tar.gz edk2-12156134fe82e5c574a78898184935c0486b29ad.tar.bz2 |
ArmPlatformPkg: reorganize PL011 code
The PL011 code in ArmPlatformPkg is organized in a weird way: there is
a single PL011Uart.h header file under Include/Drivers containing both
register definitions and function entry points. The PL011Uart library
itself is in Drivers/ but it is actually a library.
So let's clean this up: add a new PL011UartLib library class and associated
header file containing only the library prototypes, and move the library
itself under Library/ using a new GUID, with the register definitions moved
into a local header file.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg/Library/PL011SerialPortLib')
-rw-r--r-- | ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c index 571d061..6aa8063 100644 --- a/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c +++ b/ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c @@ -19,10 +19,9 @@ #include <Library/IoLib.h>
#include <Library/PcdLib.h>
+#include <Library/PL011UartLib.h>
#include <Library/SerialPortLib.h>
-#include <Drivers/PL011Uart.h>
-
/** Initialise the serial device hardware with default settings.
@retval RETURN_SUCCESS The serial device was initialised.
|