]> err.no Git - linux-2.6/commitdiff
[PATCH] i2c: Add support for Barco LPT->DVI to i2c-parport
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 26 Nov 2005 19:18:43 +0000 (20:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2006 06:16:21 +0000 (22:16 -0800)
The following patch adds support for the Barco LPT->DVI I2C adapter to
the i2c-parport driver.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/i2c/busses/i2c-parport
drivers/i2c/busses/i2c-parport.h

index 9f1d0082da18b493cd3c3424b133499e34ccc355..d9f23c0763f1c25d1cec80310abe11b09828c76e 100644 (file)
@@ -17,6 +17,7 @@ It currently supports the following devices:
  * Velleman K8000 adapter
  * ELV adapter
  * Analog Devices evaluation boards (ADM1025, ADM1030, ADM1031, ADM1032)
+ * Barco LPT->DVI (K5800236) adapter
 
 These devices use different pinout configurations, so you have to tell
 the driver what you have, using the type module parameter. There is no
index f63a53779281d462d32bb5df2c11e7b6aa326f89..d702e5e0388d9439c661ef7b8e9a0c1057f123b5 100644 (file)
@@ -80,6 +80,14 @@ static struct adapter_parm adapter_parm[] = {
                .setscl = { 0x01, DATA, 1 },
                .getsda = { 0x10, STAT, 1 },
        },
+       /* type 6: Barco LPT->DVI (K5800236) adapter */
+       {
+               .setsda = { 0x02, DATA, 1 },
+               .setscl = { 0x01, DATA, 1 },
+               .getsda = { 0x20, STAT, 0 },
+               .getscl = { 0x40, STAT, 0 },
+               .init   = { 0xfc, DATA, 0 },
+       },
 };
 
 static int type;
@@ -91,4 +99,6 @@ MODULE_PARM_DESC(type,
        " 2 = Velleman K8000 adapter\n"
        " 3 = ELV adapter\n"
        " 4 = ADM1032 evaluation board\n"
-       " 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n");
+       " 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n"
+       " 6 = Barco LPT->DVI (K5800236) adapter\n"
+);