Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10633
b: refs/heads/master
c: 7ab83a9
h: refs/heads/master
i:
  10631: 4f1f510
v: v3
  • Loading branch information
Mark M. Hoffman authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent 94c757e commit ffaa2a1
Show file tree
Hide file tree
Showing 3 changed files with 11 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: 1747ef1b8c9b7b9c6a9aae3543a9b99acabb7e10
refs/heads/master: 7ab83a9137ccd3e092fb6ad0cb105b4d1fb617ae
8 changes: 6 additions & 2 deletions trunk/Documentation/hwmon/smsc47b397
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Kernel driver smsc47b397

Supported chips:
* SMSC LPC47B397-NC
* SMSC SCH5307-NS
Prefix: 'smsc47b397'
Addresses scanned: none, address read from Super I/O config space
Datasheet: In this file
Expand All @@ -12,11 +13,14 @@ Authors: Mark M. Hoffman <mhoffman@lightlink.com>

November 23, 2004

The following specification describes the SMSC LPC47B397-NC sensor chip
The following specification describes the SMSC LPC47B397-NC[1] sensor chip
(for which there is no public datasheet available). This document was
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.

* * * * *

Methods for detecting the HP SIO and reading the thermal data on a dc7100.
Expand Down Expand Up @@ -127,7 +131,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
The Device ID will read 0x6F (for SCH5307-NS, 0x81)
The Device Rev currently reads 0x01

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

if (id != 0x6f) {
if ((id != 0x6f) && (id != 0x81)) {
superio_exit();
return -ENODEV;
}
Expand All @@ -310,8 +310,9 @@ static int __init smsc47b397_find(unsigned short *addr)
*addr = (superio_inb(SUPERIO_REG_BASE_MSB) << 8)
| superio_inb(SUPERIO_REG_BASE_LSB);

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

superio_exit();
return 0;
Expand Down

0 comments on commit ffaa2a1

Please sign in to comment.