mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
omap: detect board before spl_early_init()
In order to be able to select the right DTB, we need to have identified the board before spl_early_init() is called. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Tom Rini

parent
2f57c95100
commit
a4d72869f8
@ -165,9 +165,11 @@ void early_system_init(void)
|
|||||||
* to prevent overwrites.
|
* to prevent overwrites.
|
||||||
*/
|
*/
|
||||||
save_omap_boot_params();
|
save_omap_boot_params();
|
||||||
spl_early_init();
|
|
||||||
#endif
|
#endif
|
||||||
do_board_detect();
|
do_board_detect();
|
||||||
|
#ifdef CONFIG_SPL_BUILD
|
||||||
|
spl_early_init();
|
||||||
|
#endif
|
||||||
vcores_init();
|
vcores_init();
|
||||||
#ifdef CONFIG_DEBUG_UART_OMAP
|
#ifdef CONFIG_DEBUG_UART_OMAP
|
||||||
debug_uart_init();
|
debug_uart_init();
|
||||||
|
Reference in New Issue
Block a user