Commit Graph
124 Commits
Author SHA1 Message Date
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
Mark D. Studebaker 136a65eede (mds) change my email addr.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@689 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 16:53:46 +00:00
Frodo Looijaard 8250fb4ed7 Fixed voodoo3 for kernel 2.3.37.
Please test. Changes in voodoo3_setup:

* Use pci_find_device instead of traversing the list ourselves;
* Eliminate flag, testing v3_num is just as good;
* Elimiate result, it was not used anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@684 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-07 17:16:27 +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 258c8dd869 Olaf Titz <olaf@bigred.inka.de> patches for the SIS5595 driver
It still does not work - but I need more feedback to determine what
is happening.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@674 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:44:34 +00:00
Merlin Hughes 4343e90a9b (Merlin) removed some legacy piix constants and comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@658 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 21:16:29 +00:00
Frodo Looijaard bf14de051f New SiS5595 SMBus driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@654 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 02:05:25 +00:00
Frodo Looijaard be2a5407e9 Fixed bug in PIIX4 driver: it claimed to do SMBUS_PROC_CALL.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@653 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 01:45:58 +00:00
Frodo Looijaard c158f1b4a6 Moved AMD756 ID to the main i2c-id.h file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@651 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 00:50:47 +00:00
Frodo Looijaard 77051058bb A bit too optimistic in my last commit - still more disagreement
about init function names that needed to be fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@647 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 01:08:11 +00:00
Frodo Looijaard b9831fbfcd Fixed the strange compile problems some people had
Reasons varied from typos (_ instead of -) to static declarations that
should have been extern.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@646 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:57:44 +00:00
Frodo Looijaard 5059c482fd Just to make sure, added `#include <linux/version.h>' at several
other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@645 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:48:34 +00:00
Frodo Looijaard 1238d9ab44 New i2c-amd756 driver by Merlin Hughes <merlin@merlin.org>
sensors-detect detection is now complete; I think nothing else needs
to be done in the tree?!? (except documentation of course)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@643 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:33:33 +00:00
Mark D. Studebaker 6b697a2b1c (mds) remove request_region for ACPI area. This would eventually
have conflicted with kernel ACPI support if it would access
      ali15x3 registers directly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@628 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-14 02:41:27 +00:00
Frodo Looijaard c5fe440f59 Fixed Makefile problems
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@619 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-01 23:01:08 +00:00
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 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 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 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