aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7m
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2022-01-01 19:13:25 +0200
committerTom Rini <trini@konsulko.com>2022-01-18 08:31:02 -0500
commit027b0e9c165d33da1bd7458363a3d57fdadee662 (patch)
tree1c8576a58e2cb0fb552dca9710e6c5183f9c06c4 /arch/arm/cpu/armv7m
parentea9733ac4c268cc862ec1e414f066f192348ef5a (diff)
downloadu-boot-027b0e9c165d33da1bd7458363a3d57fdadee662.zip
u-boot-027b0e9c165d33da1bd7458363a3d57fdadee662.tar.gz
u-boot-027b0e9c165d33da1bd7458363a3d57fdadee662.tar.bz2
common: spl: move armv7m-specific code to spl_perform_fixups()
Factor out armv7m fragment to spl_perform_fixups(), which is an arch/board specific function designed for this purpose. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'arch/arm/cpu/armv7m')
-rw-r--r--arch/arm/cpu/armv7m/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7m/cpu.c b/arch/arm/cpu/armv7m/cpu.c
index 6372101..65427b5 100644
--- a/arch/arm/cpu/armv7m/cpu.c
+++ b/arch/arm/cpu/armv7m/cpu.c
@@ -12,6 +12,7 @@
#include <irq_func.h>
#include <asm/io.h>
#include <asm/armv7m.h>
+#include <spl.h>
/*
* This is called right before passing control to
@@ -56,3 +57,8 @@ void reset_cpu(void)
| (V7M_SCB->aircr & V7M_AIRCR_PRIGROUP_MSK)
| V7M_AIRCR_SYSRESET, &V7M_SCB->aircr);
}
+
+void spl_perform_fixups(struct spl_image_info *spl_image)
+{
+ spl_image->entry_point |= 0x1;
+}