mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 13:28:01 +00:00
Add Maxim MAX6680/MAX6681 detection. Patch contributed by
Rainer Birkenmaier (Siemens). git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4411 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
8cc806b298
commit
d2341c8ec1
1
CHANGES
1
CHANGES
@ -27,6 +27,7 @@ SVN HEAD
|
|||||||
Fix SMSC DME1737 detection
|
Fix SMSC DME1737 detection
|
||||||
Add /usr/sbin to the PATH (#2199)
|
Add /usr/sbin to the PATH (#2199)
|
||||||
Add ATI SB700 detection
|
Add ATI SB700 detection
|
||||||
|
Add Maxim MAX6680/MAX6681 detection
|
||||||
|
|
||||||
|
|
||||||
2.10.3 (20070319)
|
2.10.3 (20070319)
|
||||||
|
@ -1260,6 +1260,12 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x);
|
|||||||
i2c_addrs => [0x4c],
|
i2c_addrs => [0x4c],
|
||||||
i2c_detect => sub { lm90_detect(6, @_); },
|
i2c_detect => sub { lm90_detect(6, @_); },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name => "Maxim MAX6680/MAX6681",
|
||||||
|
driver => "lm90",
|
||||||
|
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
|
||||||
|
i2c_detect => sub { lm90_detect(7, @_); },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name => "National Semiconductor LM63",
|
name => "National Semiconductor LM63",
|
||||||
driver => "lm63",
|
driver => "lm63",
|
||||||
@ -3670,12 +3676,12 @@ sub lm83_detect
|
|||||||
|
|
||||||
# $_[0]: Chip to detect
|
# $_[0]: Chip to detect
|
||||||
# (0 = LM90, 1=LM89/LM99, 2=LM86, 3=ADM1032, 4=MAX6657/MAX6658/MAX6659,
|
# (0 = LM90, 1=LM89/LM99, 2=LM86, 3=ADM1032, 4=MAX6657/MAX6658/MAX6659,
|
||||||
# 5 = ADT7461, 6 = MAX6648/MAX6692)
|
# 5 = ADT7461, 6 = MAX6648/MAX6692, 7 = MAX6680/MAX6681)
|
||||||
# $_[1]: A reference to the file descriptor to access this chip.
|
# $_[1]: A reference to the file descriptor to access this chip.
|
||||||
# $_[2]: Address
|
# $_[2]: Address
|
||||||
# Returns: undef if not detected, 4, 6 or 8 if detected.
|
# Returns: undef if not detected, 4, 6 or 8 if detected.
|
||||||
# The Maxim chips have a low confidence value (4)
|
# The Maxim chips MAX6657, MAX6658 and MAX6659 have a low confidence
|
||||||
# because they don't have a die revision register.
|
# value (4) because they don't have a die revision register.
|
||||||
# Registers used:
|
# Registers used:
|
||||||
# 0x03: Configuration
|
# 0x03: Configuration
|
||||||
# 0x04: Conversion rate
|
# 0x04: Conversion rate
|
||||||
@ -3738,6 +3744,13 @@ sub lm90_detect
|
|||||||
return if $cid != 0x59; # MAX6648/MAX6692
|
return if $cid != 0x59; # MAX6648/MAX6692
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
|
if ($chip == 7) {
|
||||||
|
return if ($conf & 0x03) != 0;
|
||||||
|
return if $rate > 0x07;
|
||||||
|
return if $mid != 0x4d; # Maxim
|
||||||
|
return if $cid != 0x01; # MAX6680/MAX6681
|
||||||
|
return 6;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user