Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61799
b: refs/heads/master
c: 2dbbdb3
h: refs/heads/master
i:
  61797: 5050aaf
  61795: f7350cf
  61791: bff5676
v: v3
  • Loading branch information
Juerg Haefliger authored and Mark M. Hoffman committed Jul 19, 2007
1 parent c4be50a commit 5d82cee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b74f3fdd98c7186930b8ee841dc542dfdba95473
refs/heads/master: 2dbbdb35746fdc1a3c3bc5b07f197a90e53b059e
7 changes: 4 additions & 3 deletions trunk/Documentation/hwmon/smsc47b397
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Kernel driver smsc47b397
Supported chips:
* SMSC LPC47B397-NC
* SMSC SCH5307-NS
* SMSC SCH5317
Prefix: 'smsc47b397'
Addresses scanned: none, address read from Super I/O config space
Datasheet: In this file
Expand All @@ -18,8 +19,8 @@ The following specification describes the SMSC LPC47B397-NC[1] sensor chip
provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
by Mark M. Hoffman <mhoffman@lightlink.com>.

[1] And SMSC SCH5307-NS, which has a different device ID but is otherwise
compatible.
[1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are
otherwise compatible.

* * * * *

Expand Down Expand Up @@ -131,7 +132,7 @@ OUT DX,AL
The registers of interest for identifying the SIO on the dc7100 are Device ID
(0x20) and Device Rev (0x21).

The Device ID will read 0x6F (for SCH5307-NS, 0x81)
The Device ID will read 0x6F (0x81 for SCH5307-NS, and 0x85 for SCH5317)
The Device Rev currently reads 0x01

Obtaining the HWM Base Address.
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/hwmon/smsc47b397.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static int __init smsc47b397_find(unsigned short *addr)
superio_enter();
id = superio_inb(SUPERIO_REG_DEVID);

if ((id != 0x6f) && (id != 0x81)) {
if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) {
superio_exit();
return -ENODEV;
}
Expand All @@ -346,7 +346,8 @@ static int __init smsc47b397_find(unsigned short *addr)

printk(KERN_INFO DRVNAME ": found SMSC %s "
"(base address 0x%04x, revision %u)\n",
id == 0x81 ? "SCH5307-NS" : "LPC47B397-NC", *addr, rev);
id == 0x81 ? "SCH5307-NS" : id == 0x85 ? "SCH5317" :
"LPC47B397-NC", *addr, rev);

superio_exit();
return 0;
Expand Down

0 comments on commit 5d82cee

Please sign in to comment.