2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +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:
Jean Delvare
2010-12-10 13:05:59 +00:00
parent 5cd466477f
commit 93d1315357
2 changed files with 10 additions and 1 deletions

View File

@@ -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;