diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-03-09 21:56:13 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-03-24 18:22:55 +1100 |
commit | 2d8952a581a857f010df38422ed7803d8be64061 (patch) | |
tree | c3064c07e16f0004c25c545c105acd90939b02cc /include/sensor.h | |
parent | 132e593400f959074f72cf066e3e99c8cd8d7b82 (diff) | |
download | skiboot-2d8952a581a857f010df38422ed7803d8be64061.zip skiboot-2d8952a581a857f010df38422ed7803d8be64061.tar.gz skiboot-2d8952a581a857f010df38422ed7803d8be64061.tar.bz2 |
dts: add support to read the core temperatures
This patch adds a new sensor family for Digital Temperature Sensors
and a new resource class to capture the core temperatures.
Each core has four DTS located in different zones (LSU, ISU, FXU, L3).
The max of the four temperatures is computed and returned for the core
as well as a global trip point value. This is based on the meltbox tool.
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/sensor.h')
-rw-r--r-- | include/sensor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sensor.h b/include/sensor.h index 6004bcc..c37102e 100644 --- a/include/sensor.h +++ b/include/sensor.h @@ -44,6 +44,9 @@ * the appropriate component. FSP is the initial family. */ #define SENSOR_FSP 0x0 +#define SENSOR_DTS 0x80 + +#define sensor_is_dts(handler) (sensor_get_frc(handler) & SENSOR_DTS) /* * root node of all sensors : /ibm,opal/sensors |