Changeset 5867 for lm-sensors/trunk/prog
- Timestamp:
- 10/14/10 14:27:07 (20 months ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r5861 r5867 4114 4114 # 0x03: Configuration 4115 4115 # 0x04: Conversion rate 4116 # 0xbf: Configuration 2 (National Semiconductor and Winbond only) 4116 4117 # 0xfe: Manufacturer ID 4117 4118 # 0xff: Chip ID / die revision … … 4123 4124 my $conf = i2c_smbus_read_byte_data($file, 0x03); 4124 4125 my $rate = i2c_smbus_read_byte_data($file, 0x04); 4126 my $conf2 = i2c_smbus_read_byte_data($file, 0xbf); 4125 4127 4126 4128 if ($chip == 0) { 4127 4129 return if ($conf & 0x2a) != 0; 4130 return if ($conf2 & 0xf8) != 0; 4128 4131 return if $rate > 0x09; 4129 4132 return if $mid != 0x01; # National Semiconductor … … 4133 4136 if ($chip == 1) { 4134 4137 return if ($conf & 0x2a) != 0; 4138 return if ($conf2 & 0xf8) != 0; 4135 4139 return if $rate > 0x09; 4136 4140 return if $mid != 0x01; # National Semiconductor … … 4141 4145 if ($chip == 2) { 4142 4146 return if ($conf & 0x2a) != 0; 4147 return if ($conf2 & 0xf8) != 0; 4143 4148 return if $rate > 0x09; 4144 4149 return if $mid != 0x01; # National Semiconductor … … 4172 4177 if ($chip == 8) { 4173 4178 return if ($conf & 0x2a) != 0; 4179 return if ($conf2 & 0xf8) != 0; 4174 4180 return if $rate > 0x09; 4175 4181 return if $mid != 0x5c; # Winbond … … 4192 4198 if ($chip == 11) { 4193 4199 return if ($conf & 0x2a) != 0; 4200 return if ($conf2 & 0xf8) != 0; 4194 4201 return if $rate > 0x08; 4195 4202 return if $mid != 0x5c; # Winbond
