Commit Graph
450 Commits
Author SHA1 Message Date
Mark D. Studebaker e4ed326c80 fix comments
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1074 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 20:03:07 +00:00
Mark D. Studebaker de2652db9e Change base-address-setting parameter from force or force_via686a
to force_addr. It is now consistent with the bus PCI adapters
      that support base address setting (piix4, i801, viapro).
      Other benefit is that via686a_find can now return -ENODEV,
      and module will fail to load when base address is not set and
      parameter is not used.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1073 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 19:49:15 +00:00
Mark D. Studebaker ffedd9fa93 add back temperature support for version 1 of chip.
The temperature registers are in different places for the two
      versions. Both versions unfortunately have the same PCI ID.
      Apparently the temperature conversion formulas are different
      for the two versions. Neither is yet implemented in the driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1070 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-14 01:39:10 +00:00
Mark D. Studebaker 0ac4a8d35b in4 fixes + more cleanup
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1068 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-10 01:47:56 +00:00
Mark D. Studebaker bea2bbf99e fix sis5595 temp (and temp min, max, alarm). These registers are
in a different place than the LM78, which this driver was copied from,
      so temp was completely broken.
      Temp shares a pin and registers with in4; add in4 support, recognize
      chip configuration and act accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1067 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 23:20:13 +00:00
Mark D. Studebaker 28e81cce5a fix sis5595 temp alarm bit location
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1065 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:55:19 +00:00
Mark D. Studebaker 18305cfc54 add in4 for sis5595 to library
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1064 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:52:28 +00:00
Mark D. Studebaker b7ade0b926 fix bug in lm84 and gl523sm support; driver would recognize the
chip and then return an error code anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1058 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-04 23:12:34 +00:00
Mark D. Studebaker cddd0a915e Don't reset the as99127f chip at startup. This may improve things
that are configurable as we will count on the BIOS to configure
      the chip correctly. This will likely change fan and temperature
      readings for some users.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1039 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-03-20 01:46:44 +00:00
Mark D. Studebaker 53befd189c use normal_i2c[] instead of normal_i2c_range[] since only one address.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1037 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-03-19 23:56:55 +00:00
Mark D. Studebaker db52f427a6 Change mtp008 temperature reporting from max/min to limit/hyst.
Change initial values in driver from 70/5 to 70/50.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1032 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-23 03:23:49 +00:00
Mark D. Studebaker 6b9ce051d3 preserve pin settings from registers 0x57 and 0x58 at startup.
These select fan type (2 or 3 wire) as well as temp sensor type
      (thermistor or diode) and temperature vs. voltage sensing for
      two pins. This should help those on various Tyan mobos.
      Driver used to reset the chip and then program a fixed setting which
      worked for the Tyan S1824D board but not for Tyan 2510.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1030 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-23 01:06:07 +00:00
Mark D. Studebaker 11a8bf78fa renamed i2c_i810i2c_init() to i2c_i810_init()
to match what mkpatch patches in patched kernel.
      Affected only kernel patches; standalone build was fine.
      Ticket # 492.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1026 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-20 02:12:39 +00:00
Mark D. Studebaker b799b5e41e fix temp2 max initialization (70 instead of 7)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1021 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-10 22:07:17 +00:00
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 377be956da PCI chip detection cleanup.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1011 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-03 20:48:43 +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 d569353d79 add xxx_init() calls to bottom of sensors.c for those drivers added
to mkpatch in 2.5.5. Also add mtp008 and ds1621 init calls in anticipation
      of them being added. Fix typos adm9024->adm9240.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@997 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-17 01:42:56 +00:00
Mark D. Studebaker fc13775163 add static to 2 structs to remove external symbols.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@991 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-13 17:58:47 +00:00
Mark D. Studebaker 457efe73b7 add correct ifdef'ed declaration of i2c_i801_init() to remove
external symbol.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@990 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-13 17:54:36 +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
Mark D. Studebaker 7c21d246e8 removed; now supported by i2c-piix4.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@965 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-23 17:01:55 +00:00
Mark D. Studebaker 3047bd8374 remove i2c-osb4
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@964 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-23 17:00:37 +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
Philip Edelbrock 5938b18941 (Phil) Added a redundant define for Serverworks PCI vendor ID, for those
kernels which need it.  Also tweaked sensors-detect to work seemlessly
with the new driver.  Driver is tested, and works as expected! (Yeah!)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@950 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 17:30:20 +00:00
Mark D. Studebaker a8cf5cbfa2 (mds) add i2c- prefix to module name in version/date printk for those
that were missing it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@949 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 00:50:18 +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
Philip Edelbrock 6b593aa26a (Phil) Initial Serverworks southbridge support, thanks to Steffen Persvold
at Scali.  Untested, but compiles cleanly.  Seems to be very closely based
on the Intel PIIX4 SMBus driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@946 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-14 23:02:00 +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 ec53bfa1fe (mds) Add "dummy writes" before bit reads as recommended in 815
programmers' reference guide. This ensures that the input value
      is latched in the 815 register. We assume this also applies
      to the 810 or at least does no harm. Ticket 419.
      Alan Chen <alp_chen@hotmail.com> reports that this fixes the
      bug where i2c-algo-bit bit_test=1 fails the test.
      We don't have any data that shows there was any problem in
      normal operation (non bit_test) or that this fixes anything else.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@941 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-02 22:39:21 +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
Frodo Looijaard 62ebc84b6f Patch to make it compile with 2.2 kernels (people, please test this
before submitting patches!)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@927 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-10 20:45:30 +00:00