summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h
diff options
context:
space:
mode:
authorLu, ShifeiX A <shifeix.a.lu@intel.com>2016-07-07 17:49:28 +0800
committerdavid wei <david.wei@intel.com>2016-07-08 14:00:27 +0800
commit2f893dd6f797e9b16d3d5df7281da3f47402b6f8 (patch)
treefaf4c19a2bb757ab33b23ca6263eeb12844c84d6 /Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h
parenta4c45d2c0ce090796692e2d6e37c5e5a2149f75e (diff)
downloadedk2-platforms-2f893dd6f797e9b16d3d5df7281da3f47402b6f8.tar.xz
Vlv2TbltDevicePkg:Fixed system can't save time when RTC power failure.
This patch re-implemented SetTime runtime service for special usage on MinnowBoard Max which may have no RTC battery present. While user sets system time, SetTime service not only sets the time into RTC, but also saves it in UEFI variable. The next time when power failure occurred and RTC system time is lost, BIOS will read out the system time form UEFI variable and set it into RTC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex <shifeix.a.lu@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h')
-rw-r--r--Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h b/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h
new file mode 100644
index 0000000000..b065c7a0de
--- /dev/null
+++ b/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.h
@@ -0,0 +1,33 @@
+/** @file
+ Header file for Platform Real Time Clock driver.
+
+ Copyright (c) 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
+ 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.
+
+**/
+
+
+#ifndef _PLATFORM_RTC_H_
+#define _PLATFORM_RTC_H_
+
+
+#include <Uefi.h>
+#include <Library/BaseLib.h>
+#include <Library/DebugLib.h>
+#include <Library/UefiLib.h>
+#include <Library/UefiDriverEntryPoint.h>
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UefiRuntimeLib.h>
+#include <Library/UefiRuntimeServicesTableLib.h>
+#include <Library/PcdLib.h>
+#include <Library/ReportStatusCodeLib.h>
+
+#define SYSTEM_TIME_NAME L"SystemRtcTime"
+
+#endif