2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Add detection of the SMSC EMC2103. Patch from Steve Glendinning (SMSC).

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5838 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2010-06-07 09:30:14 +00:00
parent 78dc2534ee
commit ac9059c09e
2 changed files with 10 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ SVN HEAD
Add support for Intel PCH (SMBus)
Add support for SMSC EMC1403 and EMC1404
Fix detection of RB-C3 AMD Family 10h CPU
Add support for SMSC EMC2103
3.1.2 (2010-02-02)
libsensors: Support upcoming sysfs path to i2c adapters

View File

@@ -1129,6 +1129,11 @@ use vars qw(@i2c_adapter_names);
driver => "dme1737",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { dme1737_detect(@_, 2); },
}, {
name => "SMSC EMC2103",
driver => "emc2103",
i2c_addrs => [0x2e],
i2c_detect => sub { emc1403_detect(@_, 2); },
}, {
name => "Fintek F75121R/F75122R/RG (VID+GPIO)",
driver => "to-be-written",
@@ -5143,7 +5148,7 @@ sub fintek_detect
return 7;
}
# Chip to detect: 0 = EMC1403, 1 = EMC1404
# Chip to detect: 0 = EMC1403, 1 = EMC1404, 2 = EMC2103
# Registers used:
# 0xfd: Device ID register
# 0xfe: Vendor ID register
@@ -5163,6 +5168,9 @@ sub emc1403_detect
} elsif ($chip == 1) {
return unless $dev_id == 0x25;
return unless $rev == 0x01;
} elsif ($chip == 2) {
return unless ($dev_id == 0x24) || ($dev_id == 0x26);
return unless $rev == 0x01;
}
return 6;