[GIT PULL] ux500 patches for v3.4
linus.walleij at linaro.org
Sun Feb 26 04:41:16 EST 2012
On Fri, Feb 24, 2012 at 5:25 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> On Friday 24 February 2012, Linus Walleij wrote:
>> > Then you just need to find a convenient value for UX500_ASICID_VIRT
>> > that does not conflict with the other static mappings.
>> But the problem is that the ASIC address is not
>> at all constant across ASIC variants. They are on different
>> places in the ROM for U8500, U5500. U9540... So as described
>> above we already know the main type of ASIC, but we need to
>> read this value to get the subvariant, process etc.
>> So there is no such thing as UX500_ASICID_ADDR.
>> Unless we defines it with #ifdefs and compile a kernel for just
>> U8500, U5500 or U9540 and that's mainly what we want to
>> get away from you know...
> My point was that you use the same virtual address here independent
> of which physical address is used. The physical address already gets
> passed into the function as its argument, we only need to map it
> to a convenient place in order to read it!
Oh sorry I'm slow in the head :-/
Yes that should work of course, I will attempt to make an additional
patch on top of these that consolidates the whole thing into one
function that does that.
More information about the linux-arm-kernel