| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
Device (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 |
{ |
| 22 |
If (\DPTE == 1) { |
| 23 |
Return (0xF) |
| 24 |
} Else { |
| 25 |
Return (0x0) |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
/* |
| 30 |
* Arg0: Buffer containing UUID |
| 31 |
* 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 */ |
| 39 |
If (DeRefOf (IDSP[0]) == Arg0) { |
| 40 |
/* 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 */ |
| 63 |
Local0 = Arg0 * 10 |
| 64 |
|
| 65 |
/* Convert to Kelvin */ |
| 66 |
Local0 += 2732 |
| 67 |
|
| 68 |
Return (Local0) |
| 69 |
} |
| 70 |
|
| 71 |
/* Include CPU Participant */ |
| 72 |
#include "cpu.asl" |
| 73 |
|
| 74 |
/* Include Thermal Participants */ |
| 75 |
#include "thermal.asl" |
| 76 |
|
| 77 |
#ifdef DPTF_ENABLE_CHARGER |
| 78 |
/* Include Charger Participant */ |
| 79 |
#include "charger.asl" |
| 80 |
#endif |
| 81 |
} |