2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00
Commit Graph

2001 Commits

Author SHA1 Message Date
Frodo Looijaard
90627a9461 More better DEBUG stuff for piix4, removed compile warning for sensors.c
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@157 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 17:06:18 +00:00
Frodo Looijaard
6330b7018a Slightly better debug logs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@156 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 17:02:01 +00:00
Philip Edelbrock
e4051fec67 (Phil) Added a driver for the LTC1710. The LTC1710 is a very simple dual
switch.  It can switch two devices which each consume 300mA at 5V (or less).
This is good for fans, lights, or into relays for heftier stuff.

Here's what the usage looks like:

[root@penn sensors]# ls ltc1710-i2c-1-58/*
ltc1710-i2c-1-58/switch1
ltc1710-i2c-1-58/switch2

[root@penn sensors]# cat ltc1710-i2c-1-58/*
0
0

[root@penn sensors]# echo "1" >  ltc1710-i2c-1-58/switch2
(blue LED turned on)

[root@penn sensors]# cat ltc1710-i2c-1-58/*
0
1

One problem with the device: It doesn't support reads.  It ignores any
read transactions, so even detection with a read won't work.  This
also means that the status of the switches has to be remembered and
can't be polled.

As simple as this device is, it is one of the few which actually
allows the computer to send signals OUT into the world to
control something.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@155 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 05:20:10 +00:00
Philip Edelbrock
ff2c35a40b (Phil) Added driver for ADM9240. It isn't full tested, but it is
mostly there and working.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@154 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 03:33:07 +00:00
Philip Edelbrock
899ca67043 (Phil) Added a driver for the Analog Devices ADM1021. The ADM1021 is
basically an expanded LM75.  It can have an external temp probe (in
addition to the internal one), customizable conversion rate (in # of times
per second, depending on power consumption requirements), and
actually has a device-id register for easier/more-certain detecting!

The only strange property is the low-limit.  The low-limit doesn't act
as a Hystersis value like the LM75.  I.e., if the temp falls below it,
it triggers an alarm instead of clearing it.  Strange, ey?  This makes
using the chip for a thermostat control (like for a fan) much harder.
But it *could* be used to turn on a heater to prevent your computer from
freezing. :')

Here's what my output looks like (without a remote sensor. temp's
are the same format as the LM75 [high-limit, low-limit, value]):

[root@penn adm1021-i2c-0-18]# ls -l
total 0
-r--r--r--   1 root     root            0 Jan  9 23:42 die_code
-rw-r--r--   1 root     root            0 Jan  9 23:42 remote_temp
-r--r--r--   1 root     root            0 Jan  9 23:42 status
-rw-r--r--   1 root     root            0 Jan  9 23:42 temp
[root@penn adm1021-i2c-0-18]# cat *
3
60 20 0
76
60 20 24


PS- all temp values in the ADM1021 (limits and readings) are signed
(2's comp) bytes.  So, all readings go from -128 to 127 C (actually,
the docs say it can only reliable sense down to -65), and only
in whole degree increments.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@153 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-10 08:03:43 +00:00
Frodo Looijaard
687f8e5fff Some kernel documentation I have written the past time.
Nothing really special, but here is the simplest place to keep it, especially
as others may need it too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@152 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-10 00:58:51 +00:00
Frodo Looijaard
8b123ff46b Winbond bug fixes, as indicated by Petr Vandrovec
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@151 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 23:47:16 +00:00
Frodo Looijaard
14992732d9 GL518SM fixes
* Better VDD internal computation, as described in the data sheet;
* Fixed the config file to reflect the above change;
* The library read the wrong file to get its gl518sm alarm data.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@150 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 20:21:32 +00:00
Frodo Looijaard
95961de807 Resolved old fan_div related bug in lm80 and w83781 modules.
When computing the fan rotation speed, the register value of the dividers
was used, instead of the value it represents. I'ev fixed this ages ago
for the LM80 driver, but it seems I had forgotten to fix it at other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@149 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 14:48:46 +00:00
Frodo Looijaard
dabc5bfbb6 i2c-proc bug resolved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@147 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-07 20:07:15 +00:00
Frodo Looijaard
1d12298e93 New file CHANGES
Read the intro; it describes how you can use CVS to diff between old releases.

Stupid copyright typo in piix4.c fixed


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@146 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-06 00:23:42 +00:00
Frodo Looijaard
a59e9abc8b Several small GL518SM fixes
* (module) VIN limits are now set to sane values (3V instead of 30V, which
  caused nasty overflows)
* (module) VIN limits had min/max swapped in gl518_attach_adapter
* (lib) TEMP_HYST used the VID sysctl instead of the TEMP sysctl, leading
  to bogus readings
* (sensors) print n/a for gl518 not available readings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@145 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-03 16:21:51 +00:00
Frodo Looijaard
dfc74d0f39 ISA utility to dump address/register type adderss spaces.
Usage: isadump <ADDR-REG> <DATA-REG>
For the default LM78, this would be `isadump 0x295 0x296' (addresses may be
specified as decimal, octal or hexadecimal).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@144 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-01 00:41:46 +00:00
Philip Edelbrock
ac942d1a09 (Phil) Release and tag version 2.1.0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@143 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-31 01:52:20 +00:00
Frodo Looijaard
139f2d3d4a PIIX4 doc update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@141 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 23:54:25 +00:00
Frodo Looijaard
566c22c058 Command-line chip specifications introduced in prog/sensors; minor
lib problem resolved.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@140 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 20:33:34 +00:00
Frodo Looijaard
b34dfb727d A few small documentation updates, and an updated example config file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@139 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 19:54:02 +00:00
Frodo Looijaard
c2b1fec9fc Library and application support for 'set' statements
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@138 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 19:48:43 +00:00
Frodo Looijaard
d1379d905a Kyösti Mälkki's semicolon fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@137 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 18:22:02 +00:00
Philip Edelbrock
7b51473a03 (Phil) Fixed a simple (but serious) problem with the temp2 and temp3
readings.  (changed a u8 to a u16 in the data struct.)  Now the temp
readings seem to work perfectly!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@136 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 06:56:30 +00:00
Frodo Looijaard
64f225597f Update useful_addresses
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@135 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 02:13:20 +00:00
Frodo Looijaard
e4b25eef4d Major FAQ revision, and LSM entry
Please read the FAQ to see what is changed; there may be errors or omissions
yet. It is only meant for 2.x versions; the 1.x FAQ should not be deleted
from our homepage yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@134 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 00:46:56 +00:00
Frodo Looijaard
9ca5ea5c60 TODO update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@133 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 18:39:40 +00:00
Frodo Looijaard
d8dce5faf3 fill_inode bug resolved
This could lead to memory corruption and to the could-not-unload-module
problem of earlier reports. With a little luck, this will resolve all
module loading/unloading problems reported.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@132 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 15:50:25 +00:00
Frodo Looijaard
afc4714f07 Fixed word-sized Winbond register read/write.
This should solve the temp2/3 bogus readings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@131 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 15:30:44 +00:00
Frodo Looijaard
8d608692ef SMP detection for newer kernels in Makefile
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@130 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 00:16:29 +00:00
Frodo Looijaard
4de2f33a67 Corrected Winbond temperature problem
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@129 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 20:13:24 +00:00
Frodo Looijaard
b827b9a68e Fan value problems resolved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@128 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 20:08:44 +00:00
Frodo Looijaard
2e8b49295a Fix to let prog/sensors call the Winbond pretty-print routine, for
Winbond chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@127 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 19:50:14 +00:00
Frodo Looijaard
36acfea7c0 Added link to the 3DHardware.net site
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@126 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 19:47:10 +00:00
Frodo Looijaard
85a8462196 Config file support for the Winbond chip
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@125 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 19:39:40 +00:00
Frodo Looijaard
20065b3dee Missing conf file, containing conf-lex and conf-parse externally
used symbols (sorry for forgetting to 'cvs add' it!)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@124 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 19:30:06 +00:00
Frodo Looijaard
f6c6cd4f01 prog/sensors Winbond support, and some bug fixes in the program.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@123 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-26 02:01:59 +00:00
Frodo Looijaard
a1b75bd20c Winbond library support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@122 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-26 01:39:10 +00:00
Frodo Looijaard
9248881396 Winbond driver enhancements (untested)
* Force the Winbond into bank 0 before anything else is done
* Copied fan_div patch from lm78.c
* Copied IN_{FROM,TO}_REG patch from lm78.c
* Copied alarms computation bug fix from lm78.c
* Nicer way of managing banks: the bank number to access is now the high
  byte of the (as u16 declared) register number. Only
  w38781d_{read,write}_value needs now to be aware of banks. Also, the
  w38781d_{read,write}_value functions now know that sensors 2 and temp, hyst
  and over registers are word-sized.
* Introduced fan_div for FAN3 and 9-bit temperature readings.
* Made beep file work like the gl518sm one
* Corrected small VID problem (bit 4 was read from the wrong register)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@121 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-26 01:18:58 +00:00
Frodo Looijaard
1654f21fc5 Some library cleanup; no interface changes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@120 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 22:15:48 +00:00
Frodo Looijaard
faa996f454 Moved some library functions around, to put them in more logical files.
No external changes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@119 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 21:51:59 +00:00
Frodo Looijaard
a4940fe7c3 Syntax error removed from config file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@118 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 19:47:34 +00:00
Frodo Looijaard
9ce7bed9b3 /prog/sensors LM80 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@117 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 19:44:00 +00:00
Frodo Looijaard
9c3958f7e8 Library LM80 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@116 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 19:37:17 +00:00
Frodo Looijaard
e5249883ec Completed the LM80 driver. Untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@115 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 19:30:44 +00:00
Frodo Looijaard
e55205a604 Two bug fixed in the LM78/79 driver
* fan_div should now be handled correctly (please, could anybody play with
  this? My fan is on FAN3, the one whose fan_div can't be changed...)
* IN_{TO,FROM}_REG no longer needs the additional in parameter, since we
  eliminated scaling in the module.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@114 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 18:36:03 +00:00
Frodo Looijaard
e1a28393b3 Several minor things
* sensors.conf.eg now contains LM80 declarations
* i2c/i2c-core.c again displays which adapters and clients are found and
  connected, but it does not track the calls to transfer functions in dmesg
* Slight alarms computation bug in lm78.c repaired
* First hacks at lm80.c; expect a fully working version later today


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@113 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 15:50:47 +00:00
Frodo Looijaard
f3cfdfa7a5 Added 'beep' file for GL518SM chips
This file consists of two numbers: the first is either 0 (global sound
alarm disable) or 1 (enable), the second is in the same encoding as the
'alarm' file and determines for which alarms the speaker will sound.

The new file was added to the module, the library and the sensors application.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@112 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 23:17:55 +00:00
Frodo Looijaard
55f5652a9a prog/sensors now supports GL518SM. Please test! A configuration
entry for VDD (+5V) is added.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@111 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 20:29:29 +00:00
Frodo Looijaard
2b415b8690 Unknown chip support
Some basic support, in the form of sensors_get_all_features(), for chips that
are known to the library, but unknown to the application. prog/sensors has
a demo of how to use this, in function print_unknown_chip in chips.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@110 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 18:40:58 +00:00
Frodo Looijaard
dc9ff8085a New program, which generates `bus' lines for your config file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@109 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:22:19 +00:00
Frodo Looijaard
10ca370b06 Restructured the doc directory; added doc/progs; modified some files
to add more up-to-date documentation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@108 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:17:11 +00:00
Frodo Looijaard
1c12665831 Expanded expressions, slightly new syntax
An expression can now refer to the value it has to compute (@), but also to
other values. This is now perfectly valid as an expression:
  vid + in_min - in_max * 2 / @
Not that this is very sensible, but you get the idea. Please install the
new example config file, or replace all old 'val' occurences with '@'.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@107 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:13:44 +00:00
Frodo Looijaard
657798a79c The announced changes to the LM78 voltages, and an example config file.
Note: GL518SM driver need this change, too; this is not yet done.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@106 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-23 02:27:52 +00:00