Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] i2c: Add support for Barco LPT->DVI to i2c-parport

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>

authored by

Peter Korsgaard and committed by
Greg Kroah-Hartman
1d26f455 7e944369

+12 -1
+1
Documentation/i2c/busses/i2c-parport
··· 17 17 * Velleman K8000 adapter 18 18 * ELV adapter 19 19 * Analog Devices evaluation boards (ADM1025, ADM1030, ADM1031, ADM1032) 20 + * Barco LPT->DVI (K5800236) adapter 20 21 21 22 These devices use different pinout configurations, so you have to tell 22 23 the driver what you have, using the type module parameter. There is no
+11 -1
drivers/i2c/busses/i2c-parport.h
··· 80 80 .setscl = { 0x01, DATA, 1 }, 81 81 .getsda = { 0x10, STAT, 1 }, 82 82 }, 83 + /* type 6: Barco LPT->DVI (K5800236) adapter */ 84 + { 85 + .setsda = { 0x02, DATA, 1 }, 86 + .setscl = { 0x01, DATA, 1 }, 87 + .getsda = { 0x20, STAT, 0 }, 88 + .getscl = { 0x40, STAT, 0 }, 89 + .init = { 0xfc, DATA, 0 }, 90 + }, 83 91 }; 84 92 85 93 static int type; ··· 99 91 " 2 = Velleman K8000 adapter\n" 100 92 " 3 = ELV adapter\n" 101 93 " 4 = ADM1032 evaluation board\n" 102 - " 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n"); 94 + " 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n" 95 + " 6 = Barco LPT->DVI (K5800236) adapter\n" 96 + );