linux/arch/mips/include/asm/mach-ip27
Thomas Bogendoerfer 10cf8300ec
MIPS: SGI-IP27: fix readb/writeb addressing
Our chosen byte swapping, which is what firmware already uses, is to
do readl/writel by normal lw/sw intructions (data invariance). This
also means we need to mangle addresses for u8 and u16 accesses. The
mangling for 16bit has been done aready, but 8bit one was missing.
Correcting this causes different addresses for accesses to the
SuperIO and local bus of the IOC3 chip. This is fixed by changing
byte order in ioc3 and m48rtc_rtc structs.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
2020-01-09 15:30:56 -08:00
..
cpu-feature-overrides.h MIPS16e2: Provide feature overrides for non-MIPS16 systems 2017-07-11 14:13:06 +02:00
irq.h MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
kernel-entry-init.h MIPS: SGI-IP27: move IP27 specific macro to IP27 specific header file 2020-01-09 15:29:53 -08:00
kmalloc.h dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN 2010-08-11 08:59:21 -07:00
mangle-port.h MIPS: SGI-IP27: fix readb/writeb addressing 2020-01-09 15:30:56 -08:00
mmzone.h MIPS: SGI-IP27: No need for slice_map 2020-01-09 15:30:07 -08:00
spaces.h MIPS: VDSO: avoid duplicate CAC_BASE definition 2017-01-25 02:51:09 +01:00
topology.h MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later 2020-01-09 15:30:06 -08:00
war.h MIPS: Remove unused R5432_CP0_INTERRUPT_WAR 2019-07-23 14:33:44 -07:00