summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/acpi/platform.asl
blob: 23ab7ac7136de799d15e90888f5fa5ec4bfadcbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* 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)
{
	PNOT ()

	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()
	}
}