diff options
author | Greg Gallagher | 2021-01-21 11:55:36 -0500 |
---|---|---|
committer | Eugen Hristev | 2021-01-22 15:09:59 +0200 |
commit | 786f35b619ddbfb88e4532d11a56413f5dab473f (patch) | |
tree | 805e3f33ffca702019f8c93c4142a0aad080dca3 /arch/arm/mach-at91/spl_atmel.c | |
parent | c69ba7b4a0878eaf9b6c1c2d9727888b93272141 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-at91/spl_atmel.c')
-rw-r--r-- | arch/arm/mach-at91/spl_atmel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 23588e79f94..217ed12e31e 100644 --- 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 |