Changeset 5983 for lm-sensors/trunk/prog

Show
Ignore:
Timestamp:
07/08/11 16:35:37 (11 months ago)
Author:
groeck
Message:

Add code to detect SA56004.

Files:
1 modified

Legend:

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

    r5982 r5983  
    10561056                i2c_detect => sub { lm90_detect(@_, 13); }, 
    10571057        }, { 
     1058                name => "NXP/Philips SA56004", 
     1059                driver => "lm90", 
     1060                i2c_addrs => [0x48..0x4f], 
     1061                i2c_detect => sub { lm90_detect(@_, 14); }, 
     1062        }, { 
    10581063                name => "Analog Devices ADT7481", 
    10591064                driver => "to-be-written", 
     
    43534358#                 8 = W83L771W/G, 9 = TMP401, 10 = TMP411, 
    43544359#                 11 = W83L771AWG/ASG, 12 = MAX6690, 
    4355 #                 13 = ADT7461A/NCT1008 
     4360#                 13 = ADT7461A/NCT1008, 14 = SA56004 
    43564361# Registers used: 
    43574362#   0x03: Configuration 
    43584363#   0x04: Conversion rate 
    4359 #   0xbf: Configuration 2 (National Semiconductor and Winbond only) 
     4364#   0xbf: Configuration 2 (National Semiconductor, Winbond, and Philips only) 
    43604365#   0xfe: Manufacturer ID 
    43614366#   0xff: Chip ID / die revision 
     
    44574462                return if $mid != 0x41;         # Analog Devices 
    44584463                return 8 if $cid == 0x57;       # ADT7461A, NCT1008 
     4464        } 
     4465        if ($chip == 14) { 
     4466                return if ($conf & 0x2a) != 0; 
     4467                return if ($conf2 & 0xfe) != 0; 
     4468                return if $rate > 0x09; 
     4469                return if $mid != 0xa1;         # NXP Semiconductor/Philips 
     4470                return 6 if $cid == 0x00;       # SA56004 
    44594471        } 
    44604472        return;