]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sirf: make the driver also support USP-based UART
authorQipan Li <Qipan.Li@csr.com>
Mon, 12 Aug 2013 10:15:35 +0000 (18:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:29:53 +0000 (11:29 -0700)
commit5df831117b85a08e7aa469dda97d2ee02181d083
tree3a3c627ebea1eb67a2d6d9b49189f404ed65ea95
parent909102db44faf40bae96d8f9d23de79e1ca0853a
serial: sirf: make the driver also support USP-based UART

Universal Serial Ports (USP) can be used as PCM, UART, SPI,
I2S etc. this makes the USP work as UART. the basic work
flow is same with UART controller, the main difference will
be offset of registers and bits.

this patch makes the old sirfsoc uart driver support both
sirf UART and USP-based UART by making their differences
become private data.

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>
drivers/tty/serial/sirfsoc_uart.c
drivers/tty/serial/sirfsoc_uart.h