Add detection of National Semiconductor LM96163.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5997 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2011-11-08 09:10:11 +00:00
1 parent 54a918f846
commit 4c63be0361
2 files changed
+12 -1

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ SVN HEAD
Print DMI system/product version if available
Fix loading of the cpuid module
Make LM73 detection less problematic
Add detection of National Semiconductor LM96163
3.3.1 (2011-07-21)
isadump: Add support for word (16-bit) and long (32-bit) reads
+11 -1
View File
@@ -1022,6 +1022,11 @@ use vars qw(@i2c_adapter_names);
driver => "lm63",
i2c_addrs => [0x18, 0x4e],
i2c_detect => sub { lm63_detect(@_, 3); },
}, {
name => "National Semiconductor LM96163",
driver => "lm63",
i2c_addrs => [0x4c],
i2c_detect => sub { lm63_detect(@_, 4); },
}, {
name => "Fintek F75363SG",
driver => "lm63", # Not yet
@@ -4599,7 +4604,7 @@ sub adt7481_detect
return 6;
}
# Chip to detect: 1 = LM63, 2 = F75363SG, 3 = LM64
# Chip to detect: 1 = LM63, 2 = F75363SG, 3 = LM64, 4 = LM96163
# Registers used:
# 0xfe: Manufacturer ID
# 0xff: Chip ID / die revision
@@ -4629,6 +4634,11 @@ sub lm63_detect
|| $cid != 0x51; # LM64
return if ($conf & 0x18) != 0x00
|| ($mask & 0xa4) != 0xa4;
} elsif ($chip == 4) {
return if $mid != 0x01 # National Semiconductor
|| $cid != 0x49; # LM96163
return if ($conf & 0x18) != 0x00
|| ($mask & 0xa4) != 0xa4;
}
return 6;