diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/common/acpi/platform.asl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/soc/amd/common/acpi/platform.asl b/src/soc/amd/common/acpi/platform.asl new file mode 100644 index 0000000000..6db12e3d47 --- /dev/null +++ b/src/soc/amd/common/acpi/platform.asl @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* Callback methods to be implemented by mainboard */ +External(\_SB.MPTS, MethodObj) +External(\_SB.MWAK, MethodObj) +External(\_SB.MINI, MethodObj) + +Scope (\_SB){ + /* 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() + } +} |