[PATCH 03/15] ARM: provide runtime hook for ioremap

Rob Herring robherring2 at gmail.com
Mon Feb 13 17:48:21 EST 2012


On 02/13/2012 04:30 PM, Russell King - ARM Linux wrote:
> On Mon, Feb 13, 2012 at 03:43:16PM -0600, Rob Herring wrote:
>> From: Rob Herring <rob.herring at calxeda.com>
>>
>> We have compile time over-ride of ioremap, but an run-time override is
>> needed for multi-platform builds.
> 
> Are you sure we need this after Nicolas' updates to ioremap() ?

Yes, because these are adjusting the memory type, not redirecting the
ioremap to a static mapping. There was some discussion among Nico, Arnd
and myself about using static mappings instead as you can set the memory
type. The imx case is all addresses below 0x8000000 except the interrupt
controller need adjustment. This would burn up a lot more virtual space
or be a long list of peripherals. I think my change is much simpler and
is just generalizing what imx is doing for everyone.

There's also a few other custom ioremaps I didn't convert: ebsa110,
iop13xx, and ixp4xx. These platforms already have multiple issues with
single kernel.

Rob



More information about the linux-arm-kernel mailing list