]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba0fd5ef25a37215afb3c8be430b038fe8547668
tree25186c33a579a88116fbef38ba4849cc59c2d498
parentea4995c36dda23578ab0da172d750cf782b42650
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]