Changeset 2243

Show
Ignore:
Timestamp:
01/25/04 18:26:22 (9 years ago)
Author:
khali
Message:

Separate prefix for NE1619.

Location:
lm-sensors/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/chips/adm1025

    r1914 r2243  
    1010    Datasheet: Publicly available at the Analog Devices website 
    1111  * Philips NE1619 
    12     Prefix `adm1025' 
    13     Addresses scanned: I2C 0x2c - 0x2e (inclusive) 
     12    Prefix `ne1619' 
     13    Addresses scanned: I2C 0x2c - 0x2d (inclusive) 
    1414    Datasheet: Publicly available at the Philips website 
    1515 
    1616The 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). 
    1818  * No temperature offset register, but we don't use it anyway. 
    1919  * 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. 
    2120 
    2221Author: Chen-Yuan Wu <gwu@esoft.com> and Jean Delvare <khali@linux-fr.org> 
     
    3332  List of adapter,address pairs which are unquestionably assumed to contain 
    3433  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 
    3537* probe: short array (min = 1, max = 48) 
    3638  List of adapter,address pairs to scan additionally 
     
    7375------------- 
    7476 
    75 Chip 'adm1025' 
     77Chips 'adm1025' and 'ne1619' 
    7678 
    7779LABEL                 LABEL CLASS           COMPUTE CLASS          MODE  MAGN 
  • lm-sensors/trunk/etc/sensors.conf.eg

    r2230 r2243  
    11321132#    ignore temp3 
    11331133 
    1134 chip "adm1025-*" 
     1134chip "adm1025-*" "ne1619-*" 
    11351135 
    11361136# The ADM1025 has integrated scaling resistors, rather 
  • lm-sensors/trunk/kernel/chips/adm1025.c

    r2123 r2243  
    33               monitoring 
    44    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> 
    66 
    77    Based on the adm9240 driver. 
     
    4848 
    4949/* Insmod parameters */ 
    50 SENSORS_INSMOD_1(adm1025); 
     50SENSORS_INSMOD_2(adm1025, ne1619); 
    5151 
    5252/* Many ADM1025 constants specified below */ 
     
    292292        /* Determine the chip type. */ 
    293293        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; 
    307314        } 
    308315 
     
    310317                type_name = "adm1025"; 
    311318                client_name = "ADM1025 chip"; 
     319        } else if (kind == ne1619) { 
     320                type_name = "ne1619"; 
     321                client_name = "NE1619 chip";             
    312322        } else { 
    313323#ifdef DEBUG 
  • lm-sensors/trunk/lib/chips.c

    r2237 r2243  
    48134813 { SENSORS_ADM1022_PREFIX, thmc50_features }, 
    48144814 { SENSORS_ADM1025_PREFIX, adm1025_features }, 
     4815 { SENSORS_NE1619_PREFIX, adm1025_features }, 
    48154816 { SENSORS_ADM1026_PREFIX, adm1026_features }, 
    48164817 { SENSORS_VIA686A_PREFIX, via686a_features }, 
  • lm-sensors/trunk/lib/chips.h

    r2210 r2243  
    967967 
    968968#define SENSORS_ADM1025_PREFIX "adm1025" 
     969#define SENSORS_NE1619_PREFIX "ne1619" 
    969970 
    970971#define SENSORS_ADM1025_IN0 1 /* R */ 
  • lm-sensors/trunk/prog/sensors/main.c

    r2240 r2243  
    362362        { "gl518sm", print_gl518 }, 
    363363        { "adm1025", print_adm1025 }, 
     364        { "ne1619", print_adm1025 }, 
    364365        { "adm1024", print_adm1024 }, 
    365366        { "w83781d", print_w83781d },