| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
// Thermal Zone |
| 4 |
|
| 5 |
Scope (\_TZ) |
| 6 |
{ |
| 7 |
ThermalZone (THRM) |
| 8 |
{ |
| 9 |
|
| 10 |
// FIXME these could/should be read from the |
| 11 |
// GNVS area, so they can be controlled by |
| 12 |
// coreboot |
| 13 |
Name(TC1V, 0x04) |
| 14 |
Name(TC2V, 0x03) |
| 15 |
Name(TSPV, 0x64) |
| 16 |
|
| 17 |
// At which temperature should the OS start |
| 18 |
// active cooling? |
| 19 |
Method (_AC0, 0, Serialized) |
| 20 |
{ |
| 21 |
Return (0xf5c) // Value for Rocky |
| 22 |
} |
| 23 |
|
| 24 |
// Method (_AC1, 0, Serialized) |
| 25 |
// { |
| 26 |
// Return (0xf5c) |
| 27 |
// } |
| 28 |
|
| 29 |
// Critical shutdown temperature |
| 30 |
Method (_CRT, 0, Serialized) |
| 31 |
{ |
| 32 |
Return (0x0aac + 0x50) // FIXME |
| 33 |
} |
| 34 |
|
| 35 |
// CPU throttling start temperature |
| 36 |
Method (_PSV, 0, Serialized) |
| 37 |
{ |
| 38 |
Return (0xaaf) // FIXME |
| 39 |
} |
| 40 |
|
| 41 |
// Get DTS Temperature |
| 42 |
Method (_TMP, 0, Serialized) |
| 43 |
{ |
| 44 |
Return (0xaac) // FIXME |
| 45 |
} |
| 46 |
|
| 47 |
// Processors used for active cooling |
| 48 |
Method (_PSL, 0, Serialized) |
| 49 |
{ |
| 50 |
If (MPEN) { |
| 51 |
Return (Package() {\_SB.CP00, \_SB.CP01}) |
| 52 |
} |
| 53 |
Return (Package() {\_SB.CP00}) |
| 54 |
} |
| 55 |
|
| 56 |
// TC1 value for passive cooling |
| 57 |
Method (_TC1, 0, Serialized) |
| 58 |
{ |
| 59 |
Return (TC1V) |
| 60 |
} |
| 61 |
|
| 62 |
// TC2 value for passive cooling |
| 63 |
Method (_TC2, 0, Serialized) |
| 64 |
{ |
| 65 |
Return (TC2V) |
| 66 |
} |
| 67 |
|
| 68 |
// Sampling period for passive cooling |
| 69 |
Method (_TSP, 0, Serialized) |
| 70 |
{ |
| 71 |
Return (TSPV) |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
} |
| 76 |
} |