]>
Commit | Line | Data |
---|---|---|
dd51a169 AM |
1 | --- linux-old/Documentation/Configure.help Sun Jan 18 23:43:06 2004 |
2 | +++ linux/Documentation/Configure.help Sun Jan 18 23:58:17 2004 | |
3 | @@ -20124,6 +20124,16 @@ | |
4 | <file:Documentation/modules.txt>. | |
5 | The module will be called i2c-velleman.o. | |
6 | ||
7 | +Basic I2C on Parallel Port adapter | |
8 | +CONFIG_I2C_PPORT | |
9 | + This supports directly connecting I2C devices to the parallel port. | |
10 | + See <file:Documentation/i2c/i2c-pport> for more information. | |
11 | + | |
12 | + This driver is also available as a module. If you want to compile | |
13 | + it as a module, say M here and read | |
14 | + <file:Documentation/modules.txt>. | |
15 | + The module will be called i2c-pport.o. | |
16 | + | |
17 | I2C PCF 8584 interfaces | |
18 | CONFIG_I2C_ALGOPCF | |
19 | This allows you to use a range of I2C adapters called PCF adapters. | |
20 | @@ -20145,6 +20155,15 @@ | |
21 | <file:Documentation/modules.txt>. | |
22 | The module will be called i2c-elektor.o. | |
23 | ||
24 | +PCF on the EPP Parallel Port | |
25 | +CONFIG_I2C_PCFEPP | |
26 | + This supports the PCF8584 connected to the parallel port. | |
27 | + | |
28 | + This driver is also available as a module. If you want to compile | |
29 | + it as a module, say M here and read | |
30 | + <file:Documentation/modules.txt>. | |
31 | + The module will be called i2c-pcf-epp.o. | |
32 | + | |
33 | ITE I2C Algorithm | |
34 | CONFIG_ITE_I2C_ALGO | |
35 | This supports the use the ITE8172 I2C interface found on some MIPS | |
36 | @@ -20182,6 +20201,51 @@ | |
37 | Supports the SGI interfaces like the ones found on SGI Indy VINO | |
38 | or SGI O2 MACE. | |
39 | ||
40 | +Motorola 8xx I2C algorithm | |
41 | +CONFIG_I2C_ALGO8XX | |
42 | + This is the algorithm that allows you to use Motorola 8xx I2C adapters. | |
43 | + | |
44 | + This driver is also available as a module. If you want to compile | |
45 | + it as a module, say M here and read | |
46 | + <file:Documentation/modules.txt>. | |
47 | + The module will be called i2c-algo-8xx.o. | |
48 | + | |
49 | +Motorola 8xx I2C interface | |
50 | +CONFIG_I2C_RPXLITE | |
51 | + This supports the Motorola 8xx I2C device. | |
52 | + | |
53 | + This driver is also available as a module. If you want to compile | |
54 | + it as a module, say M here and read | |
55 | + <file:Documentation/modules.txt>. | |
56 | + The module will be called i2c-rpx.o. | |
57 | + | |
58 | +IBM 405 I2C algorithm | |
59 | +CONFIG_I2C_IBM_OCP_ALGO | |
60 | + This is the algorithm that allows you to use IBM 405 I2C adapters. | |
61 | + | |
62 | + This driver is also available as a module. If you want to compile | |
63 | + it as a module, say M here and read | |
64 | + <file:Documentation/modules.txt>. | |
65 | + The module will be called i2c-algo-ibm_ocp.o. | |
66 | + | |
67 | +IBM 405 I2C interface | |
68 | +CONFIG_I2C_IBM_OCP_ADAP | |
69 | + This supports the IBM 405 I2C device. | |
70 | + | |
71 | + This driver is also available as a module. If you want to compile | |
72 | + it as a module, say M here and read | |
73 | + <file:Documentation/modules.txt>. | |
74 | + The module will be called i2c-adap-ibm_ocp.o. | |
75 | + | |
76 | +StrongARM SA-1110 interface | |
77 | +CONFIG_I2C_FRODO | |
78 | + This supports the StrongARM SA-1110 Development Board. | |
79 | + | |
80 | + This driver is also available as a module. If you want to compile | |
81 | + it as a module, say M here and read | |
82 | + <file:Documentation/modules.txt>. | |
83 | + The module will be called i2c-frodo.o. | |
84 | + | |
85 | I2C device interface | |
86 | CONFIG_I2C_CHARDEV | |
87 | Say Y here to use i2c-* device files, usually found in the /dev | |
88 | --- linux-old/Documentation/i2c/dev-interface Sun Jan 18 23:41:30 2004 | |
89 | +++ linux/Documentation/i2c/dev-interface Sun Jan 18 23:58:17 2004 | |
90 | @@ -89,6 +89,11 @@ | |
91 | Selects ten bit addresses if select not equals 0, selects normal 7 bit | |
92 | addresses if select equals 0. Default 0. | |
93 | ||
94 | +ioctl(file,I2C_PEC,long select) | |
95 | + Selects SMBus PEC (packet error checking) generation and verification | |
96 | + if select not equals 0, disables if select equals 0. Default 0. | |
97 | + Used only for SMBus transactions. | |
98 | + | |
99 | ioctl(file,I2C_FUNCS,unsigned long *funcs) | |
100 | Gets the adapter functionality and puts it in *funcs. | |
101 | ||
102 | --- linux-old/Documentation/i2c/i2c-pport Thu Jan 1 00:00:00 1970 | |
103 | +++ linux/Documentation/i2c/i2c-pport Sun Jan 18 23:58:17 2004 | |
104 | @@ -0,0 +1,67 @@ | |
105 | +Parallel Port Adapters | |
106 | +---------------------- | |
107 | +If you are installing parallel port adapters it means you are probably messing | |
108 | +around with wires and IC's and the like. If you have purchased a card that | |
109 | +provides an external i2c/smbus this will require combined algorithm and | |
110 | +adapter code in a single module. | |
111 | +If you are doing it yourself by using the parallel port there | |
112 | +are basically 2 options. | |
113 | + | |
114 | +1) Using the parallel port and using the i2c-pport adapter module and the | |
115 | +i2c-algo-bit algorithm module together to enable you to wire up your parallel | |
116 | +port to act as an i2c/smbus. This provides a bus that will enable most | |
117 | +sensors to work but doesn't support the entire i2c/smbus capability. | |
118 | + | |
119 | +2) Using the parallel port to interface to a Philips PCF8584 parallel to i2c | |
120 | +adapter chip. You will need to build a bit of a circuit to do this. This | |
121 | +configuration needs the i2c-pcf-epp adapter module and the i2c-algo-pcf | |
122 | +algorithm module. This support almost all of the i2c/smbus capabilities. | |
123 | + | |
124 | + | |
125 | +i2c-pport Documentation | |
126 | +----------------------- | |
127 | +This is a primitive parallel port driver for the i2c bus, which exploits | |
128 | +features of modern bidirectional parallel ports. | |
129 | + | |
130 | +Bidirectional ports have particular bits connected in following way: | |
131 | + | |
132 | + | | |
133 | + /-----| R | |
134 | + --o| |-----| | |
135 | + read \-----| /------- Out pin | |
136 | + |/ | |
137 | + - -|\ | |
138 | + write V | |
139 | + | | |
140 | + --- | |
141 | + | |
142 | + | |
143 | +It means when output is set to 1 we can read the port. Therefore | |
144 | +we can use 2 pins of parallel port as SDA and SCL for i2c bus. It | |
145 | +is not necessary to add any external - additional parts, we can | |
146 | +read and write the same port simultaneously. | |
147 | + I only use register base+2 so it is possible to use all | |
148 | +8 data bits of parallel port for other applications (I have | |
149 | +connected EEPROM and LCD display). I do not use bit Enable Bi-directional | |
150 | + Port. The only disadvantage is we can only support 5V chips. | |
151 | + | |
152 | +Layout: | |
153 | + | |
154 | +Cannon 25 pin | |
155 | + | |
156 | +SDA - connect to pin 14 (Auto Linefeed) | |
157 | +SCL - connect to pin 16 (Initialize Printer) | |
158 | +GND - connect to pin 18-25 | |
159 | ++5V - use external supply (I use 5V from 3.5" floppy connector) | |
160 | + | |
161 | +no pullups requied | |
162 | + | |
163 | +Module parameters: | |
164 | + | |
165 | +base = 0xXXX | |
166 | +XXX - 278 or 378 | |
167 | + | |
168 | +That's all. | |
169 | + | |
170 | +Daniel Smolik | |
171 | +marvin@sitour.cz | |
172 | --- linux-old/Documentation/i2c/i2c-protocol Sun Jan 18 23:41:30 2004 | |
173 | +++ linux/Documentation/i2c/i2c-protocol Sun Jan 18 23:58:17 2004 | |
174 | @@ -65,3 +65,12 @@ | |
175 | need to emit an Rd instead of a Wr, or vice versa, you set this | |
176 | flag. For example: | |
177 | S Addr Rd [A] Data [A] Data [A] ... [A] Data [A] P | |
178 | + | |
179 | + Flags I2C_M_IGNORE_NAK | |
180 | + Normally message is interrupted immediately if there is [NA] from the | |
181 |