Changeset 3787
- Timestamp:
- 05/30/03 03:46:08 (10 years ago)
- Location:
- i2c/branches/lk2-4
- Files:
-
- 5 modified
-
CHANGES (modified) (1 diff)
-
doc/i2c-pport (modified) (1 diff)
-
doc/smbus-protocol (modified) (1 diff)
-
kernel/i2c-id.h (modified) (8 diffs)
-
kernel/i2c-proc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/branches/lk2-4/CHANGES
r3744 r3787 18 18 ----------------------------------------------------------------------------- 19 19 20 2. 7.1(2003????)20 2.8.0 (2003????) 21 21 drivers (several): make spinlock_t's static 22 22 i2c-algo-biths.[ch]: Rewrite of i2c-algo-bit with improved bus timing and 23 23 error handling. This is not a drop-in replacement for i2c-algo-bit. 24 24 Interface subject to change. 25 i2c-id.h: ID for i2c-algo-biths, W83627HF 25 i2c-id.h: add IDs for i2c-algo-biths, W83627HF, LM85, nForce2, OMAHA, GUIDE, 26 MPC107, IXP2000, IXP425, IOP3XX, UDA1342 27 i2c-proc.c: Fix ignore and probe tests 26 28 i2c.h: Add fields for detailed delivery report in i2c_msg. 27 29 -
i2c/branches/lk2-4/doc/i2c-pport
r3567 r3787 1 Primitive parallel port is driver for i2c bus, which exploits 1 Parallel Port Adapters 2 ---------------------- 3 If you are installing parallel port adapters it means you are probably messing 4 around with wires and IC's and the like. If you have purchased a card that 5 provides an external i2c/smbus this will require combined algorithm and 6 adapter code in a single module. 7 If you are doing it yourself by using the parallel port there 8 are basically 2 options. 9 10 1) Using the parallel port and using the i2c-pport adapter module and the 11 i2c-algo-bit algorithm module together to enable you to wire up your parallel 12 port to act as an i2c/smbus. This provides a bus that will enable most 13 sensors to work but doesn't support the entire i2c/smbus capability. 14 15 2) Using the parallel port to interface to a Philips PCF8584 parallel to i2c 16 adapter chip. You will need to build a bit of a circuit to do this. This 17 configuration needs the i2c-pcf-epp adapter module and the i2c-algo-pcf 18 algorithm module. This support almost all of the i2c/smbus capabilities. 19 20 21 i2c-pport Documentation 22 ----------------------- 23 This is a primitive parallel port driver for the i2c bus, which exploits 2 24 features of modern bidirectional parallel ports. 3 25 -
i2c/branches/lk2-4/doc/smbus-protocol
r3693 r3787 144 144 145 145 S Addr Wr [A] Comm [A] Count [A] Data [A] ... 146 S Addr Rd [A] [Count] A [Data] ... A P146 S Addr Rd [A] [Count] A [Data] ... NA P 147 147 148 148 -
i2c/branches/lk2-4/kernel/i2c-id.h
r3766 r3787 99 99 #define I2C_DRIVERID_24LC32A 51 /* Microchip 24LC32A 32k EEPROM */ 100 100 #define I2C_DRIVERID_STM41T00 52 /* real time clock */ 101 #define I2C_DRIVERID_UDA1342 53 /* UDA1342 audio codec */ 101 102 102 103 … … 151 152 #define I2C_DRIVERID_FS451 1037 152 153 #define I2C_DRIVERID_W83627HF 1038 154 #define I2C_DRIVERID_LM85 1039 153 155 154 156 /* … … 172 174 #define I2C_ALGO_IPMI 0x0b0000 /* IPMI dummy adapter */ 173 175 #define I2C_ALGO_IPMB 0x0c0000 /* IPMB adapter */ 176 #define I2C_ALGO_MPC107 0x0d0000 174 177 #define I2C_ALGO_EC 0x100000 /* ACPI embedded controller */ 175 178 … … 177 180 #define I2C_ALGO_OCP 0x120000 /* IBM or otherwise On-chip I2C algorithm */ 178 181 #define I2C_ALGO_BITHS 0x130000 /* enhanced bit style adapters */ 182 #define I2C_ALGO_OCP_IOP3XX 0x140000 /* XSCALE IOP3XX On-chip I2C alg */ 179 183 180 184 #define I2C_ALGO_EXP 0x800000 /* experimental */ … … 210 214 #define I2C_HW_B_TSUNA 0x12 /* DEC Tsunami chipset */ 211 215 #define I2C_HW_B_FRODO 0x13 /* 2d3D, Inc. SA-1110 Development Board */ 216 #define I2C_HW_B_OMAHA 0x14 /* Omaha I2C interface (ARM) */ 217 #define I2C_HW_B_GUIDE 0x15 /* Guide bit-basher */ 218 #define I2C_HW_B_IXP2000 0x16 /* GPIO on IXP2000 systems */ 219 #define I2C_HW_B_IXP425 0x17 /* GPIO on IXP425 systems */ 212 220 213 221 /* --- PCF 8584 based algorithms */ … … 231 239 #define I2C_HW_OCP 0x00 /* IBM on-chip I2C adapter */ 232 240 241 /* --- XSCALE on-chip adapters */ 242 #define I2C_HW_IOP321 0x00 233 243 234 244 /* --- SMBus only adapters */ … … 245 255 #define I2C_HW_SMBUS_AMD8111 0x0a 246 256 #define I2C_HW_SMBUS_SCX200 0x0b 257 #define I2C_HW_SMBUS_NFORCE2 0x0c 247 258 248 259 /* --- ISA pseudo-adapter */ … … 255 266 #define I2C_HW_IPMB 0x00 256 267 268 /* --- MCP107 adapter */ 269 #define I2C_HW_MPC107 0x00 270 257 271 #endif /* LINUX_I2C_ID_H */ -
i2c/branches/lk2-4/kernel/i2c-proc.c
r3782 r3787 657 657 ((address_data-> 658 658 ignore_range[i] == 659 SENSORS_ANY_I2C_BUS) & !is_isa))659 SENSORS_ANY_I2C_BUS) && !is_isa)) 660 660 && (addr >= address_data->ignore_range[i + 1]) 661 661 && (addr <= address_data->ignore_range[i + 2])) { … … 746 746 if (((adapter_id == address_data->probe[i]) || 747 747 ((address_data-> 748 probe[i] == SENSORS_ANY_I2C_BUS) & !is_isa))748 probe[i] == SENSORS_ANY_I2C_BUS) && !is_isa)) 749 749 && (addr == address_data->probe[i + 1])) { 750 750 #ifdef DEBUG … … 763 763 || 764 764 ((address_data->probe_range[i] == 765 SENSORS_ANY_I2C_BUS) & !is_isa))765 SENSORS_ANY_I2C_BUS) && !is_isa)) 766 766 && (addr >= address_data->probe_range[i + 1]) 767 767 && (addr <= address_data->probe_range[i + 2])) {
