]> git.baikalelectronics.ru Git - kernel.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)
commit5491572ee264e2a8f01a33fe992ee36cd5baca29
treef7faaeb9303a8fe56215f1c5a69ccb196f12765e
parentc0c103fc84dd2dc16372a051911bccb1b693d85f
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