diff options
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/bfin_serial.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin_serial.h b/arch/blackfin/include/asm/bfin_serial.h index e9510eab5e22..1ff9f1468c02 100644 --- a/arch/blackfin/include/asm/bfin_serial.h +++ b/arch/blackfin/include/asm/bfin_serial.h | |||
@@ -13,6 +13,17 @@ | |||
13 | #include <mach/anomaly.h> | 13 | #include <mach/anomaly.h> |
14 | #include <mach/bfin_serial.h> | 14 | #include <mach/bfin_serial.h> |
15 | 15 | ||
16 | #if defined(CONFIG_BFIN_UART0_CTSRTS) || \ | ||
17 | defined(CONFIG_BFIN_UART1_CTSRTS) || \ | ||
18 | defined(CONFIG_BFIN_UART2_CTSRTS) || \ | ||
19 | defined(CONFIG_BFIN_UART3_CTSRTS) | ||
20 | # ifdef BFIN_UART_BF54X_STYLE | ||
21 | # define CONFIG_SERIAL_BFIN_HARD_CTSRTS | ||
22 | # else | ||
23 | # define CONFIG_SERIAL_BFIN_CTSRTS | ||
24 | # endif | ||
25 | #endif | ||
26 | |||
16 | struct circ_buf; | 27 | struct circ_buf; |
17 | struct timer_list; | 28 | struct timer_list; |
18 | struct work_struct; | 29 | struct work_struct; |
@@ -203,6 +214,7 @@ struct bfin_uart_regs { | |||
203 | #define UART_PUT_LSR(p, v) bfin_write16(port_membase(p) + OFFSET_LSR, v) | 214 | #define UART_PUT_LSR(p, v) bfin_write16(port_membase(p) + OFFSET_LSR, v) |
204 | 215 | ||
205 | /* This handles hard CTS/RTS */ | 216 | /* This handles hard CTS/RTS */ |
217 | #define BFIN_UART_CTSRTS_HARD | ||
206 | #define UART_CLEAR_SCTS(p) bfin_write16((port_membase(p) + OFFSET_MSR), SCTS) | 218 | #define UART_CLEAR_SCTS(p) bfin_write16((port_membase(p) + OFFSET_MSR), SCTS) |
207 | #define UART_GET_CTS(x) (UART_GET_MSR(x) & CTS) | 219 | #define UART_GET_CTS(x) (UART_GET_MSR(x) & CTS) |
208 | #define UART_DISABLE_RTS(x) UART_PUT_MCR(x, UART_GET_MCR(x) & ~(ARTS | MRTS)) | 220 | #define UART_DISABLE_RTS(x) UART_PUT_MCR(x, UART_GET_MCR(x) & ~(ARTS | MRTS)) |