summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c')
-rw-r--r--Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c
index a6d251ded2..54e80df917 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformDxe/Platform.c
@@ -15,6 +15,7 @@
#include "PlatformDxe.h"
#include "Platform.h"
+#include "Logo.h"
#include <Library/S3BootScriptLib.h>
#include <Library/PciLib.h>
@@ -254,7 +255,6 @@ EnableAcpiCallback (
IoWrite16 (AcpiBaseAddr + R_ACPI_PM1_CNT, Pm1Cnt);
}
-
VOID
PlatformScInitBeforeBoot (
VOID
@@ -699,6 +699,8 @@ InitializePlatform (
EFI_HOB_GUID_TYPE *FdoEnabledGuidHob = NULL;
EFI_PLATFORM_INFO_HOB *PlatformInfoHob;
EFI_PEI_HOB_POINTERS Hob;
+ EFI_EVENT EfiShellEvent = NULL;
+ VOID *mEfiShellProtocolRegistration;
mImageHandle = ImageHandle;
@@ -900,6 +902,23 @@ InitializePlatform (
OverrideSdCardPresence();
+ //
+ //QR code showing under EFI Shell
+ //
+ if (PcdGetBool(PcdLogoDisplay)) {
+ Status = gBS->CreateEvent (
+ EVT_NOTIFY_SIGNAL,
+ TPL_CALLBACK,
+ EfiShellProtocolCallback,
+ NULL,
+ &EfiShellEvent
+ );
+ Status = gBS->RegisterProtocolNotify (
+ &gEfiShellProtocolGuid,
+ EfiShellEvent,
+ &mEfiShellProtocolRegistration
+ );
+ }
return EFI_SUCCESS;
}