rockchip: Enable PCIe/M.2 on rk3399 board w/ M.2
[oweals/u-boot.git] / arch / arm / mach-rmobile / lowlevel_init_gen3.S
index 11acce0395707156abb4277f1cafbb1e09f990fa..213ec143e2774cf1c48a60feb566610ee3b81375 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * arch/arm/cpu/armv8/rcar_gen3/lowlevel_init.S
  *     This file is lowlevel initialize routine.
@@ -8,8 +9,6 @@
  *
  * (C) Copyright 2013
  * David Feng <fenghua@phytium.com.cn>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <asm-offsets.h>
 #include <linux/linkage.h>
 #include <asm/macro.h>
 
+.align 8
+.globl rcar_atf_boot_args
+rcar_atf_boot_args:
+       .dword 0
+       .dword 0
+       .dword 0
+       .dword 0
+
+ENTRY(save_boot_params)
+       adr     x8, rcar_atf_boot_args
+       stp     x0, x1, [x8], #16
+       stp     x2, x3, [x8], #16
+       b       save_boot_params_ret
+ENDPROC(save_boot_params)
+
 ENTRY(lowlevel_init)
        mov     x29, lr                 /* Save LR */
 
@@ -61,14 +75,14 @@ ENTRY(lowlevel_init)
        /*
         * All slaves will enter EL2 and optionally EL1.
         */
-       adr     x3, lowlevel_in_el2
-       ldr     x4, =ES_TO_AARCH64
+       adr     x4, lowlevel_in_el2
+       ldr     x5, =ES_TO_AARCH64
        bl      armv8_switch_to_el2
 
 lowlevel_in_el2:
 #ifdef CONFIG_ARMV8_SWITCH_TO_EL1
-       adr     x3, lowlevel_in_el1
-       ldr     x4, =ES_TO_AARCH64
+       adr     x4, lowlevel_in_el1
+       ldr     x5, =ES_TO_AARCH64
        bl      armv8_switch_to_el1
 
 lowlevel_in_el1: