summaryrefslogtreecommitdiff
path: root/prog
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-12-02 22:05:42 +0000
committerJean Delvare <khali@linux-fr.org>2006-12-02 22:05:42 +0000
commit63ad029a86bc8ccc6bcfb8135df761b9be9ff5d7 (patch)
treef426e397497d0a8d293b72e27a763ec4ba19001e /prog
parentbe87358ae08f8dc53531a17b8cddf92d5b57fa29 (diff)
downloadlm-sensors-git-63ad029a86bc8ccc6bcfb8135df761b9be9ff5d7.tar.gz
Add Maxim MAX6648/MAX6692 detection. These seem to be somewhat similar
to the MAX6657/MAX6658/MAX6659. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4250 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'prog')
-rwxr-xr-xprog/detect/sensors-detect15
1 files changed, 14 insertions, 1 deletions
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 6baea9a1..93107dea 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -1191,6 +1191,12 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x);
i2c_detect => sub { lm90_detect(4, @_); },
},
{
+ name => "Maxim MAX6648/MAX6692",
+ driver => "to-be-written",
+ i2c_addrs => [0x4c],
+ i2c_detect => sub { lm90_detect(6, @_); },
+ },
+ {
name => "National Semiconductor LM63",
driver => "lm63",
i2c_addrs => [0x4c],
@@ -3560,7 +3566,7 @@ sub lm83_detect
# $_[0]: Chip to detect
# (0 = LM90, 1=LM89/LM99, 2=LM86, 3=ADM1032, 4=MAX6657/MAX6658/MAX6659,
-# 5 = ADT7461)
+# 5 = ADT7461, 6 = MAX6648/MAX6692)
# $_[1]: A reference to the file descriptor to access this chip.
# We may assume an i2c_set_slave_addr was already done.
# $_[2]: Address
@@ -3622,6 +3628,13 @@ sub lm90_detect
return if $mid != 0x41; # Analog Devices
return 8 if $cid == 0x61; # ADT7461
}
+ if ($chip == 6) {
+ return if ($conf & 0x3f) != 0;
+ return if $rate > 0x07;
+ return if $mid != 0x4d; # Maxim
+ return if $cid != 0x59; # MAX6648/MAX6692
+ return 8;
+ }
return;
}