Changeset 2243
- Timestamp:
- 01/25/04 18:26:22 (9 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 6 modified
-
doc/chips/adm1025 (modified) (3 diffs)
-
etc/sensors.conf.eg (modified) (1 diff)
-
kernel/chips/adm1025.c (modified) (4 diffs)
-
lib/chips.c (modified) (1 diff)
-
lib/chips.h (modified) (1 diff)
-
prog/sensors/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/doc/chips/adm1025
r1914 r2243 10 10 Datasheet: Publicly available at the Analog Devices website 11 11 * Philips NE1619 12 Prefix ` adm1025'13 Addresses scanned: I2C 0x2c - 0x2 e(inclusive)12 Prefix `ne1619' 13 Addresses scanned: I2C 0x2c - 0x2d (inclusive) 14 14 Datasheet: Publicly available at the Philips website 15 15 16 16 The NE1619 presents some differences with the original ADM1025: 17 * Only two possible addresses (0x2c - 0x2d) , although we don't care.17 * Only two possible addresses (0x2c - 0x2d). 18 18 * No temperature offset register, but we don't use it anyway. 19 19 * No INT mode for pin 16. We don't play with it anyway. 20 No separate prefix was added for the NE1619, it just wasn't worth it.21 20 22 21 Author: Chen-Yuan Wu <gwu@esoft.com> and Jean Delvare <khali@linux-fr.org> … … 33 32 List of adapter,address pairs which are unquestionably assumed to contain 34 33 a `adm1025' chip 34 * force_ne1619: short array (min = 1, max = 48) 35 List of adapter,address pairs which are unquestionably assumed to contain 36 a `ne1619' chip 35 37 * probe: short array (min = 1, max = 48) 36 38 List of adapter,address pairs to scan additionally … … 73 75 ------------- 74 76 75 Chip 'adm1025'77 Chips 'adm1025' and 'ne1619' 76 78 77 79 LABEL LABEL CLASS COMPUTE CLASS MODE MAGN -
lm-sensors/trunk/etc/sensors.conf.eg
r2230 r2243 1132 1132 # ignore temp3 1133 1133 1134 chip "adm1025-*" 1134 chip "adm1025-*" "ne1619-*" 1135 1135 1136 1136 # The ADM1025 has integrated scaling resistors, rather -
lm-sensors/trunk/kernel/chips/adm1025.c
r2123 r2243 3 3 monitoring 4 4 Copyright (c) 2000 Chen-Yuan Wu <gwu@esoft.com> 5 Copyright (c) 2003 Jean Delvare <khali@linux-fr.org>5 Copyright (c) 2003-2004 Jean Delvare <khali@linux-fr.org> 6 6 7 7 Based on the adm9240 driver. … … 48 48 49 49 /* Insmod parameters */ 50 SENSORS_INSMOD_ 1(adm1025);50 SENSORS_INSMOD_2(adm1025, ne1619); 51 51 52 52 /* Many ADM1025 constants specified below */ … … 292 292 /* Determine the chip type. */ 293 293 if (kind <= 0) { 294 i = i2c_smbus_read_byte_data(new_client, ADM1025_REG_COMPANY_ID); 295 if (((i2c_smbus_read_byte_data(new_client, ADM1025_REG_DIE_REV) & 0xf0) == 0x20) 296 && ((i == 0x41) /* ADM1025 */ 297 || (i == 0xA1))) /* NE1619 */ 298 kind = adm1025; 299 else { 300 if (kind == 0) 301 printk 302 ("adm1025.o: Ignoring 'force' parameter for unknown chip at " 303 "adapter %d, address 0x%02x\n", 304 i2c_adapter_id(adapter), address); 305 goto ERROR1; 306 } 294 u8 man_id, chip_id; 295 296 man_id = i2c_smbus_read_byte_data(new_client, 297 ADM1025_REG_COMPANY_ID); 298 chip_id = i2c_smbus_read_byte_data(new_client, 299 ADM1025_REG_DIE_REV); 300 301 if (man_id == 0x41) { /* Analog Devices */ 302 if ((chip_id & 0xF0) == 0x20) /* ADM1025 */ 303 kind = adm1025; 304 } else if (man_id == 0xA1) { /* Philips */ 305 if (address != 0x2E 306 && (chip_id & 0xF0) == 0x20) /* NE1619 */ 307 kind = ne1619; 308 } 309 } 310 311 if (kind <= 0) { /* Identification failed */ 312 printk("adm1025.o: Unsupported chip.\n"); 313 goto ERROR1; 307 314 } 308 315 … … 310 317 type_name = "adm1025"; 311 318 client_name = "ADM1025 chip"; 319 } else if (kind == ne1619) { 320 type_name = "ne1619"; 321 client_name = "NE1619 chip"; 312 322 } else { 313 323 #ifdef DEBUG -
lm-sensors/trunk/lib/chips.c
r2237 r2243 4813 4813 { SENSORS_ADM1022_PREFIX, thmc50_features }, 4814 4814 { SENSORS_ADM1025_PREFIX, adm1025_features }, 4815 { SENSORS_NE1619_PREFIX, adm1025_features }, 4815 4816 { SENSORS_ADM1026_PREFIX, adm1026_features }, 4816 4817 { SENSORS_VIA686A_PREFIX, via686a_features }, -
lm-sensors/trunk/lib/chips.h
r2210 r2243 967 967 968 968 #define SENSORS_ADM1025_PREFIX "adm1025" 969 #define SENSORS_NE1619_PREFIX "ne1619" 969 970 970 971 #define SENSORS_ADM1025_IN0 1 /* R */ -
lm-sensors/trunk/prog/sensors/main.c
r2240 r2243 362 362 { "gl518sm", print_gl518 }, 363 363 { "adm1025", print_adm1025 }, 364 { "ne1619", print_adm1025 }, 364 365 { "adm1024", print_adm1024 }, 365 366 { "w83781d", print_w83781d },
