2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 21:07:55 +00:00

254 Commits

Author SHA1 Message Date
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
Frodo Looijaard
bdb8f575b7 sensors-detect new feature
The detection program can now be told that it should probe for more
addresses than the kernel driver module; it automatically generates
the necessary insmod parameters for the module if chips are found on
these non-standard addresses. Very useful for the LM78, for instance;
the driver still only check 0x20-0x2f, but the probe program checks
all addresses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@336 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:48:41 +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
Frodo Looijaard
96ac13566f Finished renaming of detect.pl
* Either Phil had not done a 'cvs update', or I forgot a 'cvs commit'; anyway,
  the last changes to detect.pl have been ported to sensors-detect.
* Added a rule to the Makefile fragment to install it in $(SBINDIR).
* Added SBINDIR to the main Makefile.
* Deleted detect.pl


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@323 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 15:12:01 +00:00
Frodo Looijaard
a9a3659fe9 Minor fixes
* No more redefined complaints of MODULE_* symbols for 2.0 kernels
  This was introduced by the last archive of Simon
* Correct load order of adapters in detect script modprobe report
  You can't assume things come out of a hash in the same order as you
  put them in, of course :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@303 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 20:31:58 +00:00
Frodo Looijaard
64c192a880 Updated CONTRIBUTORS file. Phil, you may want to synchronize it
with your web version.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@301 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 01:17:15 +00:00
Frodo Looijaard
d415d98250 Now modprobe line printing handles alias detections too.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@299 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 18:11:26 +00:00
Frodo Looijaard
c945d59bbf Added automatic generation of modprobe lines. Also corrected SIS
detection bug

The lesson of today: the control variable in foreach loops is local to the
loop and regains his former value on exit of the loop. Oops.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@298 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 16:19:30 +00:00
Frodo Looijaard
7050256b5d Last bug removed (ha!)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@296 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-03 14:18:01 +00:00
Frodo Looijaard
d9e5165439 There we go again... nothing new, except the obvious bug fix. Sigh.
I hope that CVS supports revision numbers of at least seven digits...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@292 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 11:13:46 +00:00
Frodo Looijaard
bf3be66993 More bug fixes. Try again, etc.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@291 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 10:04:21 +00:00
Frodo Looijaard
d3a1413c01 Finally fixed the misdetect error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@290 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 08:08:29 +00:00
Frodo Looijaard
3885d0c4a2 Alias detection typo fixed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@287 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-01 16:18:28 +00:00
Frodo Looijaard
bae506f2df Modified LM75 detection again. It should now be better.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@286 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-01 13:49:06 +00:00
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
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
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
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
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
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
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