Commit Graph
272 Commits
Author SHA1 Message Date
Mark D. Studebaker b5d014bd46 Disable sensors.c and i2c-isa.h in the Module.mk files.
Leave the files there for now.
      Remove old installed sensors.o in kernel/Module.mk.
      sensors.c was moved to i2c-proc.c in the i2c package.
      i2c-isa.h was appended to i2c.h in the i2c package.
      Delete all but the SYSCTL and ALARMS definitions in sensors.h,
      as the rest of the file was moved to i2c-proc.h in the i2c package.
      Remove #include "i2c-isa.h" lines in all chip drivers and
      in bus driver i2c-isa.c.
      This all probably breaks mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1015 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-06 02:53:46 +00:00
Mark D. Studebaker b4b343d74b claim support for Via 686B. Same PCI id as 686A. No driver changes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1010 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-03 19:22:54 +00:00
Philip Edelbrock b45b65a9dc (Phil) Scales adjustment. Needs to be tested and confirmed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1003 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-26 17:53:15 +00:00
Philip Edelbrock 4b88cf7071 (Phil) Fixed typo/copy-and-paste error for reading AIN2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1002 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-26 17:26:20 +00:00
Mark D. Studebaker 899498a9b4 Allow force and force_via686a parameters. Driver will take the
address and program the base address in the 686a.
      This is NOT a PCI force; the 3057 device must
      be present in lspci.
      Should work for Asus A7V/K7V boards which don't set the
      base address (because they also have a as99127f on them!??).
      Some rough edges remain, because
      via686a_find() does not know there is a force; that only
      is apparent to via686a_detect().
      Notably, the driver will stay loaded even if the address is
      uninitialized and there is no force; also, the driver complains
      that a force is needed even when you give it one.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@999 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-20 03:43:50 +00:00
Mark D. Studebaker c2b81edc8a recognize lm78's with chipid register (0x49) == 0x20, as
reported by Vernon McPherron <vernon@xnote.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@998 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-19 02:39:26 +00:00
Mark D. Studebaker babf3a845b normal i2c range 2c-2e, not 2c-2f.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@980 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-10 02:01:46 +00:00
Mark D. Studebaker 5ddbf65092 to lower case "lm87" in SENSORS_INSMOD_1 and printk's.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@979 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-10 02:00:51 +00:00
Philip Edelbrock 6afe8168b0 (Phil) Documentation, further testing/debugging for the lm87 and osb4.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@974 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-07 22:13:59 +00:00
Philip Edelbrock f592b02b21 (Phil) Wrapped Serverworks OSB4 support into i2c-piix4.c (briefly tested
on both platforms).  LM87 support is very far along, and should work
for a majority of users, but some minor tweaks are still on the to-do list.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@963 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-22 19:26:21 +00:00
Mark D. Studebaker e3fe21cc9f rename /proc entries temp and remote_temp to temp1 and temp2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@960 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 20:41:47 +00:00
Mark D. Studebaker f0df41dd97 chg addr range to 2c-2e; fix fan min writes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@958 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 19:28:09 +00:00
Mark D. Studebaker 4f01f7eb79 (mds) stub out two-fan support. Driver currently sets chip for single
fan input (fan2), with fan1 input set for analog in, so fan1 entry
      in /proc won't work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@957 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:58:58 +00:00
Mark D. Studebaker 7871346710 (mds) add verification of company ID reg 0x3e in detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@956 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:38:04 +00:00
Mark D. Studebaker ecb7bb70a3 (mds) rename /proc entries to in[0-5]
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@955 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:27:10 +00:00
Mark D. Studebaker 2698188e2f (mds) change to standard VID calculation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@954 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:22:08 +00:00
Mark D. Studebaker ab321d5243 (mds) add lm87 support to 'sensors'. Rename SYSCTL_* values to standard
TEMP[1-3], etc. No fan2 support in driver yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@953 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:07:24 +00:00
Mark D. Studebaker 6b26ed4118 (mds) patch from Steffen Persvold <sp@scali.no>. Change function names,
etc. from LM87... to lm87...; rename /proc entries to standard
      in[0-5], etc.; also column 80 cleanup.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@952 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 15:42:02 +00:00
Mark D. Studebaker ee0fd78049 (mds) fix writes to fan_div first value.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@947 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 00:17:27 +00:00
Mark D. Studebaker 7ccaa7f419 (mds) Check for uninitialized base addresses. Check for unenabled sensors.
On sis5595, refuse to load if chip not found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@943 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-14 00:26:13 +00:00
Mark D. Studebaker 7879f5cf8a (mds) fix fan min 3 initialization
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@942 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-04 00:05:14 +00:00
Mark D. Studebaker b57428a14b (mds) add remote temp support (temp2) to adm1025
(also in prog/sensors/chips.c),
      rename /proc entries to in[0-5] and temp[1-2], fix negative
      temperature reporting.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@940 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-30 02:44:47 +00:00
Mark D. Studebaker bb4b723e68 (mds) add ds1621 driver from Christian Zuckschwerdt (zany@triq.net)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@935 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-26 23:07:17 +00:00
Frodo Looijaard aa0c8f6768 Updated the MUTEX definitions again - they are now guarded by
the horrible
         #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \
             (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0))
        They should now both work with 2.3 kernels (including 2.4 prepatches)
        and very new 2.2 kernels (ie. 2.2.18 prepatches)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@933 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-22 23:54:39 +00:00
Frodo Looijaard 4444c1464a Applied patch of Chip Salzenberg <chip@valinux.com>:
Better #ifdefs


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@929 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-18 11:38:15 +00:00
Mark D. Studebaker 03e12c8b80 (mds) allow force and force_ddcmon parameters to bypass detection
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@923 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-02 02:56:37 +00:00
Dan Eaton ab8a428bb6 (dan) Extended cache time for values to 5 seconds.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@922 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-01 16:53:42 +00:00
Dan Eaton 7d4089704e (stephen) Updated cache time to 1 second to be compliant with National spec
read times.  Updated voltage calculations for AIN1/2 and VCCP1/2.  Fixed
VID calculation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@921 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-01 16:48:18 +00:00
Frodo Looijaard 2e083cada0 Fixed small bug that made writing to the first field only of
the 'beep' file (global enable/disable) have random results.

Patch by Frans E. van Dorsselaer <frans@bia-bv.demon.nl>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@918 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-29 23:52:38 +00:00
Bob Dougherty 8113589931 (bob dougherty) Fixed typos in temp-conversion polynomial fit formula. (thanks to Uwe Anderson for finding them.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@914 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-25 15:31:51 +00:00
Dan Eaton 9b95794b50 (dan) Corrected inadvertent overwrite of part of cached data value.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@912 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-19 17:24:00 +00:00
Mark D. Studebaker 9e7e663693 (mds) Add mtp008 driver from Kris Van Hees.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@911 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-18 23:31:44 +00:00
Philip Edelbrock 6270f18139 (Phil) Added support for adm1023. Actually, the adm1021 driver worked
perfectly with the adm1023, but didn't take advantage of it's extra precision
for the remote temp sensor. Now, if an adm1023 is detected, it will.

For example, my adm1021 remote_temp looks like this:

phil@penn phil]$ cat /proc/sys/dev/sensors/adm1021*/remote_temp
60 20 23

My 1023 looks like this:

[root@penn lm_sensors2]# cat /proc/sys/dev/sensors/adm1023-i2c-2-2a/remote_temp
60.125 20.250 1.500 20.875

(Both from the same inserted driver)

Notice the extra 3 digit precision (actually, it's in increments of 0.125).
And, also notice the extra 'limit'.  It's actually an offset register.
Right now it's adding 1.5 degrees to the reading for the remote_temp. This
same functionality could easily be done by editing /etc/sensors.conf, but
Analog Devices decided to put it into the chip instead. :')

Things to do: edit the default sensors.conf, and sensors-detect for this
new chip.

Oh, I also added SENSORS_INSMOD_7 into sensors.h.  This was the first
driver to need it, apparently.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@904 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-16 01:45:44 +00:00
Dan Eaton 77bedf5510 (Stephen) - Changed temperature threshold values to 70C for int. and 80C for ext.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@897 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-11 15:02:39 +00:00
Philip Edelbrock a56b0002e3 (Phil) Tag and release 2.5.3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@891 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-09 00:00:49 +00:00
Dan Eaton 85054dd08d (Dan) Original version of chip driver for Philips PCF8574 I2C bus expander.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@889 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-08 20:41:03 +00:00
Dan Eaton aedcd81c02 (Dan) Added build support for pcf8574.o driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@888 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-08 20:34:11 +00:00
Dan Eaton 6f57f19061 (Dan) Comment was right, code was wrong. Configure pins 17 and 18 for
external temperature 2 monitoring instead of individual voltages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@885 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-26 16:19:55 +00:00
Dan Eaton db2c35fba4 Corrected typo in /proc file formatting.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@884 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-25 21:49:13 +00:00
Dan Eaton 187e198faf (Dan) Updated division values to correctly scale values for /proc.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@877 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-19 13:43:48 +00:00
Philip Edelbrock cc4315029e (Phil) Initial addition of LM87 driver. Compiling testing not done yet,
but will be done very shortly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@872 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-13 23:28:14 +00:00
Mark D. Studebaker ea5430f3f7 (mds) Limit the as99127f fan_div values to 8. The as99127f apparently
does not support the extended fan_div bits like the w83782d
      does. This should fix fan2 so it defaults to a divisor
      of 2 instead of 32.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@871 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-10 23:28:51 +00:00
Philip Edelbrock 40a6e0e631 (Phil) It should now handle negative temps going to and from registers.
I tested the new macros from a simple stand alone C app, but actual
system testing is still desired.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@852 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-08-03 23:01:30 +00:00
Philip Edelbrock 622594be1e (Phil) Modified REG_TO_TEMP to work with negative values. Some testing
is needed.  (Which I will do immediately after this commit.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@851 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-08-03 22:40:43 +00:00
Frodo Looijaard 78d4aac923 Bugfix for w83781d.c: unloading of w83783s now works.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@823 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-06-21 20:34:50 +00:00
Mark D. Studebaker 1371cc89c0 (mds) Change as99127f fan speed calculation based on actual
measurements with frequency counter. Divisor changed from
      1350000 to 810000.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@819 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-06-17 20:33:50 +00:00
Mark D. Studebaker 13dc53b49c (mds) wrap a printk with #ifdef DEBUG;
change address upper limit to 0x2e.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@818 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-27 14:58:48 +00:00
Mark D. Studebaker 66113bdcd3 (mds) For as99127f, remove in7-8, sensor1-3, pwm3-4
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@807 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-13 17:31:11 +00:00
Mark D. Studebaker 2072a3c9d6 (mds) Add adm1025 driver from Chen-Yuan Wu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@801 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-11 01:35:22 +00:00
Mark D. Studebaker c07053a572 (mds) fix sensor selection for sensor2/sensor3.
Enable VBAT (in8) monitoring.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@800 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-06 20:58:10 +00:00