[PATCH 4/4] ARM: Xilinx: base header files and assembly macros

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Feb 8 03:27:25 EST 2011


On Mon, Feb 07, 2011 at 05:14:13PM -0700, John Linn wrote:
> I'm assuming you meant to change all addresses of devices (#defines) to
> use the IOMEM.
> 
> I did that and it's ok. You also have to cast them to ints when putting
> the addresses into
> the resource for a platform device.

Hang on.  The reason I mentioned it was because you were passing some
of these into readl() et.al.  readl() takes the mapped cookie, not the
physical address.

Physical addresses should be integer like, virtual addresses should be
pointer like.



More information about the linux-arm-kernel mailing list