From 4c63be0361045903e52511e877e076469179abc1 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 8 Nov 2011 09:10:11 +0000 Subject: [PATCH] Add detection of National Semiconductor LM96163. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5997 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index ed2abbcb..d4f0c451 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 063c40ea..9aacb632 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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;