blob: eddabd10f6e9157bd2a98ad98bb3596809a8db52 [file] [log] [blame]
Angel Ponsba38f372020-04-05 15:46:45 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Martin Rothebabfad2016-04-10 11:09:16 -06002
Lee Leahy77ff0b12015-05-05 15:07:29 -07003Device (DPTF)
4{
5 Name (_HID, EISAID ("INT3400"))
6 Name (_UID, 0)
7
8 Name (IDSP, Package()
9 {
10 /* DPPM Passive Policy 1.0 */
11 ToUUID ("42A441D6-AE6A-462B-A84B-4A8CE79027D3"),
12
13 /* DPPM Critical Policy */
14 ToUUID ("97C68AE7-15FA-499c-B8C9-5DA81D606E0A"),
15
16 /* DPPM Cooling Policy */
17 ToUUID ("16CAF1B7-DD38-40ED-B1C1-1B8A1913D531"),
18 })
19
20 Method (_STA)
21 {
Felix Singer7b8ac002022-12-26 08:45:56 +010022 If (\DPTE == 1) {
Lee Leahy77ff0b12015-05-05 15:07:29 -070023 Return (0xF)
24 } Else {
25 Return (0x0)
26 }
27 }
28
Lee Leahy32471722015-04-20 15:20:28 -070029 /*
30 * Arg0: Buffer containing UUID
Lee Leahy77ff0b12015-05-05 15:07:29 -070031 * Arg1: Integer containing Revision ID of buffer format
32 * Arg2: Integer containing count of entries in Arg3
33 * Arg3: Buffer containing list of DWORD capabilities
34 * Return: Buffer containing list of DWORD capabilities
35 */
36 Method (_OSC, 4, Serialized)
37 {
38 /* Check for Passive Policy UUID */
Elyes Haouasffc0d242022-12-25 06:01:09 +010039 If (DeRefOf (IDSP[0]) == Arg0) {
Lee Leahy77ff0b12015-05-05 15:07:29 -070040 /* Initialize Thermal Devices */
41 ^TINI ()
42
43#ifdef DPTF_ENABLE_CHARGER
44 /* Initialize Charger Device */
45 ^TCHG.INIT ()
46#endif
47 }
48
49 Return (Arg3)
50 }
51
52 /* Priority based _TRT */
53 Name (TRTR, 1)
54
55 Method (_TRT)
56 {
57 Return (\_SB.DTRT)
58 }
59
60 /* Convert from Degrees C to 1/10 Kelvin for ACPI */
61 Method (CTOK, 1) {
62 /* 10th of Degrees C */
Felix Singer447c3992022-12-12 01:36:53 +010063 Local0 = Arg0 * 10
Lee Leahy77ff0b12015-05-05 15:07:29 -070064
65 /* Convert to Kelvin */
Felix Singere4c30042022-12-12 00:46:05 +010066 Local0 += 2732
Lee Leahy77ff0b12015-05-05 15:07:29 -070067
68 Return (Local0)
69 }
70
Lee Leahy77ff0b12015-05-05 15:07:29 -070071 /* Include Thermal Participants */
72 #include "thermal.asl"
73
74#ifdef DPTF_ENABLE_CHARGER
75 /* Include Charger Participant */
76 #include "charger.asl"
77#endif
Lee Leahy32471722015-04-20 15:20:28 -070078
Prince Agyeman4aab85b2015-08-05 20:17:38 -070079 /* Include Network Participants */
80#ifdef DPTF_ENABLE_WIFI
Lee Leahy32471722015-04-20 15:20:28 -070081 #include "wifi.asl"
Prince Agyeman4aab85b2015-08-05 20:17:38 -070082#endif
83
84#ifdef DPTF_ENABLE_WWAN
Lee Leahy32471722015-04-20 15:20:28 -070085 #include "wwan.asl"
Prince Agyeman4aab85b2015-08-05 20:17:38 -070086#endif
Lee Leahy77ff0b12015-05-05 15:07:29 -070087}