2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

sensors-detect: Add detection of EMC6D103S

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5934 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Guenter Roeck
2011-02-18 17:58:41 +00:00
parent 810742f0da
commit ee7271756f
2 changed files with 12 additions and 2 deletions

View File

@@ -551,6 +551,11 @@ use vars qw(@i2c_adapter_names);
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 6); },
}, {
name => "SMSC EMC6D103S",
driver => "to-be-written", # lm85
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 8); },
}, {
name => "Winbond WPCD377I",
driver => "not-a-sensor",
@@ -4741,7 +4746,7 @@ sub andigilog_aSC7511_detect
# Chip to detect: 0 = LM85, 1 = LM96000, 2 = ADM1027, 3 = ADT7463,
# 4 = EMC6D100/101, 5 = EMC6D102, 6 = EMC6D103,
# 7 = WPCD377I (no sensors)
# 7 = WPCD377I (no sensors), 8 = EMC6D103S
# Registers used:
# 0x3e: Vendor register
# 0x3d: Device ID register (Analog Devices only)
@@ -4776,7 +4781,11 @@ sub lm85_detect
return if $verstep != 0x65; # EMC6D102
} elsif ($chip == 6) {
return if $vendor != 0x5c; # SMSC
return if $verstep != 0x68; # EMC6D103
return if $verstep != 0x68 # EMC6D103 A0
&& $verstep != 0x69; # EMC6D103 A1
} elsif ($chip == 8) {
return if $vendor != 0x5c; # SMSC
return if $verstep != 0x6a; # EMC6D103S
}
if ($vendor == 0x41) { # Analog Devices