blob: 97d8591104173c366f8b0a8554ac4f1469dfcb7d [file] [log] [blame]
Peng Fanbbcd2c42022-07-26 16:40:39 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2022 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:
Simon Glass85ed77d2024-09-29 19:49:46 -060019#ifndef CONFIG_XPL_BUILD
Peng Fanbbcd2c42022-07-26 16:40:39 +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
24#endif
25 /* Returns */
26 b save_boot_params_ret