Vlv2TbltDevicePkg/Vlv2DeviceRefCodePkg:
authorLu Shifei <shifeix.a.lu@intel.com>
Tue, 10 Nov 2015 07:47:29 +0000 (07:47 +0000)
committertimhe <timhe@Edk2>
Tue, 10 Nov 2015 07:47:29 +0000 (07:47 +0000)
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

Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl
Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PciTree.asl
Vlv2DeviceRefCodePkg/ValleyView2Soc/CPU/Include/Protocol/PpmPlatformPolicy.h
Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Ppi/SmbusPolicy.h
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
Vlv2TbltDevicePkg/Include/Guid/SetupVariable.h
Vlv2TbltDevicePkg/Include/Protocol/GlobalNvsArea.h
Vlv2TbltDevicePkg/PlatformSetupDxe/SouthClusterConfig.vfi
Vlv2TbltDevicePkg/PlatformSetupDxe/UqiList.uni
Vlv2TbltDevicePkg/PlatformSetupDxe/VfrStrings.uni

index fffc829..21e526c 100644 (file)
@@ -5,7 +5,7 @@
 ;*    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
@@ -347,6 +347,7 @@ Field(GNVS,AnyAcc,Lock,Preserve)
   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
index 84a7ee2..2a57d0f 100644 (file)
@@ -5,7 +5,7 @@
 ;*    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
@@ -21,7 +21,6 @@
 \r
 Scope(\_SB)\r
 {\r
-\r
 //RTC\r
   Device(RTC)    // RTC\r
   {\r
@@ -31,6 +30,17 @@ Scope(\_SB)
     {\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
index 4b9f992..6029d14 100644 (file)
@@ -110,7 +110,7 @@ typedef struct _PPM_TURBO_SETTINGS {
 //\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
@@ -133,6 +133,6 @@ typedef struct _PPM_PLATFORM_POLICY_PROTOCOL {
   //\r
   UINT16                                Reserve10;\r
   UINT8                                 Reserve11;\r
-} PPM_PLATFORM_POLICY_PROTOCOL;\r
+};\r
 \r
 #endif\r
index c4eba99..bd9164a 100644 (file)
@@ -34,12 +34,12 @@ Abstract:
 \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
index c39c36d..ac387c6 100644 (file)
@@ -968,6 +968,7 @@ AcpiPlatformEntryPoint (
   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
index 6b9b830..5168bd5 100644 (file)
@@ -1307,8 +1307,8 @@ typedef struct {
   UINT8  LpssHsuart1FlowControlEnabled;
 
   UINT8   SdCardRemovable; // ACPI reporting MMC/SD media as: removable/non-removable
-  
   UINT8   GpioWakeCapability;
+  UINT8   RtcBattery;
 
 } SYSTEM_CONFIGURATION;
 #pragma pack()
index 27aa2d7..e0de86d 100644 (file)
@@ -471,6 +471,7 @@ typedef struct {
   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 ()
 
index e7e952f..18a29ed 100644 (file)
@@ -915,4 +915,12 @@ form formid = MISC_OPTIONS_FORM_ID,
     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
index 7ecc549..229b75e 100644 (file)
Binary files a/Vlv2TbltDevicePkg/PlatformSetupDxe/UqiList.uni and b/Vlv2TbltDevicePkg/PlatformSetupDxe/UqiList.uni differ
index 144579a..d1e1b6d 100644 (file)
Binary files a/Vlv2TbltDevicePkg/PlatformSetupDxe/VfrStrings.uni and b/Vlv2TbltDevicePkg/PlatformSetupDxe/VfrStrings.uni differ