summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwei4 <david.wei@intel.com>2018-02-23 14:58:11 +0800
committerzwei4 <david.wei@intel.com>2018-02-23 14:58:11 +0800
commitd569c5939cf9d150fc9f7825d4d8f9c9ff7787aa (patch)
treef17d3007c37b81f12446d3b713b7d0f829189efc
parent253951d0e1c0f92f4c3ebb588e04a493ad922095 (diff)
downloadedk2-platforms-d569c5939cf9d150fc9f7825d4d8f9c9ff7787aa.tar.xz
Add control method power button.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 <david.wei@intel.com>
-rw-r--r--Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Platform.asl19
1 files changed, 18 insertions, 1 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Platform.asl b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Platform.asl
index 4674f70f2c..49ddd10ffd 100644
--- a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Platform.asl
+++ b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Platform.asl
@@ -1,5 +1,5 @@
/** @file
- Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2012 - 2018, 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
@@ -178,6 +178,8 @@ Method(_WAK,1,Serialized)
{
P8XH(1,0xAB) // Beginning of _WAK.
+ Notify(\_SB.PWRB,0x02)
+
If (NEXP) {
// Reinitialize the Native PCI Express after resume
If (And(OSCC,0x02)) {
@@ -718,6 +720,21 @@ Scope(\_SB)
}
}//end scope
+ //
+ // Define a Control Method Power Button.
+ //
+ Device(PWRB)
+ {
+ Name(_HID,EISAID("PNP0C0C"))
+
+ // GPE16 = Waketime SCI.
+ Name(_PRW, Package() {16,4})
+ }
+
+ Device(SLPB)
+ {
+ Name(_HID, EISAID("PNP0C0E"))
+ }
} // end Scope(\_SB)
Scope (\)