summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2016-05-11 13:03:39 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2016-05-11 13:42:25 +0100
commit50af30e42622099ef2f300e8880396b2b398e9e7 (patch)
tree7bb69f454d09c08b93cd95d0fb31a510777ceced
parent8b9ee6bc776a761a3d0be2debcd6239bb27d615f (diff)
Use PcdPlatformBootTimeOut to set a boot countdown when starting Intel BDS. The platform must call PlatformBdsEnterFrontPage() at the end of its PlatformBdsPolicyBehavior function to enable the countdown. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rw-r--r--ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c2
-rw-r--r--ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c b/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
index ceb4f076e2..d896141419 100644
--- a/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
+++ b/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
@@ -359,6 +359,8 @@ PlatformBdsPolicyBehavior (
// is known
//
BdsLibConnectAll ();
+
+ PlatformBdsEnterFrontPage (PcdGet16 (PcdPlatformBootTimeOut), TRUE);
}
/**
diff --git a/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h b/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h
index da428288fb..7636f2b5e7 100644
--- a/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h
+++ b/ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h
@@ -32,4 +32,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Guid/GlobalVariable.h>
#include <Guid/EventGroup.h>
+VOID
+PlatformBdsEnterFrontPage (
+ IN UINT16 TimeoutDefault,
+ IN BOOLEAN ConnectAllHappened
+ );
+
#endif // _INTEL_BDS_PLATFORM_H