ArmPlatformPkg: reorganize PL011 code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 16 Nov 2017 17:08:08 +0000 (17:08 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 17 Nov 2017 10:01:29 +0000 (10:01 +0000)
commit12156134fe82e5c574a78898184935c0486b29ad
tree55eddbd879d61d6d10ce58c57e300f1d356c30c8
parent12c6484058a8c5a8751c51eb24e9bb95497649c6
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>
ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg/Include/Library/PL011UartLib.h [new file with mode: 0644]
ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c
ArmPlatformPkg/Library/PL011UartLib/PL011Uart.h [new file with mode: 0644]
ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.c [new file with mode: 0644]
ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf [new file with mode: 0644]