Changeset 5281
- Timestamp:
- 06/11/08 16:09:15 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5276 r5281 13 13 Refactor alias detection functions 14 14 Fix Andigilog aSC7621 support 15 Add Texas Instruments THMC51 support 15 16 16 17 3.0.2 (2008-05-18) lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5279 r5281 1237 1237 i2c_addrs => [0x2e], 1238 1238 i2c_detect => sub { adm1022_detect(2, @_); }, 1239 }, 1240 { 1241 name => "Texas Instruments THMC51", 1242 driver => "to-be-written", # thmc50 1243 i2c_addrs => [0x2e], # At least (no datasheet) 1244 i2c_detect => sub { adm1022_detect(3, @_); }, 1239 1245 }, 1240 1246 { … … 4774 4780 } 4775 4781 4776 # $_[0]: Chip to detect (0 = ADM1022, 1 = THMC50, 2 = ADM1028) 4782 # $_[0]: Chip to detect (0 = ADM1022, 1 = THMC50, 2 = ADM1028, 4783 # 3 = THMC51) 4777 4784 # $_[1]: A reference to the file descriptor to access this chip. 4778 4785 # $_[2]: Address … … 4790 4797 return unless ($chip == 0 and $reg == 0x41) or 4791 4798 ($chip == 1 and $reg == 0x49) or 4792 ($chip == 2 and $reg == 0x41); 4799 ($chip == 2 and $reg == 0x41) or 4800 ($chip == 3 and $reg == 0x49); 4793 4801 $reg = i2c_smbus_read_byte_data($file, 0x40); 4794 4802 return if ($reg & 0x10); # Soft Reset always reads 0 … … 4797 4805 return unless ($chip == 0 and $reg == 0xc0) or 4798 4806 ($chip == 1 and $reg == 0xc0) or 4799 ($chip == 2 and $reg == 0xd0); 4807 ($chip == 2 and $reg == 0xd0) or 4808 ($chip == 3 and $reg == 0xd0); 4800 4809 return (8); 4801 4810 }
