mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
ARM: at91: spl: add spl_early_init for sama5d2 platforms
The dm root node is needed early in the spl to allow the timer to be used. This change calls spl_early_init to initialize the dm root node. Signed-off-by: Greg Gallagher <greg@embeddedgreg.com>
This commit is contained in:
parent
c69ba7b4a0
commit
786f35b619
1 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,13 @@ void board_init_f(ulong dummy)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (IS_ENABLED(CONFIG_OF_CONTROL)) {
|
||||
ret = spl_early_init();
|
||||
if (ret) {
|
||||
debug("spl_early_init() failed: %d\n", ret);
|
||||
hang();
|
||||
}
|
||||
}
|
||||
switch_to_main_crystal_osc();
|
||||
|
||||
#ifdef CONFIG_SAMA5D2
|
||||
|
|
Loading…
Reference in a new issue