diff options
author | R.Marek@sh.cvut.cz <R.Marek@sh.cvut.cz> | 2005-05-26 08:42:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-22 00:52:02 -0400 |
commit | 2bf34a1ca9d570dd4fab4d95c4de82d873ecf718 (patch) | |
tree | 293f1c49c9b0f6bf9421905ef1c475c28ed3d496 /Documentation/i2c/chips | |
parent | 72cd799544f2b36c2f07ceaeed6d984cb130d4f3 (diff) |
[PATCH] I2C: documentation update 1/3
This patch just changes the extension of Documentation/i2c/chips/smsc47b397.txt
to none - to conform with naming in i2c subsystem directory.
Signed-off-by: Rudolf Marek <r.marek@sh.cvut.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/i2c/chips')
-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 | ||
73 | Enter Configuration Mode | 73 | Enter Configuration Mode |
74 | To place the chip into the Configuration State The config key (0x55) is written | 74 | To place the chip into the Configuration State The config key (0x55) is written |
75 | to the CONFIG PORT (0x2E). | 75 | to the CONFIG PORT (0x2E). |
76 | 76 | ||
77 | Configuration Mode | 77 | Configuration Mode |
78 | In configuration mode, the INDEX PORT is located at the CONFIG PORT address and | 78 | In configuration mode, the INDEX PORT is located at the CONFIG PORT address and |
79 | the DATA PORT is at INDEX PORT address + 1. | 79 | the DATA PORT is at INDEX PORT address + 1. |
80 | 80 | ||
81 | The desired configuration registers are accessed in two steps: | 81 | The desired configuration registers are accessed in two steps: |
82 | a. Write the index of the Logical Device Number Configuration Register | 82 | a. 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 | ||
86 | b. Write the address of the desired configuration register within the | 86 | b. 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 | ||
90 | Note: If accessing the Global Configuration Registers, step (a) is not required. | 90 | Note: 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). | |||
96 | Programming Example | 96 | Programming Example |
97 | The following is an example of how to read the SIO Device ID located at 0x20 | 97 | The 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 |
100 | MOV DX,02EH | 100 | MOV DX,02EH |
101 | MOV AX,055H | 101 | MOV AX,055H |
102 | OUT DX,AL | 102 | OUT DX,AL |
103 | ; GLOBAL CONFIGURATION REGISTER | 103 | ; GLOBAL CONFIGURATION REGISTER |
104 | MOV DX,02EH | 104 | MOV DX,02EH |
105 | MOV AL,20H | 105 | MOV AL,20H |
106 | OUT DX,AL | 106 | OUT DX,AL |
107 | ; READ THE DATA | 107 | ; READ THE DATA |
108 | MOV DX,02FH | 108 | MOV DX,02FH |
109 | IN AL,DX | 109 | IN AL,DX |
110 | ; EXIT CONFIGURATION MODE | 110 | ; EXIT CONFIGURATION MODE |
111 | MOV DX,02EH | 111 | MOV DX,02EH |
112 | MOV AX,0AAH | 112 | MOV AX,0AAH |
113 | OUT DX,AL | 113 | OUT DX,AL |
@@ -122,12 +122,12 @@ Obtaining the HWM Base Address. | |||
122 | The following is an example of how to read the HWM Base Address located in | 122 | The following is an example of how to read the HWM Base Address located in |
123 | Logical Device 8. | 123 | Logical Device 8. |
124 | 124 | ||
125 | ; ENTER CONFIGURATION MODE | 125 | ; ENTER CONFIGURATION MODE |
126 | MOV DX,02EH | 126 | MOV DX,02EH |
127 | MOV AX,055H | 127 | MOV AX,055H |
128 | OUT DX,AL | 128 | OUT DX,AL |
129 | ; CONFIGURE REGISTER CRE0, | 129 | ; CONFIGURE REGISTER CRE0, |
130 | ; LOGICAL DEVICE 8 | 130 | ; LOGICAL DEVICE 8 |
131 | MOV DX,02EH | 131 | MOV DX,02EH |
132 | MOV AL,07H | 132 | MOV AL,07H |
133 | OUT DX,AL ;Point to LD# Config Reg | 133 | OUT DX,AL ;Point to LD# Config Reg |
@@ -135,12 +135,12 @@ MOV DX,02FH | |||
135 | MOV AL, 08H | 135 | MOV AL, 08H |
136 | OUT DX,AL;Point to Logical Device 8 | 136 | OUT DX,AL;Point to Logical Device 8 |
137 | ; | 137 | ; |
138 | MOV DX,02EH | 138 | MOV DX,02EH |
139 | MOV AL,60H | 139 | MOV AL,60H |
140 | OUT DX,AL ; Point to HWM Base Addr MSB | 140 | OUT DX,AL ; Point to HWM Base Addr MSB |
141 | MOV DX,02FH | 141 | MOV DX,02FH |
142 | IN AL,DX ; Get MSB of HWM Base Addr | 142 | IN AL,DX ; Get MSB of HWM Base Addr |
143 | ; EXIT CONFIGURATION MODE | 143 | ; EXIT CONFIGURATION MODE |
144 | MOV DX,02EH | 144 | MOV DX,02EH |
145 | MOV AX,0AAH | 145 | MOV AX,0AAH |
146 | OUT DX,AL | 146 | OUT DX,AL |