mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
i2c-parport: Add support for One For All remote JP1 interface
This simple patch adds support to i2c-parport for the One For All 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 One For All 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@earth.li> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
ab6a6ed271
commit
55249cf750
2 changed files with 23 additions and 0 deletions
|
@ -19,6 +19,7 @@ It currently supports the following devices:
|
||||||
* (type=4) Analog Devices ADM1032 evaluation board
|
* (type=4) Analog Devices ADM1032 evaluation board
|
||||||
* (type=5) Analog Devices evaluation boards: ADM1025, ADM1030, ADM1031
|
* (type=5) Analog Devices evaluation boards: ADM1025, ADM1030, ADM1031
|
||||||
* (type=6) Barco LPT->DVI (K5800236) adapter
|
* (type=6) Barco LPT->DVI (K5800236) adapter
|
||||||
|
* (type=7) One For All JP1 parallel port adapter
|
||||||
|
|
||||||
These devices use different pinout configurations, so you have to tell
|
These devices use different pinout configurations, so you have to tell
|
||||||
the driver what you have, using the type module parameter. There is no
|
the driver what you have, using the type module parameter. There is no
|
||||||
|
@ -157,3 +158,17 @@ many more, using /dev/velleman.
|
||||||
http://home.wanadoo.nl/hihihi/libk8005.htm
|
http://home.wanadoo.nl/hihihi/libk8005.htm
|
||||||
http://struyve.mine.nu:8080/index.php?block=k8000
|
http://struyve.mine.nu:8080/index.php?block=k8000
|
||||||
http://sourceforge.net/projects/libk8005/
|
http://sourceforge.net/projects/libk8005/
|
||||||
|
|
||||||
|
|
||||||
|
One For All 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
|
||||||
|
|
|
@ -88,6 +88,13 @@ static struct adapter_parm adapter_parm[] = {
|
||||||
.getscl = { 0x40, STAT, 0 },
|
.getscl = { 0x40, STAT, 0 },
|
||||||
.init = { 0xfc, DATA, 0 },
|
.init = { 0xfc, DATA, 0 },
|
||||||
},
|
},
|
||||||
|
/* type 7: One For All JP1 parallel port adapter */
|
||||||
|
{
|
||||||
|
.setsda = { 0x01, DATA, 0 },
|
||||||
|
.setscl = { 0x02, DATA, 0 },
|
||||||
|
.getsda = { 0x80, STAT, 1 },
|
||||||
|
.init = { 0x04, DATA, 1 },
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int type = -1;
|
static int type = -1;
|
||||||
|
@ -101,4 +108,5 @@ MODULE_PARM_DESC(type,
|
||||||
" 4 = ADM1032 evaluation board\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"
|
" 6 = Barco LPT->DVI (K5800236) adapter\n"
|
||||||
|
" 7 = One For All JP1 parallel port adapter\n"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue