Commit Graph
477 Commits
Author SHA1 Message Date
Mark D. Studebaker d5de6847ab change ...82801BA_3 to ...82801BA_2 because that's what it was
named in kernel 2.4.6, which broke detection for that chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1142 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-20 01:20:22 +00:00
Mark D. Studebaker 1abb44a2e3 fixed adm1025 temp2 min/max writes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1140 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-26 01:49:55 +00:00
Mark D. Studebaker 1807068ae1 fix as99127f fan speeds that were 60% low.
This was broken by 2.6.0 because
      2.6.0 didn't reset the fan clock setting at startup.
      Therefore the AS_FAN_* macros were no longer needed to specially
      correct the fan speed. So remove the special handling and the
      AS_FAN_* macros and things should work now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1135 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-17 22:39:13 +00:00
Mark D. Studebaker 0f18b32f8f add force_addr to i2c-ali15x3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1133 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-17 21:11:59 +00:00
Mark D. Studebaker bbe26a7de0 remove #include "i2c-isa.h" which is no longer used (its contents
were copied to i2c.h in the i2c package).
      No harm was done because i2c-isa.h is still in our package, and
      it87 is not included in mkpatch yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1132 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-16 00:37:20 +00:00
Mark D. Studebaker e7b19fc456 fix duplicate subaddress msg I just put in.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1128 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-09 13:40:13 +00:00
Mark D. Studebaker bd63a9d9fc add check for duplicate subclient addresses and add printk's
to report subclient registration failures


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1127 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-09 00:36:07 +00:00
Mark D. Studebaker 2c3b57ae83 changed CONFIG_I2C_VOODOO to CONFIG_I2C_VOODOO3 since we
had some of each! Thanks Antonio Mitarotondo <anmitaro@altern.org>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1123 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-08 23:03:21 +00:00
Mark D. Studebaker 82c400f76b more it87 stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1122 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-05 01:59:26 +00:00
Mark D. Studebaker c0e033cce8 cleanup to eliminate some compile warnings
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1117 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 22:02:30 +00:00
Mark D. Studebaker 4c88636964 put #ifdefs around lm87_ain() to eliminate compile warnings
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1116 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 22:01:49 +00:00
Mark D. Studebaker 7d0c01b309 remove unused swap_bytes() to eliminate compile warning
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1115 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 22:01:14 +00:00
Mark D. Studebaker 8f5fd797f3 rename /proc entries temp, temp[1-2] to standard temp[1-3]
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1114 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 22:00:48 +00:00
Mark D. Studebaker 87c529e96d Initial checkin of it87 driver from
Christophe Gauthron <chrisg@0-in.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1112 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 21:58:26 +00:00
Mark D. Studebaker 375240ab52 i2c-tsunami driver from Oleg Vdovikin <vdovikin@jscc.ru> for the
Alpha architecture. I've made compilation contingent on
      the machine being an Alpha because the driver needs kernel
      include files that are in <asm-alpha>, not <asm>, unless
      you are set up as an Alpha.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1109 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-02 03:52:43 +00:00
Mark D. Studebaker 5e63047a24 remove KERN_INFO in printk's - a part of the Alpha compatibility
patch from Oleg Vdovikin <vdovikin@jscc.ru>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1106 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-02 03:06:45 +00:00
Mark D. Studebaker a21694024e Change from sensors_x to i2c_x for x =
_sysctl_real
		_register_entry
		_proc_real
		_detect
		_deregister_entry
		_chips_data
      which were the global symbols renamed in i2c-proc.[ch] in the
      i2c package.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1101 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 22:49:28 +00:00
Mark D. Studebaker 56f128bf5c Move the drivers which were recently added to mkpatch from the
always-built section to the only-if-not-in-kernel section
      of Module.mk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1100 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 19:25:18 +00:00
Mark D. Studebaker 9baa5ceb85 fix broken revision detection I did in April. Thanks David Zaffiro.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1094 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 16:28:33 +00:00
Mark D. Studebaker 7a6ba966ed Apply tristate patch from Jesus Arias <jesus@ele.uva.es>
which ensures i2c Bus is tristated correctly. It isn't clear from
      the datasheet if the 586's GPIO pins are open drain or not,
      but if they aren't, then the driver was driving the pins high
      rather than letting them get pulled high as the spec requires.
      This is corrected by toggling the direction rather than the
      data register to control the bus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1093 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-26 21:23:40 +00:00
Mark D. Studebaker d431a88833 Initial checkin of adm1024 driver and support in libsensors,
sensors, sensors-detect.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1090 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-15 03:18:18 +00:00
Mark D. Studebaker d9108ed634 fix fan min writes, fix spurious 'invalid sensor type' messages.
Patch from Kris Van Hees.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1087 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-13 17:09:13 +00:00
Mark D. Studebaker 627466ee11 change upper case LM87 to lower case throughout, again, hopefully
for the last time. Had an undefined LM87_init in the kernel patch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1081 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-22 23:44:27 +00:00
Mark D. Studebaker c5469c2285 change from gl520sm_init() to gl520_init() to match
what is in driver so patched kernel will work with gl520.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1080 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-22 23:27:23 +00:00
Mark D. Studebaker 43500d6139 fix off-by-one bug in sensor type reads/writes in mtp008.
you would get the wrong sensor.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1079 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 22:52:34 +00:00
Mark D. Studebaker 79c341d475 add support for force_addr to i2c-sis5595.
Also automatically enable ACPI if it was disabled.
      Forcing address doesn't work on my test system, but hey,
      at least I tried to test it...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1077 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 21:57:40 +00:00
Mark D. Studebaker 25d40a14dd add force_addr param to sis5595. Tested, however on my
test system I can't write the enable bit. Don't know why.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1076 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 20:54:47 +00:00
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