sh: Support I/O space swapping where needed.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 29 Mar 2012 07:05:10 +0000 (16:05 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Mar 2012 07:05:10 +0000 (16:05 +0900)
commitb7e68d6876dfbab087bc3859211a9efc74cbe30c
tree25186c33a579a88116fbef38ba4849cc59c2d498
parent5e047fa159cf40733c627002d0443fddff3183c7
sh: Support I/O space swapping where needed.

This adopts a trimmed down version of the MIPS port mangling interface
limited to the I/O swabbing for platforms that can't use little endian
accessors. For platforms with mixed I/O spaces involving PCI it will
still be necessary to enable byte swapping at the host controller level.
Attention needs to be paid to all of host controller endianness, CPU
endianness, and whether I/O accesses are explicitly swapped or not via
SWAP_IO_SPACE. Fortunately the platforms that need this are in the
minority.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/include/asm/io.h
arch/sh/include/mach-common/mach/mangle-port.h [new file with mode: 0644]