summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgroeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0>2013-03-17 16:04:55 +0000
committergroeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0>2013-03-17 16:04:55 +0000
commita4e0a3ede32f1b9766839e105631165e796353bd (patch)
tree11381806e6f6b7686aeb329d2426e913551c1308
parent2287a7184ab1070dd598dfb2e12e3547042d8619 (diff)
downloadlm-sensors-a4e0a3ede32f1b9766839e105631165e796353bd.tar.gz
Add detection of TMP431 and TMP432
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6127 7894878c-1315-0410-8ee3-d5d059ff63e0
-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;
}