blob: 3111e0a6812947f0762b5b7f2d213ea33d33aee2 [file] [log] [blame]
Stefan Reinauer6651da32012-04-27 23:16:30 +02001/*
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 Reinauer6651da32012-04-27 23:16:30 +020014 */
15
Gabe Black599e2042012-03-30 14:33:02 -070016#ifndef EMERALDLAKE2_THERMAL_H
17#define EMERALDLAKE2_THERMAL_H
Stefan Reinauer6651da32012-04-27 23:16:30 +020018
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