Josie Nordrum has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46669 )
Change subject: soc/amd/common/acpi: Create platform.asl to define acpi transitions ......................................................................
soc/amd/common/acpi: Create platform.asl to define acpi transitions
Define _WAK, _PTS, and _INI acpi Methods for device.
BUG=b:158087989 BRANCH=Zork TEST=tested backlight during reboot and suspend
Signed-Off-By: Josie Nordrum josienordrum@google.com Change-Id: I8020173a15db1d310459d5c1de3600949b173b00 --- A src/soc/amd/common/acpi/platform.asl 1 file changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/46669/1
diff --git a/src/soc/amd/common/acpi/platform.asl b/src/soc/amd/common/acpi/platform.asl new file mode 100644 index 0000000..c0fd8fa --- /dev/null +++ b/src/soc/amd/common/acpi/platform.asl @@ -0,0 +1,28 @@ +External(_SB.MPTS, MethodObj) +External(_SB.MWAK, MethodObj) +External(_SB.MINI, MethodObj) + +/* Platform initialization methods */ +Method (_INI, 0, NotSerialized) +{ + If (CondRefOf (_SB.MINI)) { + _SB.MINI() + } +} + +/* Platform-wide wake methods */ +Method (_WAK, 1, NotSerialized) +{ + If (CondRefOf (_SB.MWAK)){ + _SB.MWAK() + } + Return (Package (){ 0, 0 }) +} + +/* Platform-wide Put To Sleep (suspend) methods */ +Method (_PTS, 1, NotSerialized) +{ + If (CondRefOf (_SB.MPTS)){ + _SB.MPTS() + } +} \ No newline at end of file