mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Detect the LM63.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2650 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1228,6 +1228,12 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
i2c_addrs => [0x4d..0x4e], # 0x4c is handled above
|
||||
i2c_detect => sub { lm90_detect 4, @_ },
|
||||
},
|
||||
{
|
||||
name => "National Semiconductor LM63",
|
||||
driver => "lm90",
|
||||
i2c_addrs => [0x4c],
|
||||
i2c_detect => sub { lm90_detect 6, @_ },
|
||||
},
|
||||
{
|
||||
name => "National Semiconductor LM92",
|
||||
driver => "lm92",
|
||||
@@ -3041,7 +3047,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 = LM63)
|
||||
# $_[1]: A reference to the file descriptor to access this chip.
|
||||
# We may assume an i2c_set_slave_addr was already done.
|
||||
# $_[2]: Address
|
||||
@@ -3101,6 +3107,12 @@ sub lm90_detect
|
||||
return if $mid != 0x41; # Analog Devices
|
||||
return 8 if $cid == 0x61; # ADT7461
|
||||
}
|
||||
if ($chip == 6) {
|
||||
return if ($conf & 0x18) != 0;
|
||||
return if $rate > 0x09;
|
||||
return if $mid != 0x01; # National Semiconductor
|
||||
return 8 if $cid == 0x41; # LM63
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user