summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/ArmRealViewEbPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-14 10:35:04 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-14 10:35:04 +0000
commit6d8d7363347b58834e74271ca0ff49569db8e5da (patch)
tree2dc804be6f4834b86b16ac6960691da0f1bcb738 /ArmPlatformPkg/ArmRealViewEbPkg
parent84c35dd305957c9137e7c411a4b92eb3db283af2 (diff)
downloadedk2-platforms-6d8d7363347b58834e74271ca0ff49569db8e5da.tar.xz
ArmPlatformPkg/LcdPlatformLib: Produce the protocols EFI_EDID_DISCOVERED_PROTOCOL and EFI_EDID_ACTIVE_PROTOCOL
These two EDID protocols are excepted to be produced by the GOP. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12860 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/ArmRealViewEbPkg')
-rw-r--r--ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEb.c29
1 files changed, 26 insertions, 3 deletions
diff --git a/ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEb.c b/ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEb.c
index c4140150f8..3b2f63fb66 100644
--- a/ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEb.c
+++ b/ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEb.c
@@ -13,9 +13,13 @@
#include <PiDxe.h>
-#include <Library/LcdPlatformLib.h>
-#include <Library/IoLib.h>
#include <Library/DebugLib.h>
+#include <Library/IoLib.h>
+#include <Library/LcdPlatformLib.h>
+#include <Library/UefiBootServicesTableLib.h>
+
+#include <Protocol/EdidDiscovered.h>
+#include <Protocol/EdidActive.h>
#include <Drivers/PL111Lcd.h>
@@ -50,14 +54,33 @@ CLCD_RESOLUTION mResolutions[] = {
}
};
+EFI_EDID_DISCOVERED_PROTOCOL mEdidDiscovered = {
+ 0,
+ NULL
+};
+
+EFI_EDID_ACTIVE_PROTOCOL mEdidActive = {
+ 0,
+ NULL
+};
EFI_STATUS
LcdPlatformInitializeDisplay (
- VOID
+ IN EFI_HANDLE Handle
)
{
+ EFI_STATUS Status;
+
MmioWrite32(ARM_EB_SYS_CLCD_REG, 1);
+ // Install the EDID Protocols
+ Status = gBS->InstallMultipleProtocolInterfaces(
+ &Handle,
+ &gEfiEdidDiscoveredProtocolGuid, &mEdidDiscovered,
+ &gEfiEdidActiveProtocolGuid, &mEdidActive,
+ NULL
+ );
+
return EFI_SUCCESS;
}