trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
trips {
cpu-critical-hi {
- temperature = <125>;
- hysteresis = <2>;
+ temperature = <125000>;
+ hysteresis = <2000>;
type = "critical_high";
};
cpu-config-hi {
- temperature = <105>;
- hysteresis = <2>;
+ temperature = <105000>;
+ hysteresis = <2000>;
type = "configurable_hi";
};
cpu-config-lo {
- temperature = <95>;
- hysteresis = <2>;
+ temperature = <95000>;
+ hysteresis = <2000>;
type = "configurable_lo";
};
cpu-critical-low {
temperature = <0>;
- hysteresis = <2>;
+ hysteresis = <2000>;
type = "critical_low";
};
};
+
+#define THRESHOLD_ADDR 0x3624
+/* THRESHOLD_ADDR bitmasks */
-+#define THRESHOLD_MAX_CODE 0xff
++#define THRESHOLD_MAX_CODE 0x20000
+#define THRESHOLD_MIN_CODE 0
+#define THRESHOLD_MAX_LIMIT_SHIFT 24
+#define THRESHOLD_MIN_LIMIT_SHIFT 16
+
+#define TSENS_8064_SEQ_SENSORS 5
+#define TSENS_8064_S4_S5_OFFSET 40
-+#define TSENS_FACTOR 1000
++#define TSENS_FACTOR 1
+
+/* Trips: from very hot to very cold */
+enum tsens_trip_type {