All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] New init sequence processing without init_sequence array
Date: Mon, 22 Aug 2011 21:00:16 -0400	[thread overview]
Message-ID: <201108222100.25104.vapier@gentoo.org> (raw)
In-Reply-To: <20110822201023.0F8A111EF9D9@gemini.denx.de>

On Monday, August 22, 2011 16:10:23 Wolfgang Denk wrote:
> 3. Hardware initialization in inherently very much hardware depen-
>    dent ;-)  We have some boards where PCI must be initialized early
>    because it is needed to access some other peripherals like memory.
>    And we have other boards where PCI can only be initialized late
>    because it depends on a lot of other functions that must be working
>    first.
> 
>    I explained this a number of times before: the current code was
>    designed to allow even for completely board specific init
>    sequences, by simply adding #define for the list of init functions
>    to the board config file - see for example here:
> 
>    http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/33951/focus=36436
> 
>    http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/72131/focus=72136
> 
>    If you look at the current code - heavily larded with #ifdefs of
>    all shapes and colors - I cannot see any good way to transform this
>    into an initcall (and thus sequence number based) implementation.
>    Do you have any specific ideas how to address this?

if the funcs get merged by the linker script, the board still has full control 
over the init order by writing their own linker script
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110822/086cf11b/attachment.pgp 

  parent reply	other threads:[~2011-08-23  1:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 13:22 [U-Boot] [RFC] New init sequence processing without init_sequence array Graeme Russ
2011-08-22 20:10 ` Wolfgang Denk
2011-08-22 23:20   ` Graeme Russ
2011-08-23 11:49     ` Wolfgang Denk
2011-08-23 23:20       ` Graeme Russ
2011-08-24  5:38         ` Wolfgang Denk
2011-08-24  5:57           ` Graeme Russ
2011-08-24  6:48             ` Wolfgang Denk
2011-08-24  7:06               ` Graeme Russ
2011-08-24 12:49                 ` Wolfgang Denk
2011-08-24 12:56                   ` Graeme Russ
2011-08-24 13:24                     ` Wolfgang Denk
2011-08-24 13:58                       ` Graeme Russ
2011-08-24 23:00                         ` Graeme Russ
2011-08-24 23:41                           ` Simon Glass
2011-08-25  2:45                             ` Graeme Russ
2011-08-24 13:46               ` Detlev Zundel
2011-08-23  0:17   ` Graeme Russ
2011-08-23  1:00   ` Mike Frysinger [this message]
2011-08-23  1:10     ` Graeme Russ
2011-08-23 11:52     ` 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=201108222100.25104.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.