Commit Graph
133 Commits
Author SHA1 Message Date
Mark D. Studebaker ca292047a5 BMC sysctl names update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1605 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-16 02:02:44 +00:00
Mark D. Studebaker 7bcd435c4c initial checkin IPMI/BMC support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1593 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-10 19:52:44 +00:00
Mark D. Studebaker 60a30ddb79 1st cut at smart battery driver. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1564 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-10-13 15:48:34 +00:00
Mark D. Studebaker 127249deb6 add multiple VRM support to lm87; patch from
Dave Johnson <ddj@cascv.brown.edu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1544 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-09-21 22:09:09 +00:00
Mark D. Studebaker 70055e4121 remove VT8231 support from via686a and move to a new dedicated driver.
This driver is a copy of vt1211, which is almost identical.
     The vt1211 is a super i/o chip and the vt8231 is a PCI chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1501 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-08-22 02:15:07 +00:00
Abraham van der Merwe 97d966fb75 Real-time clock driver for Dallas Semiconductor DS1307 chip. This just
provides and API for NVRAM and RTC drivers to sit on top of this. An example
of drivers that uses this API are the Frodo RTC and NVRAM drivers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1433 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-09 12:45:08 +00:00
Abraham van der Merwe 1707919009 Added sysctl values for LM92 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1418 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-04 11:35:16 +00:00
Mark D. Studebaker 3e65c375be initial support for Via VT1211 super i/o with sensors
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1409 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-30 20:28:08 +00:00
Mark D. Studebaker 37cbcbe5ad add smsc47m1 fan driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1397 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-16 18:27:35 +00:00
Mark D. Studebaker c382a5ca7a export EDID info to /proc
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1396 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-15 17:10:19 +00:00
Mark D. Studebaker e0a1889044 add multiple VRM support to adm1025
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1383 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-07 02:58:43 +00:00
Mark D. Studebaker 8edb06b0d1 preliminary programmable VRM version support in w83781d.
Replace VID_FROM_REG() with vid_from_reg() in new sensors_vid.h.
      Update library so it can be set in sensors.conf.
      Add new documentation. Update mkpatch for new file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1352 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-20 02:59:12 +00:00
Mark D. Studebaker 0442f73da9 (mds)
From:        Aurelien Jarno <aurelien@aurel32.net>

Hello,

I have to use the pcf8574 chip with my I2C interface, however, the pcf8574
drivers in lm-sensors is a bit basic. It supposes the pin P1 is used as an
input and the others pin as outputs.

Attached is a patch which corrects that, providing to files in /proc
interface, one for writting, the other for reading. It also modifies a bit
the driver to support the pcf8574a (it is a pcf8574 with a different address
range), and add a documentation file in doc/chips.

The patch also includes some cosmetic changes in the pcf8591 driver I wrote
previously, that is to say it modify the chip name in some places I had
forgotten to change when I made a copy/paste from another driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1318 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-10 23:15:12 +00:00
Mark D. Studebaker eaf609b21d add /proc entries for bytes 128-255; patch from
Jean Delvare <delvare@ensicaen.ismra.fr>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1310 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-09 16:33:33 +00:00
Philip Edelbrock 4cd4f15116 (Phil) Added a patch from Stephen Davies <steve@daviesfam.org> for
s-video out support and typical DVD resolutions for PAL and NTSC.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1298 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-01-29 19:25:37 +00:00
Mark D. Studebaker 15ff36312c last part of pcf8591 patch
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1245 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-20 17:11:20 +00:00
Martin Knoblauch 154edbaa52 (MKN) Add FSCSCY_SYSCTL tokens
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1222 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-08 17:17:55 +00:00
Mark D. Studebaker e836047a83 merge it87 separate alarms_* /proc entries to single alarms entry to standardize
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1202 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-14 15:18:37 +00:00
Mark D. Studebaker d78cb7b93b Fujitsu Poseidon support from Hermann Jung <hej@odn.de>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1179 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-09-18 15:20:15 +00:00
Mark D. Studebaker 739a87e785 Apply patch from David Gesswein:
The following patch does the following:

Fixed bug with not all alarms enabled.
Added ability to read battery voltage
Select temperature sensor type at module load time.
Added setting for Inside Technologies 786LCD board to example config file
I also fixed what looked like a typo in the existing it87 section where
in6_min/max was set twice and in7 was not set.  As commented I think
the equation for the negative voltages are wrong but without that motherboard
I can't verify.

With the 786LCD board sensors-detect reports a lm78 which doesn't
exist and a sis5595 which may be part of the SIS630 chip but doesn't
perform the monitoring.  The it8705F/SIS950 which is on the board is
reported as a misdetect.  I didn't know enough about the various chips
to figure out how to get correct detections.

David Gesswein


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1146 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-29 00:30:54 +00:00
Mark D. Studebaker 30b9291288 add 12-bit precision mode to ds1621,
patch from Christian Zuckschwerdt:

Hi,

On Fri, 15 Jun 2001, Mark D. Studebaker wrote:

> I looked at the patch and I see there are separate
> /proc entries for the 9 and 12 bit outputs.
> Why not just make the 12 bit output the only output using "temp"??
> I don't understand the need for all the new /proc entries,
> except perhaps for debugging inside #ifdef DEBUG.
> Would you or Jan be willing to develop a patch that way?
> I'm all for increased accuracy as a standard feature - why not?

Ok. I rewrote the patch to support standard (9bit) and enhanced (12bit)
accuracy via the "temp" entry. The "raw" interface is also gone.

There are some quirks needed for the sensors app. It seems that
prog/sensors/chips.c fixes the output to %+3.1f
Thats not good for 12bit mode which gives you 2 decimals and therefor
wrong scaling.

Precision is .062 with 12bit (4 decimal bits) instead of .5 with 9bit (1
decimal bit). That way 2 decimals seem a natural choice.
On the other hand I see no obvious reason not to fix decimals to 1...
I'm lost there -- suggestions anyone?

Another problem is that 12bit is slow and laggy. I don't recommend making
it the default mode.

  cu.
    :
    Christian


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1145 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-29 00:17:14 +00:00
Mark D. Studebaker 82c400f76b more it87 stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1122 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-05 01:59:26 +00:00
Mark D. Studebaker d431a88833 Initial checkin of adm1024 driver and support in libsensors,
sensors, sensors-detect.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1090 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-15 03:18:18 +00:00
Mark D. Studebaker 28e81cce5a fix sis5595 temp alarm bit location
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1065 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:55:19 +00:00
Mark D. Studebaker 18305cfc54 add in4 for sis5595 to library
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1064 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:52:28 +00:00
Mark D. Studebaker b5d014bd46 Disable sensors.c and i2c-isa.h in the Module.mk files.
Leave the files there for now.
      Remove old installed sensors.o in kernel/Module.mk.
      sensors.c was moved to i2c-proc.c in the i2c package.
      i2c-isa.h was appended to i2c.h in the i2c package.
      Delete all but the SYSCTL and ALARMS definitions in sensors.h,
      as the rest of the file was moved to i2c-proc.h in the i2c package.
      Remove #include "i2c-isa.h" lines in all chip drivers and
      in bus driver i2c-isa.c.
      This all probably breaks mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1015 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-06 02:53:46 +00:00
Philip Edelbrock f592b02b21 (Phil) Wrapped Serverworks OSB4 support into i2c-piix4.c (briefly tested
on both platforms).  LM87 support is very far along, and should work
for a majority of users, but some minor tweaks are still on the to-do list.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@963 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-22 19:26:21 +00:00
Mark D. Studebaker ab321d5243 (mds) add lm87 support to 'sensors'. Rename SYSCTL_* values to standard
TEMP[1-3], etc. No fan2 support in driver yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@953 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:07:24 +00:00
Mark D. Studebaker bb4b723e68 (mds) add ds1621 driver from Christian Zuckschwerdt (zany@triq.net)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@935 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-26 23:07:17 +00:00
Mark D. Studebaker 4dcb88898c (mds) MTP008 driver patch from Kris Van Hees.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@909 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-18 00:34:07 +00:00
Philip Edelbrock 6270f18139 (Phil) Added support for adm1023. Actually, the adm1021 driver worked
perfectly with the adm1023, but didn't take advantage of it's extra precision
for the remote temp sensor. Now, if an adm1023 is detected, it will.

For example, my adm1021 remote_temp looks like this:

phil@penn phil]$ cat /proc/sys/dev/sensors/adm1021*/remote_temp
60 20 23

My 1023 looks like this:

[root@penn lm_sensors2]# cat /proc/sys/dev/sensors/adm1023-i2c-2-2a/remote_temp
60.125 20.250 1.500 20.875

(Both from the same inserted driver)

Notice the extra 3 digit precision (actually, it's in increments of 0.125).
And, also notice the extra 'limit'.  It's actually an offset register.
Right now it's adding 1.5 degrees to the reading for the remote_temp. This
same functionality could easily be done by editing /etc/sensors.conf, but
Analog Devices decided to put it into the chip instead. :')

Things to do: edit the default sensors.conf, and sensors-detect for this
new chip.

Oh, I also added SENSORS_INSMOD_7 into sensors.h.  This was the first
driver to need it, apparently.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@904 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-16 01:45:44 +00:00
Dan Eaton 0992d0bc20 (Dan) Added support for PCF8574 I2C bus expander.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@887 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-08 20:33:00 +00:00
Philip Edelbrock cc4315029e (Phil) Initial addition of LM87 driver. Compiling testing not done yet,
but will be done very shortly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@872 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-13 23:28:14 +00:00
Mark D. Studebaker 2072a3c9d6 (mds) Add adm1025 driver from Chen-Yuan Wu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@801 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-11 01:35:22 +00:00
Mark D. Studebaker ce5c90df0b (mds) maxilife 99 support from Fons R.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@790 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-04-15 17:21:12 +00:00
Bob Dougherty 35cb21b7be (bobd) fixed temp2 alarm bit
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@767 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-10 20:28:19 +00:00
Mark D. Studebaker 40ccaaa658 (mds) Add via686a integrated sensors support. Untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@742 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-04 16:14:08 +00:00
Mark D. Studebaker 7a6897b949 (mds) additions for ddcmon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@715 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:16:08 +00:00
Frodo Looijaard 6a2c82b491 `indent -kr -i8' on all kernel sources
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@707 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:37:01 +00:00
Frodo Looijaard 888d32f50b Removing kernel 2.0 and 2.1 compatibility pass 2
Eliminated compat.h


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@705 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:07:29 +00:00
Frodo Looijaard 2ff447b225 make install fixes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@681 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-03 00:32:38 +00:00
Frodo Looijaard 01bad38253 Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you
will run everything from.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:52:28 +00:00
Frodo Looijaard 9951d5c9d0 A few files not committed for some reason in the previous run
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@641 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:49:45 +00:00
Frodo Looijaard 52b2ce8f52 Patches to make it compatible with kernel 2.3.27 and newer
* Improved monitoring of /proc directories
  Instead of doing:
         proc_bus_i2c->fill_inode = &monitor_bus_i2c;
         void monitor_bus_i2c(struct inode *inode, int fill)
         {
           if (fill)
             MOD_INC_USE_COUNT;
           else
             MOD_DEC_USE_COUNT;
         }
  you can now simply set:
         proc_bus_i2c->owner = THIS_MODULE;
  and this is just as good!
* An old 2.3 problem seemingly never was resolved yet: instead of using
  a *wait_queue directly, you have to use a wait_queue_head_t and
  initialize it properly:
         #if (LINUX_VERSION_CODE < 0x020301)
         static struct wait_queue *pcf_wait = NULL;
         #else
         static wait_queue_head_t pcf_wait;
         #endif

         #if (LINUX_VERSION_CODE >= 0x020301)
            init_waitqueue_head(&pcf_wait);
         #endif
  except for this, semantics remain the same (but using a plain
  wait_queue_head_t instead of a pointer to a wait_queue)
* I had to change the semantics of sensors_register_entry slightly,
  to make the monitoring of /proc/sys/dev/* files possible for kernels
  2.3.27 and newer. It now takes an additional parameter, which you
  can specify as THIS_MODULE.
* THIS_MODULE is only defined in kernels 2.3.13 and later; added
  it to compat.h and the compatibility section of mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@640 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:48:43 +00:00
Frodo Looijaard 76137a7bf2 Typo as spotted by Kevin Ryde fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@637 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-23 22:54:26 +00:00
Mark D. Studebaker d5f72aebac (mds) add support for gl523sm (adm1021 clone) to adm1021.c and sensors-detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@603 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 02:00:43 +00:00
Mark D. Studebaker 129e08cc94 (mds) Add support for LM84 (ADM1021 clone) to adm1021.c and sensors-detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@602 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 01:51:27 +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 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