summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-04-25 08:28:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-04-25 12:35:04 +0200
commit13f3d7bb62c6c53c298e7d252e0a96bddd3b1956 (patch)
tree88447c9b56af17e9cb691337eefdff96de03a489 /arch/arm/cpu
parenteec09d7b9edc8f740c78d545d918ecd8f6efba4f (diff)
downloadbarebox-13f3d7bb62c6c53c298e7d252e0a96bddd3b1956.tar.gz
barebox-13f3d7bb62c6c53c298e7d252e0a96bddd3b1956.tar.xz
ARM: cpu: board-dt-2nd: call arm_cpu_lowlevel_init
The generic DT image could be started by boot firmware that doesn't do all the initialization that we do in arm_cpu_lowlevel_init(), so call it always for good measure. This enables using the generic image as second stage to the Raspberry Pi videocore. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220425062849.17954-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/board-dt-2nd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/board-dt-2nd.c b/arch/arm/cpu/board-dt-2nd.c
index 0731aecd1a..6f4a6f26a8 100644
--- a/arch/arm/cpu/board-dt-2nd.c
+++ b/arch/arm/cpu/board-dt-2nd.c
@@ -21,6 +21,8 @@ void dt_2nd_aarch64(void *fdt)
/* entry point already set up stack */
+ arm_cpu_lowlevel_init();
+
relocate_to_current_adr();
setup_c();
@@ -50,6 +52,8 @@ ENTRY_FUNCTION(start_dt_2nd, r0, r1, r2)
{
unsigned long image_start = (unsigned long)_text + global_variable_offset();
+ arm_cpu_lowlevel_init();
+
arm_setup_stack(image_start);
relocate_to_current_adr();