2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-29 05:17:50 +00:00

425 Commits

Author SHA1 Message Date
Frodo Looijaard
a900525440 Solved i2c_sub_addrs not being printed problem (I hope)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@285 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-01 13:27:57 +00:00
Philip Edelbrock
da3af62988 (Phil) Altered LM75 detection slightly to find my LM75.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@284 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 21:24:16 +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
bb8f03cea5 Some internal changes
* Redid the internal report structure
* Separated the report function from main
* Rewrote the structure insertion functions

All in all, the functions have become much more readable and maintainable.
The downside: there are almost certainly new bugs created.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@281 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 17:41:46 +00:00
Philip Edelbrock
1a4bc3d1dd (Phil) OK, I changed my mind. Last commit for the eeprom detection
stuff, I hope!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@280 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 17:37:50 +00:00
Philip Edelbrock
a13e4335f8 (Phil) A little bit improved reporting for the eeproms.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@279 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 17:32:59 +00:00
Philip Edelbrock
142256a075 (Phil) Getting closer to better EEPROM detection. Checksum test now
works for EEPROMs on PC-100 DIMMs.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@278 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 17:24:41 +00:00
Philip Edelbrock
69c584d5ae (Phil) Fixed checksum calculation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@277 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 16:25:26 +00:00
Philip Edelbrock
a556f7d706 (Phil) Added beginning detection for serial EEPROMs. Right now if it
finds anything within 0x50-0x57, it will claim it is an EEPROM with a
confidence of '1' (the least confidence).  Using the PC-100 SPD spec
I should be able to add better detection, at least for serial EEPROMs
on PC-100 SDRAM DIMMs.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@276 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 16:17:49 +00:00
Frodo Looijaard
41585468c6 Hopefully, the summary is better now. I'm not convinced it is
complete yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@275 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-25 12:23:04 +00:00
Frodo Looijaard
8f952fb324 Corrected alias detection
I forgot to set the I2C address correctly, so it was always comparing with
device 0x00 :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@274 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-25 08:37:29 +00:00
Frodo Looijaard
4e7910569f Fixed a few display glitches, as well as a partially empty line for
ISA misdetections.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@273 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-25 08:30:04 +00:00
Frodo Looijaard
57e3c6a28e smbus_access fix in isa detection routines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@272 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-24 01:33:18 +00:00
Frodo Looijaard
2fd866bf42 Winbond detection fix.
It should now correctly prefer the Winbond above the LM78 for ISA probes.
I hope.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@271 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-24 01:16:40 +00:00
Frodo Looijaard
cf8f722ab7 Latest fixes for Adrian's latest bug report (got deja-vu yet?)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@270 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-24 01:12:05 +00:00
Frodo Looijaard
5efb1b0535 Fixed typo.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@269 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-24 00:28:05 +00:00
Frodo Looijaard
4d0315d601 Selective probing of I2C busses added.
All main functionality is now available; please test and send the output
of the summary to me!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@268 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-24 00:22:52 +00:00
Frodo Looijaard
9392875415 Added Sis5595 detection
All supported chips are now detected, both on the ISA bus and the I2C bus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@267 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-23 23:16:09 +00:00
Frodo Looijaard
63848afc0b Alias detection completed for Nat. Sem. LM7* and Winbond chips
A few ISA detections must still be added; also, I want to add the option not
to scan certain I2C addresses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@266 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-23 20:28:05 +00:00
Frodo Looijaard
cfece5dd19 ISA detection is completed for LM7x and W8378xx
No alias detection (ie. detection of chips connected to both ISA and I2C bus)
is done yet; but all hooks are in.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@265 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-23 14:14:32 +00:00
Frodo Looijaard
0411f7810c Basic ISA probing added, not yet called
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@264 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-22 20:40:16 +00:00
Frodo Looijaard
0560ad7508 More detect bugfixes, this time before Adrian can find them :-)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@263 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-22 19:51:49 +00:00
Frodo Looijaard
c970185246 Several detect things:
* W83782D and W83783S detection added;
* Adrian's latest Winbond detection problem solved;
* inb/outb added (not used yet)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@262 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-22 18:20:35 +00:00
Frodo Looijaard
44d0906e31 Fixed Winbond LM75 emulations non-detect
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@261 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-20 14:40:24 +00:00
Frodo Looijaard
5aa9472f10 ADM1021/MAX1617 now reports the right driver;
Winbond now correctly detected.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@260 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-20 01:15:00 +00:00
Frodo Looijaard
2109930938 Winbond should now overrule the LM75
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@259 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-20 00:54:55 +00:00
Philip Edelbrock
682dc3114e (Phil) Updated the URL for Brendon's KLM software.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@258 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 20:40:55 +00:00
Frodo Looijaard
873a6ff023 Fixed small bug, which caused the lowest confidence value to be
selected, instead of the highest (try again now, Adrian)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@257 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 20:23:29 +00:00
Frodo Looijaard
4d3a3f5245 Already a small bugfix...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@256 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 18:12:27 +00:00
Frodo Looijaard
97a5c5637f Detect now ouputs an overview of what drivers to load and which you
definitely should not load.

Also fixed GL520 detection bug. Some other bugs are probably still there.

The report is generated using a very intricate data structure. There
can easily be hidden problems. Just test, test, test :-)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@255 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 18:11:03 +00:00
Frodo Looijaard
6939ff4f80 Ali detection corrected (thanks Mark)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@254 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 02:34:53 +00:00
Frodo Looijaard
da240f5790 Removed a couple of priority errors, corrected a spelling mistake and
swap_bytes(). I hope no more of these things lurk... Thanks, Adrian!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@253 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 02:30:17 +00:00
Frodo Looijaard
0cc005e76c Detect script with user-interface
It is already very usable, but not quite finished. The final product will
also collect the needed drivers, and output them as modprobe lines and/or
in other formats.

The most important thing right now is to test where possible the detection
algorithms.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@252 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-19 01:52:29 +00:00
Frodo Looijaard
630e144fc9 Detection for all other supported chips added
Still no userinterface; see previous commit


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@251 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 21:14:48 +00:00
Frodo Looijaard
0e278ee57f Detect script: actually works for chip detection!
Well, it still takes some tinkering, and I need to create a user-interface.
If you want to play with it already:
  * Uncomment the line beneath test, and put the adapter number (as
    corresponding with /dev/i2c-*) behind it as argument;
  * It only detects LM78, LM78-J, LM79 and LM80 at of this moment;
  * Only LM75 detection is really tested, as I don't have my LM78 connected
    to the SMBus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@250 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 18:09:14 +00:00
Philip Edelbrock
bcbf38a511 (Phil) OK, tagging and releasing 2.2.2. I think I might have found the CVS
bug (checked out as one user, and commiting as another to the same checked
out project?).  Anyways, things seem to be OK now (I hope!).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@249 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 17:18:47 +00:00
Frodo Looijaard
089481f07d Two insignificant patches to remove 2.0.x kernel compile warnings.
It compiles now cleanly against kernel 2.0.36; I checked, double-checked and
cross-checked.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@247 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 14:31:54 +00:00
Frodo Looijaard
1e6a3fb89c Made i2c-core a bit quieter (removed those Transaction logs)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@246 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 14:21:37 +00:00
Frodo Looijaard
d4ae94bf20 Huh? My ALI patch did not take?!? Let's try again...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@245 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 13:19:29 +00:00
Frodo Looijaard
313a5bb78f Latest and greatest detect.pl. Still no user-visible things added; but
I am preparing for the real work now!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@244 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 00:19:19 +00:00
Philip Edelbrock
5c7209e5f0 (Phil) Tag and release 2.2.1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@243 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 23:32:14 +00:00
Frodo Looijaard
0e5d97b61a Recommit of detect.pl; this time it should be right!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@241 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 23:26:04 +00:00
Frodo Looijaard
30cac4b4fb Now all SMBus access functionality of i2c-dev.h is available in this
perl script too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@240 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 23:24:24 +00:00
Frodo Looijaard
ae70d90ba1 Updated CHANGES file to prepare for 2.2.1 release
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@239 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 23:12:28 +00:00
Frodo Looijaard
58f9fe39aa IOCTL access to /dev/i2c-* files from Perl implemented
It needs to be expanded a bit and tested, but this means I can start to
write chip detection routines from Perl!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@238 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 20:55:23 +00:00
Frodo Looijaard
a9cc710cc7 Two small warnings (one to the point) removed when DEBUG=1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@237 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 19:19:23 +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
Kyosti Malkki
ed83727f04 (Kyösti) For gl518sm-r80 prog/sensors now shows vdd, vin1 and vin2 instead
of error message. The driver itself still uses rev 0 factors for scaling.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@234 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-16 22:13:22 +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