From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 8 Mar 2016 18:23:02 -0500 Subject: [U-Boot] [PATCH] spl: add a new stub spl_early_board_init() for early SoC-specific setup In-Reply-To: <1457437036-22938-1-git-send-email-yamada.masahiro@socionext.com> References: <1457437036-22938-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20160308232302.GV23166@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 08, 2016 at 08:37:16PM +0900, Masahiro Yamada wrote: > We are generally supposed to implement SoC/board-specific SPL init > code in spl_board_init(), but it is called after spl_init() where the > FDT is setup and devices are bound. > > This new stub spl_early_board_init() would be useful to put something > really SoC-specific, for example, debug_uart_init(). > > In fact, I was hit by some problems on FDT setup when I was tackling > on a completely new platform. I wished I could use the debug UART > earlier in situations like that. > > Signed-off-by: Masahiro Yamada This is usually done with s_init() and uniphier opts out of that. I would conceed however that things could use some further clean-up and organization here. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: