haswell boards: Use PECI temp sensor id 0
The EC temperature sensors were renumbered and now PECI is at index 0. 1) boot on falco 2) check /sys/class/thermal/thermal_zone0/temp 3) check 'temps' on ec console Change-Id: Idde1457c42c80850b5b8ac22781060ed9b224d13 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61896 Reviewed-on: http://review.coreboot.org/4367 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
a9dc05130e
commit
29f7688409
|
@ -21,7 +21,7 @@
|
||||||
#define THERMAL_H
|
#define THERMAL_H
|
||||||
|
|
||||||
/* Config TDP Sensor ID */
|
/* Config TDP Sensor ID */
|
||||||
#define CTDP_SENSOR_ID 1 /* PECI */
|
#define CTDP_SENSOR_ID 0 /* PECI */
|
||||||
|
|
||||||
/* Config TDP Nominal */
|
/* Config TDP Nominal */
|
||||||
#define CTDP_NOMINAL_THRESHOLD_OFF 0
|
#define CTDP_NOMINAL_THRESHOLD_OFF 0
|
||||||
|
|
|
@ -44,6 +44,7 @@ unsigned long acpi_create_slic(unsigned long current);
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
gnvs->tmps = TEMPERATURE_SENSOR_ID;
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#ifndef THERMAL_H
|
#ifndef THERMAL_H
|
||||||
#define THERMAL_H
|
#define THERMAL_H
|
||||||
|
|
||||||
|
#define TEMPERATURE_SENSOR_ID 0 /* PECI */
|
||||||
|
|
||||||
/* Temperature which OS will shutdown at */
|
/* Temperature which OS will shutdown at */
|
||||||
#define CRITICAL_TEMPERATURE 104
|
#define CRITICAL_TEMPERATURE 104
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define THERMAL_H
|
#define THERMAL_H
|
||||||
|
|
||||||
/* Control TDP Settings */
|
/* Control TDP Settings */
|
||||||
#define CTL_TDP_SENSOR_ID 1 /* PECI */
|
#define CTL_TDP_SENSOR_ID 0 /* PECI */
|
||||||
#define CTL_TDP_POWER_LIMIT 12 /* 12W */
|
#define CTL_TDP_POWER_LIMIT 12 /* 12W */
|
||||||
#define CTL_TDP_THRESHOLD_OFF 68 /* Normal at 68C */
|
#define CTL_TDP_THRESHOLD_OFF 68 /* Normal at 68C */
|
||||||
#define CTL_TDP_THRESHOLD_ON 73 /* Limited at 73C */
|
#define CTL_TDP_THRESHOLD_ON 73 /* Limited at 73C */
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define THERMAL_H
|
#define THERMAL_H
|
||||||
|
|
||||||
/* Config TDP Sensor ID */
|
/* Config TDP Sensor ID */
|
||||||
#define CTDP_SENSOR_ID 1 /* PECI */
|
#define CTDP_SENSOR_ID 0 /* PECI */
|
||||||
|
|
||||||
/* Config TDP Nominal */
|
/* Config TDP Nominal */
|
||||||
#define CTDP_NOMINAL_THRESHOLD_OFF 0
|
#define CTDP_NOMINAL_THRESHOLD_OFF 0
|
||||||
|
|
Loading…
Reference in New Issue