OSDN Git Service

tty: serial: uartlite: Support uartlite on big and little endian systems
authorMichal Simek <michal.simek@xilinx.com>
Mon, 11 Feb 2013 18:04:34 +0000 (19:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Feb 2013 16:38:45 +0000 (08:38 -0800)
commit6d53c3b71d32da665dc2742c1e8663741f27d3cd
tree66936c3b7c8145e6c48bc768afa3efa898345b41
parent3240b48d492b368339a8a5cb3a4dc5b35432ef43
tty: serial: uartlite: Support uartlite on big and little endian systems

Use big and little endian accessors function to reflect system configuration.
Detection is done via control register in ulite_request_port.

Tested on Microblaze LE, BE, PPC440 and Arm zynq.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c