summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-03-17 16:04:55 +0000
committerGuenter Roeck <linux@roeck-us.net>2013-03-17 16:04:55 +0000
commit43e8122abb9a047ffcecc756353b273ea9f3d19a (patch)
tree11381806e6f6b7686aeb329d2426e913551c1308
parentf3c0b42ed92d5a32e8b9aaf538b244788fee74f2 (diff)
downloadlm-sensors-git-43e8122abb9a047ffcecc756353b273ea9f3d19a.tar.gz
Add detection of TMP431 and TMP432
-rw-r--r--CHANGES1
-rwxr-xr-xprog/detect/sensors-detect24
2 files changed, 24 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 51ac3c8e..ba6409f0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,7 @@ SVN HEAD
Add detection of IT8752F
Add detection of MCP98244
Add detection of LM95234
+ Add detection of TMP431/TMP432
3.3.3 "Happy Birthday Sophie" (2012-11-06)
documentation: Update fan-divisors, fan divisors are optional
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index f238802c..00e39043 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -1023,6 +1023,16 @@ use vars qw(@i2c_adapter_names);
i2c_addrs => [0x4c, 0x4d],
i2c_detect => sub { tmp42x_detect(@_, 2); },
}, {
+ name => "Texas Instruments TMP431",
+ driver => "to-be-written", # tmp401
+ i2c_addrs => [0x4c, 0x4d],
+ i2c_detect => sub { lm90_detect(@_, 16); },
+ }, {
+ name => "Texas Instruments TMP432",
+ driver => "to-be-written", # tmp401
+ i2c_addrs => [0x4c, 0x4d],
+ i2c_detect => sub { lm90_detect(@_, 17); },
+ }, {
name => "Texas Instruments AMC6821",
driver => "amc6821",
i2c_addrs => [0x18..0x1a, 0x2c..0x2e, 0x4c..0x4e],
@@ -4537,7 +4547,7 @@ sub max6680_95_detect
# 8 = W83L771W/G, 9 = TMP401, 10 = TMP411,
# 11 = W83L771AWG/ASG, 12 = MAX6690,
# 13 = ADT7461A/NCT1008, 14 = SA56004,
-# 15 = G781
+# 15 = G781, 16 = TMP431, 17 = TMP432
# Registers used:
# 0x03: Configuration
# 0x04: Conversion rate
@@ -4655,6 +4665,18 @@ sub lm90_detect
return if $mid != 0x47; # GMT
return 8 if $cid == 0x01; # G781
}
+ if ($chip == 16) {
+ return if ($conf & 0x1B) != 0;
+ return if $rate > 0x0F;
+ return if $mid != 0x55; # Texas Instruments
+ return 6 if ($cid == 0x31); # TMP431A/B/C/D
+ }
+ if ($chip == 17) {
+ return if ($conf & 0x1B) != 0;
+ return if $rate > 0x0F;
+ return if $mid != 0x55; # Texas Instruments
+ return 6 if ($cid == 0x32); # TMP432A/B
+ }
return;
}