aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2020-10-15 13:43:43 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2020-10-15 13:43:43 +0000
commit3a3332a0b8103d5225537cf0bcae766937569329 (patch)
tree78fbc6ffbb5242e7333e6525995862b784742f35 /sys/dev/iicbus
parent766ae4c7393bdd84394a27dccd103e7bc57c2011 (diff)
Notes
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r--sys/dev/iicbus/max6690.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/iicbus/max6690.c b/sys/dev/iicbus/max6690.c
index 7847c7e237e68..c6c6666c3d41a 100644
--- a/sys/dev/iicbus/max6690.c
+++ b/sys/dev/iicbus/max6690.c
@@ -213,8 +213,17 @@ max6690_fill_sensor_prop(device_t dev)
for (j = 0; j < i; j++) {
sc->sc_sensors[j].dev = dev;
- sc->sc_sensors[j].therm.target_temp = 400 + ZERO_C_TO_K;
- sc->sc_sensors[j].therm.max_temp = 800 + ZERO_C_TO_K;
+ /*
+ * Target value for "KODIAK DIODE" (= northbridge die) should
+ * be 64C (value from Linux). It operates fine at that
+ * temperature and has limited responsivity to the fan aimed at
+ * it, so no point in trying to cool it to 40C.
+ */
+ if (strcmp(sc->sc_sensors[j].therm.name, "KODIAK DIODE") == 0)
+ sc->sc_sensors[j].therm.target_temp = 640 + ZERO_C_TO_K;
+ else
+ sc->sc_sensors[j].therm.target_temp = 400 + ZERO_C_TO_K;
+ sc->sc_sensors[j].therm.max_temp = 850 + ZERO_C_TO_K;
sc->sc_sensors[j].therm.read =
(int (*)(struct pmac_therm *))(max6690_sensor_read);