1 Kernel driver smsc47b397
2 ========================
8 Addresses scanned: none, address read from Super I/O config space
9 Datasheet: In this file
11 Authors: Mark M. Hoffman <mhoffman@lightlink.com>
12 Utilitek Systems, Inc.
16 The following specification describes the SMSC LPC47B397-NC[1] sensor chip
17 (for which there is no public datasheet available). This document was
18 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
19 by Mark M. Hoffman <mhoffman@lightlink.com>.
21 [1] And SMSC SCH5307-NS, which has a different device ID but is otherwise
26 Methods for detecting the HP SIO and reading the thermal data on a dc7100.
28 The thermal information on the dc7100 is contained in the SIO Hardware Monitor
29 (HWM). The information is accessed through an index/data pair. The index/data
30 pair is located at the HWM Base Address + 0 and the HWM Base Address + 1. The
31 HWM Base address can be obtained from Logical Device 8, registers 0x60 (MSB)
32 and 0x61 (LSB). Currently we are using 0x480 for the HWM Base Address and
33 0x480 and 0x481 for the index/data pair.
35 Reading temperature information.
36 The temperature information is located in the following registers:
37 Temp1 0x25 (Currently, this reflects the CPU temp on all systems).
43 The following is an example of how to read the HWM temperature registers:
50 AL contains the data in hex, the temperature in Celsius is the decimal
53 Ex: If AL contains 0x2A, the temperature is 42 degrees C.
55 Reading tach information.
56 The fan speed information is located in the following registers:
58 Tach1 0x28 0x29 (Currently, this reflects the CPU
59 fan speed on all systems).
65 Reading the tach LSB locks the tach MSB.
66 The LSB Must be read first.
68 How to convert the tach reading to RPM.
69 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
70 The SIO counts the number of 90kHz (11.111us) pulses per revolution.
71 RPM = 60/(TCount * 11.111us)
79 RPM = 60 / (2203 * 11.11111 E-6) = 2451 RPM
81 Obtaining the SIO version.
83 CONFIGURATION SEQUENCE
84 To program the configuration registers, the following sequence must be followed:
85 1. Enter Configuration Mode
86 2. Configure the Configuration Registers
87 3. Exit Configuration Mode.
89 Enter Configuration Mode
90 To place the chip into the Configuration State The config key (0x55) is written
91 to the CONFIG PORT (0x2E).
94 In configuration mode, the INDEX PORT is located at the CONFIG PORT address and
95 the DATA PORT is at INDEX PORT address + 1.
97 The desired configuration registers are accessed in two steps:
98 a. Write the index of the Logical Device Number Configuration Register
99 (i.e., 0x07) to the INDEX PORT and then write the number of the
100 desired logical device to the DATA PORT.
102 b. Write the address of the desired configuration register within the
103 logical device to the INDEX PORT and then write or read the config-
104 uration register through the DATA PORT.
106 Note: If accessing the Global Configuration Registers, step (a) is not required.
108 Exit Configuration Mode
109 To exit the Configuration State the write 0xAA to the CONFIG PORT (0x2E).
110 The chip returns to the RUN State. (This is important).
113 The following is an example of how to read the SIO Device ID located at 0x20
115 ; ENTER CONFIGURATION MODE
119 ; GLOBAL CONFIGURATION REGISTER
126 ; EXIT CONFIGURATION MODE
131 The registers of interest for identifying the SIO on the dc7100 are Device ID
132 (0x20) and Device Rev (0x21).
134 The Device ID will read 0x6F (for SCH5307-NS, 0x81)
135 The Device Rev currently reads 0x01
137 Obtaining the HWM Base Address.
138 The following is an example of how to read the HWM Base Address located in
141 ; ENTER CONFIGURATION MODE
145 ; CONFIGURE REGISTER CRE0,
149 OUT DX,AL ;Point to LD# Config Reg
152 OUT DX,AL;Point to Logical Device 8
156 OUT DX,AL ; Point to HWM Base Addr MSB
158 IN AL,DX ; Get MSB of HWM Base Addr
159 ; EXIT CONFIGURATION MODE