audk/ArmPlatformPkg/Library
Girish Pathak fe787dfb0f ArmPlatformPkg: Add PCD to select pixel format
Current HDLCD and PL111 platform libraries do not support display modes
with PixelBlueGreenRedReserved8BitPerColor format, i.e. because of
historical confusion, they do not support the UEFI default
PixelBlueGreenRedReserved8BitPerColor format

In LcdPlatformLib for PL111, LcdPlatformQueryMode returns the pixel
format as PixelRedGreenBlueReserved8BitPerColor which is wrong, because
that does not match the display controller's pixel format which is set
to BGR in PL111Lcd LcdHwLib.

Also it is not possible to configure pixel format as RGB/BGR for the
display modes for a platform at build time.

This change adds PcdGopPixelFormat to configure pixel format as
    PixelRedGreenBlueReserved8BitPerColor    or
    PixelBlueGreenRedReserved8BitPerColor    or
    PixelBitMask.
With this change, pixel format can be selected in the platform specific
.dsc file for all supported display modes.

Support for PixelBitMask is not implemented in PL111 or HDLCD LcdHwLib
libraries, hence  HDLCD and PL111 platform libraries will return error
EFI_UNSUPPORTED if PcdGopPixelFormat is set to PixelBitMask.  Indeed,
it is not clear what selecting PixelBitMask might mean, but the option
is allowed as it might suit a custom platform.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-04-23 12:01:04 +01:00
..
ArmPlatformLibNull ArmPlatformPkg: remove unused ArmPlatformLibNullSec 2017-12-08 16:31:03 +00:00
ArmPlatformStackLib ArmPlatformPkg/ArmPlatformStackLib: use callee preserved registers 2017-02-22 13:22:41 +00:00
HdLcd ArmPlatformPkg: Add PCD to select pixel format 2018-04-23 12:01:04 +01:00
LcdHwNullLib ArmPlatformPkg: Rectify line endings of LcdHwNullLib 2018-04-23 11:38:03 +01:00
LcdPlatformNullLib ArmPlatformPkg: Redefine LcdPlatformGetTimings function 2018-04-23 12:00:57 +01:00
NorFlashPlatformNullLib ArmPlatformPkg: add Null implementation of NorFlashPlatformLib 2017-12-08 16:31:23 +00:00
PL011SerialPortLib ArmPlatformPkg: reorganize PL011 code 2017-11-17 10:01:29 +00:00
PL011UartLib ArmPlatformPkg: reorganize PL011 code 2017-11-17 10:01:29 +00:00
PL031RealTimeClockLib ArmPlatformPkg/PL031RealTimeClockLib: depend on gEfiCpuArchProtocolGuid 2018-04-12 21:24:39 +02:00
PL111Lcd ArmPlatformPkg: Add PCD to select pixel format 2018-04-23 12:01:04 +01:00
PrePiHobListPointerLib ArmPlatformPkg: Rectify file modes 2016-02-02 11:42:31 +00:00