Lijian Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32366
Change subject: soc/intel/common/acpi: Add dynamic method around sleep ......................................................................
soc/intel/common/acpi: Add dynamic method around sleep
Declare plaform level hook method before and after system sleep for possible power management related usage.
BUG=N/A TEST=pass with make what-jenkins-does
Signed-off-by: Lijian Zhao lijian.zhao@intel.com Change-Id: Ie63711748b6dbb99d34910824f2059464543e162 --- M src/soc/intel/common/acpi/platform.asl 1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/32366/1
diff --git a/src/soc/intel/common/acpi/platform.asl b/src/soc/intel/common/acpi/platform.asl index bdc0d5c..7ca19c1 100644 --- a/src/soc/intel/common/acpi/platform.asl +++ b/src/soc/intel/common/acpi/platform.asl @@ -17,6 +17,9 @@
#include <include/console/post_codes.h>
+External(_SB.PCI0.MPTS, MethodObj) +External(_SB.PCI0.MWAK, MethodObj) + /* Port 80 POST */
OperationRegion (POST, SystemIO, CONFIG_POST_IO_PORT, 1) @@ -38,6 +41,10 @@ /* Call EC _PTS handler */ _SB.PCI0.LPCB.EC0.PTS (Arg0) #endif + If(CondRefOf (_SB.PCI0.MPTS)) + { + _SB.PCI0.MPTS (Arg0) + } }
/* The _WAK method is called on system wakeup */ @@ -50,6 +57,10 @@ /* Call EC _WAK handler */ _SB.PCI0.LPCB.EC0.WAK (Arg0) #endif + If(CondRefOf (_SB.PCI0.MWAK)) + { + _SB.PCI0.MWAK (Arg0) + }
Return (Package(){0,0}) }