summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg/PlatformPei/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'Vlv2TbltDevicePkg/PlatformPei/Platform.c')
-rw-r--r--Vlv2TbltDevicePkg/PlatformPei/Platform.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformPei/Platform.c b/Vlv2TbltDevicePkg/PlatformPei/Platform.c
index 493c09679a..dcfb7f6251 100644
--- a/Vlv2TbltDevicePkg/PlatformPei/Platform.c
+++ b/Vlv2TbltDevicePkg/PlatformPei/Platform.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
@@ -30,6 +30,7 @@ Module Name:
#include <Guid/Vlv2Variable.h>
#include <Ppi/fTPMPolicy.h>
#include <Library/PchPlatformLib.h>
+#include <Library/PcdLib.h>
//
// Start::Alpine Valley platform
@@ -475,6 +476,10 @@ RtcPowerFailureHandler (
//
if (DataUint16 & B_PCH_PMC_GEN_PMCON_RTC_PWR_STS) {
//
+ // Rtc Power failure occurs, save RtcPowerFailure Flag.
+ //
+ PcdSetBool(PcdRtcPowerFailure, TRUE);
+ //
// Set to invalid date in order to reset the time to
// BIOS build time later in the boot (SBRUN.c file).
//