Commit Graph
145 Commits
Author SHA1 Message Date
Mark D. Studebaker 2c3b57ae83 changed CONFIG_I2C_VOODOO to CONFIG_I2C_VOODOO3 since we
had some of each! Thanks Antonio Mitarotondo <anmitaro@altern.org>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1123 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-08 23:03:21 +00:00
Mark D. Studebaker 375240ab52 i2c-tsunami driver from Oleg Vdovikin <vdovikin@jscc.ru> for the
Alpha architecture. I've made compilation contingent on
      the machine being an Alpha because the driver needs kernel
      include files that are in <asm-alpha>, not <asm>, unless
      you are set up as an Alpha.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1109 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-02 03:52:43 +00:00
Mark D. Studebaker 5e63047a24 remove KERN_INFO in printk's - a part of the Alpha compatibility
patch from Oleg Vdovikin <vdovikin@jscc.ru>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1106 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-02 03:06:45 +00:00
Mark D. Studebaker 56f128bf5c Move the drivers which were recently added to mkpatch from the
always-built section to the only-if-not-in-kernel section
      of Module.mk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1100 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 19:25:18 +00:00
Mark D. Studebaker 7a6ba966ed Apply tristate patch from Jesus Arias <jesus@ele.uva.es>
which ensures i2c Bus is tristated correctly. It isn't clear from
      the datasheet if the 586's GPIO pins are open drain or not,
      but if they aren't, then the driver was driving the pins high
      rather than letting them get pulled high as the spec requires.
      This is corrected by toggling the direction rather than the
      data register to control the bus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1093 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-26 21:23:40 +00:00
Mark D. Studebaker 79c341d475 add support for force_addr to i2c-sis5595.
Also automatically enable ACPI if it was disabled.
      Forcing address doesn't work on my test system, but hey,
      at least I tried to test it...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1077 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-21 21:57:40 +00:00
Mark D. Studebaker 11a8bf78fa renamed i2c_i810i2c_init() to i2c_i810_init()
to match what mkpatch patches in patched kernel.
      Affected only kernel patches; standalone build was fine.
      Ticket # 492.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1026 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-20 02:12:39 +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
Mark D. Studebaker 377be956da PCI chip detection cleanup.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1011 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-03 20:48:43 +00:00
Mark D. Studebaker fc13775163 add static to 2 structs to remove external symbols.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@991 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-13 17:58:47 +00:00
Mark D. Studebaker 457efe73b7 add correct ifdef'ed declaration of i2c_i801_init() to remove
external symbol.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@990 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-01-13 17:54:36 +00:00
Mark D. Studebaker 7c21d246e8 removed; now supported by i2c-piix4.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@965 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-23 17:01:55 +00:00
Mark D. Studebaker 3047bd8374 remove i2c-osb4
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@964 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-23 17:00:37 +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
Philip Edelbrock 5938b18941 (Phil) Added a redundant define for Serverworks PCI vendor ID, for those
kernels which need it.  Also tweaked sensors-detect to work seemlessly
with the new driver.  Driver is tested, and works as expected! (Yeah!)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@950 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 17:30:20 +00:00
Mark D. Studebaker a8cf5cbfa2 (mds) add i2c- prefix to module name in version/date printk for those
that were missing it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@949 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 00:50:18 +00:00
Philip Edelbrock 6b593aa26a (Phil) Initial Serverworks southbridge support, thanks to Steffen Persvold
at Scali.  Untested, but compiles cleanly.  Seems to be very closely based
on the Intel PIIX4 SMBus driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@946 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-14 23:02:00 +00:00
Mark D. Studebaker 7ccaa7f419 (mds) Check for uninitialized base addresses. Check for unenabled sensors.
On sis5595, refuse to load if chip not found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@943 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-14 00:26:13 +00:00
Mark D. Studebaker ec53bfa1fe (mds) Add "dummy writes" before bit reads as recommended in 815
programmers' reference guide. This ensures that the input value
      is latched in the 815 register. We assume this also applies
      to the 810 or at least does no harm. Ticket 419.
      Alan Chen <alp_chen@hotmail.com> reports that this fixes the
      bug where i2c-algo-bit bit_test=1 fails the test.
      We don't have any data that shows there was any problem in
      normal operation (non bit_test) or that this fixes anything else.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@941 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-02 22:39:21 +00:00
Frodo Looijaard 62ebc84b6f Patch to make it compile with 2.2 kernels (people, please test this
before submitting patches!)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@927 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-10 20:45:30 +00:00
Dan Eaton 5be9dd74fb (dan) Added mutex to insure that only one process can gain access to the
SMBus controller at a time.  This is basically an insurance policy.  The
kernel and the status from the SMBus controller should handle this but
observed behavior seems to indicate that the SMBus controller does not
ALWAYS mark itself as "busy" during a transaction especially if a trans-
action fails.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@920 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-01 16:44:23 +00:00
Dan Eaton abdcc7ee80 (dan) Restructured the error checks performed at the end of the transaction
to check the "command completed" flag before checking for error flags in
the status register.  This will insure that when both conditions exist
(command not completed && error conditions present), a "kill" command will
be executed on the SMBus controller to clean up the bus.  Also, added a
status register write after "kill" and "timeout" commands to insure that
the status gets cleaned up after a bad transaction.  This change fixes
observed behavior in which a "command never completed" transaction was
always followed by an "idle wait timeout" on the next subsequent trans-
action.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@919 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-01 16:31:45 +00:00
Mark D. Studebaker c8b9526eb2 (mds) add support for Via 596B with PCI ID 0x3051.
Found and patch submitted by Phil Langdale.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@901 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-12 02:57:18 +00:00
Dan Eaton 235d74e73a (Dan) Added conditional export of base address for RocketLogix, Inc..
Made some other minor cleanup.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@878 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-19 13:54:20 +00:00
Mark D. Studebaker f7cc1c20dd (mds) add i2c-ali1535 driver from RocketLogix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@876 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-16 02:44:58 +00:00
Mark D. Studebaker 8d7e6c94d7 (mds) fix typo in comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@875 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-16 02:35:27 +00:00
Mark D. Studebaker 5d5e6410e0 (mds) removed FORCE #ifdef which never worked anyway.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@874 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-16 02:21:55 +00:00
Mark D. Studebaker 42bbb8bb93 (mds) add i815 support to i2c-i810 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@862 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-02 19:20:23 +00:00
Mark D. Studebaker 879bcdc859 (mds) smbus block write fixes, i2c block write support from Rickard Westman.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@856 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-08-12 16:33:25 +00:00
Mark D. Studebaker cb24789105 (mds) add support for Intel 82801BA ICH2 (815E chipset).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@849 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-21 23:52:28 +00:00
Mark D. Studebaker 8233fa6c7b (mds) remove incorrect 'function 3' comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@838 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-09 03:21:00 +00:00
Philip Edelbrock 13b42982ff (Phil) I seem to have at least quick r/w transactions working
reliably now!  Now, trying to expand to byte read/writes...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@816 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-25 05:25:16 +00:00
Philip Edelbrock 7f936aae87 (Phil) Removed i2c-keywest.o from the build for now until we resolve
a nice way of doing platform dependant building. (*snif*)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@815 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-23 01:33:13 +00:00
Philip Edelbrock 174c4bbc9a (Phil) Finally, an almost (but not quite) working version of the driver.
It may be very close or very far from working.  At this point, scanning a
bus gives a bunch of errors, but seems to do different things around
addresses which could very well have devices, so it seems promising.
Hopefully, it's just something silly I'm missing like an 'ack'.

Pretty good for not having *any* technical documentation on the driver,
except a partially written (and maybe not even working) example code
from Apple.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@813 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-22 07:27:08 +00:00
Philip Edelbrock d802cbbf5c (Phil) Detection and attaching of i2c_adapter(s) done. Seems to work for
what there is now.  What's left is to use the registers of the keywest
to communicate with devices on the bus.  (I.e., flesh out the 'access'
routine.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@812 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-22 02:38:37 +00:00
Philip Edelbrock b8913f4be2 (Phil) Start of support for Apple's "Key West" I2C controller. As of this
commit, the module can detect and read the registers from compatible
Keywest buss(es). (Note: there may be more than one bus, as I seem to have.)

Probing is done via Apple's 'New World' Open-Firmware rather than PCI.  In
this way, this driver should work with any I2C bus (when it is completed)
which is Keywest 'compatible'.  The down side is that this module won't
work on anything but a newer Apple PPC.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@811 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-21 23:57:11 +00:00
Mark D. Studebaker f3df27d7ee (mds) fixed some "i810" references in the printk's caused by
cut-n-paste from i810 driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@751 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-05 01:07:10 +00:00
Mark D. Studebaker 861461a48e (mds) remove i2c-bit-voodoo3.c, copied over to i2c-voodoo3.c.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@748 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-04 16:57:47 +00:00
Mark D. Studebaker 08edb10e11 (mds) Copy i2c-bit-voodoo3 (algo-bit algorithm) to i2c-voodoo3,
remove i2c-bit-voodoo3.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@747 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-04 16:56:24 +00:00
Mark D. Studebaker 4f609f82a1 (mds) Add algo-bit rewrite of i2c-voodoo3.c. Will replace i2c-voodoo3.c
after testing. DDC works for me, I can't test other bus. Please test.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@737 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-25 01:10:21 +00:00
Mark D. Studebaker 6c3f85c5a8 (mds) add #ifndef xxxBANSHEE ... #define xxxBANSHEE at the top.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@736 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-23 02:54:56 +00:00
Mark D. Studebaker a27faf0d60 (mds) make PCI_DEVICE_ID names the same as in <linux/pci_ids.h>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@730 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 02:33:52 +00:00
Mark D. Studebaker da8174c4db (mds) Add i810 dual-bus (I2C/DDC) driver using algo-bit.
The i801 driver is for the standard I2C bus on an i810 board.
      This driver adds the support for the DDC and TV-out busses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@729 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 02:03:33 +00:00
Mark D. Studebaker 4f8725ec23 (mds) fix request_region() call. Was requesting xx00 - xx07, now
correctly requesting xxE0 - xxEF. Should resolve conflict with
      ACPI.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@726 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-04 00:16:44 +00:00
Mark D. Studebaker afcc0fe82f (mds) updated adapter name to add Banshee and remove 0000 address.
Add warning if > 1 voodoo3/banshee found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@718 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:24:37 +00:00
Mark D. Studebaker dac07447b9 (mds) Fix broken send_byte_data() for I2C and DDC.
Wasn't used by bt869 so wasn't found before.
      i2cdump now works and sensors_detect will find ddc monitor.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@711 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-28 01:05:40 +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 9480bb5988 Removal of kernel 2.1 and 2.2 compatibility: pass one
Removed many #if statements


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@704 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 19:30:08 +00:00
Mark D. Studebaker b2cde3487e (mds) Add Banshee support and DDC bus support.
Simultaneous DDC and I2C access may cause errors.
      No support for multiple Voodoo3/Banshee chips, only first one
      is handled.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@698 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-15 19:01:54 +00:00