sb/intel/wildcatpoint/acpi: Move platform.asl to mainboards
The chipset platform.asl only provided empty _PTS/_WAK stubs and _SWS methods, which mainboards needing custom sleep/wake behavior (e.g. EC methods) cannot use. Only 2 of 5 Wildcat Point boards used it. Move the content to mainboard code and inline the device_nvs and common platform includes in dsdt.asl to align with other Wildcat Point and Lynx Point boards. Keeping device NVS in mainboard code also simplifies future Lynx/Wildcat unification. Tested with BUILD_TIMELESS=1, Purism Librem 15 v2 remains identical. Change-Id: I753302a13567efb3b7903364be8cef486d2b76e5 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91469 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
762b564f3b
commit
9541171de4
4 changed files with 41 additions and 5 deletions
|
|
@ -1,8 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <southbridge/intel/wildcatpoint/acpi/device_nvs.asl>
|
||||
#include <southbridge/intel/common/acpi/platform.asl>
|
||||
|
||||
/*
|
||||
* The _PTS method (Prepare To Sleep) is called before the OS is
|
||||
* entering a sleep state. The sleep state number is passed in Arg0
|
||||
|
|
@ -11,7 +11,9 @@ DefinitionBlock(
|
|||
)
|
||||
{
|
||||
#include <acpi/dsdt_top.asl>
|
||||
#include <southbridge/intel/wildcatpoint/acpi/platform.asl>
|
||||
#include <southbridge/intel/wildcatpoint/acpi/device_nvs.asl>
|
||||
#include <southbridge/intel/common/acpi/platform.asl>
|
||||
#include "acpi/platform.asl"
|
||||
|
||||
// Thermal handler
|
||||
#include "acpi/thermal.asl"
|
||||
|
|
|
|||
35
src/mainboard/purism/librem_bdw/acpi/platform.asl
Normal file
35
src/mainboard/purism/librem_bdw/acpi/platform.asl
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
/*
|
||||
* 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 })
|
||||
}
|
||||
|
||||
Scope (\_SB)
|
||||
{
|
||||
Method (_SWS)
|
||||
{
|
||||
/* Index into PM1 for device that caused wake */
|
||||
Return (\PM1I)
|
||||
}
|
||||
}
|
||||
|
||||
Scope (\_GPE)
|
||||
{
|
||||
Method (_SWS)
|
||||
{
|
||||
/* Index into GPE for device that caused wake */
|
||||
Return (\GPEI)
|
||||
}
|
||||
}
|
||||
|
|
@ -11,7 +11,9 @@ DefinitionBlock(
|
|||
)
|
||||
{
|
||||
#include <acpi/dsdt_top.asl>
|
||||
#include <southbridge/intel/wildcatpoint/acpi/platform.asl>
|
||||
#include <southbridge/intel/wildcatpoint/acpi/device_nvs.asl>
|
||||
#include <southbridge/intel/common/acpi/platform.asl>
|
||||
#include "acpi/platform.asl"
|
||||
#include <southbridge/intel/wildcatpoint/acpi/globalnvs.asl>
|
||||
#include <cpu/intel/common/acpi/cpu.asl>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue