public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Move init_sequence table into code.
Date: Tue, 15 Apr 2008 06:35:18 +0200	[thread overview]
Message-ID: <20080415043518.9FF24248BB@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 14 Apr 2008 23:06:24 +0200." <1208207184.5911.26.camel@gentoo-jocke.transmode.se>

In message <1208207184.5911.26.camel@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 :-)

> > 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.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If the hours are long enough and the pay  is  short  enough,  someone
will say it's women's work.

  reply	other threads:[~2008-04-15  4:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 15:45 [U-Boot-Users] [PATCH] Move init_sequence table into code Joakim Tjernlund
2008-03-28 15:45 ` [U-Boot-Users] [PATCH] Change env_get_char from a global function ptr to a function Joakim Tjernlund
2008-03-30 18:08   ` Jean-Christophe PLAGNIOL-VILLARD
2008-03-30 20:59   ` Wolfgang Denk
2008-03-30 21:05     ` Joakim Tjernlund
2008-03-30 22:33       ` Wolfgang Denk
2008-03-31  7:15         ` Joakim Tjernlund
2008-04-05 17:31           ` Joakim Tjernlund
2008-04-14  1:09             ` Wolfgang Denk
2008-04-14 21:01               ` Joakim Tjernlund
2008-04-18  4:14                 ` Wolfgang Denk
2008-04-14  1:09 ` [U-Boot-Users] [PATCH] Move init_sequence table into code Wolfgang Denk
2008-04-14 21:06   ` Joakim Tjernlund
2008-04-15  4:35     ` Wolfgang Denk [this message]
2008-04-15  6:40       ` Joakim Tjernlund
2008-04-18  4:14         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080415043518.9FF24248BB@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox