diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-07-24 23:57:42 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-07-24 23:57:42 -0400 |
commit | d5148ffa600e6a655b458bedc593020e0574f967 (patch) | |
tree | e53d7e8c7e18eef3d4fe3077b3f68005d16f9bf0 /drivers/serial/bfin_5xx.c | |
parent | 60e9356d770ca3622fe5e84680b78fc376e53fbf (diff) |
Blackfin arch: use the [CS]SYNC() macros which include anomaly workarounds rather than __builtin_bfin_[cs]sync()
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 66c92bc36f3d..1e79ee605d93 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -173,12 +173,12 @@ void kgdb_put_debug_char(int chr) | |||
173 | uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; | 173 | uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; |
174 | 174 | ||
175 | while (!(UART_GET_LSR(uart) & THRE)) { | 175 | while (!(UART_GET_LSR(uart) & THRE)) { |
176 | __builtin_bfin_ssync(); | 176 | SSYNC(); |
177 | } | 177 | } |
178 | UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); | 178 | UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); |
179 | __builtin_bfin_ssync(); | 179 | SSYNC(); |
180 | UART_PUT_CHAR(uart, (unsigned char)chr); | 180 | UART_PUT_CHAR(uart, (unsigned char)chr); |
181 | __builtin_bfin_ssync(); | 181 | SSYNC(); |
182 | } | 182 | } |
183 | 183 | ||
184 | int kgdb_get_debug_char(void) | 184 | int kgdb_get_debug_char(void) |
@@ -192,12 +192,12 @@ int kgdb_get_debug_char(void) | |||
192 | uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; | 192 | uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; |
193 | 193 | ||
194 | while(!(UART_GET_LSR(uart) & DR)) { | 194 | while(!(UART_GET_LSR(uart) & DR)) { |
195 | __builtin_bfin_ssync(); | 195 | SSYNC(); |
196 | } | 196 | } |
197 | UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); | 197 | UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); |
198 | __builtin_bfin_ssync(); | 198 | SSYNC(); |
199 | chr = UART_GET_CHAR(uart); | 199 | chr = UART_GET_CHAR(uart); |
200 | __builtin_bfin_ssync(); | 200 | SSYNC(); |
201 | 201 | ||
202 | return chr; | 202 | return chr; |
203 | } | 203 | } |
@@ -1203,7 +1203,7 @@ static int __init bfin_serial_init(void) | |||
1203 | IRQF_DISABLED, "BFIN_UART_RX", uart); | 1203 | IRQF_DISABLED, "BFIN_UART_RX", uart); |
1204 | pr_info("Request irq for kgdb uart port\n"); | 1204 | pr_info("Request irq for kgdb uart port\n"); |
1205 | UART_PUT_IER(uart, UART_GET_IER(uart) | ERBFI); | 1205 | UART_PUT_IER(uart, UART_GET_IER(uart) | ERBFI); |
1206 | __builtin_bfin_ssync(); | 1206 | SSYNC(); |
1207 | t.c_cflag = CS8|B57600; | 1207 | t.c_cflag = CS8|B57600; |
1208 | t.c_iflag = 0; | 1208 | t.c_iflag = 0; |
1209 | t.c_oflag = 0; | 1209 | t.c_oflag = 0; |