diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-04-07 11:51:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:44:05 -0400 |
commit | 6f95570e407d03c5140a220e054f9b18abdc7041 (patch) | |
tree | d239c58f148bf0644ee38c86da0fdd36f204240d /arch | |
parent | 1dcb884ca8048efb4ce2999d367c26369ab2227c (diff) |
Change hardware flow control from poll to interrupt driven
Only the CTS bit is affected.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
5 files changed, 0 insertions, 138 deletions
diff --git a/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h index e8c41fd842b5..d2b160c14f04 100644 --- a/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h +++ b/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h | |||
@@ -167,29 +167,3 @@ struct bfin_serial_res bfin_serial_resource[] = { | |||
167 | }; | 167 | }; |
168 | 168 | ||
169 | #define DRIVER_NAME "bfin-uart" | 169 | #define DRIVER_NAME "bfin-uart" |
170 | |||
171 | static void bfin_serial_hw_init(struct bfin_serial_port *uart) | ||
172 | { | ||
173 | |||
174 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
175 | peripheral_request(P_UART0_TX, DRIVER_NAME); | ||
176 | peripheral_request(P_UART0_RX, DRIVER_NAME); | ||
177 | #endif | ||
178 | |||
179 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
180 | peripheral_request(P_UART1_TX, DRIVER_NAME); | ||
181 | peripheral_request(P_UART1_RX, DRIVER_NAME); | ||
182 | #endif | ||
183 | |||
184 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | ||
185 | if (uart->cts_pin >= 0) { | ||
186 | gpio_request(uart->cts_pin, DRIVER_NAME); | ||
187 | gpio_direction_input(uart->cts_pin); | ||
188 | } | ||
189 | |||
190 | if (uart->rts_pin >= 0) { | ||
191 | gpio_request(uart->rts_pin, DRIVER_NAME); | ||
192 | gpio_direction_output(uart->rts_pin, 0); | ||
193 | } | ||
194 | #endif | ||
195 | } | ||
diff --git a/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h index 5f517f53b0fd..70356ddf8509 100644 --- a/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h +++ b/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h | |||
@@ -142,23 +142,3 @@ struct bfin_serial_res bfin_serial_resource[] = { | |||
142 | }; | 142 | }; |
143 | 143 | ||
144 | #define DRIVER_NAME "bfin-uart" | 144 | #define DRIVER_NAME "bfin-uart" |
145 | |||
146 | static void bfin_serial_hw_init(struct bfin_serial_port *uart) | ||
147 | { | ||
148 | |||
149 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
150 | peripheral_request(P_UART0_TX, DRIVER_NAME); | ||
151 | peripheral_request(P_UART0_RX, DRIVER_NAME); | ||
152 | #endif | ||
153 | |||
154 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | ||
155 | if (uart->cts_pin >= 0) { | ||
156 | gpio_request(uart->cts_pin, DRIVER_NAME); | ||
157 | gpio_direction_input(uart->cts_pin); | ||
158 | } | ||
159 | if (uart->rts_pin >= 0) { | ||
160 | gpio_request(uart->rts_pin, DRIVER_NAME); | ||
161 | gpio_direction_output(uart->rts_pin, 0); | ||
162 | } | ||
163 | #endif | ||
164 | } | ||
diff --git a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h index 9e34700844a2..d46fc4f50cf2 100644 --- a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h +++ b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h | |||
@@ -99,7 +99,6 @@ struct bfin_serial_port { | |||
99 | struct work_struct tx_dma_workqueue; | 99 | struct work_struct tx_dma_workqueue; |
100 | #endif | 100 | #endif |
101 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | 101 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS |
102 | struct timer_list cts_timer; | ||
103 | int cts_pin; | 102 | int cts_pin; |
104 | int rts_pin; | 103 | int rts_pin; |
105 | #endif | 104 | #endif |
@@ -167,29 +166,3 @@ struct bfin_serial_res bfin_serial_resource[] = { | |||
167 | }; | 166 | }; |
168 | 167 | ||
169 | #define DRIVER_NAME "bfin-uart" | 168 | #define DRIVER_NAME "bfin-uart" |
170 | |||
171 | static void bfin_serial_hw_init(struct bfin_serial_port *uart) | ||
172 | { | ||
173 | |||
174 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
175 | peripheral_request(P_UART0_TX, DRIVER_NAME); | ||
176 | peripheral_request(P_UART0_RX, DRIVER_NAME); | ||
177 | #endif | ||
178 | |||
179 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
180 | peripheral_request(P_UART1_TX, DRIVER_NAME); | ||
181 | peripheral_request(P_UART1_RX, DRIVER_NAME); | ||
182 | #endif | ||
183 | |||
184 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | ||
185 | if (uart->cts_pin >= 0) { | ||
186 | gpio_request(uart->cts_pin, DRIVER_NAME); | ||
187 | gpio_direction_input(uart->cts_pin); | ||
188 | } | ||
189 | |||
190 | if (uart->rts_pin >= 0) { | ||
191 | gpio_request(uart->rts_pin, DRIVER_NAME); | ||
192 | gpio_direction_output(uart->rts_pin, 0); | ||
193 | } | ||
194 | #endif | ||
195 | } | ||
diff --git a/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h index c05e79cba257..388e2328aeba 100644 --- a/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h +++ b/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h | |||
@@ -181,48 +181,3 @@ struct bfin_serial_res bfin_serial_resource[] = { | |||
181 | }; | 181 | }; |
182 | 182 | ||
183 | #define DRIVER_NAME "bfin-uart" | 183 | #define DRIVER_NAME "bfin-uart" |
184 | |||
185 | static void bfin_serial_hw_init(struct bfin_serial_port *uart) | ||
186 | { | ||
187 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
188 | peripheral_request(P_UART0_TX, DRIVER_NAME); | ||
189 | peripheral_request(P_UART0_RX, DRIVER_NAME); | ||
190 | #endif | ||
191 | |||
192 | #ifdef CONFIG_SERIAL_BFIN_UART1 | ||
193 | peripheral_request(P_UART1_TX, DRIVER_NAME); | ||
194 | peripheral_request(P_UART1_RX, DRIVER_NAME); | ||
195 | |||
196 | #ifdef CONFIG_BFIN_UART1_CTSRTS | ||
197 | peripheral_request(P_UART1_RTS, DRIVER_NAME); | ||
198 | peripheral_request(P_UART1_CTS, DRIVER_NAME); | ||
199 | #endif | ||
200 | #endif | ||
201 | |||
202 | #ifdef CONFIG_SERIAL_BFIN_UART2 | ||
203 | peripheral_request(P_UART2_TX, DRIVER_NAME); | ||
204 | peripheral_request(P_UART2_RX, DRIVER_NAME); | ||
205 | #endif | ||
206 | |||
207 | #ifdef CONFIG_SERIAL_BFIN_UART3 | ||
208 | peripheral_request(P_UART3_TX, DRIVER_NAME); | ||
209 | peripheral_request(P_UART3_RX, DRIVER_NAME); | ||
210 | |||
211 | #ifdef CONFIG_BFIN_UART3_CTSRTS | ||
212 | peripheral_request(P_UART3_RTS, DRIVER_NAME); | ||
213 | peripheral_request(P_UART3_CTS, DRIVER_NAME); | ||
214 | #endif | ||
215 | #endif | ||
216 | SSYNC(); | ||
217 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | ||
218 | if (uart->cts_pin >= 0) { | ||
219 | gpio_request(uart->cts_pin, DRIVER_NAME); | ||
220 | gpio_direction_input(uart->cts_pin); | ||
221 | } | ||
222 | |||
223 | if (uart->rts_pin >= 0) { | ||
224 | gpio_request(uart->rts_pin, DRIVER_NAME); | ||
225 | gpio_direction_output(uart->rts_pin, 0); | ||
226 | } | ||
227 | #endif | ||
228 | } | ||
diff --git a/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h index ca8c5f645209..d0469e3e16d8 100644 --- a/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h +++ b/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h | |||
@@ -142,23 +142,3 @@ struct bfin_serial_res bfin_serial_resource[] = { | |||
142 | }; | 142 | }; |
143 | 143 | ||
144 | #define DRIVER_NAME "bfin-uart" | 144 | #define DRIVER_NAME "bfin-uart" |
145 | |||
146 | static void bfin_serial_hw_init(struct bfin_serial_port *uart) | ||
147 | { | ||
148 | |||
149 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
150 | peripheral_request(P_UART0_TX, DRIVER_NAME); | ||
151 | peripheral_request(P_UART0_RX, DRIVER_NAME); | ||
152 | #endif | ||
153 | |||
154 | #ifdef CONFIG_SERIAL_BFIN_CTSRTS | ||
155 | if (uart->cts_pin >= 0) { | ||
156 | gpio_request(uart->cts_pin, DRIVER_NAME); | ||
157 | gpio_direction_input(uart->cts_pin); | ||
158 | } | ||
159 | if (uart->rts_pin >= 0) { | ||
160 | gpio_request(uart->rts_pin, DRIVER_NAME); | ||
161 | gpio_direction_output(uart->rts_pin, 0); | ||
162 | } | ||
163 | #endif | ||
164 | } | ||