aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/i2c/chips/smsc47b397 (renamed from Documentation/i2c/chips/smsc47b397.txt)24
1 files changed, 12 insertions, 12 deletions
diff --git a/Documentation/i2c/chips/smsc47b397.txt b/Documentation/i2c/chips/smsc47b397
index 389edae7f8df..4737bb6109da 100644
--- a/Documentation/i2c/chips/smsc47b397.txt
+++ b/Documentation/i2c/chips/smsc47b397
@@ -72,20 +72,20 @@ To program the configuration registers, the following sequence must be followed:
72 72
73Enter Configuration Mode 73Enter Configuration Mode
74To place the chip into the Configuration State The config key (0x55) is written 74To place the chip into the Configuration State The config key (0x55) is written
75to the CONFIG PORT (0x2E). 75to the CONFIG PORT (0x2E).
76 76
77Configuration Mode 77Configuration Mode
78In configuration mode, the INDEX PORT is located at the CONFIG PORT address and 78In configuration mode, the INDEX PORT is located at the CONFIG PORT address and
79the DATA PORT is at INDEX PORT address + 1. 79the DATA PORT is at INDEX PORT address + 1.
80 80
81The desired configuration registers are accessed in two steps: 81The desired configuration registers are accessed in two steps:
82a. Write the index of the Logical Device Number Configuration Register 82a. Write the index of the Logical Device Number Configuration Register
83 (i.e., 0x07) to the INDEX PORT and then write the number of the 83 (i.e., 0x07) to the INDEX PORT and then write the number of the
84 desired logical device to the DATA PORT. 84 desired logical device to the DATA PORT.
85 85
86b. Write the address of the desired configuration register within the 86b. Write the address of the desired configuration register within the
87 logical device to the INDEX PORT and then write or read the config- 87 logical device to the INDEX PORT and then write or read the config-
88 uration register through the DATA PORT. 88 uration register through the DATA PORT.
89 89
90Note: If accessing the Global Configuration Registers, step (a) is not required. 90Note: If accessing the Global Configuration Registers, step (a) is not required.
91 91
@@ -96,18 +96,18 @@ The chip returns to the RUN State. (This is important).
96Programming Example 96Programming Example
97The following is an example of how to read the SIO Device ID located at 0x20 97The following is an example of how to read the SIO Device ID located at 0x20
98 98
99; ENTER CONFIGURATION MODE 99; ENTER CONFIGURATION MODE
100MOV DX,02EH 100MOV DX,02EH
101MOV AX,055H 101MOV AX,055H
102OUT DX,AL 102OUT DX,AL
103; GLOBAL CONFIGURATION REGISTER 103; GLOBAL CONFIGURATION REGISTER
104MOV DX,02EH 104MOV DX,02EH
105MOV AL,20H 105MOV AL,20H
106OUT DX,AL 106OUT DX,AL
107; READ THE DATA 107; READ THE DATA
108MOV DX,02FH 108MOV DX,02FH
109IN AL,DX 109IN AL,DX
110; EXIT CONFIGURATION MODE 110; EXIT CONFIGURATION MODE
111MOV DX,02EH 111MOV DX,02EH
112MOV AX,0AAH 112MOV AX,0AAH
113OUT DX,AL 113OUT DX,AL
@@ -122,12 +122,12 @@ Obtaining the HWM Base Address.
122The following is an example of how to read the HWM Base Address located in 122The following is an example of how to read the HWM Base Address located in
123Logical Device 8. 123Logical Device 8.
124 124
125; ENTER CONFIGURATION MODE 125; ENTER CONFIGURATION MODE
126MOV DX,02EH 126MOV DX,02EH
127MOV AX,055H 127MOV AX,055H
128OUT DX,AL 128OUT DX,AL
129; CONFIGURE REGISTER CRE0, 129; CONFIGURE REGISTER CRE0,
130; LOGICAL DEVICE 8 130; LOGICAL DEVICE 8
131MOV DX,02EH 131MOV DX,02EH
132MOV AL,07H 132MOV AL,07H
133OUT DX,AL ;Point to LD# Config Reg 133OUT DX,AL ;Point to LD# Config Reg
@@ -135,12 +135,12 @@ MOV DX,02FH
135MOV AL, 08H 135MOV AL, 08H
136OUT DX,AL;Point to Logical Device 8 136OUT DX,AL;Point to Logical Device 8
137; 137;
138MOV DX,02EH 138MOV DX,02EH
139MOV AL,60H 139MOV AL,60H
140OUT DX,AL ; Point to HWM Base Addr MSB 140OUT DX,AL ; Point to HWM Base Addr MSB
141MOV DX,02FH 141MOV DX,02FH
142IN AL,DX ; Get MSB of HWM Base Addr 142IN AL,DX ; Get MSB of HWM Base Addr
143; EXIT CONFIGURATION MODE 143; EXIT CONFIGURATION MODE
144MOV DX,02EH 144MOV DX,02EH
145MOV AX,0AAH 145MOV AX,0AAH
146OUT DX,AL 146OUT DX,AL