[PATCH v2 03/28] ARM: imx: convert to common runtime ioremap hook

Rob Herring robherring2 at gmail.com
Wed Feb 29 17:55:25 EST 2012


On 02/29/2012 03:34 PM, Arnd Bergmann wrote:
> On Wednesday 29 February 2012, Rob Herring wrote:
>> From: Rob Herring <rob.herring at calxeda.com>
>>
>> Convert i.MX platforms to use the common run-time ioremap hook instead of
>> the imx specific hook.
>>
>> Also, move addr_in_module out of io.h.
>>
>> Signed-off-by: Rob Herring <rob.herring at calxeda.com>
> 
> I wonder if we can't just get rid of imx3_ioremap if we put all the
> i.mx3 mappings below 0x80000000 into the static mapping area so that
> the new generic ioremap will just point to that.
> 

Sure, but it's not my call what the i.MX guys do. I'm just generalizing
what i.MX already has for other platforms to use. Since we have no way
to create static mappings from devicetrees I don't think we want to
expand static mappings. Also, your past guidance has been to get rid of
static mappings.

Even if we got rid of it here and on msm, there are still other
platforms that need custom ioremap where static mappings won't help.
ebsa110 and ixp4xx also need ioremap but I didn't convert them to
runtime from compile time since they still need io.h for other reasons
at this point.

Rob



More information about the linux-arm-kernel mailing list