soc/intel/pantherlake: Remove soc_info.[hc] interface
[coreboot2.git] / src / soc / intel / skylake / acpi / dptf / dptf.asl
blobdd4301165303918bc2eeb6d8ef4f75b4b1f128f6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Device (DPTF)
5         Name (_HID, EISAID ("INT3400"))
6         Name (_UID, 0)
8         Name (IDSP, Package()
9         {
10                 /* DPPM Passive Policy 1.0 */
11                 ToUUID ("42A441D6-AE6A-462B-A84B-4A8CE79027D3"),
13                 /* DPPM Critical Policy */
14                 ToUUID ("97C68AE7-15FA-499c-B8C9-5DA81D606E0A"),
16                 /* DPPM Cooling Policy */
17                 ToUUID ("16CAF1B7-DD38-40ED-B1C1-1B8A1913D531"),
19 #ifdef DPTF_ENABLE_FAN_CONTROL
20                 /* DPPM Active Policy */
21                 ToUUID ("3A95C389-E4B8-4629-A526-C52C88626BAE"),
22 #endif
23         })
25         Method (_STA)
26         {
27                 If (\DPTE == 1) {
28                         Return (0xF)
29                 } Else {
30                         Return (0x0)
31                 }
32         }
34         /*
35          * Arg0: Buffer containing UUID
36          * Arg1: Integer containing Revision ID of buffer format
37          * Arg2: Integer containing count of entries in Arg3
38          * Arg3: Buffer containing list of DWORD capabilities
39          * Return: Buffer containing list of DWORD capabilities
40          */
41         Method (_OSC, 4, Serialized)
42         {
43                 /* Check for Passive Policy UUID */
44                 If (DeRefOf (IDSP [0]) == Arg0) {
45                         /* Initialize Thermal Devices */
46                         ^TINI ()
48 #ifdef DPTF_ENABLE_CHARGER
49                         /* Initialize Charger Device */
50                         ^TCHG.INIT ()
51 #endif
52                 }
54                 Return (Arg3)
55         }
57         /* Priority based _TRT */
58         Name (TRTR, 1)
60         Method (_TRT)
61         {
62                 Return (\_SB.DTRT)
63         }
65 #ifdef DPTF_ENABLE_FAN_CONTROL
66         Method (_ART)
67         {
68                 Return (\_SB.DART)
69         }
70 #endif
72         /* Convert from Degrees C to 1/10 Kelvin for ACPI */
73         Method (CTOK, 1) {
74                 /* 10th of Degrees C */
75                 Local0 = Arg0 * 10
77                 /* Convert to Kelvin */
78                 Local0 += 2732
80                 Return (Local0)
81         }
83         /* Include Thermal Participants */
84         #include "thermal.asl"
86 #ifdef DPTF_ENABLE_CHARGER
87         /* Include Charger Participant */
88         #include "charger.asl"
89 #endif
91 #ifdef DPTF_ENABLE_FAN_CONTROL
92         /* Include Fan Participant */
93         #include "fan.asl"
94 #endif
98 Scope (\_SB.PCI0)
100         #include "cpu.asl"