2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Fix MAX6657, MAX6658 and MAX6659 detection.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2815 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-12-29 10:50:19 +00:00
parent c4d3e5f0fd
commit 5767b9d53b

View File

@@ -3110,7 +3110,7 @@ sub lm83_detect
# $_[2]: Address
# Returns: undef if not detected, 4, 6 or 8 if detected.
# The Maxim chips have a low confidence value (4)
# because the die revision codes are not known.
# because they don't have a die revision register.
# Registers used:
# 0x03: Configuration
# 0x04: Conversion rate
@@ -3153,9 +3153,11 @@ sub lm90_detect
return 8 if ($cid & 0xf0) == 0x40; # ADM1032
}
if ($chip == 4) {
return if ($conf & 0x1f) != 0;
return if ($conf & 0x1f) != ($mid & 0x0f); # No low nibble,
# returns previous low nibble
return if $rate > 0x09;
return if $mid != 0x4d; # Maxim
return if $cid != 0x4d; # No register, returns previous value
return 4;
}
if ($chip == 5) {