mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-03 07:45:30 +00:00
Add detection of TMP431 and TMP432
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -12,6 +12,7 @@ SVN HEAD
|
|||||||
Add detection of IT8752F
|
Add detection of IT8752F
|
||||||
Add detection of MCP98244
|
Add detection of MCP98244
|
||||||
Add detection of LM95234
|
Add detection of LM95234
|
||||||
|
Add detection of TMP431/TMP432
|
||||||
|
|
||||||
3.3.3 "Happy Birthday Sophie" (2012-11-06)
|
3.3.3 "Happy Birthday Sophie" (2012-11-06)
|
||||||
documentation: Update fan-divisors, fan divisors are optional
|
documentation: Update fan-divisors, fan divisors are optional
|
||||||
|
@@ -1022,6 +1022,16 @@ use vars qw(@i2c_adapter_names);
|
|||||||
driver => "tmp421",
|
driver => "tmp421",
|
||||||
i2c_addrs => [0x4c, 0x4d],
|
i2c_addrs => [0x4c, 0x4d],
|
||||||
i2c_detect => sub { tmp42x_detect(@_, 2); },
|
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",
|
name => "Texas Instruments AMC6821",
|
||||||
driver => "amc6821",
|
driver => "amc6821",
|
||||||
@@ -4537,7 +4547,7 @@ sub max6680_95_detect
|
|||||||
# 8 = W83L771W/G, 9 = TMP401, 10 = TMP411,
|
# 8 = W83L771W/G, 9 = TMP401, 10 = TMP411,
|
||||||
# 11 = W83L771AWG/ASG, 12 = MAX6690,
|
# 11 = W83L771AWG/ASG, 12 = MAX6690,
|
||||||
# 13 = ADT7461A/NCT1008, 14 = SA56004,
|
# 13 = ADT7461A/NCT1008, 14 = SA56004,
|
||||||
# 15 = G781
|
# 15 = G781, 16 = TMP431, 17 = TMP432
|
||||||
# Registers used:
|
# Registers used:
|
||||||
# 0x03: Configuration
|
# 0x03: Configuration
|
||||||
# 0x04: Conversion rate
|
# 0x04: Conversion rate
|
||||||
@@ -4655,6 +4665,18 @@ sub lm90_detect
|
|||||||
return if $mid != 0x47; # GMT
|
return if $mid != 0x47; # GMT
|
||||||
return 8 if $cid == 0x01; # G781
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user