serial: sirf: fix the hardware-flow-ctrl for USP-based UART

for USP-based UART, we use two gpios as RTS and CST pins.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Qipan Li
2013-08-15 06:52:15 +08:00
committed by Greg Kroah-Hartman
parent a343756e07
commit 2eb5618de8
2 changed files with 122 additions and 45 deletions

View File

@@ -363,14 +363,16 @@ struct sirfsoc_baudrate_to_regv {
};
struct sirfsoc_uart_port {
unsigned char hw_flow_ctrl;
unsigned char ms_enabled;
bool hw_flow_ctrl;
bool ms_enabled;
struct uart_port port;
struct clk *clk;
/* for SiRFmarco, there are SET/CLR for UART_INT_EN */
bool is_marco;
struct sirfsoc_uart_register *uart_reg;
unsigned int cts_gpio;
unsigned int rts_gpio;
};
/* Hardware Flow Control */