Commit Graph
102 Commits
Author SHA1 Message Date
Frodo Looijaard 389cc3f3ff Slight printing enhancements; corrected a few typos which I
introduced with the last update.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@368 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:39:02 +00:00
Frodo Looijaard 706851448d ADM1021 insmod parameters
As always, I also synchronised the detection with sensors-detect. Its
detection is now much better; it used to scan at many addresses on which
these chips could never exist


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@367 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:38:29 +00:00
Frodo Looijaard 46683648bd Made the gl518sm module understand insmod parameters
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@365 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:02:36 +00:00
Frodo Looijaard 7f48c9a6ba Insmod parameters for the LM80 driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@361 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-04 21:13:55 +00:00
Frodo Looijaard 37e476ba7f Removed spurious dmesg which I used for debugging
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@354 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:37:36 +00:00
Mark D. Studebaker 30acc6c169 got rid of compile warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@351 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 01:20:48 +00:00
Mark D. Studebaker c44effd7fa fixed compile error. oops.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@350 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 01:18:34 +00:00
Mark D. Studebaker 1067bc4d69 added ds1780 recognition/support. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@349 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 00:58:55 +00:00
Mark D. Studebaker ddfb8235ca changed default Vbat voltage from 3.3V to 3V for 782d/783s.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@348 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 00:57:31 +00:00
Mark D. Studebaker d3693e2f13 add 'static' to get rid of offending results of 'nm --extern --defined'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@344 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-26 23:54:56 +00:00
Frodo Looijaard c4c4b363be Made lm78 and w83781d drivers emit a warning when a 'force' parameter
is used but ignored (because the driver could not determine what
        specific chip was there).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@342 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 21:44:38 +00:00
Frodo Looijaard 15cf77b3b4 Taught the w83781d module about insmod parameters
Also fixed a small lm78 problem and synchronised the detect script with
the Winbond detection.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@341 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 21:28:22 +00:00
Mark D. Studebaker 3561a27e51 fixed RT-table bug. Still undef'ed though by default.
For those who are interested the default RT table is apparently
1 0 0 69 57 48 39 32 25 19 12 6 255 247 237 0 1 0 0 12 9 9 7 7 7 7 6 7 8 10 14 0.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@339 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 00:00:21 +00:00
Frodo Looijaard 66d89242d4 The lm75 module now understands the new insmod parameters.
Also fixed a few nasty sensors.c bugs, and a minor LM78 one. If the new
parameters give trouble, please recompile sensors.c with DEBUG=1 and
examine the dmesg output!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@338 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:53:28 +00:00
Mark D. Studebaker 3ccf39c7d0 Added sensor[1-3] to 782d/783s to select sensor type.
Added RT table read to 781d but then #undef'ed it since it was just
all 1's. Changed max entries in sensor.c to 32 bytes to handle RT table.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@335 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:48:19 +00:00
Mark D. Studebaker c0c25c9c14 changed /proc permissions for vid and alarms and
other r/o stuff to 444.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@333 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-22 02:21:21 +00:00
Frodo Looijaard e721fcf4ac Minor cosmetic changes to maxlife driver, to make it compile cleanly
with WARN=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@332 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-22 00:45:08 +00:00
Mark D. Studebaker b73b2cc4ce fixed off-by-factor-of-2 of FAN_FROM_REG in w83781d.
Improved bounds checking for FAN_TO_REG in all files.
For lm78-compatible drivers, minimum speed is 2657 RPM when the
divisor is 2. Attempts to set lower than that now are set to 0.
Before was set to a random number.
Thanks Jeff Dairiki.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@330 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-21 23:47:20 +00:00
Mark D. Studebaker 6a45415e5e fixed vid4 - was >> 4 now << 4.
Thanks Jeff Dairiki.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@329 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-21 18:41:08 +00:00
Mark D. Studebaker 10bf57b3e7 Documentation update for supported/unsupported clock chips.
Added some notes on w83781d.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@328 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-20 03:46:07 +00:00
Philip Edelbrock 1ac215f6a1 (Phil) Added Fons Rademakers' <Fons.Rademakers@cern.ch> MaxiLife driver.
I've reviewed and applied the patch, but I would like some others to review
these commits too, to be safe.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@327 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 21:11:33 +00:00
Frodo Looijaard 0900fb64bf First bugfixes already
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@326 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 07:04:54 +00:00
Frodo Looijaard b4b1293b25 LM78 insmod parameters and better detection
Supported insmod parameters:
  ignore, ignore_range
  probe, probe_range
  force, force_lm78, force_lm78j, force_lm79

force* overrules ignore* overrules probe*

The *_range parameters need three elements for each specification:
  bus,start_addr,end_addr
The address ranges are inclusive.
The other parameters need two elements for each specification:
  bus,addr
In each case, '-1' stands for 'any I2C bus', and 9191 stands for
'the ISA bus' (Bonus question: who can figure out why I choose 9191?)
In each case, just append if you want several specification, for example:
  insmod lm78 probe=9191,0x2a0,1,0x56

force_* does no detection, not even chip detection; it blindly assumes
you know what you are doing. plain force does the chip detection, but
nothing else; but it can still fail if the register read-out does not
match a chip type.

Detection is done in exactly the same way as sensors-detect, except that
only the range 0x20-0x2f is examined by default. This needs to be
synchronized somehow with the detect script. I would rather scan the whole
I2C address range, but with those clueless PIIX4 hangs when clock chips
are read, that would simply give too much trouble.

The detect script has slightly better ISA detection now, too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@325 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 06:25:02 +00:00
Mark D. Studebaker 75ca64cc7d 782d has pwm3-4 only for i2c, not isa.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@318 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-17 04:42:12 +00:00
Mark D. Studebaker fe47b819ed one more fix for 783s not having in1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@315 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 22:26:51 +00:00
Mark D. Studebaker 9d67ffa454 added pwm1-4 for 782d, pwm1-2 for 783s. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@314 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 21:53:22 +00:00
Mark D. Studebaker acbab20925 added fan3 for 782d, didn't realize it is just like 781d.
removed in1 and added in6 for 783s to keep compatibility
with 781d/782d. So 783s has no in1. sorry.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@313 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 04:09:35 +00:00
Mark D. Studebaker 91c2805683 fixed default limits for in5/in6.
added alarm bits for in7/in8. alarms now u32.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@309 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:38:48 +00:00
Mark D. Studebaker 71411df003 Add simple clock chip reader.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@307 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:35:28 +00:00
Mark D. Studebaker b20c07806e fixed in7/in8 register locations.
Added limit defaults for in7/in8 and added separate
782d/783s limit defaults for in5/in6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@304 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-11 03:17:11 +00:00
Mark D. Studebaker 8e0ff06a22 Initial support for 782d/783s.
Recognize chips, adjust /proc entries.
Added registers for Vbat/V5sb for 782d.
Did quick test that 781d isn't broken.
782d/783s untested, I'll send mail to the guy that volunteered.
No PWM fan support yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@297 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 05:09:53 +00:00
Kyosti Malkki 14e5a602c5 (Kyösti) Small fixes for GL518.
Fan1 causes now alarm when rpm drops.
Fixed libsensors displaying incorrect temperature limits for rev 80.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@293 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 14:12:42 +00:00
Kyosti Malkki ee22902987 (Kyösti) Improved support for the gl518 revision 00
Code written by Ludovic Drolez (ldrolez@usa.net)
All voltages are now readable for the rev 00 but the read is blocked for 10
seconds because of the needed comparisons.
Currently voltages are readable in /proc only.
This functionality can be enabled at module-load with parameter readall:
   insmod gl518 readall=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@289 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 03:48:13 +00:00
Philip Edelbrock 7a9eb38752 (Phil) Made sure probing won't happen on the ISA bus for these SMBus/I2C
device drivers.  Specifically, I added these lines:

(in includes list)

#include "i2c-isa.h"


(Near beginning of *-attach-adapter function)

  /* Make sure we aren't probing the ISA bus!! */
  if (i2c_is_isa_adapter(adapter)) return 0;

This may be redundant is a couple of the files, but it shouldn't hurt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@283 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 21:11:14 +00:00
Philip Edelbrock 812e77a817 (Phil) Fixed a probing bug.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@282 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 20:40:53 +00:00
Frodo Looijaard 6e404a91d9 Stupid ADM1021 detection bug fixed (thanks Mark!)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@236 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 00:20:36 +00:00
Frodo Looijaard d78cd0cb5f Removed some compiler warnings
All our own code (ie. anything not in the i2c directory) compiles now without
warnings, even with WARN=1 (which sets -Wall -Wstrict-prototypes -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs
-Winline). There is one exception: the lex code (conf-lex.l) complains about
unused functions. That's flex' fault, not ours!

The i2c code still emits many warnings with the above flags; that's Simon's
problem.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@233 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-16 21:59:05 +00:00
Frodo Looijaard 5402bf4b71 Added MAX1617 support, and documented it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@232 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-16 21:33:41 +00:00
Frodo Looijaard cf243b3072 Removed offending ISA test. Added warning about renamed modules.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@219 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-12 05:47:07 +00:00
Kyosti Malkki b1f55390ae (Kyösti) Reverted to previous version, with only typos corrected.
Temp and fan alarms yet to be fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@214 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-11 20:06:08 +00:00
Kyosti Malkki 90c8bc2ff6 (Kyösti) Modified gl518sm to use entries in /etc/sensors.conf.
Some small bugfixes, but temperature and fan alarms still don't work
as documented.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@213 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-11 01:18:34 +00:00
Frodo Looijaard 24792039f6 Adrian's copyright patch applied
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 22:50:29 +00:00
Kyosti Malkki 26ebdf4fa3 (Kyösti) SiS5595 documentation forwarding you to LM78 documents.
Renamed sensors entry from "SiS 5595 Sensor-*" to "sis5595-*"
Added this name in sensors.conf.eg to use lm78 names for inputs.
Small related document updates.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@199 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 01:58:06 +00:00
Kyosti Malkki 79aed13889 (Kyösti) Support for the sensor hardware in SiS 5595. This has an
integrated LM78, so the driver is only a customized copy of lm78.c
This southbridge can also do i2c, but this not enough documented in
the datasheet. So i2c is currently not supported.

Some cosmetic changes for VIA driver and documentation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@196 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-06 12:04:48 +00:00
Philip Edelbrock b86777ddd3 (Phil) Changed voltage scalers to (slightly more?) sane values.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@193 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 07:47:13 +00:00
Philip Edelbrock c5ccb700b2 (Phil) Minor change in initialization of device. Hopefully this will
turn the device 'on' correctly so it starts monitoring.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@192 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 02:33:53 +00:00
Frodo Looijaard 065e52c2b1 Changed all isa.h references to i2c-isa.h
vi `find -type f|xargs grep -l isa.h` worked like a charm :-)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@182 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 00:17:11 +00:00
Frodo Looijaard f31a1f45f2 Makefile tweaks for the new kernel directory structure
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@179 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 14:45:20 +00:00
Philip Edelbrock ce7aea9a5a (Phil) Made slight adjustments so the new file arrangement will build.
I added two new make file 'includes': busses/Module.mk and chips/Module.mk
Frodo- You may want to review the makefile structure to make sure that
the system works as you intended.

Note: The docs still need to be updated to reflect the new file arrangement,
but at least it builds!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@176 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:10:00 +00:00
Philip Edelbrock bf7943bb69 (Phil) Added adm9240 and adm1021 entries into the lib and added VID
output to ADM9240.  Status/alarms values need to be implemented instead
of a raw output, but I'll do that too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@173 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-24 00:15:12 +00:00