summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/acpi')
-rw-r--r--src/soc/intel/common/acpi/platform.asl15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/soc/intel/common/acpi/platform.asl b/src/soc/intel/common/acpi/platform.asl
index 9aa2edc6df..c41ccbe0cb 100644
--- a/src/soc/intel/common/acpi/platform.asl
+++ b/src/soc/intel/common/acpi/platform.asl
@@ -19,6 +19,8 @@
External(\_SB.MPTS, MethodObj)
External(\_SB.MWAK, MethodObj)
+External(\_SB.PCI0.EGPM, MethodObj)
+External(\_SB.PCI0.RGPM, MethodObj)
/* Port 80 POST */
@@ -41,6 +43,14 @@ Method (_PTS, 1)
{
\_SB.MPTS (Arg0)
}
+ /*
+ * Save the current PM bits then
+ * enable GPIO PM with MISCCFG_ENABLE_GPIO_PM_CONFIG
+ */
+ If (CondRefOf (\_SB.PCI0.EGPM))
+ {
+ \_SB.PCI0.EGPM ()
+ }
}
/* The _WAK method is called on system wakeup */
@@ -53,6 +63,11 @@ Method (_WAK, 1)
{
\_SB.MWAK (Arg0)
}
+ /* Restore GPIO all Community PM */
+ If (CondRefOf (\_SB.PCI0.RGPM))
+ {
+ \_SB.PCI0.RGPM ()
+ }
Return (Package(){0,0})
}