2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00
Commit Graph

4145 Commits

Author SHA1 Message Date
Kyosti Malkki
9ab5512ee3 (Kyösti) Modifications in makefiles to reflect the changed location
of i2cdetect.c from prog/dump to prog/detect. Should now compile cleanly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@202 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 15:34:51 +00:00
Philip Edelbrock
9155afb864 (Phil) Moved i2cdetect.c from prog/dump to prog/detect. Be sure to do a
'cvs update'.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@201 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 02:28:08 +00:00
Philip Edelbrock
5f3330bea8 (Phil) Added documenation for the Linear Technology LTC1710.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@200 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 02:10:33 +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
Philip Edelbrock
945198257b (Phil) Added documentation for the ADM1021.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@198 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 01:28:20 +00:00
Philip Edelbrock
bfccc6a6e3 (Phil) Added some ADM9240 documentation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@197 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 00:55:27 +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
Frodo Looijaard
7ecccc1ff0 The beginnings of the detect program
Right now, it can detect several adapters: the PIIX4, the VIA Southbridge and
the SIS southbridge. The tough stuff will be the separate devices...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@195 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-06 01:04:57 +00:00
Frodo Looijaard
b9b60a0195 Automatically delete old kernel modules on a 'make install'
It tries to delete bit-via.o, bit-mb.o, isa.o and piix4.o in the module
install directory.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@194 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 13:25:49 +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
552a504b87 Update of TODO list
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@191 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-03 00:33:55 +00:00
Frodo Looijaard
6fe26d90fe PROC_CALL ioctl hook in i2c-dev added
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@190 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-02 17:13:00 +00:00
Frodo Looijaard
e5abaab541 2.2.x kernel PAGE_MASK bug work-around.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@189 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-02 17:01:32 +00:00
Frodo Looijaard
92a1100bcb Slight update in docs
Added Kyösti to the contributors list. Put the CDRom bug in the BUGS file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@188 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-02 16:54:55 +00:00
Kyosti Malkki
4928c0d7bc (Kyösti) : Via driver and related documentation moved under
lm_sensors2 source tree. Improvements in VIA driver,
            now checks revision code and refuses to load the
            module if bit_test (in algo-bit) fails.
            (Also fixes previous unsuccessfull CVS commit)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@187 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-31 22:55:35 +00:00
Kyosti Malkki
e2f85d427e (Kyösti) : Via driver and related documentation moved under
lm_sensors2 source tree. Improvement in VI


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@186 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-31 21:29:53 +00:00
Frodo Looijaard
1554bc1d47 EXPORT_* fix for 2.1 kernels
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@185 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 13:46:09 +00:00
Frodo Looijaard
634cb32ac0 Update to the latest (mod-19990118) kernel archive
I really hope I did not forget an add or remove. If strange things happen
when you compile, please let me know.

There may still be problems with the EXPORT_* stuff; it seems to work now
for kernel 2.0.36pre19, but it may give trouble for earlier kernels. We
need to check that.

Some i2c modules may be a bit verbose at this moment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@184 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 13:40:25 +00:00
Frodo Looijaard
a9ed098e1a Put the newest Simon Vogl archive in the archive directory
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@183 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 12:51:26 +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
Philip Edelbrock
b1cb5b860b (Phil) Renamed isa.h to i2c-isa.h. Note: '#include "isa.h"'s need to be
updated.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@181 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 22:51:38 +00:00
Frodo Looijaard
face12a534 Stuff to get rid of the LM_SENSORS define
Until now, all installed include files depended on a #defined variable
LM_SENSORS: if it was defined, other files were included as "somefile.h"
instead of <linux/somefile.h>. This was clearly dangerous, and is fixed
now, by automatically deleting the offending lines from the include file
when it is installed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@180 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 15:36:01 +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
e05ff970ae (Phil) This is just a CVS test.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@178 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 19:23:32 +00:00
Philip Edelbrock
412327936e (Phil) Whoops.. minor typo fixed. Everything builds, and most modules
have been tested.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@177 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:21:46 +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
5d35c0d282 (Phil) Oh boy, here we go! :') This is the removal of the original files
found under lm_sensors2/src and moved to lm_sensors/kernel (and new
sub-directories), as suggested by Frodo (from his email):

  kernel (i2c-dev.c, i2c-proc.c, sensors.c, smbus.c, compat.h)
   |
   |-- include (smbus.h, sensors.h, i2c-dev.h, isa.h)
   |
   |-- busses (i2c-isa.c, i2c-piix4.c, i2c-via.c)
   |
   |-- chips (adm1021.c, adm9240.c, eeprom.c, gl518sm.c, lm75.c, lm78.c,
              lm80.c, ltc1710.c, w83781d.c)

There may need to be more shuffling of a few more files, but this is the
bulk of the movement.  Of course, none of this will compile without some
changes to the appropriate 'make' files.

Also note that this commit notes only the removal and not the insertion
of the copies because that insertions were done by hand on the CVS
repository its self.

Last note, the change history (and comment logs) are intact, but the tags
were removed on the new files (because the files didn't really exist when
the tags were first made).

Don't forget to do a 'cvs update -d', and to also remove lm_sensors2/src!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@175 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-26 05:37:11 +00:00
Frodo Looijaard
eeddf2c5c7 Small Makefile typo fix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@174 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-25 22:04:35 +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
Philip Edelbrock
c55834ae8e (Phil) Added some simple detection (checks low byte of manufacturer ID),
and I fixed a small bug in the VID code (highest order bit was being lost).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@172 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-23 23:47:37 +00:00
Frodo Looijaard
d96873ab52 gl518sm alarms fix, more things TODO and a new useful address
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@171 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-18 23:14:07 +00:00
Philip Edelbrock
ac12669af9 (Phil) Released 2.1.2 (finally).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@170 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-16 22:35:30 +00:00
Frodo Looijaard
33269d5252 Small fixes to make all programs compile cleanly with libc6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@168 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-14 00:41:44 +00:00
Frodo Looijaard
fefbf31867 New program 'i2cdetect', which scans your i2c bus for connected devices
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@167 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 21:08:50 +00:00
Frodo Looijaard
1867246ee0 Documentation updates, and a very small print fix in i2cdump.c
Note especially the autoloading of i2c-dev by adding the following line
to /etc/module.conf (or /etc/conf.module):
  alias char-major-89 i2c-dev


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@166 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 21:00:04 +00:00
Frodo Looijaard
8c18675d85 i2c-dev is now working!
You can now use i2cdump to dump SMBus device registers!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@165 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:47:52 +00:00
Frodo Looijaard
50573c910d More i2c-dev fixes
* Made some smbus.h symbols visible in non-kernel mode
* Some i2c-dev.h fixes


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@164 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:25:21 +00:00
Frodo Looijaard
351441d5d8 Added a program to dump the registers of an SMBus device. Do not try
it yet; there are still bugs, which cause kernel oopses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@163 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:23:48 +00:00
Frodo Looijaard
21fafe4241 A small program to create /dev/i2c-* nodes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@162 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:09:44 +00:00
Frodo Looijaard
a5f164aca5 Made 'make install' first make everything; disabled the installation
of the old i2c i2c-dev now we have our own.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@161 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 19:14:38 +00:00
Frodo Looijaard
a775db2fcc Completed i2c-dev. Not tested yet.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@160 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 19:07:57 +00:00
Frodo Looijaard
1b05c9e1c1 User-space header file added for i2c-dev access
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@159 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 16:46:38 +00:00
Frodo Looijaard
81c78982f6 The beginnings of i2c-dev
Everything is in, except the IOCTL hook (which will be pretty simple to add).
It compiles cleanly. It is not tested at all.

Also a very small fix for i2c-proc, and Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@158 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 01:32:09 +00:00
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