Show
Ignore:
Timestamp:
04/04/06 19:13:32 (9 years ago)
Author:
khali
Message:

Add detection of more Fintek chips:
* F75373S/SG
* F75383S/M
* F75384S/M
* custom power control chip at SMBus 0x2f

Files:
1 modified

Legend:

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

    r3280 r3282  
    15131513     }, 
    15141514     { 
     1515       name => "Fintek F75373S/SG", 
     1516       driver => "to-be-written", 
     1517       i2c_addrs => [0x2d..0x2e], 
     1518       i2c_detect => sub { fintek_detect 3, @_ }, 
     1519     }, 
     1520     { 
    15151521       name => "Fintek F75375S/SP", 
    15161522       driver => "to-be-written", 
     
    15231529       i2c_addrs => [0x2d..0x2e], 
    15241530       i2c_detect => sub { fintek_detect 5, @_ }, 
     1531     }, 
     1532     { 
     1533       name => "Fintek F75383S/M", 
     1534       driver => "to-be-written", 
     1535       i2c_addrs => [0x4c], 
     1536       i2c_detect => sub { fintek_detect 6, @_ }, 
     1537     }, 
     1538     { 
     1539       name => "Fintek F75384S/M", 
     1540       driver => "to-be-written", 
     1541       i2c_addrs => [0x4d], 
     1542       i2c_detect => sub { fintek_detect 6, @_ }, 
     1543     }, 
     1544     { 
     1545       name => "Fintek custom power control IC", 
     1546       driver => "to-be-written", 
     1547       i2c_addrs => [0x2f], 
     1548       i2c_detect => sub { fintek_detect 7, @_ }, 
    15251549     }, 
    15261550     { 
     
    45254549 
    45264550# $_[0]: Chip to detect 
    4527 #   (1 = F75111R/RG/N, 2 = F75121R/F75122R/RG, 4 = F75375S/SG, 
    4528 #    5 = F75387SG/RG) 
     4551#   (1 = F75111R/RG/N, 2 = F75121R/F75122R/RG, 3 = F75373S/SG, 
     4552#    4 = F75375S/SP, 5 = F75387SG/RG, 6 = F75383M/S/F75384M/S, 
     4553#    7 = custom power control IC) 
    45294554# $_[1]: A reference to the file descriptor to access this chip. 
    45304555#        We assume an i2c_set_slave_addr was already done. 
     
    45484573  } elsif ($chip == 2) { # F75121R/F75122R/RG 
    45494574    return unless $chipid == 0x0301; 
    4550   } elsif ($chip == 4) { # F75375S/SG 
     4575  } elsif ($chip == 3) { # F75373S/SG 
     4576    return unless $chipid == 0x0204; 
     4577  } elsif ($chip == 4) { # F75375S/SP 
    45514578    return unless $chipid == 0x0306; 
    45524579  } elsif ($chip == 5) { # F75387SG/RG 
    45534580    return unless $chipid == 0x0410; 
     4581  } elsif ($chip == 6) { # F75383M/S/F75384M/S 
     4582    # The datasheet has 0x0303, but Fintek say 0x0413 is also possible 
     4583    return unless $chipid == 0x0303 || $chipid == 0x0413; 
     4584  } elsif ($chip == 7) { # custom power control IC 
     4585    return unless $chipid == 0x0302; 
    45544586  } 
    45554587