Shilpa Sreeramalu | a0f5153 | 2015-06-22 21:48:39 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Google Inc. |
| 5 | * Copyright (C) 2015 Intel Corporation. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Shilpa Sreeramalu | a0f5153 | 2015-06-22 21:48:39 +0530 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | Device (DPTF) |
| 18 | { |
| 19 | Name (_HID, EISAID ("INT3400")) |
| 20 | Name (_UID, 0) |
| 21 | |
| 22 | Name (IDSP, Package() |
| 23 | { |
| 24 | /* DPPM Passive Policy 1.0 */ |
| 25 | ToUUID ("42A441D6-AE6A-462B-A84B-4A8CE79027D3"), |
| 26 | |
| 27 | /* DPPM Critical Policy */ |
| 28 | ToUUID ("97C68AE7-15FA-499c-B8C9-5DA81D606E0A"), |
| 29 | |
| 30 | /* DPPM Cooling Policy */ |
| 31 | ToUUID ("16CAF1B7-DD38-40ED-B1C1-1B8A1913D531"), |
Sumeet Pawnikar | 2ca76e6 | 2015-10-19 14:45:23 +0530 | [diff] [blame^] | 32 | |
| 33 | #ifdef DPTF_ENABLE_FAN_CONTROL |
| 34 | /* DPPM Active Policy */ |
| 35 | ToUUID ("3A95C389-E4B8-4629-A526-C52C88626BAE"), |
| 36 | #endif |
Shilpa Sreeramalu | a0f5153 | 2015-06-22 21:48:39 +0530 | [diff] [blame] | 37 | }) |
| 38 | |
| 39 | Method (_STA) |
| 40 | { |
| 41 | If (LEqual (\DPTE, One)) { |
| 42 | Return (0xF) |
| 43 | } Else { |
| 44 | Return (0x0) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /* |
| 49 | * Arg0: Buffer containing UUID |
| 50 | * Arg1: Integer containing Revision ID of buffer format |
| 51 | * Arg2: Integer containing count of entries in Arg3 |
| 52 | * Arg3: Buffer containing list of DWORD capabilities |
| 53 | * Return: Buffer containing list of DWORD capabilities |
| 54 | */ |
| 55 | Method (_OSC, 4, Serialized) |
| 56 | { |
| 57 | /* Check for Passive Policy UUID */ |
| 58 | If (LEqual (DeRefOf (Index (IDSP, 0)), Arg0)) { |
| 59 | /* Initialize Thermal Devices */ |
| 60 | ^TINI () |
| 61 | |
| 62 | #ifdef DPTF_ENABLE_CHARGER |
| 63 | /* Initialize Charger Device */ |
| 64 | ^TCHG.INIT () |
| 65 | #endif |
| 66 | } |
| 67 | |
| 68 | Return (Arg3) |
| 69 | } |
| 70 | |
| 71 | /* Priority based _TRT */ |
| 72 | Name (TRTR, 1) |
| 73 | |
| 74 | Method (_TRT) |
| 75 | { |
| 76 | Return (\_SB.DTRT) |
| 77 | } |
| 78 | |
Sumeet Pawnikar | 2ca76e6 | 2015-10-19 14:45:23 +0530 | [diff] [blame^] | 79 | #ifdef DPTF_ENABLE_FAN_CONTROL |
| 80 | /* _ART : Active Cooling Relationship Table */ |
| 81 | Method (_ART) |
| 82 | { |
| 83 | Return (\_SB.DART) |
| 84 | } |
| 85 | #endif |
| 86 | |
Shilpa Sreeramalu | a0f5153 | 2015-06-22 21:48:39 +0530 | [diff] [blame] | 87 | /* Convert from Degrees C to 1/10 Kelvin for ACPI */ |
| 88 | Method (CTOK, 1) { |
| 89 | /* 10th of Degrees C */ |
| 90 | Multiply (Arg0, 10, Local0) |
| 91 | |
| 92 | /* Convert to Kelvin */ |
| 93 | Add (Local0, 2732, Local0) |
| 94 | |
| 95 | Return (Local0) |
| 96 | } |
| 97 | |
| 98 | /* Include Thermal Participants */ |
| 99 | #include "thermal.asl" |
| 100 | |
| 101 | #ifdef DPTF_ENABLE_CHARGER |
| 102 | /* Include Charger Participant */ |
| 103 | #include "charger.asl" |
| 104 | #endif |
| 105 | |
Sumeet Pawnikar | 2ca76e6 | 2015-10-19 14:45:23 +0530 | [diff] [blame^] | 106 | #ifdef DPTF_ENABLE_FAN_CONTROL |
| 107 | /* Include Fan Participant */ |
| 108 | #include "fan.asl" |
| 109 | #endif |
| 110 | |
Shilpa Sreeramalu | a0f5153 | 2015-06-22 21:48:39 +0530 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | Scope (\_SB.PCI0) |
| 114 | { |
| 115 | #include "cpu.asl" |
| 116 | } |