[U-Boot] [RFC][PATCH] Replace clunky init sequence architecture

Mike Frysinger vapier at gentoo.org
Thu Aug 18 16:37:17 CEST 2011


On Thursday, August 18, 2011 08:34:22 Graeme Russ wrote:
> Replace the init_fnc_t *init_sequence[] style init sequence with one based
> on the Linux __initcall macros.

i like the idea of decentralizing the init sequence out of the arches

> Functions are declared as initialisation functions by using the new
> INIT_FUNC() macro. The three parameters to INIT_FUNC() are:
>  - Type - f = pre-relocation (flash), r = post-relocation (RAM)
>  - Sequence - Lower numbers are run first
>  - Function - The function to call during the init sequence

in this scenario, we'll have to clearly document the #'s and what is expected 
to run at each so there's no confusion
-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/20110818/87ef48a3/attachment.pgp 


More information about the U-Boot mailing list