]> git.karo-electronics.de Git - linux-beck.git/commit
8250: add a UPIO_DWAPB32 for 32 bit accesses
authorJamie Iles <jamie@jamieiles.com>
Wed, 1 Dec 2010 23:39:36 +0000 (23:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 10 Dec 2010 23:19:38 +0000 (15:19 -0800)
commita3ae0fc34f58e7163b7724feb3d77aa4603f0dc3
tree05c435ba0ee0b071e3c45bcef33eac9f1fd37e80
parent49d5741be27aa90301b89bf254972b355ed9c8ee
8250: add a UPIO_DWAPB32 for 32 bit accesses

Some platforms contain a Synopsys DesignWare APB UART that is attached
to a 32-bit APB bus where sub-word accesses are not allowed. Add a new
IO type (UPIO_DWAPB32) that performs 32 bit acccesses to the UART.

v2:
- don't test for 32 bit in the output fast path, provide a
  separate dwabp32_serial_out() function. Refactor
  dwabp_serial_out() so that we can reuse the LCR saving
  code.
v3:
- rebased on top of "8250: use container_of() instead of
  casting"

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/8250.c
drivers/serial/serial_core.c
include/linux/serial_core.h