Sync the branch changes to Trunk,
Add "RTC Battery Present" item in setup page.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lu Shifei <shifeix.a.lu@intel.com>
Reviewed-by: Tim He <tim.he@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18763
6f19259b-4bc3-4df7-8a09-
765794883524
;* Family of Customer Reference Boards. *;\r
;* *;\r
;* *;\r
-;* Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved *;\r
+;* Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved *;\r
;\r
; This program and the accompanying materials are licensed and made available under\r
; the terms and conditions of the BSD License that accompanies this distribution.\r
Offset(792),\r
EDPV, 8, //(792) Check for eDP display device\r
DIDX, 32, //(793) Device ID for eDP device\r
- IOT, 8, //(794) MinnowBoard Max JP1 is configured for MSFT IOT project. \r
+ IOT, 8, //(794) MinnowBoard Max JP1 is configured for MSFT IOT project.\r
+ BATT, 8, //(795) The Flag of RTC Battery Prensent. \r
}\r
\r
;* Family of Customer Reference Boards. *;\r
;* *;\r
;* *;\r
-;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;\r
+;* Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved *;\r
;\r
; This program and the accompanying materials are licensed and made available under\r
; the terms and conditions of the BSD License that accompanies this distribution.\r
\r
Scope(\_SB)\r
{\r
-\r
//RTC\r
Device(RTC) // RTC\r
{\r
{\r
IO(Decode16,0x70,0x70,0x01,0x08)\r
})\r
+\r
+ Method(_STA,0,Serialized) {\r
+\r
+ //\r
+ // Report RTC Battery is Prensent or Not Present.\r
+ //\r
+ If (LEqual(BATT, 1)) {\r
+ Return (0xF)\r
+ }\r
+ Return (0x0)\r
+ }\r
}\r
//RTC\r
\r
//\r
// Platform Policy\r
//\r
-typedef struct _PPM_PLATFORM_POLICY_PROTOCOL {\r
+struct _PPM_PLATFORM_POLICY_PROTOCOL {\r
UINT8 Revision;\r
PPM_FUNCTION_ENABLES FunctionEnables;\r
PPM_CUSTOM_VID_TABLE CustomVidTable;\r
//\r
UINT16 Reserve10;\r
UINT8 Reserve11;\r
-} PPM_PLATFORM_POLICY_PROTOCOL;\r
+};\r
\r
#endif\r
\r
typedef struct _PEI_SMBUS_POLICY_PPI PEI_SMBUS_POLICY_PPI;\r
\r
-typedef struct _PEI_SMBUS_POLICY_PPI {\r
+struct _PEI_SMBUS_POLICY_PPI {\r
UINTN BaseAddress;\r
UINT32 PciAddress;\r
UINT8 NumRsvdAddress;\r
UINT8 *RsvdAddress;\r
-} PEI_SMBUS_POLICY_PPI;\r
+};\r
\r
extern EFI_GUID gPeiSmbusPolicyPpiGuid;\r
\r
mGlobalNvsArea.Area->UartSelection = mSystemConfiguration.UartInterface;\r
mGlobalNvsArea.Area->PcuUart1Enable = mSystemConfiguration.PcuUart1;\r
mGlobalNvsArea.Area->NativePCIESupport = 1;\r
+ mGlobalNvsArea.Area->RtcBattery = mSystemConfiguration.RtcBattery;\r
\r
\r
\r
UINT8 LpssHsuart1FlowControlEnabled;
UINT8 SdCardRemovable; // ACPI reporting MMC/SD media as: removable/non-removable
-
UINT8 GpioWakeCapability;
+ UINT8 RtcBattery;
} SYSTEM_CONFIGURATION;
#pragma pack()
UINT8 EDPV; // 792 Check for eDP display device
UINT32 DIDX; // 793 Device ID for eDP device
UINT8 MicrosoftIoT; // (794)JP1 pins are for Microsoft IoT project.
+ UINT8 RtcBattery; // (795) The Flag of RTC Battery Present.
} EFI_GLOBAL_NVS_AREA;
#pragma pack ()
option text = STRING_TOKEN(STR_DISABLE), value = 0, flags = DEFAULT | MANUFACTURING |RESET_REQUIRED;\r
option text = STRING_TOKEN(STR_ENABLE), value = 1, flags = RESET_REQUIRED;\r
endoneof;\r
+\r
+ oneof varid = Setup.RtcBattery,\r
+ prompt = STRING_TOKEN(STR_RTC_BATTERY),\r
+ help = STRING_TOKEN(STR_RTC_BATTERY_HELP),\r
+ option text = STRING_TOKEN(STR_RTC_BATTERY_NOT_PRESENT), value = 0, flags = RESET_REQUIRED;\r
+ option text = STRING_TOKEN(STR_RTC_BATTERY_PRESENT), value = 1, flags = DEFAULT | MANUFACTURING |RESET_REQUIRED;\r
+ endoneof;\r
+\r
endform;\r