]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: PCD to swap red/blue format for HDLCD
authorGirish Pathak <girish.pathak at arm.com>
Tue, 26 Sep 2017 20:15:25 +0000 (21:15 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 23 Apr 2018 11:01:11 +0000 (12:01 +0100)
commit268aad67445c3a928bc0a84adb008031de980a93
treea80afc08ba512cf6d2210d798ea2b7a0d187886f
parentfe787dfb0f94669ce091f80601f2e654eff5728f
ArmPlatformPkg: PCD to swap red/blue format for HDLCD

This change adds a new PCD PcdArmHdlcdSwapBlueRedSelect
to swap values for HDLCD RED_SELECT and BLUE_SELECT registers
on platforms where blue and red hardware lines are swapped.

If set to TRUE in the platform dsc, HDLCD library will swap the values
while setting RED_SELECT and BLUE_SELECT registers. The default
value of the PCD is FALSE.

NOTE: The motive for this is that a discrepancy in the Red/Blue lines
exists between some VersatileExpress platforms.  Rather than have
divergent code, this build switch allows a simple, pragmatic solution.

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: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg/Library/HdLcd/HdLcd.c
ArmPlatformPkg/Library/HdLcd/HdLcd.inf