summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-bf533/include/mach
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2009-07-01 07:43:23 (GMT)
committerMike Frysinger <vapier@gentoo.org>2009-07-16 05:52:30 (GMT)
commitf1c717fbf89f5a24d539ecf4baa5d4c3888e3bf9 (patch)
treef65f449264013656e2211d854277e6d6371f1f39 /arch/blackfin/mach-bf533/include/mach
parent10a5ecd03f9f5c374f954cf50a4f85d73f8ce338 (diff)
downloadlinux-f1c717fbf89f5a24d539ecf4baa5d4c3888e3bf9.tar.xz
Blackfin: fix wrong CTS inversion
The Blackfin serial headers were inverting the CTS value leading to wrong handling of the CTS line which broke CTS/RTS handling completely. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf533/include/mach')
-rw-r--r--arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h2
1 files changed, 1 insertions, 1 deletions
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 a3789d7..4062e24 100644
--- a/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
@@ -53,7 +53,7 @@
#define UART_SET_DLAB(uart) do { UART_PUT_LCR(uart, UART_GET_LCR(uart) | DLAB); SSYNC(); } while (0)
#define UART_CLEAR_DLAB(uart) do { UART_PUT_LCR(uart, UART_GET_LCR(uart) & ~DLAB); SSYNC(); } while (0)
-#define UART_GET_CTS(x) (!gpio_get_value(x->cts_pin))
+#define UART_GET_CTS(x) gpio_get_value(x->cts_pin)
#define UART_DISABLE_RTS(x) gpio_set_value(x->rts_pin, 1)
#define UART_ENABLE_RTS(x) gpio_set_value(x->rts_pin, 0)
#define UART_ENABLE_INTS(x, v) UART_PUT_IER(x, v)