Duncan Laurie | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2012 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 | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef THERMAL_H |
| 17 | #define THERMAL_H |
| 18 | |
Duncan Laurie | 29f7688 | 2013-07-15 09:17:09 -0700 | [diff] [blame] | 19 | #define TEMPERATURE_SENSOR_ID 0 /* PECI */ |
| 20 | |
Duncan Laurie | 5fcfece | 2013-07-31 15:35:55 -0700 | [diff] [blame] | 21 | /* Power level to set when EC requests throttle */ |
| 22 | #define EC_THROTTLE_POWER_LIMIT 12 /* 12W */ |
| 23 | |
Duncan Laurie | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 24 | /* Temperature which OS will shutdown at */ |
ChromeOS Developer | 32193e1 | 2013-12-16 23:41:11 -0800 | [diff] [blame] | 25 | #define CRITICAL_TEMPERATURE 99 |
Duncan Laurie | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 26 | |
| 27 | /* Temperature which OS will throttle CPU */ |
ChromeOS Developer | 32193e1 | 2013-12-16 23:41:11 -0800 | [diff] [blame] | 28 | #define PASSIVE_TEMPERATURE 95 |
Duncan Laurie | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 29 | |
| 30 | /* Tj_max value for calculating PECI CPU temperature */ |
ChromeOS Developer | 32193e1 | 2013-12-16 23:41:11 -0800 | [diff] [blame] | 31 | #define MAX_TEMPERATURE 100 |
Duncan Laurie | 5290f71 | 2013-05-22 16:31:09 -0700 | [diff] [blame] | 32 | |
| 33 | #endif |