sunxi: Normalise FEL support
[oweals/u-boot.git] / arch / arm / cpu / armv7 / sunxi / fel_utils.S
1 /*
2  * Utility functions for FEL mode.
3  *
4  * Copyright (c) 2015 Google, Inc
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #include <asm-offsets.h>
10 #include <config.h>
11 #include <asm/system.h>
12 #include <linux/linkage.h>
13
14 ENTRY(save_boot_params)
15         ldr     r0, =fel_stash
16         str     sp, [r0, #0]
17         str     lr, [r0, #4]
18         b       save_boot_params_ret
19 ENDPROC(save_boot_params)
20
21 ENTRY(return_to_fel)
22         mov     sp, r0
23         mov     lr, r1
24         bx      lr
25 ENDPROC(return_to_fel)