Changeset 1830

Show
Ignore:
Timestamp:
07/02/03 11:23:51 (10 years ago)
Author:
khali
Message:

Preliminary LM83 detection.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r1829 r1830  
    10361036       i2c_addrs => [0x18..0x1a,0x29..0x2b,0x4c..0x4e], 
    10371037       i2c_detect => sub { adm1021_detect 6, @_ }, 
     1038     }, 
     1039     { 
     1040       name => "National Semiconductor LM83", 
     1041       driver => "to-be-written", 
     1042       i2c_addrs => [0x18..0x1a,0x29..0x2b,0x4c..0x4e], 
     1043       i2c_detect => sub { adm1021_detect 7, @_ }, 
    10381044     }, 
    10391045     { 
     
    26512657 
    26522658# $_[0]: Chip to detect 
    2653 #   (0 = ADM1021, 1 = MAX1617, 2 = MAX1617A, 3 = THMC10, 4 = LM84, 5 = GL523, 6 = MC1066) 
     2659#   (0 = ADM1021, 1 = MAX1617, 2 = MAX1617A, 3 = THMC10, 4 = LM84, 5 = GL523, 6 = MC1066, 
     2660#   7 = LM83) 
    26542661# $_[1]: A reference to the file descriptor to access this chip. 
    26552662#        We may assume an i2c_set_slave_addr was already done. 
     
    26702677  return if $chip == 3 and i2c_smbus_read_byte_data($file,0xfe) != 0x49; 
    26712678  return if $chip == 4 and i2c_smbus_read_byte_data($file,0x04) != 0x00; 
     2679  return if $chip == 7 and i2c_smbus_read_byte_data($file,0xfe) != 0x01; 
    26722680  return if $chip == 5 and i2c_smbus_read_byte_data($file,0xfe) != 0x23; 
    26732681  return if $chip == 2 and i2c_smbus_read_byte_data($file,0xfe) != 0x4d and