[PATCH] Add support for OneForAll remote JP1 parallel port interface

From: Jonathan McDowell
Date: Thu Jan 25 2007 - 14:15:40 EST


This simple patch adds support to i2c-parport for the OneForAll remote
JP1 parallel port interfaces which can be found detailed at:

http://www.hifi-remote.com/jp1/hardware.shtml

These allow access to the internal configuration EEPROM on various
remote controls and there are a variety of Windows tools that make use
of this hardware. I have tested this patch with the "simple" parallel
port device and a OneForAll URC-7562 and confirmed that the data read
using the eeprom i2c driver matches that returned by the Windows "IR"
JP1 tool.

Signed-Off-By: Jonathan McDowell <noodles@xxxxxxxx>

-----
--- linux-2.6.19/Documentation/i2c/busses/i2c-parport.orig 2007-01-25 18:19:29.000000000 +0000
+++ linux-2.6.19/Documentation/i2c/busses/i2c-parport 2007-01-25 18:22:12.000000000 +0000
@@ -19,6 +19,7 @@
* (type=4) Analog Devices ADM1032 evaluation board
* (type=5) Analog Devices evaluation boards: ADM1025, ADM1030, ADM1031
* (type=6) Barco LPT->DVI (K5800236) adapter
+ * (type=7) OneForAll JP1 parallel port 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
@@ -157,3 +158,17 @@
http://home.wanadoo.nl/hihihi/libk8005.htm
http://struyve.mine.nu:8080/index.php?block=k8000
http://sourceforge.net/projects/libk8005/
+
+
+OneForAll JP1 parallel port adapter
+-----------------------------------
+
+The JP1 project revolves around a set of remote controls which expose
+the i2c bus their internal configuration EEPROM lives on via a 6 pin
+jumper in the battery compartment. More details can be found at:
+
+http://www.hifi-remote.com/jp1/
+
+Details of the simple parallel port hardware can be found at:
+
+http://www.hifi-remote.com/jp1/hardware.shtml
--- linux-2.6.19/drivers/i2c/busses/i2c-parport.h.orig 2007-01-25 18:26:06.000000000 +0000
+++ linux-2.6.19/drivers/i2c/busses/i2c-parport.h 2007-01-25 18:23:14.000000000 +0000
@@ -88,6 +88,13 @@
.getscl = { 0x40, STAT, 0 },
.init = { 0xfc, DATA, 0 },
},
+ /* type 7: OneForAll JP1 parallel port adapter */
+ {
+ .setsda = { 0x01, DATA, 0 },
+ .setscl = { 0x02, DATA, 0 },
+ .getsda = { 0x80, STAT, 1 },
+ .init = { 0x04, DATA, 1 },
+ },
};

static int type = -1;
@@ -101,4 +108,5 @@
" 4 = ADM1032 evaluation board\n"
" 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n"
" 6 = Barco LPT->DVI (K5800236) adapter\n"
+ " 7 = OneForAll JP1 parallel port adapter\n"
);
-----

J.

--
] http://www.earth.li/~noodles/ [] "Hey, topic drift isn't just a [
] PGP/GPG Key @ the.earth.li [] hobby, its a way of life around [
] via keyserver, web or email. [] here ..." -- \pir, b.l-w [
] RSA: 4DC4E7FD / DSA: 5B430367 [] [
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/