blob: a2f8e7128f45f1e67e2af1e329d1db8990fab392 [file] [log] [blame]
Duncan Laurie5290f712013-05-22 16:31:09 -07001/*
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 Laurie5290f712013-05-22 16:31:09 -070014 */
15
16#ifndef THERMAL_H
17#define THERMAL_H
18
Duncan Laurie29f76882013-07-15 09:17:09 -070019#define TEMPERATURE_SENSOR_ID 0 /* PECI */
20
Duncan Laurie5fcfece2013-07-31 15:35:55 -070021/* Power level to set when EC requests throttle */
22#define EC_THROTTLE_POWER_LIMIT 12 /* 12W */
23
Duncan Laurie5290f712013-05-22 16:31:09 -070024/* Temperature which OS will shutdown at */
ChromeOS Developer32193e12013-12-16 23:41:11 -080025#define CRITICAL_TEMPERATURE 99
Duncan Laurie5290f712013-05-22 16:31:09 -070026
27/* Temperature which OS will throttle CPU */
ChromeOS Developer32193e12013-12-16 23:41:11 -080028#define PASSIVE_TEMPERATURE 95
Duncan Laurie5290f712013-05-22 16:31:09 -070029
30/* Tj_max value for calculating PECI CPU temperature */
ChromeOS Developer32193e12013-12-16 23:41:11 -080031#define MAX_TEMPERATURE 100
Duncan Laurie5290f712013-05-22 16:31:09 -070032
33#endif