[v2,1/3] sunxi: fix return_to_fel() prototype
Commit Message
In some sys_proto header file we describe the prototype of the
return_to_fel() function, which is implemented in assembly.
The order of the arguments listed there is wrong: the stack pointer is
expected in r0/w0, and the return address in r1/w1.
Fix the order to match the code. This is purely cosmetic, as the callers
and the assembly code are already agreeing on this.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
arch/arm/include/asm/arch-sunxi/sys_proto.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -17,10 +17,10 @@ void sdelay(unsigned long);
* This returns back into the BROM after U-Boot SPL has performed its initial
* init. It uses the provided lr and sp to do so.
*
- * @lr: BROM link register value (return address)
* @sp: BROM stack pointer
+ * @lr: BROM link register value (return address)
*/
-void return_to_fel(uint32_t lr, uint32_t sp);
+void return_to_fel(uint32_t sp, uint32_t lr);
/* Board / SoC level designware gmac init */
#if !defined CONFIG_XPL_BUILD && defined CONFIG_SUN7I_GMAC