soc/intel/cannonlake: Add platform.asl
Include common platform.asl to have generic indication of power transition state of system. TEST=Enter and resume from S3, check the post code had been changed to 0096 and 0097. Change-Id: Ic38ac6d7e60441caeba5c088c9dbe4d901355782 Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/22111 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com>
This commit is contained in:
parent
418535e222
commit
6a09eee4ad
|
@ -24,6 +24,9 @@ DefinitionBlock(
|
||||||
0x20110725 // OEM revision
|
0x20110725 // OEM revision
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// Some generic macros
|
||||||
|
#include <soc/intel/cannonlake/acpi/platform.asl>
|
||||||
|
|
||||||
// global NVS and variables
|
// global NVS and variables
|
||||||
#include <soc/intel/cannonlake/acpi/globalnvs.asl>
|
#include <soc/intel/cannonlake/acpi/globalnvs.asl>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
/* Enable ACPI _SWS methods */
|
/* Enable ACPI _SWS methods */
|
||||||
#include <soc/intel/common/acpi/acpi_wake_source.asl>
|
#include <soc/intel/common/acpi/acpi_wake_source.asl>
|
||||||
|
/* Generic indicator for sleep state */
|
||||||
|
#include <soc/intel/common/acpi/platform.asl>
|
||||||
|
|
||||||
/* The APM port can be used for generating software SMIs */
|
/* The APM port can be used for generating software SMIs */
|
||||||
|
|
||||||
|
@ -27,14 +29,6 @@ Field (APMP, ByteAcc, NoLock, Preserve)
|
||||||
APMS, 8 // APM status
|
APMS, 8 // APM status
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Port 80 POST */
|
|
||||||
|
|
||||||
OperationRegion (POST, SystemIO, 0x80, 1)
|
|
||||||
Field (POST, ByteAcc, Lock, Preserve)
|
|
||||||
{
|
|
||||||
DBG0, 8
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The _PIC method is called by the OS to choose between interrupt
|
* The _PIC method is called by the OS to choose between interrupt
|
||||||
* routing via the i8259 interrupt controller or the APIC.
|
* routing via the i8259 interrupt controller or the APIC.
|
||||||
|
@ -48,19 +42,3 @@ Method (_PIC, 1)
|
||||||
/* Remember the OS' IRQ routing choice. */
|
/* Remember the OS' IRQ routing choice. */
|
||||||
Store (Arg0, PICM)
|
Store (Arg0, PICM)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* The _PTS method (Prepare To Sleep) is called before the OS is
|
|
||||||
* entering a sleep state. The sleep state number is passed in Arg0
|
|
||||||
*/
|
|
||||||
|
|
||||||
Method (_PTS, 1)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The _WAK method is called on system wakeup */
|
|
||||||
|
|
||||||
Method (_WAK, 1)
|
|
||||||
{
|
|
||||||
Return (Package (){ 0, 0 })
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue