tty: serial8250: add helpers for the DesignWare 8250
authorJamie Iles <jamie@jamieiles.com>
Tue, 16 Aug 2011 16:47:46 +0000 (17:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 17:54:19 +0000 (10:54 -0700)
commit6b1a98d1c4851235d9b6764b3f7b7db7909fc760
treec394ab3f6fc315dbfa890b768584a5d7b730d5a8
parent4834d028978583dfe8e1fc19f1180ceb03d8dfb7
tty: serial8250: add helpers for the DesignWare 8250

The Synopsys DesignWare 8250 is an 8250 that has an extra interrupt that
gets raised when writing to the LCR when busy.  To handle this we need
special serial_out, serial_in and handle_irq methods.  Add a new
function serial8250_use_designware_io() that configures a uart_port with
these accessors.

Cc: Alan Cox <alan@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/8250_dw.c [new file with mode: 0644]
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
include/linux/serial_8250.h