[U-Boot-Users] [PATCH] Move init_sequence table into code.
Joakim Tjernlund
joakim.tjernlund at transmode.se
Tue Apr 15 08:40:21 CEST 2008
On Tue, 2008-04-15 at 06:35 +0200, Wolfgang Denk wrote:
> In message <1208207184.5911.26.camel at gentoo-jocke.transmode.se> you wrote:
> >
> > It is a step closer towards full relocation of u-boot, I want to get rid
> > of using global data while in FLASH.
>
> I doubt that this will work, but I'd love to be surprised :-)
It is not going to be a walk in the park :) The big remaining part
is string literals while still in flash, not sure how to solve these
yet.
>
> > > The original idea of having such a list of funtion pointers which
> > > just get executed one after another was to be able to wrap this into
> > > some "#ifndef CONFIG_INIT_SEQUENCE" and use this to allow for board-
> > > specific init sequences by just adding a #define with the needed list
> > > of functions to the board config files.
> >
> > You can do that with weak functions too. Just make all the functions
> > weak, then a board can overide with its own function.
>
> That would not, for example, to allow to change the sequence - say
> one board needs to initialize PCI very early, but another one very
> late.
True, but as no one even uses this code ATM, it can't be a big deal.
Jocke
More information about the U-Boot
mailing list