From: Mike Frysinger Date: Thu, 18 Aug 2011 10:37:17 -0400 Subject: [U-Boot] [RFC][PATCH] Replace clunky init sequence architecture In-Reply-To: <1313670862-31216-1-git-send-email-graeme.russ@gmail.com> References: <1313670862-31216-1-git-send-email-graeme.russ@gmail.com> Message-ID: <201108181037.18053.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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