2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-02 07:15:39 +00:00

Add detection of ST Microelectronics STTS2002 and STTS3000.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6028 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2012-03-06 07:29:32 +00:00
parent 38158e4fe3
commit 8695f0f515
2 changed files with 26 additions and 2 deletions

View File

@@ -23,7 +23,9 @@ SVN HEAD
Add detection of National Semiconductor LM96080 Add detection of National Semiconductor LM96080
Add detection of ITE IT8771E Add detection of ITE IT8771E
Add detection of ITE IT8781F, IT8782F and IT8783F Add detection of ITE IT8781F, IT8782F and IT8783F
Add detection of ITE IT8510E/TE/G, IT8511E/TE/G, IT8513E/F/G, and IT8518E Add detection of ITE IT8510E/TE/G, IT8511E/TE/G,
IT8513E/F/G, and IT8518E
Add detection of ST Microelectronics STTS2002 and STTS3000
3.3.1 (2011-07-21) 3.3.1 (2011-07-21)
isadump: Add support for word (16-bit) and long (32-bit) reads isadump: Add support for word (16-bit) and long (32-bit) reads

View File

@@ -1349,6 +1349,16 @@ use vars qw(@i2c_adapter_names);
driver => "jc42", driver => "jc42",
i2c_addrs => [0x18..0x1f], i2c_addrs => [0x18..0x1f],
i2c_detect => sub { jedec_JC42_4_detect(@_, 10); }, i2c_detect => sub { jedec_JC42_4_detect(@_, 10); },
}, {
name => "ST STTS2002",
driver => "jc42",
i2c_addrs => [0x18..0x1f],
i2c_detect => sub { jedec_JC42_4_detect(@_, 11); },
}, {
name => "ST STTS3000",
driver => "jc42",
i2c_addrs => [0x18..0x1f],
i2c_detect => sub { jedec_JC42_4_detect(@_, 12); },
}, { }, {
name => "NXP SE97/SE97B", name => "NXP SE97/SE97B",
driver => "jc42", driver => "jc42",
@@ -5985,7 +5995,7 @@ sub max6655_detect
# Chip to detect: 0 = STTS424, 1 = SE97/SE97B, 2 = SE98, 3 = ADT7408, # Chip to detect: 0 = STTS424, 1 = SE97/SE97B, 2 = SE98, 3 = ADT7408,
# 4 = TS3000/TSE2002, 5 = MAX6604, 6 = MCP98242, # 4 = TS3000/TSE2002, 5 = MAX6604, 6 = MCP98242,
# 7 = MCP98243, 8 = MCP9843, 9 = CAT6095 / CAT34TS02, # 7 = MCP98243, 8 = MCP9843, 9 = CAT6095 / CAT34TS02,
# 10 = STTS424E # 10 = STTS424E, 11 = STTS2002, 12 = STTS3000
# Registers used: # Registers used:
# 0x00: Capabilities # 0x00: Capabilities
# 0x01: Configuration # 0x01: Configuration
@@ -6042,6 +6052,12 @@ sub jedec_JC42_4_detect
} elsif ($chip == 10) { } elsif ($chip == 10) {
return unless $manid == 0x10; # STMicrolectronics return unless $manid == 0x10; # STMicrolectronics
return unless $devid == 0x00; # STTS424E02 return unless $devid == 0x00; # STTS424E02
} elsif ($chip == 11) {
return unless $manid == 0x10; # STMicrolectronics
return unless $devid == 0x03; # STTS2002
} elsif ($chip == 12) {
return unless $manid == 0x10; # STMicrolectronics
return unless $devid == 0x02; # STTS3000
} }
# Now, do it all again with words. Note that we get # Now, do it all again with words. Note that we get
@@ -6087,6 +6103,12 @@ sub jedec_JC42_4_detect
} elsif ($chip == 10) { } elsif ($chip == 10) {
return unless $manid == 0x4a10; # STMicrolectronics return unless $manid == 0x4a10; # STMicrolectronics
return unless ($devid & 0xfeff) == 0x0000; # STTS424E02 return unless ($devid & 0xfeff) == 0x0000; # STTS424E02
} elsif ($chip == 11) {
return unless $manid == 0x4a10; # STMicrolectronics
return unless ($devid & 0xfeff) == 0x0003; # STTS2002
} elsif ($chip == 12) {
return unless $manid == 0x4a10; # STMicrolectronics
return unless ($devid & 0xfeff) == 0x0002; # STTS3000
} }
return 5; return 5;