Changeset 2469
- Timestamp:
- 04/23/04 18:25:56 (9 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r2463 r2469 1133 1133 }, 1134 1134 { 1135 name => "National Semiconductor LM89 ",1136 driver => " to-be-written",1137 i2c_addrs => [0x4c ],1135 name => "National Semiconductor LM89/LM99", 1136 driver => "lm90", 1137 i2c_addrs => [0x4c..0x4d], 1138 1138 i2c_detect => sub { lm90_detect 1, @_ }, 1139 1139 }, … … 2931 2931 # We may assume an i2c_set_slave_addr was already done. 2932 2932 # $_[2]: Address 2933 # Returns: undef if not detected, 3, 7 or 8 if detected.2933 # Returns: undef if not detected, 3, 5, 7 or 8 if detected. 2934 2934 # The Maxim chips have a low confidence value (3) 2935 2935 # because the die revision codes are not known. … … 2947 2947 if ($chip == 0) { 2948 2948 return if ($conf & 0x2a) != 0; 2949 return if $mid != 0x01; # National Semicondutor2949 return if $mid != 0x01; # National Semiconductor 2950 2950 return 8 if $cid == 0x21; # LM90 2951 2951 return 7 if $cid > 0x21 and $cid < 0x30; … … 2953 2953 if ($chip == 1) { 2954 2954 return if ($conf & 0x2a) != 0; 2955 return if $mid != 0x01; # National Semicondutor 2956 return 8 if $cid == 0x31; # LM89 2957 return 7 if $cid > 0x31 and $cid < 0x40; 2955 return if $mid != 0x01; # National Semiconductor 2956 return 8 if $addr == 0x4c and $cid == 0x31; # LM89/LM99 2957 return 8 if $addr == 0x4d and $cid == 0x34; # LM89-1/LM99-1 2958 return 5 if $cid > 0x31 and $cid < 0x40; 2958 2959 } 2959 2960 if ($chip == 2) { 2960 2961 return if ($conf & 0x2a) != 0; 2961 return if $mid != 0x01; # National Semicondutor2962 return if $mid != 0x01; # National Semiconductor 2962 2963 return 8 if $cid == 0x11; # LM86 2963 2964 return 7 if $cid > 0x11 and $cid < 0x20; … … 2965 2966 if ($chip == 3) { 2966 2967 return if ($conf & 0x3f) != 0; 2967 return if $mid != 0x41; # Analog Devices2968 return 8 if ($cid & 0xf0) == 0x40; # ADM10322968 return if $mid != 0x41; # Analog Devices 2969 return 8 if ($cid & 0xf0) == 0x40; # ADM1032 2969 2970 } 2970 2971 if ($chip == 4) { 2971 2972 return if ($conf & 0x1f) != 0; 2972 return if $mid != 0x4d; # Maxim2973 return 3;2973 return if $mid != 0x4d; # Maxim 2974 return 3; 2974 2975 } 2975 2976 if ($chip == 5) {
