android_kernel_xiaomi_sm7250/include/asm-arm/arch-ixp2000
Lennert Buytenhek 917afce100 [ARM] 2911/1: ixp2000_reg_{read,write} accessors
Patch from Lennert Buytenhek

This patch:
- changes the ixp2000_reg_write accessor to take a 'volatile void *'
  instead of a 'volatile unsigned long *', which then allows passing in
  a u32 * as first argument without being greeted with a warning; and
- adds an ixp2000_reg_read accessor.
We can then use these accessors in ixp2000 code to access on-chip
peripherals, instead of directly dereferencing pointers.  This is for
use by the ixp2000 microengine driver which was recently announced on
netdev.  We can't use readl/writel on the ixp2000 since it is usually
run in big-endian mode, and on big-endian platforms, readl/writel
perform byteswapping.
A future patch will remove the readback from ixp2000_reg_write, since
it's not needed to prevent erratum #66, and add manual readbacks to the
places that need them (writes are not synchronous since we map in device
space using XCB=101 nowadays), such as interrupt disabling and GPIO
manipulation.  See also:
	http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2005-February/027084.html
Patch has been ACKed by Jeff Garzik.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-09-15 13:00:25 +01:00
..
debug-macro.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
enp2611.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry-macro.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gpio.h [PATCH] ARM: 2744/1: ixp2000 gpio irq support 2005-06-24 20:54:35 +01:00
hardware.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io.h [PATCH] ARM: 2752/1: disable ixp2000 PCI I/O software workaround on chips that don't need it 2005-06-25 19:30:04 +01:00
irq.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irqs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ixdp2x00.h [PATCH] ARM: 2753/1: move ixdp* cpld mappings 2005-06-26 22:24:13 +01:00
ixdp2x01.h [PATCH] ARM: 2753/1: move ixdp* cpld mappings 2005-06-26 22:24:13 +01:00
ixp2000-regs.h [PATCH] ARM: 2756/1: add ixp2000 msf mapping 2005-06-26 22:24:17 +01:00
memory.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
param.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
platform.h [ARM] 2911/1: ixp2000_reg_{read,write} accessors 2005-09-15 13:00:25 +01:00
system.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
timex.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uncompress.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmalloc.h [PATCH] ARM: 2754/1: move ixp2000 VMALLOC_END up 2005-06-26 22:24:14 +01:00