Changeset 4664

Show
Ignore:
Timestamp:
08/13/07 22:08:14 (6 years ago)
Author:
jwrdegoede
Message:

Add FSC Heimdall, Poseidon II detection, change Poseidon I label from just plain Poseidon to Poseidon I

Files:
1 modified

Legend:

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

    r4662 r4664  
    13801380     }, 
    13811381     { 
    1382        name => "FSC Poseidon", 
     1382       name => "FSC Poseidon I", 
    13831383       driver => "fscpos", 
     1384       i2c_addrs => [0x73], 
     1385       i2c_detect => sub { fscpeg_detect(@_); }, 
     1386     }, 
     1387     { 
     1388       name => "FSC Poseidon II", 
     1389       driver => "to-be-written", 
    13841390       i2c_addrs => [0x73], 
    13851391       i2c_detect => sub { fscpos_detect(@_); }, 
     
    13961402       i2c_addrs => [0x73], 
    13971403       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(@_); }, 
    13981410     }, 
    13991411     { 
     
    48994911# Returns: undef if not detected, (8) if detected. 
    49004912# Registers used: 
    4901 #   0x00-0x02: Identification ('P','E','G' -> Pegasus ? :-) 
    4902 sub fscpos_detect 
     4913#   0x00-0x02: Identification ('P','E','G' -> Pegasus ? :-) aka Poseidon I 
     4914sub fscpeg_detect 
    49034915{ 
    49044916  my ($file,$addr) = @_; 
     
    49114923  } 
    49124924  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 
     4935sub 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) { 
    49134946        return; 
    49144947  } 
     
    49534986  } 
    49544987  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') 
     4998sub 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) { 
    49555009        return; 
    49565010  }