diff options
author | Simon Glass <sjg@chromium.org> | 2015-02-07 20:47:28 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-02-16 22:14:54 +0300 |
commit | e11c6c279d823dc0d2f470c5c2e3c0a9854a640f (patch) | |
tree | 31ae3d1bd015ec97d889ad6dc45baf5e1e127913 /board/nokia | |
parent | c924e2a8036f43f2f4a8e829ecfc8e9d6e8cce63 (diff) | |
download | u-boot-e11c6c279d823dc0d2f470c5c2e3c0a9854a640f.tar.xz |
arm: Allow lr to be saved by board code
The link register value can be required on some boards (e.g. FEL mode on
sunxi) so use a branch instruction to jump to save_boot_params() instead
of a branch link.
This requires a branch back to save_boot_params_ret so adjust the users
to deal with this. For exynos just drop the function since it doesn't
do anything.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board/nokia')
-rw-r--r-- | board/nokia/rx51/lowlevel_init.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/nokia/rx51/lowlevel_init.S b/board/nokia/rx51/lowlevel_init.S index e25290966c..9d4ea1b3f9 100644 --- a/board/nokia/rx51/lowlevel_init.S +++ b/board/nokia/rx51/lowlevel_init.S @@ -37,7 +37,8 @@ ih_magic: /* IH_MAGIC in big endian from include/image.h */ .global save_boot_params save_boot_params: - + /* Get return address */ + ldr lr, =save_boot_params_ret /* Copy valid attached kernel to address KERNEL_ADDRESS */ |