Changeset 4664
- Timestamp:
- 08/13/07 22:08:14 (6 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
r4662 r4664 1380 1380 }, 1381 1381 { 1382 name => "FSC Poseidon ",1382 name => "FSC Poseidon I", 1383 1383 driver => "fscpos", 1384 i2c_addrs => [0x73], 1385 i2c_detect => sub { fscpeg_detect(@_); }, 1386 }, 1387 { 1388 name => "FSC Poseidon II", 1389 driver => "to-be-written", 1384 1390 i2c_addrs => [0x73], 1385 1391 i2c_detect => sub { fscpos_detect(@_); }, … … 1396 1402 i2c_addrs => [0x73], 1397 1403 i2c_detect => sub { fscher_detect(@_); }, 1404 }, 1405 { 1406 name => "FSC Heimdal", 1407 driver => "to-be-written", 1408 i2c_addrs => [0x73], 1409 i2c_detect => sub { fschmd_detect(@_); }, 1398 1410 }, 1399 1411 { … … 4899 4911 # Returns: undef if not detected, (8) if detected. 4900 4912 # Registers used: 4901 # 0x00-0x02: Identification ('P','E','G' -> Pegasus ? :-) 4902 sub fscp os_detect4913 # 0x00-0x02: Identification ('P','E','G' -> Pegasus ? :-) aka Poseidon I 4914 sub fscpeg_detect 4903 4915 { 4904 4916 my ($file,$addr) = @_; … … 4911 4923 } 4912 4924 if (i2c_smbus_read_byte_data($file,0x02) != 0x47) { 4925 return; 4926 } 4927 return (8); 4928 } 4929 4930 # $_[0]: A reference to the file descriptor to access this chip. 4931 # $_[1]: Address 4932 # Returns: undef if not detected, (8) if detected. 4933 # Registers used: 4934 # 0x00-0x02: Identification 'P','O','S' -> Poseideon II 4935 sub fscpos_detect 4936 { 4937 my ($file,$addr) = @_; 4938 # check the first 3 registers 4939 if (i2c_smbus_read_byte_data($file,0x00) != 0x50) { 4940 return; 4941 } 4942 if (i2c_smbus_read_byte_data($file,0x01) != 0x4F) { 4943 return; 4944 } 4945 if (i2c_smbus_read_byte_data($file,0x02) != 0x53) { 4913 4946 return; 4914 4947 } … … 4953 4986 } 4954 4987 if (i2c_smbus_read_byte_data($file,0x02) != 0x52) { 4988 return; 4989 } 4990 return (8); 4991 } 4992 4993 # $_[0]: A reference to the file descriptor to access this chip. 4994 # $_[1]: Address 4995 # Returns: undef if not detected, (8) if detected. 4996 # Registers used: 4997 # 0x00-0x02: Identification ('H','M','D') 4998 sub fschmd_detect 4999 { 5000 my ($file,$addr) = @_; 5001 # check the first 3 registers 5002 if (i2c_smbus_read_byte_data($file,0x00) != 0x48) { 5003 return; 5004 } 5005 if (i2c_smbus_read_byte_data($file,0x01) != 0x4D) { 5006 return; 5007 } 5008 if (i2c_smbus_read_byte_data($file,0x02) != 0x44) { 4955 5009 return; 4956 5010 }
