diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-10-18 18:38:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-09 18:19:09 +0200 |
commit | 4fa8375ffec5bd1c7edabde42b8ee0339072df38 (patch) | |
tree | 53c84ee2aad81d73c7cf8ebdc714ebd3c4ed9b7f /arch/arm/mach-rmobile | |
parent | 118f4d4559a4386fa87a1e2509e84a1986b24a34 (diff) | |
download | u-boot-4fa8375ffec5bd1c7edabde42b8ee0339072df38.tar.gz u-boot-4fa8375ffec5bd1c7edabde42b8ee0339072df38.tar.xz u-boot-4fa8375ffec5bd1c7edabde42b8ee0339072df38.zip |
ARM: renesas: Save boot parameters passed in by ATF
The ATF can pass additional information via the first four registers,
x0...x3. The R-Car Gen3 with mainline ATF, register x1 contains pointer
to a device tree with platform information. Save these registers for
future use.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch/arm/mach-rmobile')
-rw-r--r-- | arch/arm/mach-rmobile/lowlevel_init_gen3.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-rmobile/lowlevel_init_gen3.S b/arch/arm/mach-rmobile/lowlevel_init_gen3.S index f42b53fd88..213ec143e2 100644 --- a/arch/arm/mach-rmobile/lowlevel_init_gen3.S +++ b/arch/arm/mach-rmobile/lowlevel_init_gen3.S @@ -16,6 +16,21 @@ #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 */ |