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/ArmPlatformPkg.dec | |
parent | 12c6484058a8c5a8751c51eb24e9bb95497649c6 (diff) | |
download | edk2-12156134fe82e5c574a78898184935c0486b29ad.tar.gz edk2-12156134fe82e5c574a78898184935c0486b29ad.tar.bz2 edk2-12156134fe82e5c574a78898184935c0486b29ad.zip |
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/ArmPlatformPkg.dec')
-rw-r--r-- | ArmPlatformPkg/ArmPlatformPkg.dec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 2d82ead761..e282e76667 100644 --- a/ArmPlatformPkg/ArmPlatformPkg.dec +++ b/ArmPlatformPkg/ArmPlatformPkg.dec @@ -31,6 +31,9 @@ [Includes.common]
Include # Root include for the package
+[LibraryClasses]
+ PL011UartLib|Include/Library/PL011UartLib.h
+
[Guids.common]
gArmPlatformTokenSpaceGuid = { 0x9c0aaed4, 0x74c5, 0x4043, { 0xb4, 0x17, 0xa3, 0x22, 0x38, 0x14, 0xce, 0x76 } }
#
|