Stefan Reinauer | 6651da3 | 2012-04-27 23:16:30 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 The Chromium OS Authors. All rights reserved. |
| 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. |
Stefan Reinauer | 6651da3 | 2012-04-27 23:16:30 +0200 | [diff] [blame] | 14 | */ |
| 15 | |
Gabe Black | 599e204 | 2012-03-30 14:33:02 -0700 | [diff] [blame] | 16 | #ifndef EMERALDLAKE2_THERMAL_H |
| 17 | #define EMERALDLAKE2_THERMAL_H |
Stefan Reinauer | 6651da3 | 2012-04-27 23:16:30 +0200 | [diff] [blame] | 18 | |
| 19 | /* Fan is OFF */ |
| 20 | #define FAN4_THRESHOLD_OFF 0 |
| 21 | #define FAN4_THRESHOLD_ON 0 |
| 22 | #define FAN4_PWM 0x00 |
| 23 | |
| 24 | /* Fan is at LOW speed */ |
| 25 | #define FAN3_THRESHOLD_OFF 48 |
| 26 | #define FAN3_THRESHOLD_ON 55 |
| 27 | #define FAN3_PWM 0x40 |
| 28 | |
| 29 | /* Fan is at MEDIUM speed */ |
| 30 | #define FAN2_THRESHOLD_OFF 52 |
| 31 | #define FAN2_THRESHOLD_ON 64 |
| 32 | #define FAN2_PWM 0x80 |
| 33 | |
| 34 | /* Fan is at HIGH speed */ |
| 35 | #define FAN1_THRESHOLD_OFF 60 |
| 36 | #define FAN1_THRESHOLD_ON 68 |
| 37 | #define FAN1_PWM 0xb0 |
| 38 | |
| 39 | /* Fan is at FULL speed */ |
| 40 | #define FAN0_THRESHOLD_OFF 66 |
| 41 | #define FAN0_THRESHOLD_ON 78 |
| 42 | #define FAN0_PWM 0xff |
| 43 | |
| 44 | /* Temperature which OS will shutdown at */ |
| 45 | #define CRITICAL_TEMPERATURE 100 |
| 46 | |
| 47 | /* Temperature which OS will throttle CPU */ |
| 48 | #define PASSIVE_TEMPERATURE 90 |
| 49 | |
| 50 | /* Tj_max value for calculating PECI CPU temperature */ |
| 51 | #define MAX_TEMPERATURE 100 |
| 52 | |
| 53 | #endif |