Commit Graph
272 Commits
Author SHA1 Message Date
Frodo Looijaard 7d9d543593 Better 10-bit addresses support changes
* Enlarged addresses from 8 to 16 bits at some places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@586 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 16:30:42 +00:00
Frodo Looijaard 52781e50b4 Preparations for better 10-bit address support
Updated for the changes in i2c_smbus_* functions


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@585 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 16:01:24 +00:00
Frodo Looijaard 9d88e65c71 `functionality' checking for clients implemented
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@584 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 14:19:46 +00:00
Frodo Looijaard e9ac105d87 `functionality' support for all bus drivers
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@583 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 13:49:29 +00:00
Frodo Looijaard 68a31e3480 Some code cleanups
* Removed several superfluous (struct i2c_client *) casts (they were left
  from the time we had separate structs for smbus and isa)
* Removed the internal lists of registered clients
  They have not been used for quite some time now, took memory space,
  and limited the maximum number of clients that could be registered.

Also removed two small Makefile errors - I am happy I caught them before
the next release!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@582 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 13:20:45 +00:00
Frodo Looijaard fc20445e02 Surer `make clean' implementation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@581 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 10:52:50 +00:00
Philip Edelbrock 373df8c69e (Phil) Improved detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@579 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-24 06:53:14 +00:00
Philip Edelbrock 11bc8953e4 (Phil) More tweaking and testing.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@578 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-24 06:52:51 +00:00
Philip Edelbrock 5decf6a577 (Phil) Slight timing adjustments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@577 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-24 05:38:30 +00:00
Frodo Looijaard c81440d21a Makefile changes for better behaviour with already patched kernels.
The Makefile now examine $(LINUX)/.config to see what modules need to be
compiled. It compiles only those modules which were either not configured
in at all, or were built as modules (ie. drivers which are built-in in the
kernel are not built, as they can not be overruled).

The above is still potentially dangerous, if we break the interface of
our modules. Still, it is much better than it was.
C


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@575 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-22 23:11:52 +00:00
Frodo Looijaard 1b41975d9a PCI fixes for kernel 2.3.13 and later. Typo fixed in thmc50 which
bit the compiler.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@566 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-16 19:47:46 +00:00
Philip Edelbrock 6df0da79cf (Phil) Some bug fixes. As far as I can tell, the THMC50 driver seems to
be working perfectly.  Of course, some real-world users might find something
I didn't...  BTW- I caught a minor bug which I thought was funny, and checked
lm75.c to see if it was there from the start... and it was!  So, I managed to
catch a bug in lm75.c which might have resulted in bad temp_hyst readings
during that short period between setting new limits and the next valid update.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@564 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-14 04:55:28 +00:00
Frodo Looijaard 399608b208 Updates for 2.0.x kernel compilation
Most important change: GL518SM-rev00 can't use kernel threads on 2.0 and
early 2.1 kernels


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@563 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-13 20:55:49 +00:00
Philip Edelbrock d529d90336 (Phil) OK, the driver is basically done, it just needs to be debugged.
I can build, insert, and use it to some capacity at this point.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@562 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-13 00:46:11 +00:00
Philip Edelbrock c25252d479 (Phil) thmc50.o now compiles and inserts as part of the package.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@560 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 23:02:35 +00:00
Philip Edelbrock 8bd24883ce (Phil) First rough conversion of lm75.c to thmc50.c. In theory, it should
work but only support the internal temp sensor.... more to come!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@559 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 22:42:40 +00:00
Frodo Looijaard 3510c0eecc Fixed module lists and ali15x3 module inclusion
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@558 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 21:57:50 +00:00
Frodo Looijaard 79fac19ad8 Very small patches to make compiling against kernel 2.0.0 possible
again.

No testing yet, just a normal compile without kernel patching. Expect more
of these minor patches today,


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@553 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-11 12:50:18 +00:00
Frodo Looijaard d1e26d5f16 mkpatch updates
* mkpatch now correctly works when kernel-side files do not yet exist.
  I forgot to propagate a change in the i2c version.
* __init* handling in mkpatch and compat.h
* New i801 defines added to mkpatch


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@545 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-03 11:11:03 +00:00
Philip Edelbrock 2a2a3f35fe (Phil) Fixed temperature reporting of LM80 (I hope).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@543 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-30 04:15:55 +00:00
Mark D. Studebaker 84622329a3 (mds) Improved w83627hf support. Can't do much more unless I get a
datasheet though.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@539 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-28 19:06:53 +00:00
Mark D. Studebaker 3ec3b3f98d (mds) Added block read/write support. Much different than piix4.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@537 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-26 00:39:34 +00:00
Mark D. Studebaker e3ea230c90 (mds) Fixed bug introduced with thmc10 that made adm1021 get reported
as a max1617. Thanks Phil.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@536 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-24 02:27:57 +00:00
Kyosti Malkki 36c650c50d (Kyösti)
* changed sensors.o to use WRITE address to check existence of
   a client

 In most cases this makes no difference. However, some versions of the
 Matrox Orbital display hang the bus if you try to ack the read address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@535 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-23 17:37:42 +00:00
Mark D. Studebaker 0208181806 (mds) add support for TI THMC10 to the adm1021 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@533 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 22:58:52 +00:00
Mark D. Studebaker 5f77505190 (mds) add lm81 support to the adm9240 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@532 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 17:52:38 +00:00
Mark D. Studebaker d34707ac02 (mds) For i801 support.
Oops forgot to check it in with the rest of the i801 stuff.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@531 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 15:05:50 +00:00
Mark D. Studebaker 503b502bb1 (mds) Add i801 bus driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@528 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-17 01:19:20 +00:00
Mark D. Studebaker 8da1cf8c4f (mds) Add initial w83627hf support. Assuming identical to w83782d.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@525 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-15 21:01:48 +00:00
Kyosti Malkki 8861601cc2 (Kyösti)
* removed algorithm registration in i2c-isa
 * renamed i2c-via2.o to i2c-viapro.o in the driver messages
 * added detection for new drivers in sensors-detect script
 * minor gl518sm fix


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@522 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-27 16:51:00 +00:00
Kyosti Malkki a5ab0a6b6e (Kyösti)
* New VIA & Genesys documentation

 * renamed i2c-via2 to i2c-viapro in makefile


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@521 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-26 18:22:21 +00:00
Kyosti Malkki a92e84fe2a (Kyösti)
* GL518 & GL520: setting fan{1,2}_min 0 masks alarm & beep

 * GL518SM rev 0x00 : Run iteration code in kernel thread

   Every run of "sensors" now reports results of the previous
   iteration run, and triggers a new one.

 * GL520: Reads all inputs now
 * GL520: Select between Temp2 or -12V input.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@520 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-26 15:31:45 +00:00
Philip Edelbrock a55703e80b (Phil) Renamed i2c-via2.c to i2c-viapro.c.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@519 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-25 19:10:36 +00:00
Kyosti Malkki 5811024b75 (Kyösti)
* typo fix and fine-tuning outputs


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@517 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-24 12:46:12 +00:00
Frodo Looijaard acd5a15556 (Frodo) Massive commit of all things related to mkpatch. Let's just say
it works great now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@516 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 23:43:13 +00:00
Frodo Looijaard fcbe78a669 First step to make it possible to integrate lm_sensors modules into
the kernel.

* <kernel/init.h> is now included for all modules
* Initialization-time only functions and variables are marked with __init
* EXPORT_SYMBOL or EXPORT_NO_SYMBOLS declarations added


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@513 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 11:43:58 +00:00
Kyosti Malkki c9e71cd9df (Kyösti)
* gl518sm document simplified for rev 0x00 & 0x80
 * gl518sm & gl520sm libsensors interface updates

 BTW: Revision is no longer part of the name, so old sensors.conf
      will not work at all with gl518sm.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@511 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 21:19:14 +00:00
Kyosti Malkki 41c6e871a4 (Kyösti)
* Restructured iteration code for rev 0x00

 Two modes already:

   0   no iteration, no delay, reads only vin3, vin0-2 = 0
   1   does iteration, delays reads approx. 8 seconds

 To be added:

   2   does iteration in background, no delay for user apps

  In this mode the results of the last iteration loop are shown,
  and then a new iteration loop is triggered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@510 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 16:43:37 +00:00
Kyosti Malkki b64ef156c9 (Kyösti)
* now compiles with DEBUG=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@509 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 14:46:46 +00:00
Kyosti Malkki 655a994e9c (Kyösti)
* gl520sm compiles now


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@507 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 22:45:20 +00:00
Frodo Looijaard 2212822342 ISA changes
* i2c-isa simplified, by using the addr field in the client structure,
  instead of a new field. This means we do not need `struct isa_*'
  anymore
* All clients changed to reflect the new isa code. Many are much
  simplified now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@505 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 22:04:34 +00:00
Kyosti Malkki 2dbe720b09 (Kyösti)
* Added new client driver for GL520SM


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@503 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 10:30:07 +00:00
Kyosti Malkki 6126040a88 (Kyösti)
* removed separation of GL518SM to revision 0x00 and 0x80


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@502 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 10:14:59 +00:00
Kyosti Malkki 3014204a0d (Kyösti)
* renamed every smbus_*  access to i2c_smbus_*
 * everything in lm_sensors2/kernel/* compiles nicely :)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@499 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 22:46:49 +00:00
Kyosti Malkki 868b407674 (Kyösti)
* True SMBus host support for VIA southbridges

 Supports PCI devices:
   1106:3050        VT82C596    "Via Apollo Pro / Pro+"
   1106:3057        VT82C686    "Via Apollo MVP4"

 I have no hardware to test these..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@498 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 21:48:39 +00:00
Kyosti Malkki 7ac5a6005f (Kyösti)
* Fixed adapter drivers to compile with the new i2c structs.
   They might, or they might not work..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@497 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 21:38:11 +00:00
Frodo Looijaard 24e547b88e First round of lm_sensors changes for the new I2C tree
* The i2c package can no longer be compiled as part of the lm_sensors tree
* The archive of the i2c package is removed
* smbus, i2c-dev and i2c-proc modules and headers have been removed; they
  are now completely integrated into the i2c package
* The fake i2c.h header has been removed; this also allowed us to remove
  the ugly LM_SENSORS and TBD defines.
* A new variable I2C_HEADERS is introduced in the Makefile. This allows
  us to install the i2c headers in, for example, /usr/local/include/linux.
* All files now include <linux/i2c.h> instead of "i2c.h" and "smbus.h"

Status: 'make dep' works, all the right include files are found. 'make all'
         does not yet work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@496 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-19 11:45:27 +00:00
Frodo Looijaard 8e98b3c1f6 pci_write_word_united wrote a byte instead :-(
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@494 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-23 19:09:09 +00:00
Frodo Looijaard 791c9709cf SiS5595 driver correction, which made any insertion impossible
Never put a semicolon after an if :-(

I have a SiS5595 here, which reports his chip monitor address as 0x0000.
Strange thing...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@493 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-23 18:39:47 +00:00
Frodo Looijaard 746250b30a Detection bug for ADM9240 solved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@492 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-22 22:09:09 +00:00