diff options
author | Qipan Li <Qipan.Li@csr.com> | 2013-08-15 06:52:15 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-14 18:33:08 -0700 |
commit | 2eb5618de87927e540055edc625b22f2d5662ab5 (patch) | |
tree | 87852ae0db68a69b7eab5fcfc43693d0a9df40c9 /drivers/tty/serial/sirfsoc_uart.h | |
parent | a343756e07884e4cecd3a4297de7f121e5bb8829 (diff) | |
download | talos-obmc-linux-2eb5618de87927e540055edc625b22f2d5662ab5.tar.gz talos-obmc-linux-2eb5618de87927e540055edc625b22f2d5662ab5.zip |
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>
Diffstat (limited to 'drivers/tty/serial/sirfsoc_uart.h')
-rw-r--r-- | drivers/tty/serial/sirfsoc_uart.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h index 2b41b06362df..e87035a9bbcb 100644 --- a/drivers/tty/serial/sirfsoc_uart.h +++ b/drivers/tty/serial/sirfsoc_uart.h @@ -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 */ |