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>
45 lines
1.2 KiB
INI
45 lines
1.2 KiB
INI
#/** @file
|
|
#
|
|
# Component description file for HDLCD module
|
|
#
|
|
# Copyright (c) 2011-2018, ARM Ltd. All rights reserved.<BR>
|
|
#
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
#**/
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = HdLcd
|
|
FILE_GUID = ce660500-824d-11e0-ac72-0002a5d5c51b
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = LcdHwLib
|
|
|
|
[Sources.common]
|
|
HdLcd.c
|
|
|
|
[Packages]
|
|
ArmPlatformPkg/ArmPlatformPkg.dec
|
|
ArmPkg/ArmPkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
MdePkg/MdePkg.dec
|
|
|
|
[LibraryClasses]
|
|
ArmLib
|
|
UefiLib
|
|
BaseLib
|
|
DebugLib
|
|
IoLib
|
|
|
|
[FixedPcd]
|
|
gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase
|
|
gArmPlatformTokenSpaceGuid.PcdArmHdLcdSwapBlueRedSelect
|
|
|