[PATCH 0/9] Switch internal registers address to 0xF1 on Armada 370/XP

Jason Cooper jason at lakedaemon.net
Wed May 22 12:49:36 EDT 2013


Thomas,

On Wed, May 22, 2013 at 06:42:50PM +0200, Thomas Petazzoni wrote:
> On Wed, 22 May 2013 18:35:57 +0200, Willy Tarreau wrote:
> > On Wed, May 22, 2013 at 06:08:42PM +0200, Thomas Petazzoni wrote:
> > > Conclusion: you can't classify on one side boards that are at 0xd0 and
> > > boards that are at 0xf1. It depends on *which* bootloader each
> > > particular instance of those boards will be using. Will it be a
> > > bootloader that complies with the "old" protocol (CP15 bit cleared and
> > > registers at 0xd0) or the "new" protocol (CP15 bit set and registers at
> > > 0xf1).
> > 
> > Just a point I'm thinking about, is it possible to detect the boot loader's
> > mode via ATAGs ? ATAGs are present very early as well (but maybe too late
> > already).
> 
> As far as I know, a DT-capable bootloader doesn't pass any ATAG. The
> ARM register that was used to pass the pointer to the ATAGS is now used
> to pass the pointer to the DTB in memory.

So we could look for the ATAG magic or the dtb magic at that address,
then we know if we have an old or new bootloader...

thx,

Jason.



More information about the linux-arm-kernel mailing list