[U-Boot] [PATCH] spl: add a new stub spl_early_board_init() for early SoC-specific setup

Tom Rini trini at konsulko.com
Wed Mar 9 00:23:02 CET 2016


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 <yamada.masahiro at socionext.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20160308/3f70b5a7/attachment.sig>


More information about the U-Boot mailing list