Commit Graph
13 Commits
Author SHA1 Message Date
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Kyosti Malkki 39391ba6ea (Kyösti) some cleanups for 2.4+
Module refcounting using .owner, removing of inc/dec_use.
   These require (yet unreleased) i2c 2.8.0+.

   Named initializers everywhere. Unified namespace.

   Cleanup for 2.5, remove EXPORT_NO_SYMBOLS, declare everything
   static. Apply initcalls.

   PCI device registration changes for busses started, replicating
   from i2c-amd*. While everything does compile, nothing really
   works. Well, maybe i2c-amd* ported back from 2.5 tree.

   After updating your work directory, run
    > cvs diff -u -r LAST-PRE-2-8-I2C > lm-2.8-patches-1

   BEWARE: I have not even insmoded any of these yet.

   To compile, you need i2c from cvs too.
   For 2.4 kernel :
    > cvs co -r lk2-4 i2c

   For 2.5 kernel :
    > cvs co i2c


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1698 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-17 01:19:52 +00:00
Mark D. Studebaker c2fc5cd412 sync w/ kernel 2.4.20 changes - remove POLLED_MODE patch
from BK (from benh@crashing.org)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1643 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-22 06:51:19 +00:00
Mark D. Studebaker 90f78c4acf remove typo (sync w/ kernel 2.4.19)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1642 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-22 06:39:14 +00:00
Mark D. Studebaker 0f608515e2 (mds)
Subject:
        Uptodate i2c-keywest
   Date:
        Sun, 17 Feb 2002 21:34:44 +0100
  From:
        Benjamin Herrenschmidt <benh@kernel.crashing.org>

Here's a patch against current lmsensors CVS which updates i2c-keywest
to the latest version needed on powermac. It's already in Marcelo as
one of the 2.4.18-pre's.

You may note that the i2c "mode" isn't what it should be to match
exactly what linux-i2c expects (see explaining comment). I will have
to define new transfer types in order to work around that, but it's
ok to do that now as we use this driver only for the sound chip
for now.

Ben.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1326 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-18 00:49:50 +00:00
Philip Edelbrock f29c9bcf78 (Phil) Quick transactions seem to work now.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1231 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-11 03:36:25 +00:00
Philip Edelbrock 78e47a1a1d (Phil) Minor sync with what is currently used in distrobuted 2.4.x PPC
kernels.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1217 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-07 01:10:02 +00:00
Philip Edelbrock 4bc8bc2b96 (Phil) A sync of the keywest driver from what the PPC people are
apparently using these days.  At least it's claimed to work partially.
Here's the info:

2001/7/14  Paul Harrison:
                - got write working sufficient to bring Tumbler audio up,
                  read still untested


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1203 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-16 21:02:48 +00:00
Mark D. Studebaker 7bd97f4667 Add MODULE_LICENSE("GPL") to all modules
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1201 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-13 17:48:43 +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 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