]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PciTree.asl
Vlv2TbltDevicePkg/Vlv2DeviceRefCodePkg:
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / PciTree.asl
index 84a7ee21d0252ee1d6c1aa731ea86d6c0054f117..2a57d0f887a1b091af9036071298e1a9b1675a9b 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