2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

sensors-detect: Add detection of ADT7461A / NCT1008

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5956 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Guenter Roeck
2011-04-06 14:28:43 +00:00
parent 982df34c9f
commit 0e76aaaf75
2 changed files with 14 additions and 1 deletions

View File

@@ -1044,6 +1044,11 @@ use vars qw(@i2c_adapter_names);
driver => "lm90",
i2c_addrs => [0x4c..0x4d],
i2c_detect => sub { lm90_detect(@_, 5); },
}, {
name => "Analog Devices ADT7461A, ON Semiconductor NCT1008",
driver => "to-be-written", # lm90
i2c_addrs => [0x4c..0x4d],
i2c_detect => sub { lm90_detect(@_, 13); },
}, {
name => "Analog Devices ADT7481",
driver => "to-be-written",
@@ -4321,7 +4326,8 @@ sub max6680_95_detect
# 4 = MAX6654, 5 = ADT7461,
# 6 = MAX6646/MAX6647/MAX6648/MAX6649/MAX6692,
# 8 = W83L771W/G, 9 = TMP401, 10 = TMP411,
# 11 = W83L771AWG/ASG, 12 = MAX6690
# 11 = W83L771AWG/ASG, 12 = MAX6690,
# 13 = ADT7461A/NCT1008
# Registers used:
# 0x03: Configuration
# 0x04: Conversion rate
@@ -4420,6 +4426,12 @@ sub lm90_detect
return if $mid != 0x4d; # Maxim
return 8 if $cid == 0x09; # MAX6690
}
if ($chip == 13) {
return if ($conf & 0x1b) != 0;
return if $rate > 0x0a;
return if $mid != 0x41; # Analog Devices
return 8 if $cid == 0x57; # ADT7461A, NCT1008
}
return;
}