Commit Graph
489 Commits
Author SHA1 Message Date
Jean Delvare b3528cbdbc Rewrote print_eeprom().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1884 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-17 16:41:12 +00:00
Jean Delvare 3efe48f865 Enable i2c-matrox and rivatv again.
Change the name and URI for rivatv (was i2c-riva).
        Better handling of disabled drivers (for future use).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1883 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-17 08:50:05 +00:00
Jean Delvare a5890ce091 Recommend the user to give a try to the modprobe and sensors -s
commands directly.
        Make the sleep before sensors -s a comment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1877 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-08 13:07:59 +00:00
Jean Delvare b24d4adc8a Temporarily disabled i2c-riva and i2c-matroxfb, until these
drivers are ported to our new i2c strctures.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1875 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-08 09:22:43 +00:00
Jean Delvare 424012d9ec Fix LM90 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1873 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-08 07:19:12 +00:00
Jean Delvare 9ab12ef229 Better message on tokenization error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1867 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-07 11:36:17 +00:00
Jean Delvare 66d5b66267 Only install dmidecode if not existing or if older than our
source file. We are not the authority for dmidecode and we
        are not up-to-date either.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1866 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-07 10:44:29 +00:00
Jean Delvare 286c1e8745 Add LM90 detection.
Fix binmode call for Perl 5.005.
        Open /dev/i2c* in binary mode.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1865 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-07 10:31:41 +00:00
Mark D. Studebaker 1fa79086db emc6d100 patch from P.P.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1859 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-07 01:56:24 +00:00
Marius Reiner cb87834e01 (marius) removed pwmtest, pwmconfig takes over the pwm related stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1858 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:16:03 +00:00
Marius Reiner 0e1d5df3ef (marius) added URL to project page (documentation)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1856 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:00:20 +00:00
Jean Delvare 88c186174d Give the filename when tokenization fails.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1851 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-04 08:42:21 +00:00
Jean Delvare c721b2750c Really remove lm83 detection from adm1021_detect.
Fix detection code for MAX1617A (require both the manufacturer ID
        and the revision to match, instead of only one out of the two.)
        Add detection for ADM1021A/ADM1023.
        Give a higher (7 instead of 6) confidence to ADM1021-like chips
        with a known revision.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1847 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-04 08:13:35 +00:00
Jean Delvare 44250b56bd Add support for lm83.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1843 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-03 17:45:32 +00:00
Jean Delvare 76ccb8d29c Moved LM83 detection to a separate function.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1841 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-03 17:28:16 +00:00
Jean Delvare 3d2f211650 Preliminary LM83 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1830 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-02 09:23:51 +00:00
Jean Delvare a5aa0fce16 Better detection code for LM75, based on datasheet and known
hardware.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1829 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-02 09:06:51 +00:00
Jean Delvare 725ef53c13 Do not use O_BINARY, doesn't work on older versions of Perl.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1824 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 22:05:52 +00:00
Mark D. Studebaker 0948e17ee9 add new build targets 'user' and 'user_install'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1822 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 20:04:51 +00:00
Mark D. Studebaker 67540c7d07 clear correct bits in config word
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1821 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 19:27:17 +00:00
Jean Delvare 65b3af0ad5 Fix UTF-8 incompatibility. Thanks a lot to Jim Morris for testing!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1819 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 08:25:19 +00:00
Marius Reiner eb4c9aa2d1 (marius) added some comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1815 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 20:57:49 +00:00
Mark D. Studebaker bd6b6f61ab remove unused variable from -Wall
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1800 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 16:06:13 +00:00
Mark D. Studebaker 37a4ade799 add w83l785ts detection - no driver yet
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1799 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 15:26:38 +00:00
Marius Reiner 2d5e514e91 Added PID file creation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1798 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 14:04:39 +00:00
Marius Reiner 313a183bb3 *** empty log message ***
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1796 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-20 19:51:26 +00:00
Mark M. Hoffman 139114401d Added recognition of SiS746 host bridge.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1794 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-17 05:30:31 +00:00
Jean Delvare 9f5e11adc7 Fix compiler warning (missing include).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1792 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:22:22 +00:00
Jean Delvare a1ca8861d4 Fix compiler warning (uninitialized variable).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1791 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:19:10 +00:00
Jean Delvare eee8d62f7b Fix compiler warning (uninitialized variable).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1790 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:06:49 +00:00
Mark D. Studebaker 9c3c40097c Add support for w83627thf. Includes patch from
Matthias Hentges <matthias@hentges.net>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1784 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-11 23:43:25 +00:00
Jean Delvare 0b7a7b9787 Undid outb() fix by Jim Morris.
Fixed faulty outb() calls.
        Armored outb() against future faulty calls.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1783 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-11 08:28:55 +00:00
Mark D. Studebaker 2c31ea166c add w83791d detection, update documentation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1782 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 03:01:31 +00:00
Mark D. Studebaker a05fe9ed42 print super I/O device ID if not matched to help
identify unsupported chips


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1781 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 02:32:57 +00:00
Mark D. Studebaker e9c0fce42a adm1026 and auto-sensors.h patch from P.P.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1777 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:33:39 +00:00
Mark D. Studebaker 8234f8c58a add support for 82801EB (ICH5) 0x24d3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1775 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:05:58 +00:00
Mark D. Studebaker 2be6de25d8 C format fix from Jim Morris <morris@wolfman.com>
This seems to happen on newer perl versions.
It is fatal in as much as the sensors are not detected.
The solution appears to be to simply add & 0x7f to the
pack statement at line 1138 of sensors_detect...

sub outb
{
  my $towrite = pack( "C", $_[1] & 0x7f);


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1774 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 20:24:51 +00:00
Jean Delvare 63ea19c123 Fixed nForce2 detection, for real this time. Successfully tested
by Thomas "Sesshoumaru" Sabono. Thanks Thomas!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1767 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 08:34:25 +00:00
Jean Delvare 8742aa8f3a Added nForce2 detection, which was missing, although we have
nForce2 supported since 16 Feb 2003.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1761 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-05 09:16:33 +00:00
Jean Delvare fc17449b5b Now supports dmidecode 2.0 and later.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1755 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 07:44:49 +00:00
Mark M. Hoffman 3d54042d27 Added support for SiS745 north bridge.
Patch and testing by Rudolf Marek

(mmh) Also added missing declaration for SiS963 support - my bad.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1752 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 22:22:16 +00:00
Mark M. Hoffman caf6b6140e Added support for SiS651 north bridge.
Patches and testing by Chris King and Norbert Roos


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1750 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 20:23:13 +00:00
Mark D. Studebaker f9b228cf18 fix 'make install', change install directory to be the same
as other modules. Ticket #1258


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1748 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 17:30:47 +00:00
Mark D. Studebaker a43c4d1b3a update paths again to pick up userspace i2c-dev.h from
../../kernel/include


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1745 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 04:18:24 +00:00
Mark D. Studebaker 8d14fe682d add include file search path
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1744 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:38:19 +00:00
Mark D. Studebaker 0d05ed0fab patch as described below. Doesn't compile because of header problems...
From: rysanek@fccps.cz

Dear Chris,

many thanks for writing eeprom.c in the first place.
It has saved me an indefinite amount of time when I needed
to access a 24C02 in a cursed notebook battery pack that
someone's trying to refurbish.

Many more thanks to the authors of lm_sensors and Linux i2c
for writing their software, of course.

I did have to modify eepromer/eeprom.c a bit though, to support
my 24C02. The essential gotcha was this: whereas the 24C16 that
you were using supports maximum burst size of 16 bytes (the same
applies to 24C08 and 24C04), the 24C02 and 24C01 only support
bursts up to 8 bytes long.
I assume that in fact you already know this, as in your code
there's a neat #define called MAX_BYTES to hold exactly this
burst length. And, this was the first thing I modified when
I was trying to solve my problem.
There's one more associated bug though, probably a result of
the fact that your code was not tested with MAX_BYTES values
other than 16. The two for(;;) cycles for reading/writing
consecutive bursts have a wrong terminal condition: they're
comparing the loop count against MAX_BYTES instead of
(BYTES_PER_PAGE/MAX_BYTES).

With this e-mail, I am enclosing the corrected eeprom.c.

My symptoms looked like this: I read the eeprom just fine.
I did my dirty work on two bytes in the eprom dump and
flashed it back. When I re-read the eprom contents,
I found garbage - or so it seemed.
At a closer look, I found out that every second
half-burst (the second 8 bytes of the 16) was correct and
every first 8 bytes was garbled. (Compared that using two
hex editors open on consoles 1 and 2.)
After a few more  seconds I found out that the two half-bursts
were really identical.
My final explanation is that each 16byte write resulted in
only the first half-burst being overwritten (the second was
left untouched), only the eeprom latched in all 16 bytes
obediently, so that its FIFO overflew and looped around
exactly once, which resulted in the *second* half-burst
being written into the *first* eight bytes...

Based largely on eeprom.c, I've already hacked a simple util
to write only those two or four bytes that matter to me (the
actual battery capacity and the write-protect stuff).

If the battery refurbishment works out, I'll update my website
to report this success, including all my code snippets.
Thanks again :)

Frank Rysanek


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1743 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:37:24 +00:00
Mark D. Studebaker 080beac84a recognize w83791d
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1742 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:01:58 +00:00
Mark D. Studebaker 51b011307c Patch from Philip Pokorny
This patch fixes a race condition in the lm85 driver and adds support for the
SMC EMC6D100 and EMC6D101.  The EMC6D100 and 101 chips have some additional
features that *are not* currently implemented in the driver, but the chip is
detected (by sensors-detect and the lm85 driver).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1740 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 00:24:07 +00:00
Mark D. Studebaker bd256e9552 lm85 patch from Philip Pokorny <ppokorny@penguincomputing.com>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1726 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:34:10 +00:00
Mark D. Studebaker 21920eeb66 cleanup from Philip Pokorny
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1725 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:28:56 +00:00