diff options
author | Simon Glass <sjg@chromium.org> | 2015-02-07 10:47:30 -0700 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-02-16 20:15:09 +0100 |
commit | 942cb0b6a29f74507adeb0bce7ff7f23f69faf84 (patch) | |
tree | db87608a735d5920489af93a7d3c8afd60f8dfc2 /arch/arm/cpu/armv7/sunxi/fel_utils.S | |
parent | c01c71bc16d2836c3ff81af54529dab0686bca00 (diff) | |
download | u-boot-imx-942cb0b6a29f74507adeb0bce7ff7f23f69faf84.zip u-boot-imx-942cb0b6a29f74507adeb0bce7ff7f23f69faf84.tar.gz u-boot-imx-942cb0b6a29f74507adeb0bce7ff7f23f69faf84.tar.bz2 |
sunxi: Normalise FEL support
Make sunxi's FEL code fit with the normal U-Boot boot sequence instead of
creating its own. There are some #ifdefs required in start.S. Future work
will hopefully remove these.
This series is available at u-boot-dm, branch sunxi-working.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/cpu/armv7/sunxi/fel_utils.S')
-rw-r--r-- | arch/arm/cpu/armv7/sunxi/fel_utils.S | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/fel_utils.S b/arch/arm/cpu/armv7/sunxi/fel_utils.S new file mode 100644 index 0000000..0c1de52 --- /dev/null +++ b/arch/arm/cpu/armv7/sunxi/fel_utils.S @@ -0,0 +1,25 @@ +/* + * Utility functions for FEL mode. + * + * Copyright (c) 2015 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <asm-offsets.h> +#include <config.h> +#include <asm/system.h> +#include <linux/linkage.h> + +ENTRY(save_boot_params) + ldr r0, =fel_stash + str sp, [r0, #0] + str lr, [r0, #4] + b save_boot_params_ret +ENDPROC(save_boot_params) + +ENTRY(return_to_fel) + mov sp, r0 + mov lr, r1 + bx lr +ENDPROC(return_to_fel) |