]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Add big-endian iotype
authorKevin Cernekee <cernekee@gmail.com>
Wed, 12 Nov 2014 20:53:59 +0000 (12:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:40 +0000 (17:06 -0800)
commitb64c76ffc6f7c61d411a9fbe6d723e7cb18a58a2
tree18b8c192f0d6b3e6c21f4a93316c06763576a5d7
parent950a1500d1a323cf08e91387c3fee8612560539d
serial: core: Add big-endian iotype

Since most drivers interpret UPIO_MEM32 to mean "little-endian" and use
readl/writel to access the registers, add a parallel UPIO_MEM32BE to
request the use of big-endian MMIO accessors (ioread32be/iowrite32be).

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h