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

Patch from Philip Pokorny

This patch fixes a race condition in the lm85 driver and adds support for the
SMC EMC6D100 and EMC6D101.  The EMC6D100 and 101 chips have some additional
features that *are not* currently implemented in the driver, but the chip is
detected (by sensors-detect and the lm85 driver).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1740 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2003-05-31 00:24:07 +00:00
parent 7eb36a199a
commit 51b011307c
4 changed files with 74 additions and 20 deletions

View File

@@ -804,6 +804,12 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect 0x41, @_},
},
{
name => "SMSC EMC6D100 and EMC6D101",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect 0x5c, @_},
},
{
name => "National Semiconductor LM87",
driver => "lm87",
@@ -2234,6 +2240,7 @@ sub lm80_detect
# 0x3f == Version/Stepping register.
# Constants used: 0x01 == National Semiconductor Vendor Id.
# 0x41 == Analog Devices Vendor Id.
# 0x5c == SMSC Vendor Id.
# 0x60 == Version number. The lower 4 stepping
# bits are masked and ignored.
sub lm85_detect