]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Support endian agnostic MMIO
authorIan Munsie <imunsie@au1.ibm.com>
Mon, 23 Sep 2013 02:04:40 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:29 +0000 (16:48 +1100)
commit15cba23e69435c86197d6e5035445469ca2b8484
treef7faaeb9303a8fe56215f1c5a69ccb196f12765e
parent926f160f460170b0361f600f365369685ad74009
powerpc: Support endian agnostic MMIO

This patch maps the MMIO functions for 32bit PowerPC to their
appropriate instructions depending on CPU endianness.

The macros used to create the corresponding inline functions are also
renamed by this patch. Previously they had BE or LE in their names which
was misleading - they had nothing to do with endianness, but actually
created different instruction forms so their new names reflect the
instruction form they are creating (D-Form and X-Form).

Little endian 64bit PowerPC is not supported, so the lack of mappings
(and corresponding breakage) for that case is intentional to bring the
attention of anyone doing a 64bit little endian port. 64bit big endian
is unaffected.

[ Added 64 bit versions - Anton ]

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/io.h