projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69ba7b
)
ARM: at91: spl: add spl_early_init for sama5d2 platforms
author
Greg Gallagher
<greg@embeddedgreg.com>
Thu, 21 Jan 2021 16:55:36 +0000
(11:55 -0500)
committer
Eugen Hristev
<eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000
(15:09 +0200)
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>
arch/arm/mach-at91/spl_atmel.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-at91/spl_atmel.c
b/arch/arm/mach-at91/spl_atmel.c
index 23588e79f949976459c390b1b3a64edff679fe69..217ed12e31ef27512f7faf5a971b4f955de3f713 100644
(file)
--- a/
arch/arm/mach-at91/spl_atmel.c
+++ b/
arch/arm/mach-at91/spl_atmel.c
@@
-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