summaryrefslogtreecommitdiff
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-01-23 18:43:23 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-01-23 18:43:23 +0000
commit5d158882d84120b27cf026e58eefa31b4c9704cb (patch)
tree4198a9e593584915e7c0d380ad35dff8b970b191 /sys/dev/isa/it.c
parent888d9410ad9654c61ca51425ca1c8430f4243c31 (diff)
Do not enable disabled sensors.
ok grange@, dlg@
Diffstat (limited to 'sys/dev/isa/it.c')
-rw-r--r--sys/dev/isa/it.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index f3ecabdeb32..57923689211 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.17 2006/01/19 17:08:40 grange Exp $ */
+/* $OpenBSD: it.c,v 1.18 2006/01/23 18:43:22 kettenis Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greyhats.org>
@@ -202,9 +202,6 @@ it_setup_volt(struct it_softc *sc, int start, int n)
sc->sensors[start + 8].rfact = 10000;
snprintf(sc->sensors[start + 8].desc, sizeof(sc->sensors[8].desc),
"VBAT");
-
- /* Enable voltage monitoring */
- it_writereg(sc, ITD_VOLTENABLE, 0xff);
}
void
@@ -218,11 +215,6 @@ it_setup_temp(struct it_softc *sc, int start, int n)
sizeof(sc->sensors[start + i].desc),
"Temp%d", i + 1);
}
-
- /* Enable temperature monitoring
- * bits 7 and 8 are reserved, so we don't change them */
- i = it_readreg(sc, ITD_TEMPENABLE) & 0xc0;
- it_writereg(sc, ITD_TEMPENABLE, i | 0x38);
}
void
@@ -236,11 +228,6 @@ it_setup_fan(struct it_softc *sc, int start, int n)
sizeof(sc->sensors[start + i].desc),
"Fan%d", i + 1);
}
-
- /* Enable fan rpm monitoring
- * bits 4 to 6 are the only interesting bits */
- i = it_readreg(sc, ITD_FANENABLE) & 0x8f;
- it_writereg(sc, ITD_FANENABLE, i | 0x70);
}
void