]> 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)
commit02ecc281637836ac12eaaec4d0bc92dd8a49330d
tree18b8c192f0d6b3e6c21f4a93316c06763576a5d7
parent3e0a592fe64253dca83ad4e44657046bdfc01dd9
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