Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef THERMAL_H |
| 17 | #define THERMAL_H |
| 18 | |
Duncan Laurie | 1eca1d4 | 2013-10-12 11:50:05 +0800 | [diff] [blame] | 19 | #define TEMPERATURE_SENSOR_ID 0 /* PECI */ |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 20 | |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 21 | /* Temperature which OS will shutdown at */ |
Duncan Laurie | 69d7aec | 2014-11-03 08:53:21 -0800 | [diff] [blame] | 22 | #define CRITICAL_TEMPERATURE 104 |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 23 | |
| 24 | /* Temperature which OS will throttle CPU */ |
Duncan Laurie | 1eca1d4 | 2013-10-12 11:50:05 +0800 | [diff] [blame] | 25 | #define PASSIVE_TEMPERATURE 95 |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 26 | |
| 27 | /* Tj_max value for calculating PECI CPU temperature */ |
Duncan Laurie | 69d7aec | 2014-11-03 08:53:21 -0800 | [diff] [blame] | 28 | #define MAX_TEMPERATURE 105 |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 29 | |
| 30 | #endif |