summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x60/acpi/thermal.asl
blob: b7256ceec1df33b484081bb82ae8c3670aebc84d (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
Scope(\_TZ)
{
	Method(C2K, 1, NotSerialized)
	{
		Multiply(Arg0, 10, Local0)
		Add (Local0, 2732, Local0)
		if (LLessEqual(Local0, 2732)) {
		        Return (3000)
		}

		if (LGreater(Local0, 4012)) {
		        Return (3000)
		}
		Return (Local0)
	}

	ThermalZone(THM0)
	{
		Method(_CRT, 0, NotSerialized) {
			Return (C2K(127))
		}
		Method(_TMP) {
			Return (C2K(\_SB.PCI0.LPCB.EC.TMP0))
		}
	}
}