mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
Add detection of SMSC EMC1423.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5888 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5cd466477f
commit
93d1315357
2 files changed
+10
-1
No files matched your search
@@ -9,6 +9,7 @@ SVN HEAD
|
||||
Add support for intrusion detection (#2370)
|
||||
sensors-detect: Improve LM90 and W83L771 detection
|
||||
Fix error seen if I2C bus numbers are not sequential
|
||||
Add detection of SMSC EMC1423
|
||||
|
||||
3.2.0 (2010-10-10)
|
||||
libsensors: Increase MAX_SENSORS_PER_TYPE to 24
|
||||
|
||||
@@ -1189,6 +1189,11 @@ use vars qw(@i2c_adapter_names);
|
||||
driver => "to-be-written", # emc1403
|
||||
i2c_addrs => [0x18, 0x2a, 0x4c, 0x4d],
|
||||
i2c_detect => sub { emc1403_detect(@_, 1); },
|
||||
}, {
|
||||
name => "SMSC EMC1423",
|
||||
driver => "emc1403",
|
||||
i2c_addrs => [0x18, 0x2a, 0x4c, 0x4d],
|
||||
i2c_detect => sub { emc1403_detect(@_, 3); },
|
||||
}, {
|
||||
name => "ST STTS424",
|
||||
driver => "jc42",
|
||||
@@ -5293,7 +5298,7 @@ sub fintek_detect
|
||||
return 7;
|
||||
}
|
||||
|
||||
# Chip to detect: 0 = EMC1403, 1 = EMC1404, 2 = EMC2103
|
||||
# Chip to detect: 0 = EMC1403, 1 = EMC1404, 2 = EMC2103, 3 = EMC1423
|
||||
# Registers used:
|
||||
# 0xfd: Device ID register
|
||||
# 0xfe: Vendor ID register
|
||||
@@ -5316,6 +5321,9 @@ sub emc1403_detect
|
||||
} elsif ($chip == 2) {
|
||||
return unless ($dev_id == 0x24) || ($dev_id == 0x26);
|
||||
return unless $rev == 0x01;
|
||||
} elsif ($chip == 3) {
|
||||
return unless $dev_id == 0x23;
|
||||
return unless $rev == 0x01;
|
||||
}
|
||||
|
||||
return 6;
|
||||
|
||||
Reference in new issue
Block a user