1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Include common dptf ASL files */
4 #include <soc/intel/common/acpi/dptf_common.asl>
8 Name (_HID, DPTF_DPTF_DEVICE)
14 /* DPPM Passive Policy 1.0 */
15 ToUUID ("42A441D6-AE6A-462B-A84B-4A8CE79027D3"),
17 /* DPPM Critical Policy */
18 ToUUID ("97C68AE7-15FA-499c-B8C9-5DA81D606E0A"),
20 /* DPPM Cooling Policy */
21 ToUUID ("16CAF1B7-DD38-40ED-B1C1-1B8A1913D531"),
23 #ifdef DPTF_ENABLE_FAN_CONTROL
24 /* DPPM Active Policy */
25 ToUUID ("3A95C389-E4B8-4629-A526-C52C88626BAE"),
39 * Arg0: Buffer containing UUID
40 * Arg1: Integer containing Revision ID of buffer format
41 * Arg2: Integer containing count of entries in Arg3
42 * Arg3: Buffer containing list of DWORD capabilities
43 * Return: Buffer containing list of DWORD capabilities
45 Method (_OSC, 4, Serialized)
47 /* Check for Passive Policy UUID */
48 If (DeRefOf (IDSP[0]) == Arg0) {
49 /* Initialize Thermal Devices */
52 #ifdef DPTF_ENABLE_CHARGER
53 /* Initialize Charger Device */
61 /* Priority based _TRT */
69 #ifdef DPTF_ENABLE_FAN_CONTROL
76 /* Convert from Degrees C to 1/10 Kelvin for ACPI */
78 /* 10th of Degrees C */
81 /* Convert to Kelvin */
87 /* Convert from 1/10 Kelvin to Degrees C for ACPI */
93 /* Convert to Celsius */
96 /* Convert from 10th of degrees */
102 /* Include Thermal Participants */
103 #include "thermal.asl"
105 #ifdef DPTF_ENABLE_CHARGER
106 /* Include Charger Participant */
107 #include "charger.asl"
110 #ifdef DPTF_ENABLE_FAN_CONTROL
111 /* Include Fan Participant */