blob: 791c26407c9568aeccdce78ef4004e1472551f08 [file] [log] [blame]
Peng Fanb15705a2021-08-07 16:00:35 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2020 NXP
4 */
5
6#include <config.h>
7
8.align 8
9.global rom_pointer
10rom_pointer:
11 .space 256
12
13/*
14 * Routine: save_boot_params (called after reset from start.S)
15 */
16
17.global save_boot_params
18save_boot_params:
Ye Li853cc9d2021-08-07 16:00:55 +080019#ifndef CONFIG_SPL_BUILD
Peng Fanb15705a2021-08-07 16:00:35 +080020 /* The firmware provided ATAG/FDT address can be found in r2/x0 */
21 adr x0, rom_pointer
22 stp x1, x2, [x0], #16
23 stp x3, x4, [x0], #16
Ye Li853cc9d2021-08-07 16:00:55 +080024#endif
Peng Fanb15705a2021-08-07 16:00:35 +080025 /* Returns */
26 b save_boot_params_ret